From attention-router
USE THIS INSTEAD OF asking the user a clarifying question inline. Triggers WHEN you are about to write "Q1 —", "Should I X or Y?", "Before I proceed, do you want…", "A. … B. … C. … which?", or any other inline question that blocks the task on a user choice. Also triggers when you reach an architectural fork (irreversible / costly / multiple defensible answers). Sends the dilemma to the local attention-router; the router LLM drafts 3 options, runs a 5-persona council, and either auto-resolves silently or queues for the human via macOS notif + AttnTray popup. The user clicks one button instead of typing a paragraph back to you. Do NOT use for trivial choices (variable names, formatting), lookups answerable from code/docs, or anything resolvable by reading one more file.
How this skill is triggered — by the user, by Claude, or both
Slash command
/attention-router:ask-humanThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
If you are about to write any of these in your next response:
If you are about to write any of these in your next response:
Q1 — …? / Q2 — …?Should I X or Y?Before I proceed, do you want …A. … B. … C. … which one?Quick clarifications: / Some questions:Let me know if you'd prefer …STOP. This is exactly what ask_human is for. Do NOT write the question inline. Use the MCP tool below. The user has invested in installing the router specifically so they can answer with one click instead of reading a paragraph and typing.
The only legitimate inline questions are:
Everything else with 2-3 defensible options → ask_human.
You should ask when all of these are true:
You should NOT ask when:
Read / Grep / Bash call.If in doubt, lean toward NOT asking — the router will reject naked asks anyway, and an ignored question is worse than no question.
Before invoking the tool, write down in your head:
Call ask_human (provided by the attention-router MCP server):
ask_human({
dilemma: "<the tension in 1-2 sentences>",
context: "<concrete facts: paths, observations, ruled-out alternatives, ~500-2000 chars>",
project_id: "<repo or project name — used for rule scoping>",
// optional:
// verification_surface: "business_rule" | "visual" | "mixed" | "text",
// requested_human_seconds: 30,
// expires_in_seconds: 3600
})
The router's LLM drafts 3 distinct options from your dilemma + context — you do not need to pre-build them.
ask_human does a short poll (~30s) then returns:
queued. You don't need to wait inside the tool. Continue the rest of your task. When you finish your turn, the plugin's Stop hook (asyncRewake) waits in the background for the human's decision and wakes you with the resolution as a system-reminder — even hours later. No manual wait_for_decision call needed in the typical path.Three possible outcomes:
auto_resolved — the council was unanimous and the impact is low. The tool returns safe_default_option_id (A, B, or C). Proceed silently with that option. The human was not notified. Do not announce "I asked the router" — just continue the task.
decided / expired / skipped — the human responded (or didn't in time). The tool returns the choice (A|B|C or override text), or tells you the ask aged out / was deferred. Apply the choice and continue. If expired, fall back to the agent's original default_option_id.
timeout — 4 hours elapsed without a human decision. The tool returns the ask_id so you can call wait_for_decision({ask_id}) to keep waiting, or proceed with the agent default if the work is unblocked.
error / rejected — the router rejected the ask as too vague. The tool tells you what's missing (longer dilemma, more concrete context). Fix and retry once. If still rejected, fall back to direct conversation with the user.
For explicit fire-and-forget (rare), pass wait: false. You'll then need to call wait_for_decision({ask_id}) later.
wait_for_decision in a tight loop. The tool already polls — call it once.You're refactoring src/payment.ts and find the existing API uses callbacks while the rest of the codebase has migrated to async/await. Migrating it touches 12 files. Skipping it leaves a stylistic split. Both are defensible.
ask_human({
dilemma: "Migrate payment.ts to async/await (12-file blast radius) vs. leave callbacks for now and document the split — consistency vs. scope creep on a payment module.",
context: "src/payment.ts uses node-style callbacks (err, data) => . The rest of src/ is async/await since commit a3f12b4 (3 months ago). The payment module hasn't changed in 14 months. Tests cover the public API but not internals. The original task was 'add Apple Pay support' — payment.ts callback style is incidental to that.",
project_id: "billing-api"
})
If the impact is low and the council agrees, the router will likely auto_resolve to "leave callbacks, document the split" and you proceed. If the council splits or the loss-if-wrong is high, you wait for the human.
npx claudepluginhub sderosiaux/claude-plugins --plugin attention-routerProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
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.