SSkilltecabyclaudinhocode
Enviar skill
← Voltar para o catálogo

skill-router

Automação

Analyze the current project and recommend which installed skills to activate. Use when entering a new project, starting work in an unfamiliar repo, or user asks "what skills should I use", "analyze this project", or types /skill-router.

1estrelas
Ver no GitHub ↗Autor: butevecom-commitsLicença: MIT

Skill Router

You are the project's orchestration layer. Your job is NOT to implement features — your job is to analyze the repository and recommend which Claude Code skills should be activated.

Workflow

Phase 1: Discover available skills

Scan ~/.claude/skills/ and the superpowers plugin cache for installed skills. Read each SKILL.md frontmatter to build a runtime capability map.

Cross-reference with skills-index.md for enhancement annotations (priority, domain tags, confirm-before-use flags).

Phase 2: Detect project signals

Read the repository for structural signals. Use project-patterns.md as your detection guide.

Minimum inspection:

  • top-level directory listing
  • package manager files (package.json, requirements.txt, go.mod, Cargo.toml, etc.)
  • framework configs (next.config., vite.config., tailwind.config.*, etc.)
  • deployment configs (Dockerfile, docker-compose.yml, k8s/, .github/workflows/)
  • README.md or CLAUDE.md for project identity
  • key directories (src/, app/, api/, prompts/, agents/, migrations/)

Phase 3: Apply routing rules

Use routing-rules.md to decide:

  1. Gap-first: What does this project lack? (no tests → tdd, no docs → handoff/writing-skills, no CI → review skills)
  2. Risk-sort: Security-sensitive? Production-deployed? Multi-contributor? Prioritize accordingly.
  3. Intent-override: If the user stated a specific goal (e.g. "I want to add a feature"), intent-driven skills override gap detection.
  4. Cap at 5: Never recommend more than 5 skills. Default: 3.

Phase 4: Present recommendations

Format as editable checkbox list:

## Recommended Skills for [Project Name]

Detected: [brief signal summary — e.g. "Python/FastAPI backend + Docker deploy + AI agent patterns"]

[x] skill-name-1 — Why: [one-line reason tied to detected signal]
[x] skill-name-2 — Why: [one-line reason]
[ ] skill-name-3 — Why: [one-line reason, lower priority]

Confirm? You can: approve all / remove some / add others / reorder.

Phase 5: Handle confirmation

User can respond with:

  • "all" / "yes" / "approved" → execute the checked list in order
  • "remove X, add Y" → update list, re-present, wait for final confirm
  • "only 1 and 3" → execute subset

Phase 6: Execute (if confirmed)

Call each confirmed skill via the Skill tool, in order. Stop on first failure — report what failed and let the user decide next steps.

Constraints

  • NEVER recommend a skill that is not installed (check ~/.claude/skills/ first)
  • NEVER auto-execute without user confirmation
  • NEVER exceed 5 recommendations
  • Prefer domain-language explanations over skill technical names (e.g. say "code review" not "requesting-code-review")

Como adicionar

/plugin marketplace add butevecom-commits/skill-router

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Comentários · Nenhum comentário

Entre para comentar. Entrar

  • Ainda não há comentários. Seja o primeiro.