Agent skill

task-generation

This skill should be used when generating implementation tasks from PRDs, decomposing features into atomic tasks, inferring dependencies, or mapping PRD content to task metadata.

Stars 1
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/sequenzia/claude-plugins/tree/main/plugins/prd-tools/skills/task-generation

SKILL.md

Task Generation Skill

This skill provides structured knowledge for transforming Product Requirements Documents into Claude Code native Tasks with proper dependencies, metadata, and acceptance criteria.

Core Principles

1. Atomic Task Decomposition

Tasks should be:

  • Single Responsibility: Each task accomplishes one specific outcome
  • Independent: Minimal coupling with other tasks where possible
  • Verifiable: Clear completion criteria that can be objectively assessed
  • Estimable: Complexity can be reasonably assessed (XS/S/M/L/XL)

2. Layered Architecture Pattern

Decompose features following natural implementation layers:

Data Model → API/Service → Business Logic → UI/Frontend → Tests

This pattern ensures:

  • Dependencies flow in one direction
  • Each layer can be implemented and tested independently
  • Integration points are well-defined

3. PRD-to-Task Traceability

Every task should trace back to the source PRD:

  • Reference specific section numbers
  • Quote relevant user stories
  • Link acceptance criteria to PRD requirements

Task Schema

Each task created via TaskCreate follows this structure:

TaskCreate:
  subject: "Create User data model"                    # Imperative mood
  description: |
    Define the User data model based on PRD section 7.3.

    Fields:
    - id: UUID (primary key)
    - email: string (unique, required)
    - passwordHash: string (required)
    - createdAt: timestamp

    Acceptance Criteria:
    - [ ] Schema defined with all required fields
    - [ ] Indexes created for email lookup
    - [ ] Migration script created

    Source: specs/PRD-Auth.md Section 7.3
  activeForm: "Creating User data model"              # Present continuous
  metadata:
    priority: critical                                # From PRD P0-P3
    complexity: S                                     # XS/S/M/L/XL
    source_section: "7.3 Data Models"                 # PRD section reference
    prd_path: "specs/PRD-Auth.md"                     # Source PRD
    feature_name: "User Authentication"               # Parent feature
    task_uid: "specs/PRD-Auth.md:user-auth:model:001" # Unique ID for merge

PRD Section Mapping

Extract task information from specific PRD sections:

PRD Section What to Extract Task Type
5.x Functional Requirements Feature names, priorities, user stories Feature tasks
6.x Non-Functional Requirements Performance, security constraints Constraint tasks
7.x Technical Considerations Architecture, tech stack Infrastructure tasks
7.3 Data Models (Full-Tech) Entity definitions Data model tasks
7.4 API Specifications (Full-Tech) Endpoints API tasks
9.x Implementation Plan Phase ordering, deliverables Phase grouping
10.x Dependencies Blocking relationships Dependency inference

Priority Mapping

Convert PRD priority notation to task priority:

PRD Priority Task Priority Meaning
P0 (Critical) critical Blocking release, must be done first
P1 (High) high Core functionality, high value
P2 (Medium) medium Important but not blocking
P3 (Low) low Nice to have, can be deferred

Complexity Estimation

Estimate task complexity using T-shirt sizing:

Size Scope Typical Lines Example
XS Single simple function <20 Add config constant
S Single file, straightforward 20-100 Create data model
M Multiple files, moderate logic 100-300 Implement API endpoint
L Multiple components, significant logic 300-800 Build feature module
XL System-wide, complex integration >800 Major refactoring

Depth-Aware Task Generation

Adjust task granularity based on PRD depth level:

High-Level PRD

  • Create 1-2 tasks per feature
  • Focus on feature-level deliverables
  • Minimal technical breakdown
  • Example: "Implement user authentication feature"

Detailed PRD

  • Create 3-5 tasks per feature
  • Decompose by functional area
  • Include acceptance criteria from user stories
  • Example: "Implement login endpoint", "Create password validation"

Full-Tech PRD

  • Create 5-10 tasks per feature
  • Granular technical decomposition
  • Include data model, API, and test tasks
  • Example: "Create User model", "Implement POST /auth/login", "Add User model tests"

Merge Strategy for Re-runs

When generating tasks for a PRD that already has tasks:

  1. Match by task_uid: Find existing tasks with same metadata.task_uid
  2. Preserve status: Never change status of in_progress or completed tasks
  3. Update descriptions: Refresh descriptions if PRD changed
  4. Add new tasks: Create tasks for new requirements
  5. Flag obsolete: Ask user about tasks that no longer map to PRD

Reference Files

  • references/decomposition-patterns.md - Feature decomposition patterns by type
  • references/dependency-inference.md - Automatic dependency inference rules

Expand your agent's capabilities with these related and highly-rated skills.

sequenzia/claude-plugins

spec-task-management

This skill should be used when the user asks to "analyze a specification", "break down a spec", "create tasks from a PRD", "decompose requirements", "generate a task list from a design document", or mentions working from specification documents. Provides comprehensive guidance for transforming specifications into structured, actionable task lists optimized for AI coding agents.

1 0
Explore
sequenzia/claude-plugins

simple-task-management

This skill should be used when the user asks to "generate tasks from a spec", "break down a spec", "create tasks from a PRD", "decompose requirements", "generate a task list from a design document", or mentions working from specification documents. Provides guidance for transforming specifications into structured, actionable task lists organized under missions.

1 0
Explore
sequenzia/claude-plugins

architecture-patterns

Provides architectural pattern knowledge for designing feature implementations including MVC, event-driven, microservices, and CQRS patterns

1 0
Explore
sequenzia/claude-plugins

project-conventions

Guides discovery and application of project-specific conventions including code patterns, naming, structure, and team practices

1 0
Explore
sequenzia/claude-plugins

code-quality

Provides code quality principles including SOLID, DRY, testing strategies, and best practices for implementation review

1 0
Explore
sequenzia/claude-plugins

changelog-format

Keep a Changelog format guidelines and entry writing best practices

1 0
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results