potenlab-workflow
v0.3.0
Published
Full-stack project planning and execution for Claude Code. Orchestrates specialist agents to plan, build, and iterate on projects.
Readme
Potenlab Workflow
Full-stack project planning and execution for Claude Code. Orchestrates specialist agents to plan, build, and iterate on projects.
Installation
npx potenlab-workflowThis installs commands, agents, and best-practice rules into ~/.claude/ so Claude Code auto-discovers them.
Options
npx potenlab-workflow # Install globally to ~/.claude/
npx potenlab-workflow --local # Install to ./.claude/ (project-scoped)
npx potenlab-workflow --uninstall # Remove all potenlab filesVerify
Start a new Claude Code session, then:
/potenlab:helloExpected output:
Potenlab Workflow is active. potenlab-workflow v0.2.0 loaded successfully.
What Gets Installed
~/.claude/
├── commands/potenlab/ # 13 slash commands
│ ├── plan-project.md
│ ├── execute-phase.md
│ ├── developer.md
│ ├── complete-plan.md
│ ├── review-plan.md
│ ├── generate-test.md
│ ├── run-test-all.md
│ ├── run-test-phase.md
│ ├── verify-test.md
│ ├── security-review.md
│ ├── security-resolve.md
│ ├── info.md
│ └── hello.md
├── agents/ # 9 specialist agents (potenlab-prefixed, project memory enabled)
│ ├── potenlab-ui-ux-specialist.md
│ ├── potenlab-tech-lead-specialist.md
│ ├── potenlab-frontend-specialist.md
│ ├── potenlab-backend-specialist.md
│ ├── potenlab-progress-creator.md
│ ├── potenlab-high-coder.md
│ ├── potenlab-small-coder.md
│ ├── potenlab-qa-specialist.md
│ └── potenlab-security-specialist.md
└── potenlab-workflow/ # Core data
├── VERSION
├── CLAUDE.md
├── rules/ # React best practices
└── references/ # Postgres best practicesWorkflow
PRD / Figma
|
v
/potenlab:plan-project 1. Create all plans from PRD
|
v
/potenlab:complete-plan 2. Generate progress.json task tracker
|
v
/potenlab:execute-phase 0 3. Build each phase (parallel agents)
/potenlab:execute-phase 1 Phase 0: Foundation
/potenlab:execute-phase 2 Phase 1: Backend
/potenlab:execute-phase 3 Phase 2: Shared UI
/potenlab:execute-phase 4 Phase 3: Features
/potenlab:execute-phase 5 Phase 4: Integration
| Phase 5: Polish
v
/potenlab:developer 4. Post-completion adjustments
|
v
/potenlab:security-review 5. Security audit + optional auto-fixNeed to revise plans? Use /potenlab:review-plan at any point.
Need to fix security issues later? Use /potenlab:security-resolve.
Step 1: Plan — /potenlab:plan-project
Creates all project plans from a PRD file. Asks clarifying questions first, then orchestrates 4 specialist agents sequentially and in parallel.
Agents spawned:
AskUserQuestion (validate scope, stack, UI priority)
|
v
potenlab-ui-ux-specialist --> docs/ui-ux-plan.md
|
v
potenlab-tech-lead-specialist --> docs/dev-plan.md
|
v
potenlab-frontend-specialist ──┐
├──> parallel
potenlab-backend-specialist ──┘
|
v
docs/frontend-plan.md + docs/backend-plan.mdStep 2: Complete — /potenlab:complete-plan
Generates progress.json from the finalized plans. Classifies every task as low or high complexity and assigns the right coder agent.
Output: docs/progress.json with all tasks, dependencies, and agent assignments.
Step 3: Execute — /potenlab:execute-phase
Builds a specific phase by spawning multiple coder agents in parallel.
/potenlab:execute-phase 0 # Foundation
/potenlab:execute-phase 1 # Backend
/potenlab:execute-phase 2 # Shared UI
/potenlab:execute-phase 3 # Features
/potenlab:execute-phase 4 # Integration
/potenlab:execute-phase 5 # PolishAgent assignment:
complexity: "low"tasks -->potenlab-small-coder(Sonnet, fast)complexity: "high"tasks -->potenlab-high-coder(Opus, deep reasoning)
Step 4: Adjust — /potenlab:developer
Handles changes after all phases are complete. Tracks everything in changes.json.
/potenlab:developer fix the login button hover state
/potenlab:developer add dark mode toggleRevise Plans — /potenlab:review-plan
Edit existing plans based on feedback. Same agent flow as planning but in edit mode.
/potenlab:review-plan change auth to OAuth
/potenlab:review-plan add a notifications featureTesting
/potenlab:generate-test # Generate .test.ts files from test-plan.md
/potenlab:run-test-all # Run all Vitest tests
/potenlab:run-test-phase 1 # Run tests for a specific phase
/potenlab:verify-test # Sync tests after code changesSecurity
/potenlab:security-review # Full security audit → security-list.json → optional auto-fix
/potenlab:security-resolve # Resolve pending findings from security-list.json/potenlab:security-review scans the entire codebase for vulnerabilities across OWASP Top 10 categories, Supabase RLS issues, secret exposure, and more. Produces security-report.md and security-list.json, then asks if you want to auto-fix. Fixes are applied by potenlab-high-coder with strict constraints — security-only, no feature changes.
/potenlab:security-resolve picks up where you left off. Reads security-list.json, shows pending findings, and spawns coder agents to fix them.
Commands Reference
| Command | Purpose | Input |
|---------|---------|-------|
| /potenlab:plan-project | Create all plans from PRD | PRD file + user preferences |
| /potenlab:complete-plan | Generate progress.json | Existing plan files |
| /potenlab:review-plan | Edit existing plans | User feedback (args or prompt) |
| /potenlab:execute-phase N | Build phase N with parallel agents | Phase number |
| /potenlab:developer | Post-completion adjustments | Change request (args or prompt) |
| /potenlab:generate-test | Generate Vitest test files | test-plan.md |
| /potenlab:run-test-all | Run all tests | None |
| /potenlab:run-test-phase | Run tests for a phase | Phase number |
| /potenlab:verify-test | Sync tests after changes | Scope (optional) |
| /potenlab:security-review | Full security audit + optional auto-fix | None |
| /potenlab:security-resolve | Fix pending security findings | None (reads security-list.json) |
| /potenlab:info | Show overview | None |
| /potenlab:hello | Verify installation | None |
Agents
| Agent | Model | Role |
|-------|-------|------|
| potenlab-ui-ux-specialist | Opus | Design system, wireframes, user flows, WCAG accessibility |
| potenlab-tech-lead-specialist | Opus | Single source of truth dev plan from UI/UX plan |
| potenlab-frontend-specialist | Opus | Component specs, Bulletproof React structure, shadcn mapping |
| potenlab-backend-specialist | Opus | Schema, migrations, RLS policies, Supabase best practices |
| potenlab-progress-creator | Opus | Parse plans into structured progress.json |
| potenlab-high-coder | Opus | Execute complex multi-file tasks (3+ files) |
| potenlab-small-coder | Sonnet | Execute small isolated tasks (1-2 files, fast) |
| potenlab-qa-specialist | Opus | Test generation, verification, failure analysis |
| potenlab-security-specialist | Opus | Security audit, vulnerability scanning, RLS verification |
All agents have project-scoped persistent memory (memory: project). They build institutional knowledge about your codebase across conversations — codepaths, patterns, library locations, and architectural decisions are remembered and reused.
Generated Files
docs/
├── ui-ux-plan.md # Design system, user research, wireframes
├── dev-plan.md # Phased development checklist (single source of truth)
├── frontend-plan.md # Component specs, file paths, props, patterns
├── backend-plan.md # Schema, SQL migrations, RLS policies
├── progress.json # Task tracker with complexity + agent assignments
├── changes.json # Post-completion change tracking (batched)
├── security-report.md # Detailed security audit findings
└── security-list.json # Structured security findings for resolution trackingProject Structure
All plans enforce the Bulletproof React architecture:
src/
├── app/ # Routes, providers
├── components/ # Shared + styled components
│ ├── ui/ # shadcn primitives
│ ├── layouts/ # Page layouts
│ ├── common/ # Generic reusable (LoadingSpinner, ErrorBoundary)
│ └── {feature}/ # Feature-specific styled/presentational components
├── config/ # Global config
├── features/ # Business logic only
│ └── {name}/
│ ├── api/ # Data fetching hooks (React Query + Supabase)
│ ├── components/ # Business-purpose only (list, detail, create, edit, delete)
│ ├── hooks/ # Feature-specific hooks
│ ├── types/ # Feature types
│ └── utils/ # Feature utilities
├── hooks/ # Shared hooks
├── lib/ # Library wrappers (Supabase client)
├── stores/ # Global state (Zustand)
├── types/ # Shared TypeScript types
└── utils/ # Shared utilitiesLocal Development
Test locally without publishing to npm:
# Run the installer directly
node bin/install.js
# Install to local project
node bin/install.js --local
# Uninstall
node bin/install.js --uninstall
# Test with plugin system (legacy)
claude --plugin-dir ./plugins/potenlab-workflowRequirements
- Claude Code CLI
- A PRD file (markdown) to start planning
Optional MCP servers
These enhance agent capabilities but are not required:
| MCP Server | Used By | Purpose |
|------------|---------|---------|
| shadcn | potenlab-frontend-specialist, potenlab-ui-ux-specialist | Component discovery |
| context7 | potenlab-frontend-specialist, potenlab-backend-specialist, potenlab-security-specialist | Library documentation |
| postgres | potenlab-backend-specialist, potenlab-security-specialist | Database state inspection |
License
MIT
