Skip to content

Workflow Commands

59 workflow commands that enforce a verification-first approach to AI-assisted development


Workflow Commands

Massu AI provides 59 workflow commands organized into categories that enforce a structured, verification-first approach to AI-assisted development. These are not suggestions -- they are mandatory execution protocols that ensure every plan is thorough, every implementation is verified, and every commit meets quality standards.

Installation

All 59 commands are automatically installed when you run npx massu init. The command files are deployed into .claude/commands/ in your project directory and are available immediately in Claude Code.

The command definitions ship inside the @massu/core npm package. When you update @massu/core to a new version, run npx massu install-commands to get the latest command definitions without re-running full init.

bash
# Re-install or update commands only
npx massu install-commands

Implementation Workflow

The core pipeline for structured development:

/massu-create-plan  -->  /massu-plan  -->  /massu-loop  -->  /massu-commit  -->  /massu-push
   (create)          (audit)      (implement)     (pre-commit)     (pre-push)
CommandEdits Source Code?Purpose
/massu-create-planNoCreate a plan document
/massu-planNo (plan doc only)Audit and improve the plan
/massu-plan-auditNoCombined create-plan + plan audit in one flow
/massu-loopYesImplement with verification
/massu-commitFixes onlyPre-commit verification gate
/massu-pushFixes onlyPre-push full verification
/massu-push-lightFixes onlyFast pre-push verification (~90s)
/massu-new-featureYesFeature scaffolding with patterns pre-applied
/massu-golden-pathYesFull end-to-end workflow from plan to push

Development Tools

10 commands for day-to-day development tasks:

CommandEdits Source Code?Purpose
/massu-testYesIntelligent test runner with failure analysis and generation
/massu-debugYesSystematic debugging with hypothesis testing
/massu-refactorYesSafe refactoring with behavioral equivalence
/massu-hotfixYesQuick scoped fix with branch, test, commit, PR
/massu-tddYesTest-driven development cycle (RED/GREEN/IMPROVE)
/massu-batchYesApply same change across multiple files in parallel
/massu-ci-fixYesAuto-diagnose CI failures, fix, commit, and re-push
/massu-simplifyYesCode simplification and complexity reduction
/massu-scaffold-pageYesScaffold new page with layout, loading/error states
/massu-scaffold-routerYesScaffold new tRPC router or API endpoint

Quality & Verification

7 analysis commands for code quality:

CommandEdits Source Code?Purpose
/massu-reviewNoCode review across 7 dimensions
/massu-audit-depsNoDependency vulnerability and license audit
/massu-verifyNoRun all VR-* verification checks with proof
/massu-verify-playwrightNoBrowser-based page verification via Playwright
/massu-estimateNoEffort estimation with complexity scoring
/massu-gap-enhancement-analyzerNoPost-implementation gap analysis with enhancement recommendations
/massu-parityNoFeature parity check between two systems

Release & Ops

4 commands for release and operational tasks:

CommandEdits Source Code?Purpose
/massu-releaseYesRelease preparation with full verification
/massu-changelogCHANGELOG.md onlyGenerate changelog from commits
/massu-deployNoStructured deployment with pre-deploy verification
/massu-incidentYesIncident documentation with root cause and prevention

Productivity

8 commands for codebase hygiene, documentation, and guided workflows:

CommandEdits Source Code?Purpose
/massu-cleanupYesDead code removal, unused imports, orphaned files
/massu-dead-codeYesDetect and remove orphaned modules and unused exports
/massu-doc-genYesGenerate JSDoc, README, and API documentation
/massu-docsYes (docs only)Documentation sync ensuring docs match code
/massu-depsNoDependency audit (security, updates, compatibility)
/massu-guideNoInteractive onboarding walkthrough
/massu-loop-playwrightYesBrowser-based audit and fix loop
/massu-scaffold-hookYesScaffold new Claude Code hook with settings registration

Session Lifecycle

4 commands for session management and context:

CommandEdits Source Code?Purpose
/massu-bearingsNoSession orientation -- recover context after being away
/massu-recapNoEnd-of-session summary with handoff notes
/massu-squirrelsNoPark tangential ideas for later review
/massu-hooksNoHook status diagnostics and configuration check

Diagnostics

2 read-only commands for project health:

CommandEdits Source Code?Purpose
/massu-statusNoProject health dashboard with 14 checks
/massu-reviewNoAutomated 7-dimension code review

Decision Tree

Not sure which command to use?

  • Starting new work -- /massu-create-plan then /massu-plan then /massu-loop
  • Quick plan + audit -- /massu-plan-audit (combines both steps)
  • Full end-to-end -- /massu-golden-path (plan through push)
  • Scaffolding a feature -- /massu-new-feature
  • Scaffolding a page -- /massu-scaffold-page
  • Scaffolding an API route -- /massu-scaffold-router
  • Scaffolding a hook -- /massu-scaffold-hook
  • Ready to commit -- /massu-commit
  • Ready to push -- /massu-push (full) or /massu-push-light (fast ~90s)
  • Tests are failing -- /massu-test
  • Bug to diagnose -- /massu-debug
  • Urgent production fix -- /massu-hotfix
  • CI pipeline failed -- /massu-ci-fix
  • Restructuring code -- /massu-refactor
  • Simplify complexity -- /massu-simplify
  • Apply change to many files -- /massu-batch
  • Before a code review -- /massu-review
  • Cutting a release -- /massu-release
  • Deploy to production -- /massu-deploy
  • Bug/incident happened -- /massu-incident
  • Project health check -- /massu-status
  • Dependency concerns -- /massu-audit-deps or /massu-deps
  • Dead code / cleanup -- /massu-cleanup or /massu-dead-code
  • Generate documentation -- /massu-doc-gen or /massu-docs
  • Effort estimation -- /massu-estimate
  • Run all VR checks -- /massu-verify
  • UI end-to-end verification -- /massu-verify-playwright
  • Post-implementation review -- /massu-gap-enhancement-analyzer
  • Feature parity check -- /massu-parity
  • TDD workflow -- /massu-tdd
  • Interactive onboarding -- /massu-guide
  • Browser-based testing loop -- /massu-loop-playwright
  • Starting a new session -- /massu-bearings
  • Ending a session -- /massu-recap
  • Got a tangential idea -- /massu-squirrels
  • Check hook status -- /massu-hooks

Why This Workflow?

AI assistants are powerful but they can also be careless. Without a structured workflow:

  • Plans have gaps that only surface during implementation
  • Implementations claim completion without verification
  • Commits include untested or type-unsafe code
  • Removals leave behind orphaned references
  • "100% complete" turns out to be 80% complete

The Massu AI workflow prevents all of these problems by requiring proof at every stage.

Core Principles

1. Plans Before Code

Every non-trivial change starts with a plan document. Plans live in docs/plans/ and include specific deliverables, file paths, and verification requirements.

2. Verification Before Claims

Every claim of completion requires a verification command and its output as proof. "I verified it" without showing the command output is treated as unverified.

3. Negative Verification for Removals

When a plan says "remove X", verification requires grep -rn "X" src/ returning 0 results. Partial removal is not removal.

4. All Items, Not Most Items

If a plan has 10 items, all 10 must be implemented and verified. Stopping at 8 and claiming complete is a protocol violation.

5. Protocols Are Mandatory

Slash commands are execution instructions, not suggestions. When a protocol says "loop until complete," it means loop until complete.