/flagrare:intakefrom Flagrare
Ingests a ticket ID or URL, reads the full ticket via MCP/CLI, follows all referenced links (Notion, Figma, GitHub, etc.) using parallel subagents, synthesizes a context brief, grounds it in the codebase, then asks clarifying questions before handing off to planning.
Ships in Flagrare. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Turn a ticket reference into a planning-ready context brief before /flagrare:atdd-plan runs. The goal: every relevant fact is on the table and every ambiguity is resolved before a single line of implementation is planned.
Hard requirement. Before any other tool call, you (the executing model) MUST call /goal yourself, unless you were invoked through /flagrare:work-prep (see the skip rule below). This is not a suggestion to the user.
Why: intake's most common failure is stopping after it emits the context brief and never reaching the clarifying questions. Emitting a large artifact reads as "turn complete," and the only forcing function downstream (the AskUserQuestion call in Step 5) sits two steps past that natural stop. A /goal is a session-scoped Stop-hook: after every turn a fast evaluator checks your condition against the conversation and, if unmet, makes you continue instead of yielding. Set it before the brief exists, so it is already holding you in place when you emit it. (Grounded in docs/research/2026-06-11-claude-code-goal-anti-stall.md.)
Call /goal with a condition phrased as something your own output demonstrates, the evaluator cannot run tools or read files, it only judges what you have surfaced in the conversation:
The ticket and every referenced link have been read; a codebase-grounded context brief has been produced (with
## Codebase Findingspopulated); the 3-5 most blocking clarifying questions have been asked via theAskUserQuestiontool and answered (or the brief had no blocking ambiguity and a short overview was presented instead); and either/flagrare:atdd-planhas been invoked with the brief as input, or the user has explicitly chosen "Stop here". Stop after 12 turns if not met.
After setting the goal, create a Todo list (TodoWrite), one item per remaining step (read ticket, follow references, synthesise brief, ground in codebase, ask questions, hand off). The todo list tracks coverage; the goal prevents the harness from letting you stop. Both are required.
Skip rule (nested under work-prep): if the args passed to this skill start with [work-prep], do NOT call /goal, /flagrare:work-prep already set a session-spanning goal, and only one goal can be active per session (a second would silently replace the first). Still create the Todo list.
If /goal is unavailable (it reports the workspace is untrusted, or disableAllHooks / allowManagedHooksOnly is set): proceed without it, but treat the no-yield notes in Steps 4-5 as mandatory rather than belt-and-suspenders.
Before anything else, check what tools and MCPs are available in this session. List every MCP whose name contains any of: linear, jira, asana, shortcut, trello, notion, figma, drive, github, gitlab, confluence, browser, playwright, puppeteer, fetch, web, obsidian.
Build a capability map:
available MCPs: [list every matched tool]
available CLIs: run `which linear jira shortcut gh glab notion 2>/dev/null`, note which exist
browser tools: [any MCP or tool that can load a URL with JS/auth, playwright, puppeteer, browser MCP]
file system: [local Obsidian vault paths if known]
Use this map to pick the best tool for every fetch in Steps 2-3. A browser/automation MCP beats WebFetch for pages behind login. A first-party MCP beats a browser tool. An authenticated CLI beats an unauthenticated API call.
Accept any of:
INT-42, ch12345, PROJ-99https://linear.app/…, https://company.atlassian.net/…Identify the platform:
| Signal | Platform |
|---|---|
linear.app URL or [A-Z]{2,}-[0-9]+ | Linear |
atlassian.net/jira URL | Jira |
app.asana.com URL | Asana |
app.shortcut.com URL or ch[0-9]+ | Shortcut |
trello.com URL | Trello |
If the platform is ambiguous, ask before proceeding.
When to call directly vs. spawn a subagent: If the platform MCP is available in your session (e.g. you can call mcp__jira__getIssue yourself), call it directly -- there is no benefit to adding a subagent layer for a single tool call you already have access to. The subagent path exists for two cases: (1) the ticket has a large comment history that would bloat your context, or (2) the MCP is unavailable and the agent needs to walk a fallback chain (CLI, then WebFetch). Use judgement: small ticket + MCP available = call directly; large ticket or no MCP = subagent.
Call the platform MCP tool directly. Extract: title, description, acceptance criteria, labels/tags, priority, assignee, linked issues, attached files, and every URL mentioned in the body or comments. Keep the raw structured output for Steps 3-4.
Spawn a Ticket Reader subagent with model: "sonnet" and this brief:
Read the full ticket [ID/URL] and return: title, description, acceptance criteria, labels/tags, priority, assignee, linked issues, attached files, and every URL mentioned in the body or comments.
Use the best available tool in this order:
- MCP tool for the platform (e.g.
mcp__linear__getIssue,mcp__jira__getIssue,mcp__asana__getTask,mcp__shortcut__getStory)- Platform CLI (
linear,jira,shortcut), check if available withwhich <cli>- WebFetch on the ticket URL directly
Return raw structured output. Do not summarise or interpret.
Wait for the subagent. If it returns an error (no MCP, no CLI, auth required), surface it and ask the user to paste the ticket body manually before continuing.
Running work-prep on a ticket means the user is working on it now, so the board should say so before the brief or the plan exists. If the args started with [work-prep], move the ticket to the started stage right after reading it, following <plugin root>/lib/tickets/LIFECYCLE.md (the plugin root is two directories above this skill's base directory): assign it to the user if it is unassigned, map started to the project's real status, move it only forward, and say it in one line (SKU-123: To Do → In Progress). Don't ask; this move is automatic. A ticket assigned to someone else, or already past started, gets a one-line note instead.
Standalone intake (no prefix) is research, not a start: report the ticket's status in the brief and move nothing.
Parse the ticket output for every linked resource. Spawn one Reference Reader subagent per resource, all in parallel, using model: "sonnet". Each subagent uses the best tool from the capability map built in Step 0:
| Resource type | Preferred tool | Fallback |
|---|---|---|
| Another ticket (same or different platform) | Ticket Reader subagent (as in Step 2) | , |
| Notion page | mcp__notion__* MCP | Browser MCP → WebFetch |
| Figma file / frame | mcp__figma__* MCP | Browser MCP → WebFetch |
| GitHub PR / issue / file | gh CLI or mcp__github__* | WebFetch |
| GitLab MR / issue | glab CLI or mcp__gitlab__* | WebFetch |
| Google Drive / Docs | mcp__drive__* MCP | Browser MCP → WebFetch |
| Confluence page | mcp__confluence__* MCP | Browser MCP → WebFetch |
| Obsidian note | Read from local filesystem path | WebFetch if it is a published URL |
| Any other URL (articles, docs, specs, API refs) | Browser MCP (handles JS-heavy pages) | WebFetch |
Pass each subagent the relevant section of the capability map so it knows what is available without re-discovering it.
Each Reference Reader subagent brief:
Fetch [URL / reference] and return the content most relevant to a software engineering planning session. Extract: key decisions, requirements, constraints, design specs, open questions. Summarise to ≤300 words, keep specifics (names, numbers, states) verbatim; cut filler.
Collect all results. If a resource is inaccessible (auth wall, 404, private), note it explicitly rather than silently skipping.
Merge ticket + all reference content into this structure:
Context Brief, [Ticket ID]: [Title]
Platform: [Linear / Jira / …] Priority: [P0-P3 / Critical / …] Assignee: [name]
## What
[1-3 sentences: what is being built or fixed]
## Why
[1-2 sentences: business or user motivation from ticket + linked docs]
## Acceptance Criteria
[Verbatim or lightly cleaned list. If absent, flag as ⚠ undefined, do not invent.]
## Constraints & Dependencies
[Technical constraints, blocked-by tickets, platform requirements, performance budgets]
## Referenced Material
[One line per followed reference: what it contributed]
## Codebase Findings
[Populated by Step 4.5 below, leave empty for now]
## Open Questions (internal working list: NOT a deliverable)
[Everything underspecified, contradictory, or missing. These feed Step 5's AskUserQuestion call. Do NOT print them to the user as a prose list and then wait, listing them reads as "asked" and is the exact behaviour that stalls intake.]
Do not end your turn after emitting the brief. The brief is internal scaffolding, not a finished deliverable, continue straight into Step 4.5 in the same turn. Emitting the brief and stopping is this skill's single most common failure; the /goal set at the top exists to catch it, but do not rely on the goal alone.
Before asking questions, see what the code actually says. Questions asked without codebase grounding are abstract; questions asked after exploration are specific and unblock real ambiguities ("the utility you'd want already exists at src/x.ts, extend it or replace it?").
Skip codebase grounding when any of these is true:
git rev-parse --show-toplevel fails, not in a repogit ls-files | grep -vE '\.(md|txt|json|ya?ml|toml|gitignore|cff)$' | head -1 returns nothing[INFRA] rotate AWS keys) and exploration adds no valueInvoke /flagrare:codebase-explore with the ## What section as input plus a one-paragraph summary derived from the brief. Capture the returned findings -- file paths with line numbers, existing utilities, prior branches/PRs, related patterns.
Hard requirement: use the skill, not a substitute. Do not replace this with a generic Explore agent or manual grep commands. /flagrare:codebase-explore encodes a specific methodology (prior-branch check, convention mapping, utility inventory, dependency tracing) and produces output in the structure that /flagrare:atdd-plan expects downstream. A custom Explore prompt may cover similar ground but skips steps and produces findings in an unpredictable shape, which degrades plan quality.
Populate the brief's ## Codebase Findings section with the most planning-relevant items (≤8 bullets, full exploration output is fine for the consuming skill but the brief stays scannable).
If the exploration surfaces new ambiguities (e.g., "two utilities do similar things, which is canonical?"), add them to ## Open Questions.
From Open Questions, select the 3-5 most blocking: things that, if unanswered, would force the plan to make assumptions or revisit scope mid-build.
Now that the brief is codebase-grounded, prefer concrete questions over abstract ones:
src/billing/quote.ts:84 already handles the discount math, should the new flow extend it or fork it?" (not: "where should the discount logic live?")src/onboarding/wizard.tsx is currently 2 steps, adapt the existing component or build new?"INT-41 (which this depends on) is not merged yet, plan against current API or the incoming one in branch feat/int-41?"Do not ask about things inferable from the ticket. Do not ask for information already in the brief or codebase findings.
REQUIRED: when you have blocking questions, ask them via the AskUserQuestion tool, not as prose. Freeform "I'd like to confirm X..." text leaves the user without a clear answering surface and frequently results in the model stopping with no answer received.
Batch all 3-5 questions into a single AskUserQuestion invocation. For each question, supply 2-4 distinct options when the choice is genuinely bounded (e.g., "extend the existing utility / fork it / wrap it / replace it"). Open-ended judgement calls without obvious options should be phrased as a question with one most-likely option plus alternatives.
After the user answers, fold answers into the brief and clear Open Questions before proceeding to Step 6.
If the codebase-grounded brief is complete and no blocking ambiguity remains, do not silently proceed. Present a short overview to the user, 4-6 lines summarising what the ticket is, what the code currently does in that area, and what the plan will most likely need to build, and then explicitly prompt for the next step (see Step 6).
Once the brief is complete (Open Questions resolved, or explicitly deferred by the user), always end intake with a tool-driven next-step prompt: exactly like plan mode ends with an accept/reject tool, not prose.
Present:
Overview: 4-6 lines: what the ticket is, the codebase context the plan will work within, and what's now resolved. Skip if the user just answered clarifying questions (they have the context fresh; don't repeat it).
When the ticket changes something users notice and intake was not called by /flagrare:work-prep, add one line to the overview: /flagrare:measure-impact can set the bet (the number this should move, from what) before planning.
Next-step prompt: issue an AskUserQuestion tool call. This is the same interaction shape as plan-mode's accept-plan tool: the user gets a discrete set of buttons, picks one, and the flow continues without freeform typing. Do NOT phrase this as a prose question, that produces ambiguity and frequently ends the turn with no answer captured.
Intake's natural successor is /flagrare:atdd-plan. The brief is built specifically to be planning input, so the prompt is a simple two-way:
/flagrare:atdd-plan (Recommended): pass the brief as opening context. The plan skill runs its own /flagrare:codebase-explore pass; intake's findings are additive input.Do NOT offer /flagrare:ticket-creator or /flagrare:tdd-writer here, those run before intake in different workflows (decomposing specs into tickets, drafting design docs for new multi-week projects). They are not downstream of a single-ticket intake.
If invoked through /flagrare:work-prep, skip the prompt and proceed directly to /flagrare:atdd-plan, work-prep already decided the next step. Detect this by checking whether the args passed to this skill started with [work-prep]. If so, do NOT issue an AskUserQuestion. First run /flagrare:measure-impact with before <ticket link> quick called by /flagrare:work-prep (a small fix with nothing users notice gets a recorded skip and nothing else), then immediately invoke /flagrare:atdd-plan via the Skill tool, passing the complete context brief, plus the bet sentence, the number with its source and whether its tracking exists, as the args parameter, so the plan can add missing tracking before the feature.
Never end intake with a context dump and silence. The user should always know what happens next and have a button to direct it, same UX contract as the plan-mode accept tool.
/goal step (unless nested under /flagrare:work-prep, which owns the goal). Without a durable goal, intake reliably stalls after the brief and never asks the clarifying questions, the exact failure this skill is built to avoid./goal when invoked with the [work-prep] prefix. Only one goal can be active per session; a second silently replaces work-prep's session-spanning goal and breaks the downstream handoff./flagrare:atdd-plan's gap review./flagrare:atdd-plan if Acceptance Criteria are still ⚠ undefined, resolve them first.AskUserQuestion tool with options. Prose questions cause the turn to end with no answer captured./flagrare:intake [ticket ID or URL]
↓ /goal locked (anti-stall; skipped when nested under work-prep)
↓ subagents read ticket + all references in parallel
↓ ticket moved to started (only under work-prep; see lib/tickets/LIFECYCLE.md)
↓ /flagrare:research-catalog ← log every external source before synthesising
↓ context brief synthesised (without questions)
↓ /flagrare:codebase-explore ← ground the brief in actual code
↓ codebase-informed clarifying questions answered
↓
/flagrare:atdd-plan ← receives the codebase-grounded context brief
↓ /flagrare:codebase-explore ← runs its own thorough pass (stays standalone-callable)
↓ ATDD plan produced
↓
[implementation]
↓
/flagrare:staleness-audit
↓
/flagrare:implementation-review
↓
git commit
↓
/flagrare:release-check
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ticket-ingestion, context-brief, pre-planning, linear, jira, asana, shortcut, trello
npx claudepluginhub flagrare/agent-skills --plugin flagrare43 skills in this plugin
/atdd-planProduce an ATDD-first implementation plan in Claude Code's native plan mode, with named design patterns called out where they earn their keep. The skill enters plan mode automatically (via the EnterPlanMode tool), runs /flagrare:codebase-explore to ground the plan in the actual codebase, then produces a plan-mode plan that MUST include both: (1) 3-5 acceptance tests in plain English defining 'done' before any implementation, written behavior-first against the public API only; and (2) any non-trivial structural decisions named as design patterns with a one-line rationale. Plan mode's native approve/edit/reject button UI is the close, ExitPlanMode is how the skill ends. Use whenever the user wants to plan a feature, fix, or refactor, 'how should we implement X', 'plan this', 'let's design X', 'where do we start on Y'. Tests follow Kent Dodds Testing Trophy: behavior over implementation, integration-heavy, public-API-only, refactor-proof. The skill stops at the plan; it does not write implementation code./brag-docGenerate a comprehensive, impact-framed brag-doc entry for a chosen time window (day, week, biweek, month, or custom). Pulls authored PRs, reviews given, commits, deploys, and linked tickets across GitHub, local git, and configured MCPs, then synthesises a themed narrative, leading with outcomes, quantifying impact, owning the work in first-person past tense, separating IC contributions from amplification, and naming the judgment exercised. Output is designed to drop straight into a developer journal, a personal bragging sheet, or a performance-review packet. Accepts a mode argument, `/flagrare:brag-doc resumancer` renders the output as ready-to-paste Resumancer CLI commands (`resumancer impact "..." --branch ...`) instead of markdown. Use whenever the user says "brag doc", "brag sheet", "what did I do this week", "weekly recap", "monthly recap", "performance review prep", "what should I tell my manager", "summarise my impact", "career log entry", "give me my wins", "biweekly recap", or any variant about looking back over a longer window than a single day's standup. Also trigger near review season ("self-review", "perf packet", "evaluation prep"), and on phrases like "log my wins to resumancer" or "make resumancer entries for this week" (which should pass the `resumancer` mode). For windows longer than about a month, a tenure retrospective, a departure record, or "everything I did at this company", hand off to `/flagrare:impact-timeline` instead; this skill's window tops out at a month.Other plugins' skills for the same job