复制安装命令
用 Codex 或 Claude 安装复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它先审查 Skill 页面再帮你安装。
复制前请先查看来源、License 和安全提示。
Your Claude Code gets smarter every session.
用 Codex 或 Claude 安装复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它先审查 Skill 页面再帮你安装。
复制前请先查看来源、License 和安全提示。
来源文件:README.md
Self-correcting memory + persistent FTS5-indexed wikis + auto-research loop, all on one SQLite store.
Correct Claude once — it never repeats the mistake. Build a wiki on a topic — it grows itself overnight.
41 skills • 8 agents • 23 commands • 37 hook scripts across 24 events
Works with Claude Code, Cursor, and 32+ agents via skills add.
You correct Claude the same way 50 times. You explain conventions every new session. Context compacts, learnings vanish, mistakes repeat. You research the same topic in three different sessions because there is nowhere durable for the answers to land.
Every Claude Code user hits this wall.
Pro Workflow puts a single SQLite store underneath every session.
After 50 sessions you barely correct anything. After a week of auto-research, your wiki on a topic is denser than the curated lists you started from.
Session 1: You → "Don't mock the database in tests"
Claude → Proposes rule → You approve → Saved to SQLite
Session 2: SessionStart loads all learnings + lists your wikis
UserPromptSubmit auto-injects top wiki hits when relevant
Claude writes integration tests, cites the right wiki page
Session 50: Correction rate near zero. Wiki has 200 cited claims.
Pro Workflow is published in two places: the Claude Code plugin marketplace (native), and skills add (cross-agent installer). Other agents do not have first-class plugins yet — skills add installs the skill bundle into each agent's native skill directory.
/plugin marketplace add rohitg00/pro-workflow
/plugin install pro-workflow@pro-workflow
skills add installs the 41 skills + 23 commands into each agent's native skill directory.
npx skills add rohitg00/pro-workflow
Notes:
rohitg00/pro-workflow (the GitHub form), not the bare name — skills add resolves providers from owner/repo, not marketplace slugs.Works with these agents: cursor, codex, gemini-cli, opencode, github-copilot, droid (factory), antigravity, amp, clawdbot, cline, codebuddy, commandcode, continue, crush, goose, kilo, kiro-cli, mcpjam, mux, neovate, openhands, pi, qoder, qwen, roo, trae, universal, vercel, windsurf, zencoder.
Roster notes (2026): windsurf relaunched as Devin Desktop, which speaks the Agent Client Protocol (ACP); gemini-cli was superseded by the Antigravity CLI for consumers. The adapter names above still resolve, but target the current product. MCP works across every agent in this list with the same setup. See references/modern-workflows-2026.md for the interop picture.
After install, run skills sync to register the skills with the target agent's config.
If neither path works for your setup, clone and copy the bundle directly. Adjust the destination to your agent's skill directory (e.g. ~/.cursor/rules/, ~/.gemini/extensions/, etc.).
git clone https://github.com/rohitg00/pro-workflow.git /tmp/pw
cd /tmp/pw && npm install && npm run build
cp -r /tmp/pw/templates/split-claude-md/* ./.claude/
cp -r /tmp/pw/skills ~/.claude/skills/
cp -r /tmp/pw/commands ~/.claude/commands/
cp /tmp/pw/hooks/hooks.json ~/.claude/hooks.json
/doctor # confirms SQLite store, hooks, skills load
/wrap-up # runs the end-of-session ritual (no-op on fresh install)
If /doctor reports KB: missing, run cd ~/.claude/plugins/*/pro-workflow && npm install && npm run build — the SQLite components need a build step a handful of marketplaces skip.
After install you have 41 skills and 23 slash commands. You don't need to memorize them; the agent picks the right skill from your prompt. The five commands below cover 80% of daily use:
| When | Command | What it does |
|---|---|---|
| Wrong correction repeats | /learn-rule | Capture the correction as a rule. Loaded on every future SessionStart. |
| End of a coding session | /wrap-up | Audit changes, persist learnings, write a handoff doc. |
| Researching a topic | /wiki init <slug> | Spin up a persistent FTS5 wiki. Auto-injected when you mention the topic later. |
| Stuck on a hard bug | /develop | Research → Plan → Implement phases with validation gates. |
| Before a PR | /smart-commit | Quality gates, staged review, conventional commit message. |
Full list: commands/ · skills/ · /list inside any session.
# 1. Self-correction (existing)
/learn-rule # capture a correction
/wrap-up # end session, persist learnings, audit changes
/insights # heatmaps, trends, productivity
# 2. Knowledge plane (v3.3, new)
/wiki init agent-memory --title "Agent Memory" --flavor research
/wiki page agent-memory wiki/concepts/episodic-memory.md --type concept
/wiki ask "what is episodic memory" --wiki agent-memory
# 3. Auto-research (budget-capped, opt-in)
/wiki seed agent-memory "memory consolidation in agents"
/wiki research agent-memory --max-pages 5 --budget-usd 0.50
# 4. Hybrid retrieval (BM25 + vector RRF, optional)
/wiki embed agent-memory # OPENAI_API_KEY or VOYAGE_API_KEY
/wiki hybrid "consolidation patterns" --wiki agent-memory
# 5. Multi-LLM deliberation (transcript persists as a wiki page)
/wiki council "should we adopt episodic memory?" --wiki agent-memory
# 6. Browse the wiki visually (single-file HTML, S3-shareable)
/wiki view agent-memory
open ~/.pro-workflow/wikis/agent-memory/derived/viewer.html
# Kill switch for any auto loop
touch ~/.pro-workflow/STOP
UserPromptSubmit auto-loads top-3 wiki hits when prompts mention indexed topics. SessionStart lists registered wikis and recent learnings.
Persistent knowledge plane on top of self-correction memory.
| Skill | Purpose |
|---|---|
| wiki-builder | Persistent FTS5-indexed research wikis. 9 flavors: research, paper, domain, product, person, organization, project, codebase, incident. Path-traversal-guarded. |
| wiki-query | BM25 retrieval with snippets. ask, related, show. Auto-injects on UserPromptSubmit. |
| wiki-research-loop | Budget-capped BFS. Pluggable source fetchers (web/arXiv/GitHub + custom). Convergence detection, kill-switch, atomic seed claim, try/finally state guards. |
| llm-council | Provider-agnostic 3-phase deliberation (Anthropic/OpenAI/OpenRouter/Fireworks/custom). Promise.allSettled so one provider failure doesn't abort the run. Transcript persists as a wiki page. |
| survey-generator | Provider-agnostic literature survey. Output target = wiki markdown page. Bibliography validation (uniqueness + section-paper refs), citation IDs aligned with sources.md rows. |
| wiki-viewer | Single-file HTML viewer for any wiki: pages + sources + seeds + link graph + in-browser search + "copy as seed" CTAs. S3-shareable. Applied lessons from Thariq Shihipar's HTML-as-output thesis. |
Plus: /wiki command (now with view), learn-rule Wiki: <slug> scoping, schema additions (wikis, wiki_pages + FTS5, wiki_sources, wiki_claims, wiki_seeds, wiki_embeddings, learnings_wiki), reactive file-watcher seed enqueue, cron-tick driver, /doctor extended with KB + provider sections.
| Feature | Pro Workflow | Superpowers | ECC | gstack | GSD |
|---|---|---|---|---|---|
| Self-correcting memory (SQLite + FTS5) | Yes | No | No | No | No |
| Persistent research wikis (FTS5) | Yes | No | No | No | No |
| Auto-research loop (budget-capped BFS) | Yes | No | No | No | No |
| Hybrid retrieval (BM25 + vector + RRF) | Yes | No | No | No | No |
| Multi-provider LLM council | Yes | No | No | No | No |
LLM-powered hooks (type: "prompt") | Yes | No | No | No | No |
| Permission denial analysis | Yes | No | No | No | No |
| Compaction-aware state preservation | Yes | No | No | No | No |
| Cost tracking and budget alerts | Yes | No | No | No | No |
| MCP overhead auditing | Yes | No | No | No | No |
| Cross-agent (32+ agents via skills add) | Yes | No | Some | No | No |
| Skills | 34 | 14 | 140+ | 18+ | 0 |
| Agents | 8 | 5 | 36 | 0 | 18 |
| Commands | 22 | 3 | 60+ | 5+ | 57 |
| Hook events | 24 | 8 | 18 | 0 | 0 |
Knowledge plane (new in v3.3)
| Skill | What it does |
|---|---|
| wiki-builder | Scaffold + register FTS5-indexed research wikis |
| wiki-query | BM25 retrieval, snippets, related, show |
| wiki-research-loop | Budget-capped BFS over web/arXiv/GitHub fetchers |
| llm-council | Provider-agnostic 3-phase multi-LLM deliberation |
| survey-generator | Literature survey artifact, output to a wiki page |
| wiki-viewer | Single-file HTML viewer (pages, sources, seeds, link graph, search) |
Quality gates and observability
| Skill | What it does |
|---|---|
| smart-commit | Quality gates, staged review, conventional commits |
| llm-gate | AI-powered commit and secret hooks (type: "prompt") |
| permission-tuner | Analyze denials, generate allow/deny rules |
| compact-guard | State preservation through compaction cycles |
| cost-tracker | Session cost awareness with budget benchmarks |
| mcp-audit | MCP server token-overhead analysis |
| token-efficiency | Anti-sycophancy + tool-call budgets + read-before-write |
| safe-mode | Guardrails for destructive operations |
| insights | Session analytics, correction trends, productivity |
| thoroughness-scoring | Rate completeness of implementations |
| deslop | Remove AI-generated code slop from a diff |
Memory and learning
| Skill | What it does |
|---|---|
| pro-workflow | Core 8 patterns |
| learn-rule | Capture corrections (now wiki-scopeable) |
| replay-learnings | Surface past learnings for the current task |
| wrap-up | End-of-session ritual |
| session-handoff | Resume documents for the next session |
Orchestration and engineering loop
| Skill | What it does |
|---|---|
| orchestrate | Multi-phase Research → Plan → Implement → Review |
| agent-teams | Multi-instance coordination, shared task list |
| batch-orchestration | Parallel worktree agents for large changes |
| parallel-worktrees | Git worktree setup for zero dead time |
| context-engineering | Write/Select/Compress/Isolate framework |
| context-optimizer | Token management, context budget, MCP audit |
| auto-setup | Auto-detect project type, configure quality gates |
| file-watcher | Reactive workflows on config and dependency changes |
| bug-capture | Capture defects as durable issues without leaking paths |
| module-map | One-screen map of an unfamiliar codebase area |
| plan-interrogate | Stress-test a plan by walking its decision tree |
| sprint-status | Track multi-session progress |
| Agent | Purpose |
|---|---|
| planner | Break down complex tasks (read-only, approval-gated) |
| reviewer | Code review and security audit (checklist-based) |
| scout | Confidence-gated exploration (background, worktree-isolated) |
| orchestrator | Multi-phase feature development |
| debugger | Systematic, hypothesis-driven bug investigation |
| context-engineer | Context-window analysis (lightweight, read-only) |
| permission-analyst | Denial-pattern analysis, rule-optimization recommendations |
| cost-analyst | Token-usage analysis, identify expensive operations |
| Command | What it does |
|---|---|
/wiki | Knowledge-plane entry: init, page, ask, hybrid, seed, research, council, survey, embed, status |
/develop | Multi-phase feature build with validation gates |
/commit | Smart commit with quality gates |
/wrap-up | End-of-session checklist and learning capture |
/learn-rule / /learn | Extract correction or learn Claude Code best practices |
/doctor | Setup health check (now includes wiki KB + council providers) |
/insights | Session analytics and correction heatmap |
/replay | Surface past learnings for the current task |
/handoff | Session handoff document |
/search / /list | Search and list stored learnings |
/deslop | Remove AI-generated code slop |
/context-optimizer | Audit and optimize context-window usage |
/parallel | Set up git worktrees for parallel sessions |
/safe-mode | Toggle destructive-operation guardrails |
/sprint-status | Track multi-session progress |
/auto-setup | Auto-detect project type, configure quality gates |
/compact-guard | Protected compaction with state preservation |
/cost-tracker | Track session costs and optimization tips |
/mcp-audit | Audit MCP servers for token overhead |
/permission-tuner | Generate allow/deny rules from denial patterns |
SessionStart, SessionEnd, UserPromptSubmit, PreToolUse, PostToolUse, Stop, PreCompact, PostCompact, SubagentStart, SubagentStop, TaskCreated, TaskCompleted, PermissionRequest, PermissionDenied, PostToolUseFailure, TeammateIdle, StopFailure, FileChanged, ConfigChange, Notification, Setup, WorktreeCreate, WorktreeRemove, CwdChanged.
Selected high-leverage hooks:
| Hook | Script | Effect |
|---|---|---|
SessionStart | session-start.js | Loads learnings; lists registered wikis |
UserPromptSubmit | prompt-submit.js | Auto-injects top-3 wiki hits when prompts match the index |
Stop | learn-capture.js | Auto-captures [LEARN] blocks (now parses Wiki: <slug>) |
FileChanged | file-changed.js | Edits inside a wiki tree enqueue verify-seeds |
PreToolUse(Bash) | commit-validate.js, git-blast-radius.js, pre-push-check.js | Conventional commit + destructive op + push guardrails |
PreToolUse(Write) | secret-scan.js | LLM-powered secret detection |
PreCompact / PostCompact | pre-compact.js, post-compact.js | Save and re-inject critical context summary |
| Guide | What's covered |
|---|---|
modern-workflows-2026.md | Multi-agent orchestration, Agent Teams, checkpoints, ACP/MCP interop, skills-commands merger |
../references/models-2026.md | Current model tiers, effort routing, task budgets |
settings-guide.md | Settings keys, permission modes, hierarchy |
cli-cheatsheet.md | CLI flags, keyboard shortcuts, slash commands |
orchestration-patterns.md | Command → Agent → Skill architecture, agent teams |
context-engineering.md | Write/Select/Compress/Isolate, memory taxonomy, compaction |
agent-teams.md | Setup, decomposition, teams vs sub-agents |
context-loading.md | CLAUDE.md loading, agent memory, skills discovery |
cross-agent-workflows.md | Claude Code + Cursor together, skills add cross-agent |
decision-framework.md | When to use which pattern |
daily-habits.md | Session habits, debugging tips, anti-patterns |
new-features.md | Checkpoints, remote sessions, agent and prompt hooks |
claude-code-resources.md | Official docs map and resource index |
/develop flow
Research before planning. Plan before implementing. Review before committing. Validation gates between every phase.
Command → Agent → Skill, layered over a single SQLite store. The knowledge plane (v3.3) plugs into the same store as the learning rules.
~/.pro-workflow/
├── data.db # learnings, sessions, wikis (registry), wiki_pages (+FTS5),
│ # wiki_sources, wiki_claims, wiki_seeds, wiki_embeddings,
│ # learnings_wiki
├── wikis/<slug>/ # global-scope wikis (default location)
├── council/<session-id>/ # llm-council transcripts
├── fetchers/ # user-supplied custom source fetchers
├── tick.log # cron-driven research-tick log
└── STOP # touch this file to halt every research loop
Project-scope wikis live at <project>/.claude/wikis/<slug>/ and are committable.
| Pattern | What it does |
|---|---|
| Self-Correction Loop | Claude learns from corrections automatically |
| Knowledge Plane | Wiki + auto-research loop on the same SQLite store |
| Multi-Phase Dev | Research → Plan → Implement → Review with gates |
| Parallel Worktrees | Zero dead time with native claude -w |
| Wrap-Up Ritual | End sessions with intention, capture learnings |
| Split Memory | Modular CLAUDE.md for complex projects |
| 80/20 Review | Batch reviews at checkpoints |
| Context Engineering | Write/Select/Compress/Isolate for token management |
| Agent Teams | Multi-instance coordination with shared task list |
| Batch Orchestration | Parallel worktree agents for large-scale changes |
| LLM Gates | AI-powered verification before destructive operations |
| Permission Tuning | Denial-pattern analysis to reduce prompt fatigue |
| Token Efficiency | Anti-sycophancy + tool-call budgets + read-before-write |
| Multi-LLM Council | Provider-agnostic 3-phase deliberation for high-stakes calls |
Works across 32+ AI coding agents via skills add:
npx skills add rohitg00/pro-workflow
Supported: Claude Code, Cursor, Codex CLI, Gemini CLI, Windsurf, OpenCode, Kiro, Amp, Goose, Roo, and 27 more.
See settings.example.json for production-ready configuration: permission rules, output style, auto-compaction, custom spinner verbs.
Rule: start with three MCPs, add only for concrete needs.
| Env | When |
|---|---|
WIKI_ROOT | Override default ~/.pro-workflow/wikis |
OPENAI_API_KEY / VOYAGE_API_KEY | Enable hybrid retrieval (embeddings) |
ANTHROPIC_API_KEY / OPENAI_API_KEY / OPENROUTER_API_KEY / FIREWORKS_API_KEY / LLM_COUNCIL_BASE_URL+LLM_COUNCIL_API_KEY | Pick a council provider (first match wins) |
WIKI_LOOP_BUDGET_USD / WIKI_LOOP_MAX_PAGES / WIKI_LOOP_MAX_DEPTH | Per-run loop overrides |
GH_TOKEN / GITHUB_TOKEN | Lifts GitHub-fetcher rate limit |
pro-workflow/
├── skills/ # 41 skills
├── agents/ # 8 agents
├── commands/ # 23 slash commands
├── scripts/ # 37 hook scripts (24 events)
├── references/ # workflow, model, and skill reference guides
├── docs/ # GitHub Pages infographic
├── rules/ # rule packs (Cursor + universal)
├── contexts/ # context modes
├── templates/ # split CLAUDE.md + AGENTS.md
├── src/ # TypeScript source (SQLite + embeddings)
└── config.json
"80% of my code is written by AI, 20% is spent reviewing and correcting it." — Andrej Karpathy
"Use subagents to throw more compute at a problem — offload tasks to keep your main context clean." — Boris Cherny
"If you do something more than once a day, turn it into a skill or command." — Boris Cherny
"Write detailed specs and reduce ambiguity before handing work off." — Boris Cherny
"Skill description field is a trigger, not a summary — write it for the model." — Thariq Shihipar
| Project | Description |
|---|---|
| everything-claude-code | 140+ skills, 36 agents — the comprehensive collection |
| claude-code-best-practice | Curated tips, comparisons, community best practices |
| skills | Registry and CLI to add skills across 32+ agents |
| awesome-claude-code-toolkit | 850+ files, 135 agents, 176 plugins — curated directory |
If pro-workflow saves you time, star the repo so others can find it.
Documentation •
Skills Registry •
Report Issues •
Reference Guides
name: pro-workflow
description: Complete AI coding workflow system. Orchestration patterns, 18 hook events, 8 agents, cross-agent support, reference guides, and searchable learnings. Works with Claude Code, Cursor, and 32+ agents.Complete AI coding workflow system from production use. Orchestration patterns, reference guides, and battle-tested habits that compound over time.
Works with: Claude Code, Cursor, Codex, Gemini CLI, and 32+ AI coding agents via skills add. Sections marked (Claude Code) use features specific to Claude Code — Cursor users can skip those or use the noted alternatives.
"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?
Self-correction catches mistakes after the fact. This catches them before.
Karpathy's observations on LLM coding pitfalls name the upstream failures: silent assumptions, overcomplicated diffs, drive-by edits, vague success criteria. Four rules prevent each one.
| Rule | Prevents |
|---|---|
| Surface, don't assume | Wrong interpretation, hidden confusion, missing tradeoffs |
| Minimum viable code | 200-line diffs that should be 50, speculative abstractions |
| Stay in your lane | Drive-by refactors, "improvements" to adjacent code |
| Verifiable goals | Endless re-clarification, "make it work" loops |
Full rules in rules/pre-flight-discipline.mdc (alwaysApply: true). Pairs with self-correction: pre-flight stops the mistake, self-correction captures the lesson when one slips through.
## Pre-Flight Discipline
Before coding: state assumptions, present ambiguity, push back if simpler exists.
Every changed line traces to the request - no drive-by edits.
Convert imperatives to verifiable goals: "fix bug" → "failing test → make it pass".
Zero dead time. While one Claude thinks, work on something else.
Claude Code:
claude --worktree # or claude -w (auto-creates isolated worktree)
Cursor / Any editor:
git worktree add ../project-feat feature-branch
git worktree add ../project-fix bugfix-branch
Ctrl+F — Kill all background agents (two-press confirmation)Ctrl+B — Send task to backgroundisolation: worktree in agent frontmatter| 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, use `claude -w` for instant parallel sessions.
Subagents with `isolation: worktree` get their own safe working copy.
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.
Current lineup (2026): Fable 5, Opus 4.8, Sonnet 5, and Haiku 4.5. The flagship tiers carry a 1M-token context; Haiku 4.5 is 200K. Frontier models converged, so the harness and the effort setting decide output quality more than the model choice. See references/models-2026.md for strings, prices, and routing.
| Task | Model | Effort |
|---|---|---|
| Quick fixes, lookups | Haiku 4.5 | low |
| Features, balanced work | Sonnet 5 | high |
| Refactors, architecture, hard debug | Opus 4.8 | xhigh |
| Long-horizon autonomous builds | Fable 5 | high / xhigh |
Fixed thinking budgets are retired on the current tiers. Control depth with effort (low through xhigh to max); xhigh is the default for coding and agentic work. Adaptive thinking lets the model calibrate reasoning per step with no fixed budget. Run grunt subagents at low effort on Haiku and keep the reasoning path on the capable tier.
## Model Hints
Route by task: Haiku 4.5 for lookups, Sonnet 5 for features, Opus 4.8 for
architecture and hard debugging, Fable 5 for long-horizon builds.
Effort is the lever, not thinking budgets: xhigh for coding, low for subagents.
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
Run /learn for a topic-by-topic guide covering sessions, context, CLAUDE.md, subagents, hooks, and more (see commands/learn.md). Official docs: https://code.claude.com/docs/
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. Cursor users get equivalent enforcement through .mdc rules in the rules/ directory.
| 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 | Context-aware reminders using last_assistant_message |
| SessionEnd | Check uncommitted changes, prompt for learnings |
| ConfigChange | Detect when quality gates or hooks are modified mid-session |
# 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=1Shift+Down to navigate, wraps around) or split panes (tmux/iTerm2)The most powerful pattern for complex features. Three layers, each with a single job.
Command (user-facing entry point)
└── Agent (execution, constrained tools, preloaded skills)
└── Skill (domain knowledge, injected at startup)
For features touching >5 files or needing architecture decisions:
All four phases run in order. Each phase requires explicit user approval before the next phase begins.
# Agent frontmatter
skills: ["api-conventions", "project-patterns"]
Full skill content injected at agent startup. Use for knowledge the agent always needs.
Skills with user-invocable: true are called via /skill-name. Use context: fork for isolated execution that doesn't pollute main context.
| Scenario | Pattern |
|---|---|
| Feature > 5 files | /develop with orchestrator |
| Bug investigation | debugger agent |
| Quick exploration | scout agent (background) |
| Code review | reviewer agent |
| Simple task | Just do it directly |
/doctor if things feel off/compact at 50% — don't wait for auto-compactultrathink in prompts for maximum reasoning/rename for easy /resume/wrap-up to capture learningsCLAUDE_AUTOCOMPACT_PCT_OVERRIDE=50 for proactive compaction.mcp.json at project root)npx skills add rohitg00/pro-workflowStart with 3 MCPs. Add only for concrete needs.
Essential:
context7 — Live documentation lookupplaywright — Browser automation (most token-efficient)github — PRs, issues, code searchSee mcp-config.example.json for setup and curated recommendations.
| Command | Purpose | Cursor Equivalent |
|---|---|---|
/wrap-up | End-of-session ritual | wrap-up skill |
/learn-rule | Extract correction to memory | learn-rule skill |
/develop | Multi-phase feature build | orchestrate skill |
/doctor | Health check | — |
/commit | Smart commit with quality gates | smart-commit skill |
/insights | Session analytics and patterns | insights skill |
/replay | Surface past learnings | replay-learnings skill |
/handoff | Session handoff document | session-handoff skill |
/search | Search learnings by keyword | — |
/list | List all stored learnings | — |
/learn | Topic-by-topic Claude Code guide | — |
Deep dives on configuration and features:
| Guide | Topics |
|---|---|
references/settings-guide.md | All settings keys, permission modes, hierarchy, sandbox, env vars |
references/cli-cheatsheet.md | Every CLI flag, keyboard shortcut, slash command |
references/orchestration-patterns.md | Command > Agent > Skill architecture, frontmatter reference |
references/context-loading.md | CLAUDE.md monorepo loading, agent memory, skills discovery |
references/cross-agent-workflows.md | Claude Code + Cursor config mapping, background agents |
references/new-features.md | Voice mode, agent teams, checkpointing, new hook events |
references/daily-habits.md | Session habits, debugging tips, terminal setup, anti-patterns |
Complete AI coding workflow system from production use across Claude Code, Cursor, and beyond.
评论 (0)
暂无评论,成为第一个评论者吧!