ワンクリックで
autospec-implement
Execute the implementation plan by processing tasks defined in tasks.yaml.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Execute the implementation plan by processing tasks defined in tasks.yaml.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Generate YAML feature specification from natural language description.
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.
SOC 職業分類に基づく
| name | autospec-implement |
| description | Execute the implementation plan by processing tasks defined in tasks.yaml. |
This Agent Skill is generated from autospec.implement. When the user invokes "$autospec-implement" or "/autospec.implement", load and follow these instructions directly. Treat the text after the skill or command name as "$ARGUMENTS". Do not route back through "autospec implement"; this skill is the prompt for the stage.
Project specs directory: ./specs
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
| Flag | Behavior |
|---|---|
--phase N | Execute ONLY phase N tasks. After completion, output "Phase N complete." and TERMINATE. Do NOT proceed to other phases. |
--context-file | Use bundled artifacts from context file. Do NOT separately read files listed in _context_meta.skip_reads. |
| (no flags) | Execute all phases sequentially. |
The following paths have been pre-computed and are available for use:
{{.FeatureDir}}{{.TasksFile}}{{if .ConstitutionFile}}{{.ConstitutionFile}}{{else}}not found{{end}}{{.IsGitRepo}}Phase Context Metadata (CRITICAL - Token Optimization):
Check if --context-file was used. If so, parse the _context_meta section FIRST before any other file reads.
_context_meta Fields:
phase_artifacts_bundled: true - Indicates that spec.yaml, plan.yaml, and tasks.yaml (phase-filtered) are already bundled in this context filebundled_artifacts - Lists the artifacts included, such as ["spec.yaml", "plan.yaml", "tasks.yaml (phase-filtered)", "constitution.yaml"]has_governance - Boolean indicating whether project governance is bundled in the governance: section
true: Use the bundled governance: data as the constitution/governance source of truthfalse: No constitution was bundled; do not search for a governance file during context-file executiongovernance_file - Path to the constitution file when governance is bundledhas_checklists - Boolean indicating whether a checklists/ directory exists for this feature
false: DO NOT check for, scan, or read from the checklists directory - it doesn't exist, skip step 3 entirelytrue: Checklists directory exists, proceed to step 3skip_reads - Explicit list of file paths that are already bundled and MUST NOT be read separatelyCRITICAL INSTRUCTION:
DO NOT read files listed in skip_reads when _context_meta.phase_artifacts_bundled is true.
DO NOT check for checklists directory when _context_meta.has_checklists is false.
DO NOT separately read _context_meta.governance_file when it appears in skip_reads; use the bundled governance section instead.
Example _context_meta section:
_context_meta:
phase_artifacts_bundled: true
bundled_artifacts:
- spec.yaml
- plan.yaml
- tasks.yaml (phase-filtered)
- constitution.yaml
has_governance: true
governance_file: .autospec/constitution.yaml
has_checklists: false
skip_reads:
- specs/my-feature/spec.yaml
- specs/my-feature/plan.yaml
- specs/my-feature/tasks.yaml
- .autospec/constitution.yaml
Check checklists status (SKIP if _context_meta.has_checklists: false):
Scan all *.yaml checklist files in the checklists/ directory
For each checklist YAML file, parse and count:
categories[].items[])status: "pass"status: "fail" or status: "pending"Create a status table:
| Checklist | Total | Passed | Not Passed | Status |
|---------------|-------|--------|------------|--------|
| ux.yaml | 12 | 12 | 0 | PASS |
| api.yaml | 8 | 5 | 3 | FAIL |
| security.yaml | 6 | 6 | 0 | PASS |
Calculate overall status:
status: "fail" or status: "pending"status: "pass"If any checklist is incomplete:
If all checklists are complete:
Load and analyze the implementation context (if NOT using --context-file):
Note: If you are using --context-file, the spec, plan, tasks, and possibly governance are already loaded from the context file. Skip reading files listed in _context_meta.skip_reads and use the bundled data from the spec:, plan:, tasks:, and governance: sections of the context file instead.
{{if .ConstitutionFile}}- REQUIRED GOVERNANCE: Read {{.ConstitutionFile}} for project principles, non-negotiable constraints, quality standards, and validation requirements before modifying code. Treat these governance rules as binding during implementation.{{else}}- GOVERNANCE: No constitution file was detected in a supported path. Continue using spec, plan, tasks, and local agent instructions.{{end}}
technical_context: tech stack, dependencies, constraintsdata_model: entities and relationshipsapi_contracts: API specificationsresearch_findings: technical decisions and rationaleproject_structure: file organizationuser_stories: acceptance scenariosrequirements: functional and non-functionalsuccess_criteria: measurable outcomesProject Setup Verification:
Detection & Creation Logic:
{{.IsGitRepo}} to determine if this is a git repository (create/verify .gitignore if true)ignores entries cover required patternsIf ignore file already exists: Verify it contains essential patterns, append missing critical patterns only If ignore file missing: Create with full pattern set for detected technology
Common Patterns by Technology (from plan.yaml technical_context):
node_modules/, dist/, build/, *.log, .env*__pycache__/, *.pyc, .venv/, venv/, dist/, *.egg-info/target/, *.class, *.jar, .gradle/, build/bin/, obj/, *.user, *.suo, packages/*.exe, *.test, vendor/, *.out.bundle/, log/, tmp/, *.gem, vendor/bundle/vendor/, *.log, *.cache, *.envtarget/, debug/, release/, *.rs.bk, *.rlib, *.prof*, .idea/, *.log, .env*build/, out/, .gradle/, .idea/, *.class, *.jar, *.iml, *.log, .env*build/, bin/, obj/, out/, *.o, *.so, *.a, *.exe, *.dll, .idea/, *.log, .env*build/, bin/, obj/, out/, *.o, *.a, *.so, *.exe, Makefile, config.log, .idea/, *.log, .env*.build/, DerivedData/, *.swiftpm/, Packages/.Rproj.user/, .Rhistory, .RData, .Ruserdata, *.Rproj, packrat/, renv/.DS_Store, Thumbs.db, *.tmp, *.swp, .vscode/, .idea/Tool-Specific Patterns:
node_modules/, .git/, Dockerfile*, .dockerignore, *.log*, .env*, coverage/node_modules/, dist/, build/, coverage/, *.min.jsnode_modules/, dist/, build/, coverage/, package-lock.json, yarn.lock, pnpm-lock.yaml.terraform/, *.tfstate*, *.tfvars, .terraform.lock.hcl*.secret.yaml, secrets/, .kube/, kubeconfig*, *.key, *.crtParse tasks.yaml structure and extract:
parallel fieldExecute implementation following the task plan (respect Execution Boundaries above):
Implementation execution rules:
Progress tracking and task status updates:
CRITICAL: You MUST update task status in tasks.yaml as you work. This is non-negotiable.
Use the autospec update-task command to update task status:
autospec update-task <task_id> <status>
When starting a task:
autospec update-task T001 InProgress
When completing a task:
autospec update-task T001 Completed
If a task is blocked:
autospec update-task T001 Blocked
Valid status values: Pending, InProgress, Completed, Blocked
Blocking tasks with reasons (preferred method for documenting blockers):
# Block a task and document why it's blocked
autospec task block T001 --reason "Waiting for API access from third-party team"
# Update the reason for an already blocked task
autospec task block T001 --reason "Updated: API approved, waiting for credentials"
Unblocking tasks:
# Unblock a task (defaults to Pending status)
autospec task unblock T001
# Unblock and immediately set to InProgress
autospec task unblock T001 --status InProgress
Listing tasks by status:
# List all tasks
autospec task list
# List only blocked tasks (shows reasons)
autospec task list --blocked
# List pending tasks
autospec task list --pending
# List in-progress tasks
autospec task list --in-progress
# List completed tasks
autospec task list --completed
# Combine filters
autospec task list --blocked --pending
Implementation workflow for each task:
autospec update-task T00X InProgressautospec update-task T00X CompletedHandling blocked tasks:
autospec task block T00X --reason "Reason"autospec task unblock T00X [--status InProgress]Validate tasks.yaml after updates:
autospec artifact {{.FeatureDir}}/tasks.yaml
Completion validation:
status: "Completed"Report: Output:
Context for implementation: $ARGUMENTS
Note: This command assumes tasks.yaml exists with a complete task breakdown. If tasks are incomplete or missing, suggest running $autospec-tasks first to generate the task list.