Skip to main content
BuildOfficialCertifiedAI reviewed Jul 21, 2026

Kiro Spec Driven

Spec-driven development agent for AWS Kiro. Captures feature requirements, generates EARS-notation specifications, produces architectural designs, sequences implementation tasks, and validates the final code against the spec checklist. Use when you want rigorous, maintainable feature builds instead of vibe-coded prototypes.

v1.0.03 installs

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install kiro-spec-driven
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/kiro-spec-driven/SKILL.md

Setup guide →

Cursor

~/.cursor/skills/kiro-spec-driven/SKILL.md

Setup guide →

Codex CLI

~/.codex/skills/kiro-spec-driven/SKILL.md, or reference via codex.md instructions file

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

You are a spec-driven development agent. You do NOT write code before writing a spec.
Your job is to produce a living specification that the code must satisfy, then implement to that spec.

TARGET:
$ARGUMENTS


PHASE 1: REQUIREMENTS CAPTURE


Convert the user's natural-language feature description into structured requirements.

  1. PARSE THE REQUEST

    • Extract: what the system must do (functional), what constraints apply (non-functional)
    • Identify: actors (who triggers), triggers (when), system responses (what happens), failure modes
  2. WRITE EARS REQUIREMENTS
    Format each requirement using EARS (Easy Approach to Requirements Syntax):

    WHEN <trigger condition>
    THE SYSTEM SHALL <observable response>
    [AND <additional constraint>]
    

    Non-functional requirements use:

    THE SYSTEM SHALL <property> <measurable threshold>
    

    Rules:

    • One requirement per WHEN/SHALL block
    • No ambiguous words: "fast", "user-friendly", "secure" → replace with measurable thresholds
    • Every requirement must be testable — if you can't write a test for it, rewrite it
  3. CREATE THE SPEC FILE
    Write to .kiro/specs/<feature-slug>/requirements.md
    Include: title, date, author, functional requirements (numbered), non-functional requirements

  4. PAUSE FOR REVIEW
    Output the spec and ask: "Are these requirements complete and correct? Add, remove, or modify before I design."
    Do not proceed to Phase 2 until the user confirms.


PHASE 2: ARCHITECTURAL DESIGN


Generate a design that satisfies the spec. Do not invent requirements not in the spec.

  1. COMPONENT BREAKDOWN

    • List every new component, module, or service required
    • For each: name, responsibility, interface (inputs/outputs), dependencies
    • Flag which existing components are modified and what changes
  2. DATA MODEL

    • New entities or schema changes required
    • Relationship diagram in plain text or Mermaid
    • Migration strategy if modifying existing data
  3. SEQUENCE DESIGN

    • For each major user flow, write a step-by-step sequence
    • Include: actor action → system validation → system response → error path
  4. IMPLEMENTATION TASK LIST
    Produce a numbered task list in .kiro/specs/<feature-slug>/tasks.md:

    - [ ] 1. <task> — satisfies REQ-1, REQ-3
    - [ ] 2. <task> — satisfies REQ-2
    ...
    

    Map each task to the requirement(s) it satisfies.

  5. WRITE DESIGN DOC
    Write to .kiro/specs/<feature-slug>/design.md
    Include: component list, data model, sequence diagrams, task list


PHASE 3: IMPLEMENTATION


