agentleFS
ariel-frischerariel-frischer/autospec/.agents/skills/autospec-tasks/SKILL.md

autospec-tasks

Skill144 starsChanged 2 months agoMITView on GitHub

Generate YAML task breakdown from implementation plan.

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
  1. Distinctive:

    Load design documents: Read from the feature directory:

    line 35
  2. Very specific:

    Generate tasks.yaml: Create the YAML task file with this structure:

    line 58
  3. Distinctive:

    If validation fails: fix schema errors (missing required fields, invalid types, invalid dependencies) and retry

    line 201
  4. Distinctive:

    If validation passes: proceed to report

    line 202
  5. Distinctive:

    Every task MUST have:

    line 229
  6. Distinctive:

    If tests requested: Each component → test task before implementation

    line 249
  7. Distinctive:

    If entity serves multiple stories: Put in earliest story or Foundational phase

    line 253

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

$ARGUMENTS

You 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

  1. Load design documents: Read from the feature directory:
    • Required: {{.ImplPlan}} (plan.yaml) containing:
      • technical_context: tech stack, libraries, constraints
      • data_model: entities and relationships
      • api_contracts: API endpoints and schemas
      • research_findings: technical decisions
      • project_structure: file organization
    • Required: {{.FeatureSpec}} (spec.yaml) containing:
      • user_stories: with priorities (P1, P2, P3)
      • requirements: functional and non-functional
      • key_entities: initial entity identification
  2. 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_model and map to user stories
    • Map endpoints from plan.yaml api_contracts to user stories
    • Extract decisions from plan.yaml research_findings for 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)
  3. 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"
  4. Write the tasks to {{.FeatureDir}}/tasks.yaml
  5. 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
  6. 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:

  1. Task ID: Sequential format T001, T002, T003... in execution order
  2. Parallel flag: parallel: true if task can run alongside others (different files, no dependencies)
  3. Story ID: Link to user story (US-001, US-002) for story-phase tasks, null for setup/foundational
  4. File path: Exact path where work happens
  5. Dependencies: List of task IDs that must complete first

Task Organization

  1. 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)
  2. From Plan Structure:
    • Map each component from project_structure to appropriate phase
    • If tests requested: Each component → test task before implementation
  3. 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
  4. 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 initialization
  • test: Test file creation (should come before implementation if TDD)
  • implementation: Core feature code
  • documentation: README, docs, comments
  • refactor: Code improvement without behavior change

Task Status

  • Pending: Not started
  • InProgress: Currently being worked on
  • Completed: Finished and verified

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.