Route ambiguous Phoenix/LiveView/Ecto work requests to the correct /phx: workflow. Use when intent is unclear, mixed (bug fix vs. refactor), or scope is ambiguous.
---
name: intent-detection
description: "Route ambiguous Phoenix/LiveView/Ecto work requests to the correct /phx: workflow. Use when intent is unclear, mixed (bug fix vs. refactor), or scope is ambiguous."
effort: medium
user-invocable: false
---
# Intent Detection — Workflow Routing
When user describes work WITHOUT specifying a `/phx:` command, analyze their intent and suggest the appropriate workflow BEFORE starting work.
**Hard guard — check FIRST**: if the message starts with any slash command
(`/phx:`, `/ecto:`, `/lv:`, or any other `/command`), this skill does not apply.
Follow the invoked command directly — no routing analysis, no suggestion, zero
output from this skill.
## Routing Table
| Signal | Detected Intent | Suggest |
|--------|----------------|---------|
| "bug", "error", "crash", "failing", "broken", stack trace | Bug investigation | `/phx:investigate` |
| "brainstorm", "explore idea", "not sure what I need", "vague idea", "let's discuss", "how to approach" | Ideation/requirements | `/phx:brainstorm` |
| "add", "implement", "build", "create" + multi-step | New feature | `/phx:plan` |
| "review", "check", "audit" code | Code review | `/phx:review` |
| "fix" + small/specific scope | Quick fix | handle directly or `/phx:quick` |… install to load the full skill