MCPInstall

command-guide

Claude Code Command Selection Guide - Automatically recommend and select the right commands, agents, and skills in Claude Code. Use when: (1) user is unsure which command or tool to use, (2) needs to decide which agent/skill best fits the current task, (3) querying usage scenarios for /plan, /tdd, /compact, /loop and other commands, (4) understanding when to invoke planner, code-reviewer, build-error-resolver and other agents, (5) needs command cheat sheet or decision flowchart. Triggers: "which command to use", "which agent", "command selection", "how to use /plan", "when to use /compact", "agent selection guide", "command cheat sheet", "skill recommendation".

Installs
512
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/alirezarezvani/claude-skills --skill command-guide
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads command-guide automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Claude Code Command Selection Guide

This skill helps you choose the most appropriate command, agent, or skill for different scenarios.

Quick Decision Flowchart

graph TD
    A[User Request] --> B{Request Type?}
    B -->|New Feature| C[/plan]
    B -->|Bug Fix| D[/tdd or build-error-resolver]
    B -->|Code Review| E[/code-review or code-reviewer agent]
    B -->|Testing| F[/e2e or tdd-guide agent]
    B -->|Context Too Long| G[/compact]
    B -->|Documentation| H[/docs or docs-lookup agent]
    B -->|Looping Task| I[/loop]
    B -->|Security Review| J[security-reviewer agent]

    C --> K[planner agent]
    D --> L{Build Failed?}
    L -->|Yes| M[build-error-resolver]
    L -->|No| N[tdd-guide]
    E --> O[code-reviewer]
    F --> P[e2e-runner]

1. Built-in Slash Commands

Session Management Commands

CommandUse CaseExample
/compactContext too long (>150K tokens), slow response, task phase transition/compact or auto-trigger
/clearStart fresh conversation, clear history/clear
/loopPeriodic task execution, automated looping work/loop 5m check build status
/helpView help, learn commands/help
/fastNeed faster response (Opus 4.6 only)/fast
/modelSwitch model/model sonnet

Development Workflow Commands

CommandUse CaseActivation Timing
/planStart new feature, architecture refactor, complex tasksEnter Plan Mode
/tddWrite tests, TDD development workflowWhen test guidance needed
/e2eE2E testing, critical user flow verificationWhen browser testing needed
/code-reviewCode quality reviewAfter writing code
/build-fixBuild failure, type errorsWhen build fails
/learnExtract patterns from session, learningBefore session ends
/skill-createCreate new skill from git historyWhen repeating patterns found

Documentation & Query Commands

CommandUse CaseExample
/docsUpdate project documentation/docs
/update-codemapsUpdate code maps/update-codemaps
/rememberSave memory to memory system/remember user prefers concise output
/tasksView task list/tasks

2. Agents Selection

Development Workflow Agents

AgentTrigger ConditionPurpose
plannerComplex feature request, architectural decisionCreate implementation plan
architectSystem design, tech stack selectionArchitecture analysis and decisions
tdd-guideNew feature, bug fixTDD workflow guidance
code-reviewerInvoke immediately after writing codeCode quality review
security-reviewerHandling auth, API, sensitive dataSecurity vulnerability detection

Problem Solving Agents

AgentTrigger ConditionPurpose
build-error-resolverInvoke immediately when build failsFix build/type errors
e2e-runnerCritical user flows, before PRE2E test execution
refactor-cleanerCode maintenance, dead code cleanupDead code detection and cleanup
doc-updaterUpdate docs, codemapsDocumentation sync

Research & Exploration Agents

AgentTrigger ConditionPurpose
ExploreCodebase exploration, file findingQuick codebase exploration
general-purposeComplex multi-step tasksGeneral task handling
docs-lookupQuery library/framework docsGet latest API documentation

3. Skills Selection

Workflow Skills

SkillTrigger TimingPurpose
tdd-workflowDeveloping new feature/fixing bugComplete TDD workflow guidance
verification-loopAfter feature completion, before PRComprehensive verification (build/test/lint/security)
strategic-compactLong session, context pressureGuide when to manually /compact

Architecture & Pattern Skills

SkillTrigger TimingPurpose
frontend-patternsFrontend developmentReact/Next.js/Vue best practices
backend-patternsBackend developmentAPI/service architecture patterns
api-designAPI designRESTful/API design standards
mcp-server-patternsMCP server developmentMCP configuration and patterns

Testing Skills

SkillTrigger TimingPurpose
e2e-testingE2E testing needsPlaywright test generation
security-reviewSecurity review needsOWASP Top 10 detection

Research Skills

SkillTrigger TimingPurpose
deep-researchNeed deep researchMulti-round search and research
exa-searchNeed web searchWeb content search
documentation-lookupQuery library docsContext7 documentation query

