본문으로 건너뛰기
Skillpedia
일반 코딩29k · #9605

spec-driven-workflow

하는 일

이 스킬은 기능을 만들기 전에 AI가 명세를 쓰도록 합니다. 작업을 시작하기 전에 무엇을 만들지 합의하고 싶은 사람에게 맞습니다.

사용하는 경우

  • ✓코드를 쓰기 전에 기능을 먼저 명세해야 할 때.
  • ✓테스트로 바꿀 수 있는 인수 기준이 필요할 때.
  • ✓여러 사람이 하나의 합의된 기능 정의를 따라 일해야 할 때.

스킬 링크

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/spec-driven-workflow/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/spec-driven-workflow/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“코딩을 시작하기 전에, 비밀번호 재설정 기능의 인수 기준이 담긴 명세를 써 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 명세 초안을 만들고, 빈틈과 모호함을 점검한 뒤, 인수 기준을 테스트 케이스로 뽑아 코드가 그 기준에 맞는지 확인할 수 있게 합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Spec-Driven Workflow — POWERFUL

Overview

Spec-driven workflow enforces a single, non-negotiable rule: write the specification BEFORE you write any code. Not alongside. Not after. Before.

This is not documentation. This is a contract. A spec defines what the system MUST do, what it SHOULD do, and what it explicitly WILL NOT do. Every line of code you write traces back to a requirement in the spec. Every test traces back to an acceptance criterion. If it is not in the spec, it does not get built.

Why Spec-First Matters

  1. Eliminates rework. 60-80% of defects originate from requirements, not implementation. Catching ambiguity in a spec costs minutes; catching it in production costs days.
  2. Forces clarity. If you cannot write what the system should do in plain language, you do not understand the problem well enough to write code.
  3. Enables parallelism. Once a spec is approved, frontend, backend, QA, and documentation can all start simultaneously.
  4. Creates accountability. The spec is the definition of done. No arguments about whether a feature is "complete" — either it satisfies the acceptance criteria or it does not.
  5. Feeds TDD directly. Acceptance criteria in Given/When/Then format translate 1:1 into test cases. The spec IS the test plan.

The Iron Law

NO CODE WITHOUT AN APPROVED SPEC.
NO EXCEPTIONS. NO "QUICK PROTOTYPES." NO "I'LL DOCUMENT IT LATER."

If the spec is not written, reviewed, and approved, implementation does not begin. Period.


The Spec Format

Every spec follows this structure. No sections are optional — if a section does not apply, write "N/A — [reason]" so reviewers know it was considered, not forgotten.

Mandatory Sections

# Section Key Rules
1 Title and Metadata Author, date, status (Draft/In Review/Approved/Superseded), reviewers
2 Context Why this feature exists. 2-4 paragraphs with evidence (metrics, tickets).
3 Functional Requirements RFC 2119 keywords (MUST/SHOULD/MAY). Numbered FR-N. Each is atomic and testable.
4 Non-Functional Requirements Performance, security, accessibility, scalability, reliability — all with measurable thresholds.
5 Acceptance Criteria Given/When/Then format. Every AC references at least one FR-* or NFR-*.
6 Edge Cases Numbered EC-N. Cover failure modes for every external dependency.
7 API Contracts TypeScript-style interfaces. Cover success and error responses.
8 Data Models Table format with field, type, constraints. Every entity from requirements must have a model.
9 Out of Scope Explicit exclusions with reasons. Prevents scope creep during implementation.

RFC 2119 Keywords

Keyword Meaning
MUST Absolute requirement. Non-conformant without it.
MUST NOT Absolute prohibition.
SHOULD Recommended. Omit only with documented justification.
MAY Optional. Implementer's discretion.

See spec_format_guide.md for the complete template with section-by-section examples, good/bad requirement patterns, and feature-type templates (CRUD, Integration, Migration).

See acceptance_criteria_patterns.md for a full pattern library of Given/When/Then criteria across authentication, CRUD, search, file upload, payment, notification, and accessibility scenarios.


Bounded Autonomy Rules

These rules define when an agent (human or AI) MUST stop and ask for guidance vs. when they can proceed independently.

STOP and Ask When:

  1. Scope creep detected. The implementation requires something not in the spec. Even if it seems obviously needed, STOP. The spec might have excluded it deliberately.

  2. Ambiguity exceeds 30%. If you cannot determine the correct behavior from the spec for more than 30% of a given requirement, the spec is incomplete. Do not guess.

  3. Breaking changes required. The implementation would change an existing API contract, database schema, or public interface. Always escalate.

  4. Security implications. Any change that touches authentication, authorization, encryption, or PII handling requires explicit approval.

  5. Performance characteristics unknown. If a requirement says "MUST complete in < 500ms" but you have no way to measure or guarantee that, escalate before implementing a guess.

자주 묻는 질문

코드도 써 주나요?

이 스킬은 명세를 먼저 쓰고 점검하는 일에 초점을 맞춥니다. 명세가 승인된 뒤에 코드를 씁니다.

기준은 어떤 형식인가요?

테스트 케이스로 바로 옮길 수 있는 Given, When, Then 형식을 씁니다.

테스트도 명세에서 만들 수 있나요?

네. 스크립트가 인수 기준에서 테스트 케이스를 뽑아냅니다.

상세 정보

작성자의 원본 설명

Use when a feature should be specified before coding (acceptance criteria, spec-first, tests from specs). Writes the spec with spec_generator.py, checks it with spec_validator.py and extracts tests with test_extractor.py.

repo: alirezarezvani/claude-skills

인기도

GitHub 스타
29k
순위
#9605
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