From pro-workflow
Battle-tested Claude Code workflows from power users. Self-correcting memory, parallel worktrees, wrap-up rituals, and the 80/20 AI coding ratio. Distilled from real production use.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pro-workflow:pro-workflowThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Real-world Claude Code patterns from power users who ship production code daily. Not theory - workflows that compound over time.
Real-world Claude Code patterns from power users who ship production code daily. Not theory - workflows that compound over time.
"80% of my code is written by AI, 20% is spent reviewing and correcting it." — Karpathy
This skill optimizes for that ratio. Every pattern here reduces correction cycles.
The single most powerful pattern. Your CLAUDE.md trains itself through corrections.
When you correct Claude:
## Self-Correction Protocol
When the user corrects me or I make a mistake:
1. Acknowledge specifically what went wrong
2. Propose a concise rule: `[LEARN] Category: One-line rule`
3. Wait for approval before adding to LEARNED section
### LEARNED
<!-- Auto-populated through corrections -->
User: You edited the wrong file
Claude: I edited src/utils.ts when you meant src/lib/utils.ts.
[LEARN] Navigation: Confirm full path before editing files with common names.
Should I add this?
Zero dead time. While one Claude thinks, work on something else.
# Create worktrees for parallel work
git worktree add ../project-feat feature-branch
git worktree add ../project-fix bugfix-branch
# Each gets its own Claude session
# Terminal 1: cd ~/project && claude
# Terminal 2: cd ~/project-feat && claude
| Scenario | Action |
|---|---|
| Waiting on tests | Start new feature in worktree |
| Long build | Debug issue in parallel |
| Exploring approaches | Try 2-3 simultaneously |
## Parallel Work
When blocked on long operations, suggest starting a parallel session in a worktree.
End sessions with intention. Capture learnings, verify state.
git status, tests, lint~/.claude/commands/wrap-up.md:
Execute wrap-up checklist:
1. `git status` - uncommitted changes?
2. `npm test -- --changed` - tests passing?
3. What was learned this session?
4. Propose LEARNED additions
5. One-paragraph summary
For complex projects, modularize Claude memory.
.claude/
├── CLAUDE.md # Entry point
├── AGENTS.md # Workflow rules
├── SOUL.md # Style preferences
└── LEARNED.md # Auto-populated
# Workflow Rules
## Planning
Plan mode when: >3 files, architecture decisions, multiple approaches.
## Quality Gates
Before complete: lint, typecheck, test --related.
## Subagents
Use for: parallel exploration, background tasks.
Avoid for: tasks needing conversation context.
# Style
- Concise over verbose
- Action over explanation
- Acknowledge mistakes directly
- No features beyond scope
Batch reviews at checkpoints, not every change.
## Review Checkpoints
Pause for review at: plan completion, >5 file edits, git operations, auth/security code.
Between: proceed with confidence.
Opus 4.6 with adaptive thinking calibrates reasoning depth automatically.
| Task | Model |
|---|---|
| Quick fixes | Haiku 4.5 |
| Features | Sonnet 4.5 |
| Refactors | Opus 4.6 |
| Architecture | Opus 4.6 + Extended Thinking |
| Hard bugs | Opus 4.6 + Extended Thinking |
Opus 4.6 automatically calibrates reasoning depth per task - lightweight for simple operations, deep analysis for complex problems. No configuration needed.
## Model Hints
Escalate to Opus+Thinking when: first attempt failed, multi-system coordination, non-obvious bugs.
Use subagents with Haiku for fast read-only exploration, Sonnet for balanced work.
200k tokens is precious. Manage it.
CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=50Auto-document insights from sessions.
## Learning Log
After tasks, note learnings:
`[DATE] [TOPIC]: Key insight`
Append to .claude/learning-log.md
Master Claude Code through built-in best practices and official documentation.
Pro-workflow teaches Claude Code concepts directly and links to official docs at https://code.claude.com/docs/ for deep dives.
| Topic | Pro-Workflow Pattern | Official Docs |
|---|---|---|
| Sessions & context management | Pattern 7: Context Discipline | Common Workflows |
| Modes (Plan/Normal/Auto/Delegate) | Pattern 5: 80/20 Review | Common Workflows |
| CLAUDE.md & project memory | Pattern 4: Split Memory | Settings |
| Writing rules & constraints | Pattern 1: Self-Correction Loop | Settings |
| Effective prompting | Pattern 5: 80/20 Review | — |
| Skills & automation | Pattern 8: Learning Log | Settings |
| Custom subagents | Pattern 2: Parallel Worktrees | Sub-agents |
| Agent teams | Pattern 2: Parallel Worktrees | Agent Teams |
| Hooks & quality gates | All hooks in hooks.json | Hooks |
| Context compaction | Pattern 7: Context Discipline | Common Workflows |
| Adaptive thinking | Pattern 6: Model Selection | — |
| Security & permissions | — | Security |
| MCP configuration | Pattern 7: Context Discipline | MCP |
Run /learn for a topic-by-topic guide with practices and official doc links.
Add to your CLAUDE.md:
## Pro Workflow
### Self-Correction
When corrected, propose rule → add to LEARNED after approval.
### Planning
Multi-file: plan first, wait for "proceed".
### Quality
After edits: lint, typecheck, test.
### LEARNED
git clone https://github.com/rohitg00/pro-workflow.git /tmp/pw
cp -r /tmp/pw/templates/split-claude-md/* ./.claude/
cp -r /tmp/pw/commands/* ~/.claude/commands/
Pro-workflow includes automated hooks to enforce the patterns.
| Trigger | Action |
|---|---|
| Edit/Write | Track edit count, remind at 5/10 edits |
| git commit | Remind to run quality gates |
| git push | Remind about /wrap-up |
| Trigger | Action |
|---|---|
| Code edit (.ts/.js/.py/.go) | Check for console.log, TODOs, secrets |
| Test commands | Suggest [LEARN] from failures |
| Hook | Action |
|---|---|
| SessionStart | Load LEARNED patterns, show worktree count |
| Stop | Periodic wrap-up/compact reminders |
| SessionEnd | Check uncommitted changes, prompt for learnings |
# Copy hooks to your settings
cp ~/skills/pro-workflow/hooks/hooks.json ~/.claude/settings.local.json
# Or merge with existing settings
Based on Twitter thread insights:
Switch modes based on what you're doing.
| Context | Trigger | Behavior |
|---|---|---|
| dev | "Let's build" | Code first, iterate fast |
| review | "Review this" | Read-only, security focus |
| research | "Help me understand" | Explore, summarize, plan |
Use: "Switch to dev mode" or load context file.
Specialized subagents for focused tasks.
| Agent | Purpose | Tools |
|---|---|---|
| planner | Break down complex tasks | Read-only |
| reviewer | Code review, security audit | Read + test |
Use planner agent when:
Use reviewer agent when:
Create project-specific subagents in .claude/agents/ or user-wide in ~/.claude/agents/:
/agents to create, edit, and manage interactivelyCoordinate multiple Claude Code sessions as a team:
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1Keep <10 MCPs enabled, <80 tools total.
Essential:
github - PRs, issuesmemory - Persist learningsfilesystem - File opsSee mcp-config.example.json for setup.
| Command | Purpose |
|---|---|
/wrap-up | End-of-session ritual |
/learn-rule | Extract correction to memory |
/parallel | Worktree setup guide |
/learn | Claude Code best practices & save learnings |
/search | Search learnings by keyword |
/list | List all stored learnings |
/commit | Smart commit with quality gates and code review |
/insights | Session analytics, learning patterns, correction trends |
From Claude Code power users and real production use.
npx claudepluginhub su1ph3r/pro-workflowCreates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.