claude-consult
Consult Claude specialist agents during implementation for codebase understanding, pattern checking, security review, debugging help, and more. Use this skill whenever you're unsure about conventions, stuck on a failure, or need expert input before writing code. Does not replace the formal review gates in agent-loops — this is for mid-implementation consultation.
What this skill does
# Claude Consult Get expert help from Claude specialist agents during implementation. Each agent has domain-specific skills pre-loaded and tools scoped to its role. **This is NOT a replacement for the review gates.** The `agent-loops` skill defines formal code review (`specialist-review`) and test audit (`diff-test-audit`) gates that run after implementation. This skill is for asking questions **during** implementation — before you've written code, while you're writing it, or when you're stuck. ## When to Use - "How does this module work?" — before implementing - "Does my approach match existing conventions?" — while implementing - "Is this pattern secure?" — before committing to a design - "Why is this test failing?" — when stuck - "What do the testing standards say about X?" — before writing tests - "Is this component accessible?" — during UI work ## How to Invoke ```bash claude -p --agent <agent-name> "<your question>" ``` All agents run headless (`-p` / print mode). They read the codebase, apply their loaded skills, and return an answer to stdout. Capture or pipe as needed: ```bash # Direct invocation claude -p --agent debugger "Why is test_auth_flow failing in src/auth/tests.py?" # Capture to variable ANSWER=$(claude -p --agent security-auditor "Is the input validation in src/api/handler.py safe?") # Save to file claude -p --agent architect-reviewer "Does adding a cache layer between api and db match the existing architecture?" > /tmp/arch-advice.md ``` ## Agent Roster ### Codebase Understanding | Agent | Use when you need to... | Skills loaded | |---|---|---| | `search-specialist` | Find where something is defined or called | codanna-codebase-intelligence | | `architect-reviewer` | Evaluate module boundaries and dependencies | system-design, api-design-patterns | | `docs-architect` | Understand existing documentation structure | documentation-production, code-explanation | ### Code Quality & Patterns | Agent | Use when you need to... | Skills loaded | |---|---|---| | `code-reviewer` | Check if code follows project conventions | code-quality-workflow, testing-anti-patterns, secure-coding-practices | | `refiner` | Get suggestions for improving code quality | code-quality-workflow | | `rest-expert` | Design or check REST API patterns | api-design-patterns | ### Security | Agent | Use when you need to... | Skills loaded | |---|---|---| | `security-auditor` | Full security review of a code path | owasp-top-10, secure-coding-practices, vibe-security, security-testing-patterns | | `owasp-top10-expert` | Check against OWASP Top 10 specifically | owasp-top-10, secure-coding-practices, vibe-security | | `penetration-tester` | Identify exploitable vulnerabilities | security-testing-patterns, owasp-top-10, threat-modeling-techniques | | `jwt-expert` | Review JWT/auth token handling | secure-coding-practices | | `compliance-auditor` | Check regulatory compliance | secure-coding-practices, owasp-top-10 | ### Testing | Agent | Use when you need to... | Skills loaded | |---|---|---| | `test-automator` | Plan test strategy or check coverage approach | test-review, python-testing-patterns, testing-anti-patterns | | `vitest-expert` | Vitest-specific test patterns | testing-anti-patterns | ### Debugging | Agent | Use when you need to... | Skills loaded | |---|---|---| | `debugger` | Investigate a test failure or error | systematic-debugging, root-cause-tracing | ### Performance | Agent | Use when you need to... | Skills loaded | |---|---|---| | `performance-engineer` | Find bottlenecks in code paths | workflow-performance, python-performance-optimization, react-performance-optimization | | `frontend-optimizer` | Optimize frontend bundle/rendering | react-performance-optimization, design-system-architecture | | `performance-monitor` | Set up or check monitoring/observability | workflow-performance | ### Frontend & UI | Agent | Use when you need to... | Skills loaded | |---|---|---| | `ui-ux-designer` | Review UI for usability and accessibility | ux-review, accessibility-audit, design-system-architecture | | `component-architect` | Design component APIs and composition | design-system-architecture, typescript-advanced-patterns | | `interaction-designer` | Review interaction patterns and states | ux-review, accessibility-audit | | `state-architect` | Choose or review state management approach | react-performance-optimization, typescript-advanced-patterns | | `react-specialist` | React-specific patterns and optimization | react-performance-optimization, typescript-advanced-patterns, testing-anti-patterns | | `tailwind-expert` | Tailwind styling and responsive design | design-system-architecture, accessibility-audit | ### Language Specialists | Agent | Use when you need to... | Skills loaded | |---|---|---| | `python-pro` | Python idioms, async, decorators | async-python-patterns, python-testing-patterns, python-performance-optimization | | `rust-pro` | Ownership, lifetimes, traits | test-driven-development | | `typescript-pro` | Advanced types and type safety | typescript-advanced-patterns, testing-anti-patterns | | `javascript-pro` | JS/Node.js async and cross-runtime | testing-anti-patterns, typescript-advanced-patterns | | `sql-pro` | Query optimization and schema design | database-design-patterns | ### Infrastructure | Agent | Use when you need to... | Skills loaded | |---|---|---| | `cloud-architect` | AWS/Azure/GCP architecture decisions | terraform-best-practices, kubernetes-deployment-patterns, gitops-workflows | | `kubernetes-architect` | K8s deployment and service mesh | kubernetes-deployment-patterns, kubernetes-security-policies, helm-chart-patterns, gitops-workflows | | `terraform-specialist` | IaC modules and state management | terraform-best-practices | ### Data | Agent | Use when you need to... | Skills loaded | |---|---|---| | `database-admin` | DB operations, backup, replication | database-design-patterns | | `database-optimizer` | Slow queries, indexing, N+1 problems | database-design-patterns | | `postgres-expert` | Postgres-specific schemas and migrations | database-design-patterns | ### Documentation | Agent | Use when you need to... | Skills loaded | |---|---|---| | `mermaid-expert` | Generate architecture/flow diagrams | documentation-production | | `tutorial-engineer` | Write tutorials and how-to guides | documentation-production, code-explanation | | `technical-writer` | Write clear technical documentation | documentation-production, code-explanation | | `reference-builder` | Generate API/config reference docs | documentation-production | ### Coordination & Meta | Agent | Use when you need to... | Skills loaded | |---|---|---| | `orchestrator` | Break down complex tasks | task-orchestration, dispatching-parallel-agents | | `prompt-engineer` | Craft or improve prompts for AI features | writing-skills | | `learning-guide` | Understand a concept or pattern | code-explanation | ## Operating Rules ### 1. Consult, don't delegate implementation These agents advise — they don't write your code. Read the answer, apply it yourself. The agent may suggest approaches, but **you** implement them. ### 2. Scope your questions Bad: `"Review everything in src/"` Good: `"Is the input validation in src/api/handler.py:45-60 safe against injection?"` Narrow questions get better answers and use fewer tokens. ### 3. Don't replace review gates Consulting `security-auditor` during implementation doesn't skip the formal `specialist-review` gate afterward. The review gates exist for independent verification — consulting during implementation is for getting guidance early. ### 4. Use the cheapest agent that works For factual lookups (where is X, what does the standard say), prefer `search-specialist` or the language-specific agents. Reserve `security-auditor`, `debugger`, and `performance-engineer` for questions that need deeper analysis. ### 5. One question per invocation Each `claude -p --agent` call is a cold start. Do
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.