跳到正文
cccskills
免费在 GitHub 公开

kiro-spec-quick

Create requirements, a technical design, and implementation tasks from a feature description. Choose step-by-step approval or automatic execution, then review the generated documents for contradictions, missing prerequisites, and gaps in task coverage.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Quick spec generation with interactive or automatic mode

查看安装方法

适用场景

  • Turn a feature idea into specification documents
  • Review progress between specification stages
  • Generate all specification stages automatically
  • Check requirements, design, and tasks for consistency

包含的文件(1)

  • SKILL.md8.0 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Quick Spec Generator

<instructions> ## CRITICAL: Automatic Mode Execution Rules

If --auto flag is present in $ARGUMENTS, you are in AUTOMATIC MODE.

In Automatic Mode:

  • Execute ALL 4 phases in a continuous loop without stopping
  • Display progress after each phase (e.g., "Phase 1/4 complete: spec initialized")
  • IGNORE any "Next Step" messages from Phase 2-4 (they are for standalone usage)
  • After Phase 4, run the final sanity review before exiting
  • Stop ONLY after the sanity review completes or if error occurs

Core Task

Execute 4 spec phases sequentially. In automatic mode, execute all phases without stopping. In interactive mode, prompt user for approval between phases.

Before claiming quick generation is complete, run one lightweight sanity review over the generated requirements, design, and tasks. If the host supports fresh sub-agents, use one. Otherwise run the sanity review inline.

Execution Steps

Step 1: Parse Arguments and Initialize

Parse $ARGUMENTS:

  • If contains --auto: Automatic Mode (execute all 4 phases)
  • Otherwise: Interactive Mode (prompt at each phase)
  • Extract description (remove --auto flag if present)

Example:

"User profile with avatar upload --auto" → mode=automatic, description="User profile with avatar upload"
"User profile feature" → mode=interactive, description="User profile feature"

Display mode banner and proceed to Step 2.

Step 2: Execute Phase Loop

Execute these 4 phases in order:


Phase 1: Initialize Spec (Direct Implementation)

