From claude-resources
Decision tree for routing tasks to the right agent and skills. Loaded on session start. Use when unsure which agent applies.
npx claudepluginhub deandum/claude-resources --plugin go-skillsThis skill uses the workspace's default tool permissions.
<!-- meta-skill: skip-anatomy -->
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides agent creation for Claude Code plugins with file templates, frontmatter specs (name, description, model), triggering examples, system prompts, and best practices.
Route tasks to the right agent. Follow the first matching branch.
Cross-cutting: All agents load core/token-efficiency — compresses human-facing output, never specs or agent-to-agent artifacts. Use /compact to adjust level.
detected_languages in the session context. Agents read it directly; the tree does not need to branch on language.tester, not builder; "design a new HTTP API" → architect, not builder; "debug the failing test" → debugging + tester, not just tester).ops_enabled=true in session context — the opt-in ops-skills plugin. If disabled, report the action as a follow-up; do not execute. See the "Push, PR, release" branch at the bottom of the tree.Before recommending an external command or a third-party integration, read the session-start JSON for what's actually available on this machine:
available_tools — comma-joined CLI tools present from a fixed probe list: ast-grep, fd, rg, jq, yq, gh, docker, kubectl. When a task could use ast-grep or rg for code exploration, prefer the one that's present. When neither is present, fall back to Grep/Glob without complaint.missing_tools — the complement of available_tools. Use this only to explain why you're recommending a fallback ("ast-grep not installed, using Grep instead"). Do not ask the user to install anything unless they've asked for a setup plan.mcp_servers — comma-joined names of MCP servers configured for this user or project. When a task matches an MCP server's domain (e.g. browser automation and playwright is listed), surface the MCP option in your plan alongside the framework's native approach and let the user choose.user_skills — skill directory names installed at ~/.claude/skills/, outside this framework. Observational signal only: if a task clearly overlaps with a listed user skill, mention it once as "a related option" and proceed with the framework's own approach by default.user_agents — agent directory names at ~/.claude/agents/, outside this framework. Same treatment as user_skills.user_plugins — plugin names from the user's installed-plugins manifest (~/.claude/plugins/installed_plugins.json). Same treatment.Treat every field as potentially empty. A bare system with no MCP servers, no user extensions, and none of the probed CLI tools is a fully supported configuration — the framework's core flows do not depend on any of them. Never gate framework behavior on a third-party integration being present.
When a task arrives, follow the first matching branch:
/definecore/discovery → runs in parallel with critic during /definecore/project-structure + lang/project-initcore/api-design + lang/interface-designlang/clicore/error-handling + lang/*core/testing + lang/testingcore/code-review + lang/code-reviewcore/docker + core/observability + lang/*core/simplificationcore/debugging + core/testingcore/security (design-time); review-time covered by core/code-review §4core/performancecore/documentationcore/constitutionscout + critic in parallel) → core/constitution (Proposing Candidates) via /constitution-proposecore/git-workflowops-skills opt-in. Check ops_enabled in session context.ops_enabled=true: shipper → ops/git-remote, ops/pull-requests, ops/release, ops/registryops_enabled=false (default): report as follow-up; do not execute| Agent | When | Never |
|---|---|---|
| critic | First pass on any non-trivial task | Don't skip for "obvious" tasks |
| scout | Discovery of existing code during /define | Don't use for design or code writing |
| lead | Multi-step tasks, spec generation | Don't use for single-concern tasks |
| architect | Structure, interfaces, API design | Don't use for implementation |
| builder | Application code (handlers, services) | Don't use for tests or infra |
| cli-builder | CLI commands, flags, config | Don't use for non-CLI code |
| tester | Unit/integration tests, mocks | Don't modify app code |
| reviewer | Code review (read-only) | Don't use to fix code |
| shipper | Docker, logging, metrics, health | Don't modify business logic |