/flagrare:ticket-creatorfrom Flagrare
Creates tickets as reviewable markdown files, then pushes to Jira, Linear, Trello, Asana, or Shortcut via MCP or CLI after user approval. Grounds tickets in code context and polishes documentation.
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.
Create tickets as reviewable markdown files first. Present them for review. Only push to the tracker when the user explicitly approves.
A ticket is a pointer, not a document. The reader is an engineer who will open the linked spec and read the code; the ticket's job is to orient them and define done, not to reproduce everything. Aim for a body that fits on one screen (rough target: 40 lines). If a ticket needs more, it is either too big (split it) or it is restating a spec it should just link.
Concretely:
processPayment() flow isn't wrapped in a transaction") over a separate bulleted file:line list. A bulleted wall of path/file.kt:42 lines is the #1 enumeration smell; it reads as your exploration trail, not as help.Each fact appears once per ticket. The usual repeats, all of which read as padding:
Across a backlog, the same rule holds at the epic level: the product story and the glossary live in the epic, not in every ticket (see Write for three readers).
Brevity is a feature: a scannable ticket gets picked up; a wall of text gets skipped. The test: would a teammate skimming this understand why it matters and what done looks like, without you in the room? You are writing for a person who will act, not documenting your own exploration.
Same ticket, two ways. The first is the trap; the second is the target.
❌ Enumeration trap (dense, machine-facing, reads as an exploration dump):
Context:
processPayment()callschargeCard()thenrecordLedgerEntry(), but the two aren't in a transaction, so a crash between them leaves a charged card with no ledger row. Reproduced in staging; seePaymentService.ktflow. Affects retries viaRetryQueue.Suspect Code:
service/PaymentService.kt:142,processPayment(), no transaction wrapperservice/PaymentService.kt:160,chargeCard()call siteservice/PaymentService.kt:168,recordLedgerEntry()call sitedao/LedgerDao.kt:55, insert that never runs on crashqueue/RetryQueue.kt:30, replays the whole method, double-chargesAcceptance Criteria:
processPayment()wraps charge + ledger in one transaction · rollback on ledger failure · retry does not double-charge ·LedgerDao.insertcovered by test ·RetryQueueidempotency test added · metric emitted on rollback
✅ Narrative target (prose-first, human-facing, pointers woven in):
Context: When a customer pays, we charge their card and then write a ledger entry, but those two steps aren't wrapped in a transaction. If the service dies in between (or the retry queue replays the call), the card gets charged with no matching ledger row, or charged twice. It's rare, but it's real money and it's silent: nothing alerts when the two drift apart. The fix is to make the charge-and-record pair atomic so one can't happen without the other.
Where to look:
PaymentService.processPayment()is where the charge and the ledger write happen sequentially without a transaction; the retry queue replays that whole method, which is what turns a gap into a double-charge.Acceptance Criteria: A failure after the charge never leaves a card charged without a ledger entry · a retried payment doesn't double-charge · both are proven by tests.
The second is shorter and clearer. The first makes the reader reconstruct the story from fragments; the second hands them the story and trusts them to open the code.
Every ticket ships to at least three audiences, and it fails if any of them bounces:
Concretely:
MENU_NOT_RUNNING constant; the user called it meaningless. "Outside its item group's hours, say when the agent can order the item" said the same thing plainly (field-tested, 2026-11-12).05-report-on-order.md) only sort the drafts; nobody memorizes them and they don't exist in the tracker. In ticket text, dependency lines, the epic and any chart, write "the report-window decision" or "the admin page ticket", and switch to tracker keys (as links) once the tickets are pushed.PROJ-123 stays dead text (in Jira, write [PROJ-123](https://<site>/browse/PROJ-123)). A ticket that renders as flat prose with naked URLs and dead keys reads as unfinished even when the content is right. After the first push to a tracker, fetch one ticket back and check the stored formatting actually converted.Before anything else, determine which tracker to target.
Detection order:
linear, jira, asana, shortcut, trello in tool nameswhich linear jira gh shortcut 2>/dev/null.linear/, atlassian.net in configs, existing ticket references in git historyTracker capability map:
| Tracker | MCP tool pattern | CLI | Ticket ID pattern |
|---|---|---|---|
| Jira | mcp__*atlassian*__*Jira* | jira | [A-Z]+-[0-9]+ |
| Linear | mcp__*linear*__* | linear | [A-Z]+-[0-9]+ |
| Shortcut | mcp__*shortcut*__* | shortcut | ch[0-9]+ / sc-[0-9]+ |
| Asana | mcp__*asana*__* | - | numeric ID |
| Trello | mcp__*trello*__* | - | card URL |
| GitHub Issues | gh issue create | gh | #[0-9]+ |
Record which tools are available. Use the best one when it's time to push.
Before decomposing a spec or TDD, find out how this team already breaks work down, and copy that. The skill's defaults (2-3 day tickets, split by layer) are a fallback for teams with no visible convention, not a standard to impose. A team that files 40 small tickets per TDD will read a 10-ticket backlog as "not broken down enough", however clean each ticket is.
Look for two things, in this order:
parent = <EPIC> in Jira, the milestone in GitHub, the project in Linear. It is the best reference for three things at once:
*_tickets/, docs/backlog/) and their INDEX.md. Take the working model you find there (for example "contract first, frontend mock layer, every ticket 1-2 PRs, sized S/M, scenarios mapped to tickets"), plus the title prefixes and numbering.Apply the precedent as the default, and deviate only where this work's constraints force it (a split the precedent had that would break here, or a ticket it needed that doesn't apply). State each deviation in one line in the INDEX so the reader sees it was deliberate. If no precedent exists, say so in the INDEX and fall back to the defaults below.
Before drafting any ticket, ground it in the actual codebase if one exists. An engineer picking up an ungrounded ticket has to repeat the codebase exploration that this skill could have done once. Tickets that point at specific files and reuse-candidates are dramatically more useful than tickets that gesture vaguely at "the relevant area".
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] add CODEOWNERS file, [DEVOPS] rotate AWS keys) and exploration would add no value, use judgementCall /flagrare:codebase-explore with the ticket's working title and a one-paragraph description of what it covers.
Distill, do not dump. codebase-explore returns far more than belongs in a ticket. Keep only the 3 to 5 pointers most relevant to this specific ticket: the file the work touches, the utility to reuse, the prior attempt worth knowing about. A grounding section longer than five lines is a sign you are pasting exploration output instead of curating it.
These distilled pointers populate a new ticket subsection (see template updates below).
For multi-ticket flows (spec/TDD decomposition), dispatch N parallel /flagrare:codebase-explore agents, one per candidate ticket, in a single message with multiple Agent tool calls using model: "sonnet". Each agent gets that candidate's {title, summary} and returns its findings independently. Wall-clock stays bounded regardless of backlog size.
Do NOT run codebase-explore sequentially for backlog flows. The parallelism is the whole point, emit all Agent calls in one message so the runtime can execute them concurrently.
Tickets are written as numbered markdown files in a backlog folder.
docs/backlog/
INDEX.md # Overview, sequencing, summary table
00-epic.md # Epic/project definition (if creating a new one)
01-short-slug.md # First ticket
02-short-slug.md # Second ticket
...
NN-kebab-case-slug.md where NN is zero-padded sequence number00-epic.md# [PREFIX] Summary here
**Type:** Story | Task | Bug
**Priority:** High | Medium | Low | Critical
**Parent:** PROJ-123
**Tracker:** Jira | Linear | Shortcut | Asana | Trello | GitHub
# [Backlog Name]
**Epic/Project:** [KEY or "to be created"]
**Source:** `path/to/spec-or-tdd.md`
**Tracker:** [Jira | Linear | etc.]
**Total tickets:** N
## Suggested Sequencing
[ASCII tree or diagram showing phases and parallelism]
## Summary
| # | Summary | Type | Status |
|---|---------|------|--------|
| 01 | [PREFIX] First ticket summary | Story | draft |
| 02 | [PREFIX] Second ticket summary | Task | draft |
## Open Questions (optional)
## Blockers (optional)
Titles follow: [PREFIX] Summary
Common prefixes: [FE], [BE], [FE/BE], [SPIKE], [E2E], [INFRA], [DEVOPS]
Optionally include service name: [BE][billing-service] Summary
Summary should be concise and action-oriented. If you have seen the ticket before, it should fully remind you what it is about.
Titles pass the same three-reader bar as bodies, and they matter more, because the board shows nothing else. A Story or Task title names the WORK: a verb, the thing that changes, and where. "Update the review query and Hex links so reviewers see order reports" says what someone will do; "Reviewers can find reports on orders" only describes the end state and hides the work. An outcome or a state alone ("X can do Y", "CX is ready for launch", "Monitor the feature") is never a title; add the outcome after "so" when it fits. Plain language, no internal field names (flip_back_at), no coined shorthand ("sweep", "wire", "passthrough"), nothing that requires the meeting. "Hourly job: put things back on sale when their return time passes" beats "Sold-out sweep: flip past-due rows back". If the title needs the body to be understood, rewrite the title.
Write the title in the reporter's vocabulary, not the investigation's. After debugging, the mechanism feels like the point; it isn't, the reader recognizes the symptom. For bugs, the title states what the user sees, quoting the on-screen error text when it's short: Modifier saves show "Could not save" errors for changes that actually saved beats Save reports failure even though the write committed. Words like "committed", "read-back", "misclassifies" belong in the body, never the title.
| Type | When to Use |
|---|---|
| Story | New user-facing features. Value to customers (not just engineering) |
| Task | Engineering work without direct customer value (refactors, infra, test coverage) |
| Bug | Defects, errors, incorrect behavior |
| Epic/Project | Groups related Stories/Tasks/Bugs into a larger deliverable |
Each template has an optional grounding subsection populated from /flagrare:codebase-explore findings (Step 0.5). The heading varies by type but the content format is the same: file paths with brief annotations, existing utilities, prior branches. Omit the subsection entirely if codebase grounding was skipped.
## Goal
[Standalone ticket: one or two sentences, symptom first: what the user sees or can't do today, in their words (quote the actual error/UI text when short), then what done changes. Backlog ticket: ONE sentence about this ticket's slice; the epic holds the feature story. Direct and concrete; no abstract outcome language like "report correctly" or "handle gracefully" when a real quote or example exists.]
## Context
[2 to 4 sentences. Why this change is needed and what the reader must know that the bullets below don't say. Link the TDD/spec instead of restating it, assume the reader opens that link. Do not reproduce the spec here, and do not preview the "What needs to happen" list.]
## Existing Patterns (optional: from codebase-explore)
- `path/to/file.ts:42`, the function this touches today
- `path/to/utility.ts`, existing helper to reuse instead of writing fresh
- `prior-branch/feat-x`, abandoned approach, see PR #142 for why
## What needs to happen (optional, if implementation is known)
[A few high-level steps, not a line-by-line plan. Describe the change, not the algorithm: "read the item group's hours" is a step, "the first time those hours overlap the open hours minus closures" is the engineer's job. Name the files/components/endpoints involved and let the engineer own the how. If this runs past ~5 bullets, the detail belongs in the spec, not the ticket.]
## Acceptance Criteria
* [Specific, testable criterion]
* [Specific, testable criterion]
## Context
[What is happening vs what should happen. How discovered. Include IDs, threads, screenshots.]
## Suspect Code (optional: from codebase-explore)
- `path/to/file.ts:128`, handler where the bad behavior originates
- `path/to/validator.ts:64`, likely missing the guard for this input shape
## Steps to Reproduce (if known)
1. Step 1
2. Step 2
## Expected Behavior
[What should happen]
## Actual Behavior
[What actually happens]
## Acceptance Criteria
* [Specific fix criterion]
## Environment
[dev/prod/both, platform, browser, app version]
## Reference (optional)
[Logs, code links, related tickets.]
## Goal
[What question or problem needs investigation.]
## Context
[Background on why the spike is needed.]
## Prior Work (optional: from codebase-explore)
- `path/to/experimental.ts`, partial attempt from Q1
- `feat/spike-x` branch, abandoned, see PR #87 discussion for blockers
## Acceptance Criteria
* Document findings in [location]
* Evaluate LOE for [approaches]
* Recommend an approach with tradeoffs
## Reference
[Links to existing docs, related systems.]
This step is the one most likely to be skipped, and skipping it is the single biggest cause of dense, machine-facing tickets. A drafted ticket looks finished, so it is tempting to present it as-is. Do not. Unless the user opted out (see Skip below), the Context has not been written for a human until it has been through this pass. Treat "drafted but not polished" as "not done."
After the draft is assembled with codebase findings, polish the Context section only by invoking /flagrare:write-docs with the draft Context as input.
The polish applies write-docs's craft layer to the Context: reader-situation-first opening, concrete file references inline (drawn from the grounding subsection), prose over bullets where causality matters, voice consistent across tickets.
Polish for clarity, not length. The Context stays 2 to 4 sentences after polishing; write-docs should tighten the prose, never expand it into an essay. If the polished Context is longer than the draft, you have over-written it.
Sections NOT polished, they stay mechanical:
Skip polish when: the user says "rough draft" / "skip polish" / --rough, or codebase grounding was skipped (without code references, there is little for write-docs to humanize).
Tickets should be 2-3 days of work unless the team's precedent says otherwise (Step 0.25); a team convention like "1-2 PRs per ticket" wins over this default. If larger, break up.
Split along independently testable deliverables, not just repos or layers: a data store and the job that consumes it are two tickets, because each can ship and be verified alone. When you split, state the direction in a one-line header on each ticket ("Depends on: X" / "Enables: Y") so the sequencing survives without the index. Name the other tickets by what they do (or by tracker key once pushed), never by local file number, and summarize long lists ("Enables: every frontend ticket").
Specific and testable. When a criterion quotes text the user will read, quote the full message, and it must make sense on its own: say who or what, and when ("Sunday Brunch runs Sundays 12 PM to 5 PM. You can order this item Sun, Nov 15 at 12 PM."), never a fragment that only parses with the ticket open ("menu runs next Sun").
/flagrare:codebase-explore with the ticket's working title and description. Capture findings..md file with the next available sequence number, including the grounding subsection if applicable./flagrare:write-docs on the Context section. Replace the draft Context with the polished version. Do not end your turn here: a polished ticket file looks finished, but steps 6-7 still remain. Continue in the same turn.INDEX.md exists, update it./flagrare:codebase-explore agents (one per candidate ticket) by emitting N Agent tool calls with model: "sonnet" in a single message. Wait for all results before drafting./flagrare:write-docs on the Context section (skip if grounding was skipped or polish opted out).00-epic.md (if creating a new Epic/Project)NN-slug.md for each ticketINDEX.md with sequencing, summary table, open questions, blockers, and one line per deliberate deviation from the precedentBefore presenting, self-check each ticket against these. If any fails, fix it first, do not present:
file:line wall.After the file(s) are written and the index updated, close with a tool, not prose. A drafted ticket (or backlog) reads as "done," so ending with a prose "here's the ticket, let me know" frequently stops the turn before the user can act (the stall pattern in docs/research/2026-06-11-claude-code-goal-anti-stall.md). Issue an AskUserQuestion with options:
Only when the user explicitly approves (e.g. "push these", "create these", "looks good, go ahead").
getAccessibleAtlassianResources to get cloud IDgetVisibleJiraProjects if neededgetJiraProjectIssueTypesMetadata to discover available issue types00-epic.md) if needed. Capture the key.parent to Epic key.md files with the assigned keylinear team list)00-epic.md existslinear issue create or MCP equivalent.md files with the assigned identifier00-epic.md existsgh issue create --title "..." --body "..." --milestone "...".md files with issue numbers00-epic.md exists.md files with story IDs.md files with task/card IDsUpdate each .md file metadata:
**Ticket:** PROJ-250
**Status:** created
Update INDEX.md summary table status from draft to created with the ticket key.
Present a summary with all created ticket keys/URLs.
path/to/file.ts:42 is dramatically more useful than one gesturing at "the relevant area"./flagrare:codebase-explore sequentially for a backlog flow. Emit all Agent tool calls in a single message, the runtime executes them concurrently. N tickets must take roughly the same wall-clock as 1.What SKILL.md sets; muted values are Claude Code's defaults
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