Use when starting development work on a bug, feature, improvement, or task. Guides engineers through the full development pipeline: discover, brainstorm, plan, execute, review, ship. Invoked by "let's work on", "I need to build", "fix this bug", "start a new task", or /kickoff.
From casaflownpx claudepluginhub casaperks/casaflow --plugin casaflowThis skill uses the workspace's default tool permissions.
Designs and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Enables AI agents to execute x402 payments with per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents pay for APIs, services, or other agents.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
PURPOSE: The pipeline orchestrator. Ensures every task flows through a predictable sequence of stages with quality checks at each transition.
CASAFLOW ADDITION: For feature and improvement work types, this skill
enforces a spec-first gate — no brainstorming or planning begins until a
feature spec exists. This is not optional; it is the primary mechanism by which
developers stay in comprehension of what they're building.
CONFIGURATION: Reads casaflow.config.md (or jig.config.md) for
pipeline stages, work type overrides, ticket system, branching format, and
concerns checklist.
Invoke this skill when:
Do NOT use when you only need a single stage (e.g., just creating a PR →
use pr-create directly).
Determine work type before anything else.
BUG → broken / incorrect behavior
IMPROVEMENT → making an existing thing better
FEATURE → new capability
TASK / CHORE → config, refactor, dependency update
Ask the user if the type isn't obvious from context.
Spec gate applies to: feature, improvement
Spec gate skipped for: bug, task
This gate runs before DISCOVER, BRAINSTORM, or PLAN.
add-checkout-flow).specs/<slug>.md exists and is non-empty.If no spec exists:
"No spec found for this feature. A spec is required before we write any code — it's how we make sure you understand what you're building before delegating to AI.
Run
/casaflow:specand I'll guide you through writing it. When the spec is done, run/casaflow:kickoffagain and we'll pick up from here."
Then stop. Do not enter DISCOVER, BRAINSTORM, or PLAN.
If spec exists:
Load specs/<slug>.md into context. Proceed to Step 3 with the spec as the
grounding document for all subsequent stages. The spec's acceptance criteria
become the pipeline's definition of done.
For bugs and tasks: Skip this step entirely. Proceed directly to Step 3.
Gate: A ticket exists and the problem is understood.
Check for existing ticket: Read casaflow.config.md for ticket-system
and use the appropriate integration. If on Jira and a ticket key was
provided, fetch it. If no ticket exists, ask whether to create one.
Understand the problem:
Set up the branch: Read branching.format from config.
Gate check:
Gate: A design is approved by the user.
For features: full brainstorm with concerns checklist. The spec defines what — brainstorm defines how. Do not re-litigate what's in the spec.
For improvements: medium brainstorm — existing patterns, 2-3 approaches, tradeoffs.
For bugs: light brainstorm — root cause, minimal fix, regression risk, test plan.
For tasks/chores: skip. Move to PLAN.
Run the concerns checklist from casaflow.config.md. Walk through each
concern explicitly. Mark N/A if it doesn't apply — do not skip silently.
Gate check:
docs/plans/YYYY-MM-DD-<topic>-design.mdGate: A numbered plan exists with tasks, files, and verification steps.
Invoke plan. Every plan must include:
blockedBy)Save to docs/plans/YYYY-MM-DD-<topic>-plan.md.
If a spec and/or PRD exists, include a header reference:
> **Spec:** specs/<slug>.md
> **For Claude:** Use `build` to execute this plan.
Gate check:
Gate: All tasks implemented, tested, and committed.
Invoke build. It auto-selects parallel (team-dev) or serial (sdd) based
on the task graph and casaflow.config.md settings.
CasaFlow addition: At the end of each build stage, build invokes the
approve-gate skill. The developer must pass three comprehension questions
before the next stage begins. This is not optional.
Gate check:
Gate: Code passes specialist swarm and self-audit.
Run review → dispatches parallel specialist swarm (security, dead-code,
error-handling, async-safety, performance). Fix Critical and Major issues
before creating a PR.
For the final stage (Polish), review-tests runs as part of the approve-gate
before the swarm — test quality is evaluated before code quality.
Gate check:
Gate: PR created and merged.
commit agent — conventional commit with scopepr-create — runs review swarm first, then writes PR descriptionpr-respond — address reviewer feedbackIf Jira is configured, pr-create posts the PR URL as a comment on the
ticket and optionally transitions the ticket status.
After merge, prompt:
"Feature shipped. Run
/casaflow:retrowhile it's fresh — it takes 10 minutes and the output becomes a team artifact."
Then invoke postmortem to analyze reviewer patterns and update skills.
CLASSIFY
└──> [SPEC GATE — features/improvements only]
└──> DISCOVER
├──> BRAINSTORM (features, improvements, bugs)
│ └──> PLAN
└──> PLAN (tasks skip brainstorm)
└──> EXECUTE (with approve-gate per stage)
└──> REVIEW
└──> SHIP
└──> LEARN
| Stage | CasaFlow addition |
|---|---|
| Classify | Determines spec gate applicability |
| Spec Gate | Hard stop if no spec for features/improvements |
| Discover | Jira ticket lookup/creation |
| Brainstorm | Concerns checklist from config |
| Plan | Spec acceptance criteria as definition of done |
| Execute | approve-gate after every stage |
| Review | review-tests before swarm on final stage |
| Ship | Jira status update + PR URL comment |
| Learn | retro prompt + postmortem |