spec-driven-development

작성자: n8n-io

Keeps implementation and specs in sync. Use when working on a feature that has a spec in .claude/specs/, when the user says /spec, or when starting…

npx skills add https://github.com/n8n-io/n8n --skill spec-driven-development

Spec-Driven Development

Specs live in .agents/specs/. They are the source of truth for architectural decisions, API contracts, and implementation scope. Implementation and specs must stay in sync — neither leads exclusively.

Core Loop

Read spec → Implement → Verify alignment → Update spec or code → Repeat

Before Starting Work

  1. Find the spec. Search .agents/specs/ for files matching the feature:
ls .agents/specs/
  1. Read the full spec. Understand scope, decisions, API contracts, and open questions before writing code.

  2. If no spec exists and the task is non-trivial (new module, new API, architectural change), ask the user whether to create one first.

During Implementation

  • Reference spec decisions — don't re-decide what the spec already settled.
  • When you diverge from the spec (better approach found, user requested change, constraint discovered), update the spec immediately in the same session. Don't leave spec and code out of sync.
  • Tick off TODO checkboxes (- [ ]- [x]) as items are completed.
  • Strike through or annotate items that were deliberately skipped or replaced, with a brief reason:
    - [x] ~~OpenRouter proxy~~ → Direct execution: nodes call OpenRouter directly
    

After Completing Work

Run a spec verification pass:

  1. Re-read the spec alongside the implementation.
  2. Check each section:
    • Do API endpoints in spec match the controller?
    • Do config/env vars in spec match the config class?
    • Does the module structure in spec match the actual file tree?
    • Do type definitions in spec match @n8n/api-types?
    • Are all TODO items correctly checked/unchecked?
  3. Update the spec for any drift found. Common drift:
    • New files added that aren't listed in the structure section
    • API response shapes changed during implementation
    • Config defaults adjusted
    • Architectural decisions refined
  4. Flag unresolved gaps to the user — things the spec promises but implementation doesn't deliver yet (acceptable for MVP, but should be noted).

Spec File Conventions

  • One or more markdown files per feature in .agents/specs/.
  • Keep specs concise. Use tables for mappings, code blocks for shapes.
  • Use ## Implementation TODO with checkboxes to track progress.
  • Split into multiple files when it helps (e.g. separate backend/frontend), but don't enforce a rigid naming scheme.

When the User Asks to "Self-Review" or "Verify Against Spec"

  1. Read all relevant specs.
  2. Read all implementation files.
  3. Produce a structured comparison:
    • Aligned: items where spec and code match
    • Drift: items where they diverge (fix immediately)
    • Gaps: spec items not yet implemented (note as future work)
  4. Fix drift, update specs, report gaps to the user.

n8n-io의 다른 스킬

n8n-cli
n8n-io
n8n CLI를 사용하여 n8n 인스턴스에서 워크플로, 자격 증명, 실행 등을 관리합니다. 사용자가 n8n과 상호작용하거나 워크플로를 자동화하도록 요청할 때 사용합니다.
official
create-issue
n8n-io
n8n 규칙에 따라 Linear 티켓이나 GitHub 이슈를 생성합니다. 사용자가 티켓 생성, 버그 제보, 이슈 열기, 또는 /create-issue를 요청할 때 사용하세요.
official
node-add-oauth
n8n-io
기존 n8n 노드에 OAuth2 자격 증명 지원을 추가합니다 — 자격 증명 파일을 생성하고, 노드를 업데이트하며, 테스트를 추가하고, CLI 상수를 동기화 상태로 유지합니다. 다음 경우에 사용하세요…
official
spec-driven-development
n8n-io
구현과 명세를 동기화합니다. .claude/specs/에 명세가 있는 기능을 작업할 때, 사용자가 /spec이라고 말할 때, 또는 시작할 때 사용합니다.
official
content-design
n8n-io
Product content designer for UI copy. Use when writing, reviewing, or auditing user-facing text: button labels, error messages, tooltips, empty states, modal…
official
create-issue
n8n-io
Create Linear tickets or GitHub issues following n8n conventions. Use when the user asks to create a ticket, file a bug, open an issue, or says /create-issue.
official
agent-builder
n8n-io
타겟 n8n 에이전트의 빌드 구성(채팅 통합/트리거, MCP 서버, 노드 도구 리소스 로케이터 등)을 생성, 구성 또는 편집할 때 사용합니다.
official
create-pr
n8n-io
Creates GitHub pull requests with properly formatted titles that pass the check-pr-title CI validation. Use when creating PRs, submitting changes for review,…
official