一键导入
autospec-specify
Generate YAML feature specification from natural language description.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate YAML feature specification from natural language description.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate YAML task breakdown from implementation plan.
Analyze cross-artifact consistency and quality in YAML format.
Generate YAML checklist for feature quality validation.
Identify underspecified areas in YAML spec and encode clarifications back into the spec.
Generate or update project constitution in YAML format.
Execute the implementation plan by processing tasks defined in tasks.yaml.
| name | autospec-specify |
| description | Generate YAML feature specification from natural language description. |
This Agent Skill is generated from autospec.specify. When the user invokes "$autospec-specify" or "/autospec.specify", load and follow these instructions directly. Treat the text after the skill or command name as "$ARGUMENTS". Do not route back through "autospec specify"; this skill is the prompt for the stage.
Project specs directory: ./specs
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
The text the user typed after $autospec-specify in the triggering message is the feature description. Assume you always have it available in this conversation even if $ARGUMENTS appears literally below. Do not ask the user to repeat it unless they provided an empty command.
Given that feature description, do this:
Generate a concise short name (2-4 words) for the branch:
Create feature branch and directory: Run the Go command with your generated short-name:
autospec new-feature --json --short-name "<short-name>" "$ARGUMENTS"
Parse the JSON output for:
BRANCH_NAME: The full branch name (e.g., "008-user-auth")SPEC_FILE: Path to the spec file (ignore - we'll create spec.yaml instead)FEATURE_NUM: The feature numberAUTOSPEC_VERSION: The autospec version (for _meta section)CREATED_DATE: ISO 8601 timestamp (for _meta section)Set FEATURE_DIR to specs/<BRANCH_NAME>/
Generate spec.yaml: Create the YAML specification file with this exact structure.
Schema reference: Run autospec artifact spec --schema to see the full schema if unsure.
# ============ REQUIRED SECTIONS ============
feature: # REQUIRED section
branch: "<branch name from step 2>" # REQUIRED
created: "<today's date YYYY-MM-DD>" # REQUIRED
status: "Draft" # REQUIRED enum: Draft|Review|Approved|Completed
input: "<original user description verbatim>" # optional
user_stories: # REQUIRED section (array, at least one item)
- id: "US-001" # REQUIRED
title: "<story title>" # REQUIRED
priority: "P1" # REQUIRED enum: P0|P1|P2|P3 (P0=critical, P1=must-have, P2=should-have, P3=nice-to-have)
as_a: "<role/actor>" # REQUIRED
i_want: "<action/capability>" # REQUIRED
so_that: "<benefit/value>" # REQUIRED
why_this_priority: "<justification for priority level>" # optional
independent_test: "<how this story can be tested in isolation>" # optional
acceptance_scenarios: # optional (but recommended)
- given: "<precondition/context>"
when: "<action taken>"
then: "<expected outcome>"
requirements: # REQUIRED section
functional: # REQUIRED (array)
- id: "FR-001"
description: "<MUST/SHOULD/MAY + requirement>"
acceptance_criteria: "<how to verify this>"
non_functional: # optional (array)
- id: "NFR-001"
category: "<performance|security|usability|reliability|code_quality>"
description: "<requirement>"
measurable_target: "<specific metric>"
# ============ OPTIONAL SECTIONS ============
success_criteria: # optional
measurable_outcomes:
- id: "SC-001"
description: "<user-focused, measurable outcome>"
metric: "<how to measure>"
target: "<specific value or threshold>"
key_entities: # optional
- name: "<entity name>"
description: "<what this entity represents>"
attributes:
- "<key attribute 1>"
- "<key attribute 2>"
edge_cases: # optional
- scenario: "<edge case description>"
expected_behavior: "<what should happen>"
assumptions: # optional
- "<assumption 1>"
- "<assumption 2>"
constraints: # optional
- "<constraint 1>"
- "<constraint 2>"
out_of_scope: # optional
- "<explicitly excluded item 1>"
- "<explicitly excluded item 2>"
_meta: # optional (but recommended)
version: "1.0.0"
generator: "autospec"
generator_version: "<AUTOSPEC_VERSION from step 2>"
created: "<CREATED_DATE from step 2>"
artifact_type: "spec"
Follow this execution flow:
clarification_needed: "<specific question>" if:
Write the specification to FEATURE_DIR/spec.yaml
⚠️ MANDATORY: Validate the artifact (skipping this WILL cause task failure and retry):
autospec artifact FEATURE_DIR/spec.yaml
Common validation errors:
user_stories[0].priority) → add the fieldpriority: "High") → use valid value (P0, P1, P2, P3)user_stories is object instead of array) → fix structureReport: Output:
$autospec-planWhen creating this spec from a user prompt:
Examples of reasonable defaults (don't ask about these):
Success criteria must be:
Good examples:
Bad examples (implementation-focused):