본문으로 건너뛰기
cccskills
무료GitHub에 공개

spec

Write a durable feature spec before touching code. Reads the codebase map, reads related models/migrations to ask technical questions (not generic ones), then produces a structured spec doc in docs/specs/. Designed to pipeline with /implementation --issue N. Use before any feature implementation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(4)

  • SKILL.md3.2 KB
  • reference/defaults.md1.0 KB
  • templates/spec.md1.8 KB
  • workflows/brainstorm.md2.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

/spec — Feature Specification

Trigger

/spec --issue N [--fast]
  • --issue N — required. Reads GitHub issue #N.
  • --fast — skip questions, apply defaults from reference/defaults.md, still requires user approval of the spec (hard gate).

Output

docs/specs/YYYY-MM-DD-{slug}-issue-{N}.md

YAML frontmatter includes issue: N so /implementation --issue N finds this file automatically.


Workflow

Step 1 — Load codebase map

ls docs/codebase/INDEX.md 2>/dev/null || echo "missing"

If exists and < 7 days old: read architecture.md + conventions.md. If missing or stale: run /map-codebase first, then proceed.

Step 2 — Read issue

gh issue view N --json title,body,labels,state

Step 3 — Brainstorm (9 stages)

See workflows/brainstorm.md.

Key principle: Stage 1 reads actual related code (models, migrations, FK patterns) before formulating questions. Questions must demonstrate codebase understanding — reference specific tables, patterns, or files found in Stage 1.

Step 4 — Write spec

Use templates/spec.md. Every column, every endpoint, every file in manifest. No placeholders. No TBD. If unknown → make it a deferred decision, explicitly.

Step 5 — Adversarial review (optional)

Ask explicitly:

"Do you want an adversarial review of this spec before committing? This spawns a Codex/Gemini reviewer that looks for: missing constraints, wrong FK assumptions, scope creep, contradictions, and security gaps."

  • Yes → run /review solve "adversarial spec review: find flaws in docs/specs/{filename}", present findings, offer to fix before commit
  • No → proceed to Step 6

Step 6 — Commit spec

git add docs/specs/{filename}
git commit -m "docs(spec): {feature slug} spec — issue #{N}"

Step 7 — Hand off

Print this block verbatim so the user can copy-paste it:

Spec committed: docs/specs/{filename}  (on main)

── Option A: implement in current session ──────────────────
  /implementation --issue {N}

── Option B: implement in a parallel worktree ──────────────
  git worktree add -b feature/{N}-{slug} ../{project}-{N} main
  # open new Claude Code session in ../{project}-{N}
  /implementation --issue {N}

── Fast mode (no questions, Codex review at end) ───────────
  /implementation --issue {N} --fast

Spec stays on main. The branch is created by worktree add or by /implementation at start. Multiple specs can be committed to main in parallel — they are docs only, no code conflicts.

Do not start implementing. Do not write any code.


References

  • workflows/brainstorm.md — 9-stage spec generation with technical question guidelines
  • reference/defaults.md — fast mode assumptions table
  • templates/spec.md — required spec document format

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Validate WCAG 2.1 Level AA compliance and accessibility best practices. Use when performing accessibility audits and WCAG certification.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

matteocervelli/llms252026년 5월 22일 업데이트

analysis

무료

Analyze feature requirements, dependencies, and security considerations. Use when starting feature implementation from GitHub issues to understand scope, technical feasibility, and risks.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

matteocervelli/llms252026년 5월 22일 업데이트

analytics

무료

Run SQL queries against psql, BigQuery, or MySQL from the terminal, including natural-language-to-SQL and schema exploration. Use when analyzing data, inspecting DB state, or debugging tables. Trigger on "query the database", "SQL", "show me data from", "explore table".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

matteocervelli/llms252026년 5월 22일 업데이트

Design REST APIs or function contracts with clear request/response specifications, error handling patterns, authentication strategies, and comprehensive documentation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

matteocervelli/llms252026년 5월 22일 업데이트

Generate comprehensive API endpoint tests for REST and GraphQL APIs. Creates tests for all HTTP methods, status codes, authentication, and validation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

matteocervelli/llms252026년 5월 22일 업데이트

Design component architecture and module structure using established architectural patterns for clean, maintainable, and scalable systems.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

matteocervelli/llms252026년 5월 22일 업데이트

matteocervelli의 스킬 모두 보기

이 스킬의 문제 신고