4. Scenario Decision Matrix

By Task Phase

PhaseRecommended Tool CombinationReason
Requirements Analysisplanner + ExplorePlan first, explore later
Architecture Designarchitect + api-design skillProfessional architecture guidance
Pre-Developmenttdd-guide + tdd-workflow skillTest first
During DevelopmentDirect edit + quick iterationStay in flow
Post-Developmentcode-reviewer + verification-loopQuality gate
Testing Phasee2e-runner + e2e-testing skillComplete test coverage
Before PRsecurity-reviewer + verification-loopFinal verification
Build Failurebuild-error-resolverFocused fix

By Problem Type

ProblemInvoke ImmediatelyNote
Build failurebuild-error-resolverMinimal changes, quick fix
Type errorbuild-error-resolverTypeScript specialist
Bug fixtdd-guideWrite test then fix
Security vulnerabilitysecurity-reviewerOWASP detection
Poor code qualitycode-reviewerImmediate review
Missing documentationdoc-updaterAuto update
Dead coderefactor-cleanerSafe cleanup

By Development Type

Development TypeSkills Combination
Frontend featurefrontend-patterns + tdd-workflow
Backend APIbackend-patterns + api-design + tdd-workflow
MCP servermcp-server-patterns + tdd-workflow
Databasedatabase-reviewer agent
Security featuresecurity-reviewer + security-review skill

5. Parallel Execution Strategy

Parallelizable Scenarios

Recommended: Launch multiple independent tasks simultaneously

Scenario: Preparing PR after code completion

  • Agent 1: code-reviewer (code quality)
  • Agent 2: security-reviewer (security review)
  • Agent 3: e2e-runner (E2E tests)

Scenario: Large refactor analysis

  • Agent 1: architect (architecture analysis)
  • Agent 2: Explore (code exploration)
  • Agent 3: refactor-cleaner (dead code detection)

Sequential Execution Required

Cannot parallelize: Dependencies exist

Scenario: Fixing build error

  • Sequence: build-error-resolver -> test verification -> code-reviewer

Scenario: New feature development

  • Sequence: planner -> tdd-guide (write tests) -> implementation -> code-reviewer

6. Auto-Trigger Rules

Invoke Without User Request

SituationAuto Action
Code written/modifiedImmediately invoke code-reviewer
Build failsImmediately invoke build-error-resolver
Complex feature requestImmediately invoke planner
Handling auth/sensitive dataImmediately invoke security-reviewer
New feature/bug fixImmediately invoke tdd-guide
Architectural decisionImmediately invoke architect

7. Context Management Timing

IndicatorTrigger /compact
Token > 150KImmediately compact
Slow responseSuggest compact
Task phase switchCompact at boundary
Major milestone completedCompact then continue
Debugging ends -> new taskClear debug traces

Best Practices:

  • Compact after research, before implementation (preserve plan)
  • Compact after milestone completion (clear intermediate state)
  • Don't compact mid-implementation (lose variables/paths)

8. Command Cheat Sheet

Development Workflow:
/plan        -> Enter planning mode (complex tasks)
/tdd         -> TDD workflow
/e2e         -> E2E testing
/code-review -> Code review
/build-fix   -> Fix build

Session Management:
/compact     -> Compact context
/clear       -> Clear session
/loop        -> Looping task
/fast        -> Fast mode

Documentation & Memory:
/docs        -> Update docs
/remember    -> Save memory
/tasks       -> View tasks

Help:
/help        -> View all commands

9. Usage Examples

Example 1: New Feature Development

User: Add user authentication feature

Workflow:

  1. /plan -> planner agent creates plan
  2. tdd-guide -> write tests
  3. Implementation -> edit code
  4. code-reviewer -> code review
  5. security-reviewer -> security review (auth sensitive)
  6. e2e-runner -> E2E tests
  7. /compact -> compact after milestone completion

Example 2: Build Failure

User: npm run build failed

Workflow:

  1. build-error-resolver -> analyze error, minimal fix
  2. Verify build success
  3. code-reviewer -> check fix quality

Example 3: Code Refactoring

User: Refactor authentication module

Workflow:

  1. architect -> architecture analysis
  2. planner -> implementation plan
  3. refactor-cleaner -> dead code detection
  4. tdd-guide -> ensure test coverage
  5. Implementation -> refactor code
  6. verification-loop -> comprehensive verification

Core Principles:

  1. Plan first, implement later - Use /plan for complex tasks
  2. Test first - Use tdd-guide for new features
  3. Review immediately after coding - Use code-reviewer when code complete
  4. Fix build immediately when failed - Use build-error-resolver
  5. Review sensitive code - Use security-reviewer for auth/API
  6. Verify comprehensively before PR - Use verification-loop

