9thlevelsoftware/legion/intent-router
- community
Checking that the SKILL.md file is still in the repository.
Interprets --just-* and --skip-* command flags for /legion:build and /legion:review, validates flag combinations against rules, and resolves the matching team template from intent-teams.yaml. Use when the user passes intent flags to build or review commands, asks about flag combinations, or needs to filter agent teams by intent.
Install
npx vskill@latest install 9thlevelsoftware/legion/intent-routerSKILL.md
Intent Router
Interprets semantic intent flags (--just-* and --skip-*) to route execution to specific agent teams and filter criteria. Validates flag combinations, resolves templates from intent-teams.yaml, and produces execution instructions.
Used by /legion:build and /legion:review when intent flags are present.
Section 1: Intent Flag Parsing
Extract and normalize intent flags from command arguments.
parseIntentFlags(arguments)
Supported Flags:
| Flag | Intent | Description | |
|---|---|---|---|
--just-harden | harden | Security audit mode | |
--just-document | document | Documentation-only mode | |
--just-security | security-only | Security review mode (review command only) | |
--skip-frontend | skip-frontend | Exclude frontend/UI tasks | |
--skip-backend | skip-backend | Exclude backend/API tasks |
Parsing Rules:
- Equals syntax supported:
--just-harden=trueor--just-harden - Multiple --just-* flags detected: Flag as conflict (only one primary intent allowed)
- Case insensitive:
--JUST-HARDENnormalizes to--just-harden - Unknown flags fail fast (strict validation — no silent warning):
- The authoritative set of valid flags is
.planning/config/intent-teams.yamlunderintents.*keys (plus the global flags listed in this section's Supported Flags table). - If an arg begins with
--and is not in that set: - Emit a VALIDATION error, halt the command.
- Suggest the closest valid flag using a Levenshtein distance ≤ 2 against the union of declared intent flag names. Format:
Unknown flag: --just-hardne. Did you mean --just-harden? - If no candidate is within distance 2: list the full valid-flag set and exit.
- Escape hatch:
--unsafe-unknown-flagsopts into permissive mode (emit an INFO log for each unknown flag and continue). This flag MUST be passed explicitly — it is never the default. - Rationale: silent-drop of a typo flag (e.g.,
--just-hardne→ build proceeds without hardening) has been the observed failure mode. Fail fast unless the user has explicitly asked for forward-compat behavior. - Cross-reference:
validateFlagCombinationin Section 2 follows the same fail-fast contract.
- Duplicate flags: Deduplicate, use first occurrence
Implementation:
Section 2: Validation Engine
Validate flag combinations against rules from intent-teams.yaml.
validateFlagCombination(intents, command)
Validation Rules (from intent-teams.yaml):
- Mutual Exclusion: Certain flags cannot be combined
- Command Context: Some flags only valid for specific commands
- Redundancy Detection: Flag combinations that make no sense
- Empty Result Detection: Flags that would result in no work
Implementation:
Error Message Format
Section 3: Team Template Resolution
Load and resolve team templates from intent-teams.yaml.
loadIntentTeams()
resolveTeamTemplate(intentName)
resolveFilterCriteria(intentName)
mapDomainsToAgents(domains)
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/intent-router/SKILL.md
Popularity
- Repository stars
- 62
- Repository forks
- 7
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/9thlevelsoftware/legion/intent-router)