autospec-implement
Skill144 starsChanged 2 months agoMITView on GitHub
Execute the implementation plan by processing tasks defined in tasks.yaml.
- Reads credentials
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- autospec-analyzeSkill
- autospec-checklistSkill
- autospec-clarifySkill
- autospec-constitutionSkill
- autospec-planSkill
- autospec-specifySkill
- autospec-tasksSkill
- autospec-worktree-setupSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
36 rules. About 0 are common, 18 are distinctive, and 18 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈18
Distinctive · estimate
This author's own choices. Worth a look.
18
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 44
Check if --context-file was used.
- Very specific: line 50
If true: Use the bundled governance: data as the constitution/governance source of truth
- Very specific: line 51
If false: No constitution was bundled.
- Very specific: line 54
If false: DO NOT check for, scan, or read from the checklists directory - it doesn't exist, skip step 3 entirely
- Very specific: line 55
If true: Checklists directory exists, proceed to step 3
- Distinctive: line 90
Create a status table:
- Very specific: line 101
PASS: All checklists have 0 items with status: "fail" or status: "pending"
- Distinctive: line 107
Wait for user response before continuing
- Distinctive: line 108
If user says "no" or "wait" or "stop", halt execution
- Distinctive: line 109
If user says "yes" or "proceed" or "continue", proceed to step 4
- Very specific: line 117
Note: If you are using --context-file, the spec, plan, tasks, and possibly governance are already loaded from the context file.
- Very specific: line 120
REQUIRED: Read tasks.yaml for the complete task list and execution plan
- Very specific: line 121
REQUIRED: Read plan.yaml for:
- Very specific: line 127
REQUIRED: Read spec.yaml for:
- Distinctive: line 133
REQUIRED: Create/verify ignore files based on actual project setup:
- Very specific: line 136
Use {{.IsGitRepo}} to determine if this is a git repository (create/verify .gitignore if true)
- Very specific: line 137
Check if Dockerfile* exists or Docker in plan.yaml technical_context → create/verify .dockerignore
- Distinctive: line 138
Check if .eslintrc* exists → create/verify .eslintignore
- Very specific: line 139
Check if eslint.config.* exists → ensure the config's ignores entries cover required patterns
- Distinctive: line 140
Check if .prettierrc* exists → create/verify .prettierignore
- Very specific: line 141
Check if .npmrc or package.json exists → create/verify .npmignore (if publishing)
- Distinctive: line 142
Check if terraform files (*.tf) exist → create/verify .terraformignore
- Distinctive: line 143
Check if .helmignore needed (helm charts present) → create/verify .helmignore
- Distinctive: line 145
If ignore file already exists: Verify it contains essential patterns, append missing critical patterns only
- Distinctive: line 146
If ignore file missing: Create with full pattern set for detected technology
- Distinctive: line 179
Respect dependencies: Run sequential tasks in order, parallel tasks can run together
- Distinctive: line 182
Validation checkpoints: Verify each phase completion before proceeding
- Distinctive: line 189
Tests before code: If test tasks exist, write tests before implementation
- Very specific: line 196
Use the autospec update-task command to update task status:
- Distinctive: line 260
Verify implementation meets acceptance criteria
- Very specific: line 265
If blocked by external dependency: autospec task block T00X --reason "Reason"
- Distinctive: line 266
Document the blocker clearly so others understand what needs resolution
- Very specific: line 267
When blocker is resolved: autospec task unblock T00X [--status InProgress]
- Distinctive: line 279
Ensure artifact schema remains valid after status updates
- Very specific: line 283
Verify all required tasks have status: "Completed"
- Distinctive: line 284
Check that implemented features match the original specification
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
autospec-implement
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
User Input
$ARGUMENTSYou MUST consider the user input before proceeding (if not empty).
Execution Boundaries (CRITICAL)
| 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. |
Pre-computed Context
The following paths have been pre-computed and are available for use:
- FEATURE_DIR:
{{.FeatureDir}} - TASKS_FILE:
{{.TasksFile}} - CONSTITUTION_FILE:
{{if .ConstitutionFile}}{{.ConstitutionFile}}{{else}}not found{{end}} - IS_GIT_REPO:
{{.IsGitRepo}}
Outline
Phase Context Metadata (CRITICAL - Token Optimization):
Check if
--context-filewas used. If so, parse the_context_metasection FIRST before any other file reads._context_metaFields: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 thegovernance:section- If
true: Use the bundledgovernance:data as the constitution/governance source of truth - If
false: No constitution was bundled; do not search for a governance file during context-file execution
- If
governance_file- Path to the constitution file when governance is bundledhas_checklists- Boolean indicating whether achecklists/directory exists for this feature- If
false: DO NOT check for, scan, or read from the checklists directory - it doesn't exist, skip step 3 entirely - If
true: Checklists directory exists, proceed to step 3
- If
skip_reads- Explicit list of file paths that are already bundled and MUST NOT be read separately
CRITICAL 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_metasection:_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
*.yamlchecklist files in the checklists/ directory - For each checklist YAML file, parse and count:
- Total items: All items across all categories (
categories[].items[]) - Passed items: Items where
status: "pass" - Failed/Pending items: Items where
status: "fail"orstatus: "pending"
- Total items: All items across all categories (
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:
- PASS: All checklists have 0 items with
status: "fail"orstatus: "pending" - FAIL: One or more checklists have items not in
status: "pass"
- PASS: All checklists have 0 items with
- If any checklist is incomplete:
- Display the table with incomplete item counts
- STOP and ask: "Some checklists are incomplete. Do you want to proceed with implementation anyway? (yes/no)"
- Wait for user response before continuing
- If user says "no" or "wait" or "stop", halt execution
- If user says "yes" or "proceed" or "continue", proceed to step 4
- If all checklists are complete:
- Display the table showing all checklists passed
- Automatically proceed to step 4
- Scan all
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_readsand use the bundled data from thespec:,plan:,tasks:, andgovernance: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}}- REQUIRED: Read tasks.yaml for the complete task list and execution plan
- REQUIRED: Read plan.yaml for:
technical_context: tech stack, dependencies, constraintsdata_model: entities and relationshipsapi_contracts: API specificationsresearch_findings: technical decisions and rationaleproject_structure: file organization
- REQUIRED: Read spec.yaml for:
user_stories: acceptance scenariosrequirements: functional and non-functionalsuccess_criteria: measurable outcomes
Project Setup Verification:
- REQUIRED: Create/verify ignore files based on actual project setup:
Detection & Creation Logic:
- Use
{{.IsGitRepo}}to determine if this is a git repository (create/verify .gitignore if true) - Check if Dockerfile* exists or Docker in plan.yaml technical_context → create/verify .dockerignore
- Check if .eslintrc* exists → create/verify .eslintignore
- Check if eslint.config.* exists → ensure the config's
ignoresentries cover required patterns - Check if .prettierrc* exists → create/verify .prettierignore
- Check if .npmrc or package.json exists → create/verify .npmignore (if publishing)
- Check if terraform files (*.tf) exist → create/verify .terraformignore
- Check if .helmignore needed (helm charts present) → create/verify .helmignore
If 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.js/JavaScript/TypeScript:
node_modules/,dist/,build/,*.log,.env* - Python:
__pycache__/,*.pyc,.venv/,venv/,dist/,*.egg-info/ - Java:
target/,*.class,*.jar,.gradle/,build/ - C#/.NET:
bin/,obj/,*.user,*.suo,packages/ - Go:
*.exe,*.test,vendor/,*.out - Ruby:
.bundle/,log/,tmp/,*.gem,vendor/bundle/ - PHP:
vendor/,*.log,*.cache,*.env - Rust:
target/,debug/,release/,*.rs.bk,*.rlib,*.prof*,.idea/,*.log,.env* - Kotlin:
build/,out/,.gradle/,.idea/,*.class,*.jar,*.iml,*.log,.env* - C++:
build/,bin/,obj/,out/,*.o,*.so,*.a,*.exe,*.dll,.idea/,*.log,.env* - C:
build/,bin/,obj/,out/,*.o,*.a,*.so,*.exe,Makefile,config.log,.idea/,*.log,.env* - Swift:
.build/,DerivedData/,*.swiftpm/,Packages/ - R:
.Rproj.user/,.Rhistory,.RData,.Ruserdata,*.Rproj,packrat/,renv/ - Universal:
.DS_Store,Thumbs.db,*.tmp,*.swp,.vscode/,.idea/
Tool-Specific Patterns:
- Docker:
node_modules/,.git/,Dockerfile*,.dockerignore,*.log*,.env*,coverage/ - ESLint:
node_modules/,dist/,build/,coverage/,*.min.js - Prettier:
node_modules/,dist/,build/,coverage/,package-lock.json,yarn.lock,pnpm-lock.yaml - Terraform:
.terraform/,*.tfstate*,*.tfvars,.terraform.lock.hcl - Kubernetes/k8s:
*.secret.yaml,secrets/,.kube/,kubeconfig*,*.key,*.crt
- Parse tasks.yaml structure and extract:
- Phases: Setup, Foundational, User Story phases, Polish
- Task dependencies: Sequential vs parallel execution from
parallelfield - Task details: id, title, status, type, file_path, dependencies, acceptance_criteria
- Execution flow: Phase order and task dependency requirements
- User story mapping: Which tasks belong to which user stories
- Execute implementation following the task plan (respect Execution Boundaries above):
- Respect dependencies: Run sequential tasks in order, parallel tasks can run together
- Follow TDD approach: Execute test tasks before their corresponding implementation tasks (if tests exist)
- File-based coordination: Tasks affecting the same files must run sequentially
- Validation checkpoints: Verify each phase completion before proceeding
- Implementation execution rules:
- Governance first: Apply constitution principles and governance constraints to all code, tests, docs, and validation decisions
- Setup first: Initialize project structure, dependencies, configuration
- Foundational next: Complete blocking prerequisites before user stories
- User stories in order: Complete each story phase before the next
- Tests before code: If test tasks exist, write tests before implementation
- Polish last: Cross-cutting concerns and refactoring at the end
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-taskcommand to update task status:autospec update-task <task_id> <status>When starting a task:
autospec update-task T001 InProgressWhen completing a task:
autospec update-task T001 CompletedIf a task is blocked:
autospec update-task T001 BlockedValid status values:
Pending,InProgress,Completed,BlockedBlocking 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 InProgressListing 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 --pendingImplementation workflow for each task:
- Mark task as InProgress:
autospec update-task T00X InProgress - Implement the task
- Verify implementation meets acceptance criteria
- Mark task as Completed:
autospec update-task T00X Completed - Move to next task
Handling blocked tasks:
- If blocked by external dependency:
autospec task block T00X --reason "Reason" - Document the blocker clearly so others understand what needs resolution
- When blocker is resolved:
autospec task unblock T00X [--status InProgress]
- Report progress after each completed task
- Halt execution if any non-parallel task fails
- For parallel tasks, continue with successful tasks, report failed ones
- Provide clear error messages with context for debugging
- Suggest next steps if implementation cannot proceed
- Mark task as InProgress:
- Validate tasks.yaml after updates:
autospec artifact {{.FeatureDir}}/tasks.yaml- Ensure artifact schema remains valid after status updates
- Fix any schema errors (missing fields, invalid types, invalid dependencies) before proceeding
- Completion validation:
- Verify all required tasks have
status: "Completed" - Check that implemented features match the original specification
- Validate that tests pass (if tests were generated)
- Confirm the implementation follows the technical plan
- Report final status with summary of completed work
- Verify all required tasks have
- Report: Output:
- Feature directory path
- Total tasks completed vs total tasks
- Tasks completed per phase
- Tasks completed per user story
- Any failed or skipped tasks with reasons
- Final validation status
- Suggested next steps (if any tasks remain)
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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