Core Logic:

  1. Check for Brief:

    • If {{KIRO_DIR}}/specs/{feature-name}/brief.md exists (created by /kiro-discovery), read it for discovery context (problem, approach, scope, constraints)
    • Use brief content as the project description instead of $ARGUMENTS
  2. Generate Feature Name:

    • Convert description to kebab-case
    • Example: "User profile with avatar upload" → "user-profile-avatar-upload"
    • Keep name concise (2-4 words ideally)
  3. Check Uniqueness:

    • Use Glob to check {{KIRO_DIR}}/specs/*/
    • If directory exists with only brief.md (no spec.json), use that directory (discovery created it)
    • Otherwise if feature name exists, append -2, -3, etc.
  4. Create Directory:

    • Use Bash: mkdir -p {{KIRO_DIR}}/specs/{feature-name} (skip if already exists from discovery)
  5. Initialize Files from Templates:

    a. Read templates:

    - {{KIRO_DIR}}/settings/templates/specs/init.json
    - {{KIRO_DIR}}/settings/templates/specs/requirements-init.md
    

    b. Replace placeholders:

    {{FEATURE_NAME}} → feature-name
    {{TIMESTAMP}} → current ISO 8601 timestamp (use `date -u +"%Y-%m-%dT%H:%M:%SZ"`)
    {{PROJECT_DESCRIPTION}} → description
    {{LANG_CODE}} → language code (detect from user's input language, default to `en`)
    

    c. Write files using Write tool:

    - {{KIRO_DIR}}/specs/{feature-name}/spec.json
    - {{KIRO_DIR}}/specs/{feature-name}/requirements.md
    
  6. Output Progress: "Phase 1/4 complete: Spec initialized at {{KIRO_DIR}}/specs/{feature-name}/"

Automatic Mode: IMMEDIATELY continue to Phase 2.

Interactive Mode: Prompt "Continue to requirements generation? (yes/no)"

  • If "no": Stop, show current state
  • If "yes": Continue to Phase 2

Phase 2: Generate Requirements

Invoke /kiro-spec-requirements {feature-name}.

Wait for completion. IGNORE any "Next Step" message (it is for standalone usage).

Output Progress: "Phase 2/4 complete: Requirements generated"

Automatic Mode: IMMEDIATELY continue to Phase 3.

Interactive Mode: Prompt "Continue to design generation? (yes/no)"

  • If "no": Stop, show current state
  • If "yes": Continue to Phase 3

Phase 3: Generate Design

Invoke /kiro-spec-design {feature-name} -y. The -y flag auto-approves requirements.

Wait for completion. IGNORE any "Next Step" message.

Output Progress: "Phase 3/4 complete: Design generated"

Automatic Mode: IMMEDIATELY continue to Phase 4.

Interactive Mode: Prompt "Continue to tasks generation? (yes/no)"

  • If "no": Stop, show current state
  • If "yes": Continue to Phase 4

Phase 4: Generate Tasks

Invoke /kiro-spec-tasks {feature-name} -y. The -y flag auto-approves requirements, design, and tasks.

Wait for completion.

Output Progress: "Phase 4/4 complete: Tasks generated"

Final Sanity Review

After Phase 4, run a lightweight sanity review before claiming completion.

  • Review requirements.md, design.md, and tasks.md directly from disk. If brief.md exists, use it only as supporting context.
  • Prefer a fresh review sub-agent when the host supports it. Pass only file paths and the review objective; the reviewer should read the generated files itself.
  • Review focus:
    • Do requirements, design, and tasks tell a coherent story?
    • Are there obvious contradictions, missing prerequisites, or missing task coverage for required design work?
    • Are _Depends:_, _Boundary:_, and (P) markers plausible for implementation?
  • If the review finds only task-plan-local issues, repair or update the generated tasks.md once, then re-run the sanity review.
  • If the review finds a real requirements/design gap or contradiction, stop and report follow-up instead of claiming the quick spec is implementation-ready.

All 4 phases plus sanity review complete.

Output final completion summary (see Output Description section) and exit.


Important Constraints

Error Handling

  • Any phase failure stops the workflow
  • Display error and current state
  • Suggest manual recovery command
</instructions>

Output Description

Mode Banners

Interactive Mode:

Quick Spec Generation (Interactive Mode)

You will be prompted at each phase.
Note: Skips gap analysis and design validation.

Automatic Mode:

Quick Spec Generation (Automatic Mode)

All phases execute automatically without prompts.
Note: Skips optional validations (gap analysis, design review) and user approval prompts. Internal review gates still run.
Final sanity review still runs.

Intermediate Output

After each phase, show brief progress:

Spec initialized at {{KIRO_DIR}}/specs/{feature}/
Requirements generated → Continuing to design...
Design generated → Continuing to tasks...

Final Completion Summary

Provide output in the language specified in spec.json:

Quick Spec Generation Complete!

## Generated Files:
- {{KIRO_DIR}}/specs/{feature}/spec.json
- {{KIRO_DIR}}/specs/{feature}/requirements.md ({X} requirements)
- {{KIRO_DIR}}/specs/{feature}/design.md ({Y} components, {Z} endpoints)
- {{KIRO_DIR}}/specs/{feature}/tasks.md ({N} tasks)

Quick generation skipped:
- `/kiro-validate-gap` - Gap analysis (integration check)
- `/kiro-validate-design` - Design review (architecture validation)

Sanity review: PASSED | FOLLOW-UP REQUIRED

## Next Steps:
1. Review generated specs (especially design.md)
2. Optional validation:
   - `/kiro-validate-gap {feature}` - Check integration with existing codebase
   - `/kiro-validate-design {feature}` - Verify architecture quality
3. Start implementation: `/kiro-impl {feature}`

Safety & Fallback

Error Scenarios

Template Missing:

  • Check {{KIRO_DIR}}/settings/templates/specs/ exists
  • Report specific missing file
  • Exit with error

Directory Creation Failed:

  • Check permissions
  • Report error with path
  • Exit with error

Phase Execution Failed (Phase 2-4):

  • Stop workflow
  • Show current state and completed phases
  • Suggest: "Continue manually from /kiro-spec-{next-phase} {feature}"

Sanity Review Failed:

  • Stop workflow
  • Report the exact contradiction, missing prerequisite, or task-plan issue
  • Suggest targeted follow-up with /kiro-spec-design {feature}, /kiro-spec-tasks {feature}, or manual edits depending on the finding

User Cancellation (Interactive Mode):

  • Stop gracefully
  • Show completed phases
  • Suggest manual continuation

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Add coding-agent support to cc-sdd through a documented workflow. Research the agent’s official formats, prepare an integration plan, implement registry entries and templates, and verify generated files, including Japanese and English output.

中文简介正在准备中。当前显示英语简介。

  • Adding support for a new coding agent
  • Adding an agent variant with subagent support
  • Planning migration to SKILL.md-based templates
gotalab/cc-sdd37312026年10月13日 更新

Investigate blocked implementation work and recurring failures using error output, code changes, configuration, and dependency evidence. Get a root cause report with a focused repair plan, verification steps, and a recommendation to retry, block, or seek human input.

中文简介正在准备中。当前显示英语简介。

  • Investigating an implementation blocker
  • Finding why repeated fixes keep failing
  • Checking runtime and dependency conflicts
gotalab/cc-sdd37312026年10月13日 更新

Clarify a development request through structured questions and choose a practical next step: update an existing specification, create new ones, or implement directly. For new specifications, record scope, approach, and dependencies in planning files.

中文简介正在准备中。当前显示英语简介。

  • Clarify a development idea before defining requirements
  • Choose between updating a specification and implementing directly
  • Split a large request into features with explicit dependencies
gotalab/cc-sdd37312026年10月13日 更新

kiro-impl

免费

Implement approved development tasks one at a time using test-driven development, which starts with a failing test. Process all pending tasks or selected ones, check changes against requirements and design, and update progress after review and completion verification.

中文简介正在准备中。当前显示英语简介。

  • Working through all approved pending tasks
  • Implementing selected task numbers
  • Developing features with tests written first
gotalab/cc-sdd37312026年10月13日 更新

kiro-impl

免费

Implement approved tasks through test-driven development, writing tests before code. Run all pending tasks sequentially with subagents or select tasks for direct execution, then track completion using reviews and verification evidence.

中文简介正在准备中。当前显示英语简介。

  • Running all pending approved implementation tasks
  • Implementing selected tasks by number
  • Developing features with tests written first
gotalab/cc-sdd37312026年10月13日 更新

kiro-impl

免费

Implement approved tasks using test-driven development, writing tests before code. Run all pending tasks one at a time or select specific tasks, with configurable review and verification before updating completion status.

中文简介正在准备中。当前显示英语简介。

  • Implement all pending tasks from an approved plan
  • Work on selected task numbers
  • Develop features by writing tests before code
gotalab/cc-sdd37312026年10月13日 更新

查看 gotalab 的全部技能

报告此技能的问题