autospec-tasks
Skill144 starsChanged 2 months agoMITView on GitHub
Generate YAML task breakdown from implementation plan.
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- autospec-analyzeSkill
- autospec-checklistSkill
- autospec-clarifySkill
- autospec-constitutionSkill
- autospec-implementSkill
- autospec-planSkill
- autospec-specifySkill
- autospec-worktree-setupSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 35
Load design documents: Read from the feature directory:
- Very specific: line 58
Generate tasks.yaml: Create the YAML task file with this structure:
- Distinctive: line 201
If validation fails: fix schema errors (missing required fields, invalid types, invalid dependencies) and retry
- Distinctive: line 202
If validation passes: proceed to report
- Distinctive: line 229
Every task MUST have:
- Distinctive: line 249
If tests requested: Each component → test task before implementation
- Distinctive: line 253
If entity serves multiple stories: Put in earliest story or Foundational phase
≈ “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-tasks
This Agent Skill is generated from autospec.tasks. When the user invokes "$autospec-tasks" or "/autospec.tasks", load and follow these instructions directly. Treat the text after the skill or command name as "$ARGUMENTS". Do not route back through "autospec tasks"; 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).
Pre-computed Context
The following paths have been pre-computed and are available for use:
- FEATURE_DIR:
{{.FeatureDir}} - FEATURE_SPEC:
{{.FeatureSpec}} - IMPL_PLAN:
{{.ImplPlan}} - AUTOSPEC_VERSION:
{{.AutospecVersion}} - CREATED_DATE:
{{.CreatedDate}}
Outline
- Load design documents: Read from the feature directory:
- Required:
{{.ImplPlan}}(plan.yaml) containing:technical_context: tech stack, libraries, constraintsdata_model: entities and relationshipsapi_contracts: API endpoints and schemasresearch_findings: technical decisionsproject_structure: file organization
- Required:
{{.FeatureSpec}}(spec.yaml) containing:user_stories: with priorities (P1, P2, P3)requirements: functional and non-functionalkey_entities: initial entity identification
- Required:
- Execute task generation workflow:
- Extract tech stack, libraries, project structure from plan.yaml
technical_context - Extract user stories with their priorities from spec.yaml
user_stories - Extract entities from plan.yaml
data_modeland map to user stories - Map endpoints from plan.yaml
api_contractsto user stories - Extract decisions from plan.yaml
research_findingsfor setup tasks - Generate tasks organized by user story (see Task Generation Rules below)
- Define the user story completion order
- Identify phase ordering and task dependencies
- Validate task completeness (each user story has all needed tasks)
- Extract tech stack, libraries, project structure from plan.yaml
Generate tasks.yaml: Create the YAML task file with this structure:
tasks: branch: "<current git branch>" created: "<today's date YYYY-MM-DD>" spec_path: "<relative path to spec file>" plan_path: "<relative path to plan file>" summary: total_tasks: <number> total_phases: <number> parallel_opportunities: <number of tasks marked parallelizable> estimated_complexity: "<low|medium|high>" phases: - number: 1 title: "Setup" purpose: "Project initialization and new package structure" tasks: - id: "T001" title: "<task title with file path>" status: "Pending" # Pending | InProgress | Completed type: "setup" # setup | implementation | test | documentation | refactor parallel: false story_id: null # null for setup/foundational tasks file_path: "<exact file path to create/modify>" dependencies: [] acceptance_criteria: - "<criterion 1>" - number: 2 title: "Foundational" purpose: "Core infrastructure that MUST be complete before user stories" tasks: - id: "T002" title: "<task title>" status: "Pending" type: "implementation" parallel: true # Can run in parallel with T003 story_id: null file_path: "<file path>" dependencies: ["T001"] acceptance_criteria: - "<criterion>" - number: 3 title: "User Story 1 - <US-001 title from spec>" purpose: "<goal from user story>" story_reference: "US-001" independent_test: "<how to test this story independently>" tasks: - id: "T010" title: "<task with file path>" status: "Pending" type: "test" # Tests first per constitution parallel: true story_id: "US-001" file_path: "<test file path>" dependencies: ["T002"] acceptance_criteria: - "<criterion>" - id: "T011" title: "<implementation task>" status: "Pending" type: "implementation" parallel: false story_id: "US-001" file_path: "<source file path>" dependencies: ["T010"] # Depends on test being written acceptance_criteria: - "<criterion>" # Continue with more phases for each user story... - number: <final> title: "Polish & Cross-Cutting Concerns" purpose: "Improvements that affect multiple user stories" tasks: - id: "T099" title: "<polish task>" status: "Pending" type: "refactor" parallel: true story_id: null file_path: "<file path>" dependencies: ["<all prior phases>"] acceptance_criteria: - "<criterion>" dependencies: user_story_order: - story_id: "US-001" depends_on: [] blocks: ["US-002"] - story_id: "US-002" depends_on: ["US-001"] blocks: [] phase_order: - phase: 1 blocks: [2] - phase: 2 blocks: [3, 4, 5] parallel_execution: - phase: 2 parallel_groups: - tasks: ["T002", "T003"] rationale: "Different packages, no dependencies" - phase: 3 parallel_groups: - tasks: ["T010", "T011"] rationale: "Test and implementation can be developed together" implementation_strategy: mvp_scope: phases: [1, 2, 3] description: "Setup + Foundational + User Story 1" validation: "<how to validate MVP>" incremental_delivery: - milestone: "Foundation Ready" phases: [1, 2] deliverable: "<what's usable at this point>" - milestone: "MVP Complete" phases: [1, 2, 3] deliverable: "<what's usable>" _meta: version: "1.0.0" generator: "autospec" generator_version: "{{.AutospecVersion}}" created: "{{.CreatedDate}}" artifact_type: "tasks"- Write the tasks to
{{.FeatureDir}}/tasks.yaml - Validate the artifact:
autospec artifact {{.FeatureDir}}/tasks.yaml- If validation fails: fix schema errors (missing required fields, invalid types, invalid dependencies) and retry
- If validation passes: proceed to report
- Report: Output:
- Full path to tasks.yaml
- Total task count
- Task count per phase
- Task count per user story
- Parallel opportunities identified
- Suggested MVP scope
- Format validation confirmation
Context for task generation: $ARGUMENTS
The tasks.yaml should be immediately executable - each task must be specific enough that an LLM can complete it without additional context.
Task Generation Rules
CRITICAL: Tasks MUST be organized by user story to enable independent implementation and testing.
Tests are REQUIRED for new behavior whenever practical: Generate test tasks before implementation tasks when the feature changes behavior. Tests may be omitted only for documentation-only changes, configuration-only changes with no behavior change, or explicitly marked spike/prototype work.
Final tasks: Include project-appropriate polish, documentation, validation, or release-note tasks when required by the specification, implementation plan, or project governance.
Task ID Format
Every task MUST have:
- Task ID: Sequential format T001, T002, T003... in execution order
- Parallel flag:
parallel: trueif task can run alongside others (different files, no dependencies) - Story ID: Link to user story (US-001, US-002) for story-phase tasks, null for setup/foundational
- File path: Exact path where work happens
- Dependencies: List of task IDs that must complete first
Task Organization
- From User Stories (spec) - PRIMARY ORGANIZATION:
- Each user story (P1, P2, P3...) gets its own phase
- Map all related components to their story:
- Models needed for that story
- Services needed for that story
- Endpoints/UI needed for that story
- Tests specific to that story (if requested)
- Mark story dependencies (most stories should be independent)
- From Plan Structure:
- Map each component from project_structure to appropriate phase
- If tests requested: Each component → test task before implementation
- From Data Model:
- Map each entity to the user story(ies) that need it
- If entity serves multiple stories: Put in earliest story or Foundational phase
- Relationships → service layer tasks in appropriate story phase
- From Setup/Infrastructure:
- Shared infrastructure → Setup phase (Phase 1)
- Foundational/blocking tasks → Foundational phase (Phase 2)
- Story-specific setup → within that story's phase
Phase Structure
- Phase 1: Setup (project initialization)
- Phase 2: Foundational (blocking prerequisites - MUST complete before user stories)
- Phase 3+: User Stories in priority order (P1, P2, P3...)
- Within each story: Tests (if requested) → Models → Services → Endpoints → Integration
- Each phase should be a complete, independently testable increment
- Final Phase: Polish & Cross-Cutting Concerns
Task Types
setup: Project/directory initializationtest: Test file creation (should come before implementation if TDD)implementation: Core feature codedocumentation: README, docs, commentsrefactor: Code improvement without behavior change
Task Status
Pending: Not startedInProgress: Currently being worked onCompleted: Finished and verified
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.

