Skip to content

Workflows

On-demand workflows covering the entire software development lifecycle.


Overview

Workflows are structured processes for handling specific types of tasks. They're loaded on-demand when you need them.

Workflow Categories

Category Workflows Purpose
Planning initialize-project, create-rfd, create-prd, generate-tasks Define and break down work
Quality code-review, security-audit, testing-strategy Validate and improve code
Maintenance cleanup-project, refactoring, dependency-update, update-framework Keep codebase healthy
Utility troubleshooting, generate-agents-md, document-work, create-skill, sync-claude-md Support and documentation
Autonomous auto Unattended AI-driven development
Community algorithmic-art, doc-coauthoring, frontend-design, mcp-builder, theme-factory, web-artifacts-builder, webapp-testing Anthropic community skills

All Workflows

Workflow Purpose When to Use
Initialize Project Set up new or existing projects Starting a project
Create RFD Explore options and document decisions Evaluating approaches
Create PRD Plan complex features COMPLEX mode (>10 files)
Generate Tasks Break PRD into actionable tasks After PRD created
Code Review Validate against guardrails Before commits, PR reviews
Security Audit OWASP Top 10, vulnerability scan Pre-production, monthly
Testing Strategy Plan test coverage After features, debt sprints
Cleanup Project Prune unused guides Post-init, quarterly
Refactoring Technical debt remediation Guardrail violations
Dependency Update Safe dependency updates Monthly, vulnerabilities
Update Framework Update Samuel version New releases, maintenance
Troubleshooting Debug systematically Stuck >30 minutes
Generate AGENTS.md Cross-tool compatibility Multi-tool teams
Document Work Capture patterns and decisions End of session, handoffs
Create Skill Create portable Agent Skills New AI capabilities
Sync CLAUDE.md Sync per-folder CLAUDE.md files After structural changes
Auto Autonomous AI coding loop AFK development, batch tasks
Algorithmic Art Generative art with p5.js Creative coding, generative art
Doc Co-Authoring Collaborative document writing Proposals, specs, decision docs
Frontend Design Design-driven frontend interfaces Landing pages, dashboards, UI
MCP Builder MCP server development guide LLM tool integration
Theme Factory Theme styling for artifacts Slides, reports, landing pages
Web Artifacts Builder React/TypeScript/shadcn toolchain Complex web applications
Web App Testing Playwright-based web testing Frontend testing, UI debugging

How to Use Workflows

Invoke a workflow by referencing it:

@.claude/skills/create-prd.md

Build a user authentication system with OAuth support

The AI will:

  1. Load the workflow instructions
  2. Follow the structured process
  3. Ask clarifying questions if needed
  4. Complete the workflow steps

Workflow Decision Tree

graph TD
    A[New Task] --> B{Type?}

    B -->|New/Existing Project| C[initialize-project.md]
    B -->|Exploring Options| D{Multiple approaches?}
    B -->|Complex Feature| E{>10 files?}
    B -->|Debugging| F{Stuck >30 min?}
    B -->|Cross-tool Setup| G[generate-agents-md.md]
    B -->|Update Samuel| H[update-framework.md]
    B -->|Document Session| I[document-work.md]
    B -->|Autonomous Dev| P{PRD + Tasks ready?}
    B -->|New AI Skill| Q[create-skill.md]

    P -->|Yes| R[auto.md]
    P -->|No| K

    D -->|Yes| J[create-rfd.md]
    J -->|Decision Made| K[create-prd.md]
    D -->|No| K

    E -->|Yes| K
    K --> L[generate-tasks.md]
    E -->|No| M[Use FEATURE mode]

    F -->|Yes| N[troubleshooting.md]
    F -->|No| O[Continue debugging]

When NOT to Use Workflows

Workflows add structure but also overhead. Skip them for:

  • Simple bug fixes - Use ATOMIC mode directly
  • Small features - Use FEATURE mode directly
  • Quick questions - Just ask
  • Code review - Direct review without workflow

Rule of Thumb

