codebase-attributes-plugin/skills/attributes-route/SKILL.md
Route to specialized agents (security, test, refactor, docs) based on codebase health attributes by severity. Use when the user has attribute data and wants automated remediation.
npx skillsauth add laurigates/claude-plugins attributes-routeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Route to specialized agents based on codebase health attributes.
| Use this skill when... | Use another approach when... |
|------------------------|------------------------------|
| Have attribute data and want automated remediation | Need to collect attributes first (use /attributes:collect) |
| Want severity-based agent prioritization | Know exactly which agent to use |
| Batch-fixing multiple health findings | Fixing a single specific issue |
| Parameter | Description |
|-----------|-------------|
| --dry-run | Show routing plan without spawning agents |
| --focus <category> | Only route for: docs, tests, security, quality, ci |
| --min-severity <level> | Minimum severity: critical, high, medium (default), low |
Read attribute data from one of:
.claude/attributes.json (if exists)/attributes:collect to generate fresh data--focus category if specified--min-severity thresholdactions arrayShow the routing plan:
Attribute-Based Routing
Based on attribute analysis, prioritize these agents in order:
1. security (priority 7): .env file committed; No security scanning in CI
2. test_runner (priority 3): No test directory or test files found
3. docs (priority 2): Missing CLAUDE.md
If --dry-run, stop here.
For each agent in priority order, spawn the agent with its findings as context:
| Attribute Category | Agent | Condition | |---|---|---| | security (critical/high) | security-audit | Always route first | | tests | test | When test gaps found | | quality (high+) | refactor | Anti-patterns exceed threshold | | quality (medium) | review | Code review suggestions | | docs | docs | Documentation gaps | | ci | configure | CI configuration gaps |
When spawning each agent, include:
After all agents complete, summarize:
| Context | Command |
|---------|---------|
| Preview routing | /attributes:route --dry-run |
| Security only | /attributes:route --focus security |
| Critical only | /attributes:route --min-severity critical |
| Full remediation | /attributes:route |
testing
Verify accumulated bug claims at upstream HEAD and dedup against trackers before filing issues. Use when filing upstream reports from backlogs, audit docs, or git-history findings.
documentation
Gate outward-bound text (upstream issues, docs, PR bodies) through isolated haiku fresh-reader critique before publishing. Use when an artifact must survive a reader with zero project context.
tools
Suggest improvements to SKILL.md content, descriptions, or tool config from eval results. Use when raising pass rates, fixing triggering, or iterating on a skill after evaluation.
tools
deadbranch CLI for stale-branch cleanup — dry-run preview, TUI or non-interactive delete, protects main/develop/WIP. Use when asked to clean up branches, prune branches, or remove stale branches.