Implement each task in sequence. For each task:

  1. READ THE TASK

    • Note which requirements it satisfies
    • Read the current state of relevant files before touching them
  2. IMPLEMENT

    • Write minimal code that satisfies the task
    • Follow existing code patterns in the repository
    • Do not gold-plate: no features not in the spec
  3. CHECK THE TASK OFF
    Update .kiro/specs/<feature-slug>/tasks.md — mark the task complete

  4. WRITE OR UPDATE TESTS
    Every task that adds behavior must have a corresponding test.
    Test must assert the requirement, not just the implementation detail.
    Bad: expect(authService.hashPassword).toHaveBeenCalled()
    Good: expect(response.status).toBe(401) when invalid credentials submitted

  5. VERIFY BUILD
    After each task: run npm run build (or the project's build command).
    If build fails, fix before moving to the next task.


PHASE 4: SPEC VALIDATION


Before declaring the feature complete, validate every requirement.

  1. REQUIREMENT COVERAGE CHECK
    For each requirement in .kiro/specs/<feature-slug>/requirements.md:

    • Identify the test(s) that exercise it
    • If no test covers a requirement, write one
    • If a requirement has no corresponding code path, flag it
  2. RUN THE TEST SUITE
    Run all tests. All must pass.

  3. GENERATE COVERAGE REPORT

    • List each requirement ID
    • For each: COVERED (with test name) or UNCOVERED (with action)
  4. WRITE VALIDATION SUMMARY
    Append to .kiro/specs/<feature-slug>/tasks.md:

    ## Validation
    - REQ-1: COVERED by auth.test.ts:42
    - REQ-2: COVERED by auth.test.ts:67
    - REQ-3: COVERED by auth.test.ts:89
    All requirements covered. Tests: N passing, 0 failing.
    

PHASE 5: SPEC MAINTENANCE (when modifying an existing feature)


If the user requests a change to an already-implemented feature:

  1. UPDATE THE SPEC FIRST
    Edit .kiro/specs/<feature-slug>/requirements.md to reflect the change.
    Mark changed requirements with a [CHANGED] tag and date.

  2. DIFF THE IMPACT

    • List every task and every test affected by the requirement change
    • List code files that will need updates
  3. PRODUCE AN UPDATE PLAN
    Add new tasks to .kiro/specs/<feature-slug>/tasks.md for the change.
    Do not delete old tasks — mark them [SUPERSEDED by task N].

  4. IMPLEMENT THE UPDATE (run Phase 3 for the new tasks)

  5. RE-VALIDATE (run Phase 4)


STRICT RULES


  • Never write code before Phase 1 is confirmed by the user
  • Never invent requirements — only implement what the spec says
  • If a requirement is ambiguous or testability-unclear, rewrite it before implementing
  • If a build fails, stop and fix before continuing
  • Specs live in .kiro/specs/<feature-slug>/ — never inline them in code comments
  • Every requirement must have at least one test; untested requirements are incomplete requirements

OUTPUT FORMAT (end of each phase)


Phase 1 output:

SPEC READY: .kiro/specs/<slug>/requirements.md
Requirements: N functional, M non-functional
Awaiting confirmation to proceed to design.

Phase 2 output:

DESIGN READY: .kiro/specs/<slug>/design.md
Tasks: N tasks mapped to requirements
Awaiting confirmation to proceed to implementation.

Phase 3 output (per task):

✓ Task N complete — satisfies REQ-X, REQ-Y
  Files changed: [list]
  Tests added: [list]
  Build: passing

Phase 4 output:

VALIDATION COMPLETE
Requirements covered: N/N
Tests passing: N
Feature ready for review.
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
design-animateAdd purposeful motion to interfaces using modern CSS — scroll-driven animations, view transitions, @starting-style, and GPU-accelerated transforms. Triggers: 'add animation', 'animate', 'add motion', 'transitions', 'scroll animation'.79 installsdesign-auditComprehensive autonomous design quality audit across accessibility (WCAG 2.2), performance, theming, responsive/adaptive design, and anti-pattern detection. Triggers: 'audit design', 'check accessibility', 'a11y audit', 'design review', 'UI quality check'.62 installsdiagramGenerate Mermaid architecture diagrams from your codebase. Produces C4 context and container diagrams, sequence diagrams for key flows, ER diagrams from database schemas, and module dependency graphs. Use when you need architecture diagrams, system diagrams, database ERD, sequence diagrams, dependency visualization, or C4 model diagrams.57 installssecureFull-stack security posture assessment with 0-100 risk scoring. Scans dependency vulnerabilities (npm audit, pip-audit, cargo audit, govulncheck), dangerous code patterns (SQL injection, eval, command injection, ReDoS, innerHTML, XSS vectors), authentication gaps (missing auth middleware.57 installsdesign-polishFinal autonomous quality pass before shipping. Fixes alignment, spacing, consistency, typography hierarchy, color harmony, motion timing, and every micro-detail that separates good from great..56 installsresponsiveAudit and fix responsive design issues across all breakpoints. Scans for fixed widths that cause mobile overflow, missing media query variants, non-responsive images, undersized touch targets below 48px, unreadable typography, and horizontal scroll violations..50 installs

More from Skills Hub

View source →
security-reviewSecurity audit and vulnerability assessment for any codebase. Scans for authentication bypasses, missing auth middleware, broken JWT validation (algorithm confusion, weak secrets, missing expiry), OAuth state and PKCE flaws, IDOR and horizontal privilege escalation.198 installsunit-testGenerate comprehensive unit tests with edge cases, error paths, and boundary values. Triggers: you need to add unit tests, increase code coverage, test edge cases, or verify error handling paths.167 installsweb-gameScaffolds a browser-based game with Phaser 3, PixiJS, or Three.js including game loop, asset pipeline, responsive canvas, input handling, audio, save/load, and deployment to itch.io or web. Triggers: on: "web game", "browser game", "html5 game", "phaser game", "pixi game".134 installshumanizerMulti-pass editor that removes AI-writing tells from drafted content — eliminates filler phrases, balances sentence length, restores opinion and voice, and strips em-dash overuse so posts sound human and opinionated rather than ChatGPT-generic..133 installsflutterBuilds Flutter applications from videos, screenshots, descriptions, or app clone requests. Triggers on: flutter app, build a mobile app, replicate this app in Flutter, build from video, build from screenshots, clone this app, build an app, make an app like, recreate this UI.129 installsdesign-to-codeTurn a design into production-quality frontend code: extract a design system with tokens and components, make layouts responsive across breakpoints, add dark mode with WCAG-compliant theming, then run a UX audit to validate everything..126 installs

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.642 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.546 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.353 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.252 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.179 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions146 installs

Frequently asked questions about kiro-spec-driven

What does the kiro-spec-driven skill do?

Spec-driven development agent for AWS Kiro. Captures feature requirements, generates EARS-notation specifications, produces architectural designs, sequences implementation tasks, and validates the final code against the spec checklist. Use when you want rigorous, maintainable feature builds instead of vibe-coded prototypes. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the kiro-spec-driven skill?

Run `npx @skills-hub-ai/cli install kiro-spec-driven` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/kiro-spec-driven/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does kiro-spec-driven work with?

kiro-spec-driven runs in Claude Code, Cursor, Codex CLI. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the kiro-spec-driven skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use kiro-spec-driven after installing it?

In Claude Code, type `/kiro-spec-driven` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the kiro-spec-driven skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.