If the task affects <10 files and requirements are clear, skip the PRD workflow.


Workflow Outputs

Each workflow produces specific outputs:

Initialize Project

Creates:

  • .claude/project.md - Tech stack documentation
  • .claude/patterns.md - Coding conventions (if patterns found)
  • Directory structure recommendations

Create PRD

Creates:

  • .claude/tasks/NNNN-prd-feature-name.md - Product Requirements Document

Contains:

  • Introduction/Overview
  • Goals
  • User Stories
  • Functional Requirements
  • Non-Goals
  • Technical Considerations
  • Guardrails Affected
  • Success Metrics

Generate Tasks

Creates:

  • .claude/tasks/tasks-NNNN-prd-feature-name.md - Task breakdown

Contains:

  • Numbered task list
  • Dependencies
  • Verification steps
  • Estimated complexity

Troubleshooting

Creates (optional):

  • .claude/memory/YYYY-MM-DD-issue-name.md - Solution documentation

Contains:

  • Problem description
  • Root cause
  • Solution
  • Prevention steps

Generate AGENTS.md

Creates:

  • AGENTS.md - Cross-tool compatible instructions

Document Work

Creates/Updates:

  • .claude/patterns.md - Coding patterns discovered
  • .claude/memory/YYYY-MM-DD-topic.md - Decision logs
  • .claude/state.md - Current work status

Update Framework

Updates:

  • CLAUDE.md - Latest version
  • .claude/ - New guides and workflows

Chaining Workflows

Workflows can be chained for complex tasks:

1. @.claude/skills/create-rfd.md (optional)
   → Explore options when approach is unclear

2. @.claude/skills/create-prd.md
   → Creates PRD document (after RFD decision, if used)

3. @.claude/skills/generate-tasks.md
   → Creates task breakdown from PRD

4. Implement tasks one by one
   → Each task uses ATOMIC or FEATURE mode

5. @.claude/skills/document-work.md
   → Capture patterns and decisions from implementation

RFD → PRD Flow: When exploring options, use create-rfd first. Once a decision is made, use create-prd to plan the implementation.


Planning Workflows

  • Initialize Project


    Set up new projects or analyze existing ones.

    Initialize Project

  • Create RFD


    Explore options and document decisions before implementation.

    Create RFD

  • Create PRD


    Plan complex features with structured requirements.

    Create PRD

  • Generate Tasks


    Break PRDs into actionable task lists.

    Generate Tasks


Quality Workflows

  • Code Review


    Systematic validation against guardrails before committing.

    Code Review

  • Security Audit


    OWASP Top 10, vulnerability scanning, secrets detection.

    Security Audit

  • Testing Strategy


    Plan and achieve test coverage targets.

    Testing Strategy


Maintenance Workflows

  • Cleanup Project


    Prune unused guides and reduce .claude/ bloat.

    Cleanup Project

  • Refactoring


    Structured approach to technical debt remediation.

    Refactoring

  • Dependency Update


    Safe and systematic dependency updates.

    Dependency Update

  • Update Framework


    Update Samuel to latest version while preserving customizations.

    Update Framework


Utility Workflows


Community Workflows

  • Algorithmic Art


    Generative art using p5.js with seeded randomness.

    Algorithmic Art

  • Doc Co-Authoring


    Collaborative document writing through structured iteration.

    Doc Co-Authoring

  • Frontend Design


    Distinctive, production-grade frontend interfaces.

    Frontend Design

  • MCP Builder


    Create MCP servers for LLM-service integration.

    MCP Builder

  • Theme Factory


    Apply professional themes to slides, docs, and reports.

    Theme Factory

  • Web Artifacts Builder


    React/TypeScript/shadcn toolchain for web applications.

    Web Artifacts Builder

  • Web App Testing


    Playwright-based web application testing and debugging.

    Web App Testing


Autonomous Workflows

  • Auto


    Autonomous AI coding loop (Ralph Wiggum methodology). Unattended AI-driven development.

    Auto