FAQ

What does the command-guide skill do?

Claude Code Command Selection Guide - Automatically recommend and select the right commands, agents, and skills in Claude Code. Use when: (1) user is unsure which command or tool to use, (2) needs to decide which agent/skill best fits the current task, (3) querying usage scenarios for /plan, /tdd, /compact, /loop and other commands, (4) understanding when to invoke planner, code-reviewer, build-error-resolver and other agents, (5) needs command cheat sheet or decision flowchart. Triggers: "which command to use", "which agent", "command selection", "how to use /plan", "when to use /compact", "agent selection guide", "command cheat sheet", "skill recommendation".

How do I install command-guide?

Run npx skills add https://github.com/alirezarezvani/claude-skills --skill command-guide in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/command-guide/ (personal) or .claude/skills/command-guide/ (project).

Which AI agents can use command-guide?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is command-guide safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains command-guide?

It is published by alirezarezvani in alirezarezvani/claude-skills. It has 512 recorded installs.

More from alirezarezvani/claude-skills

View all →

engineering-skills

alirezarezvani/claude-skills

Index of the engineering-team skills bundle for Claude Code, Codex, Gemini CLI, Cursor, OpenClaw, and 6 more tools. Architecture, frontend, backend, QA, DevOps, security, AI/ML, data engineering, Playwright, Stripe, AWS, MS365 (stdlib-only Python tools). Use when browsing or choosing among engineering-team role skills — load only the one specialist SKILL.md you need, never bulk-load the bundle.

Backend & APIs2.4K installs

finance-skills

alirezarezvani/claude-skills

Router/index for the finance skills bundled in this plugin: financial-analyst (ratio analysis, DCF valuation, budget variance, rolling forecasts), saas-metrics-coach (ARR/MRR, churn, CAC/LTV, NRR, quick ratio) and month-end-close (close calendar, reconciliations, flux review). Use when a finance request doesn't obviously match one skill and you need to pick the right one (e.g., 'analyze these financials', 'how healthy are my SaaS metrics').

Business & Finance2.3K installs

marketing-skills

alirezarezvani/claude-skills

Directory and router for the marketing skills library. Use when you need to find the right marketing skill for a task, see what marketing capabilities exist, or get oriented in this plugin. 44 specialist skills across 8 pods (content, SEO + AEO, CRO, channels, growth, intelligence, sales enablement, ops), 59 stdlib Python tools. Routes to one skill — it does not execute marketing work itself.

Marketing & SEO2.3K installs

business-growth-skills

alirezarezvani/claude-skills

Router/index for the 4 business & growth skills bundled in this plugin: customer-success-manager (health scoring, churn risk, expansion), sales-engineer (RFP analysis, competitive matrices, PoC planning), revenue-operations (pipeline, forecast accuracy, GTM efficiency), and contract-and-proposal-writer. Use when a growth/revenue request doesn't obviously match one skill and you need to pick the right one (e.g., 'which accounts are at risk', 'should we bid on this RFP').

Business & Finance2.2K installs

engineering-advanced-skills

alirezarezvani/claude-skills

Index of 37 advanced engineering agent skills for Claude Code, Codex, Gemini CLI, Cursor, OpenClaw. Use when browsing or choosing among the POWERFUL-tier engineering skills: agent design, RAG, MCP servers, CI/CD, database design, observability, security auditing, changelog/release automation, reliability (SLO/chaos/flags/operators), platform ops.

AI & Agents2K installs

product-skills

alirezarezvani/claude-skills

Use when coordinating product work across the 12 bundled product sub-skills (RICE, OKRs, UX research, design tokens, competitive teardown, analytics, experiments, discovery, roadmaps, spec-to-repo, landing pages, SaaS scaffolding) or the 4 standalone product-team plugins (user stories, Apple HIG, code-to-PRD, research summarizer). Triggers on 'help me prioritize', 'plan a product experiment', 'we ship features nobody uses', 'run the discovery loop', 'is our OST sound'. Forks context to route to one sub-skill via a deterministic signal router and returns a digest; can also drive a continuous-discovery loop (Torres cadence tracker + OST linter as machine gates) or a full goal→plan→execute→verify→close run through the repo-wide agent-harness. Distinct from project-management (how to deliver vs what to build), marketing/landing (from-scratch pages), and engineering/agent-harness (the generic loop engine this orchestrator plugs into).

Popular code quality & workflow skills

View category →

grill-me

mattpocock/skills

A relentless interview to sharpen a plan or design.

Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

handoff

mattpocock/skills

Compact the current conversation into a handoff document for another agent to pick up.

domain-modeling

mattpocock/skills

Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.

codebase-design

mattpocock/skills

Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.

diagnosing-bugs

mattpocock/skills

Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.