/aimate:implement-ticketfrom aimate
Turns a Jira work item, GitHub Issue, or GitLab Issue into merge-ready code. Critiques the ticket, builds in a throwaway git worktree, verifies with repo commands and code review, opens a PR/MR, and reports deviations.
Ships in aimate. 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.
Read when SKILL.md points to them.
Turn a ticket into merge-ready code. Test the ticket against the code first, and build in a separate worktree so the user's main checkout stays exactly as it was.
Jira work items, GitHub Issues, and GitLab Issues are all supported, and so is a ticket
pasted as plain text. "Ticket" means all of them throughout. The PR/MR goes to whichever code host
origin points at — GitHub or GitLab — which can differ from where the ticket lives: a Jira ticket
delivered as a GitHub PR is normal. Reading the ticket belongs to
fetch-ticket; the code-host operations live in
references/provider-operations.md. This workflow is the same for
every provider.
Four rules hold across every stage:
Stop early in exactly four cases, with the worktree already torn down and the reason reported:
Every other situation, uncertainty included, is a judgement call to make and record.
Review-only requests — "critique this ticket", "is this ready to build?" — belong to
prepare-ticket. Hand them over and stop there, before any worktree, branch, code, or PR/MR.
Requires git ≥ 2.31. Two routes are in play: ticket_route, which fetch-ticket resolves and
returns in stage 1, and code_route, which pushes and opens the PR/MR. Resolve code_route from the
origin remote per the code-host route —
the aimate:tool-routing block in AGENTS.md first, then gh and GitHub MCP for GitHub, and always
glab for GitLab — and keep using it while it works. Authentication stays with the CLI or MCP login.
The ticket is read-only for this skill: it stays exactly as the tracker holds it.
Delegate through whatever the host you are running in provides:
| Host | Repo-owned agent definitions | How you dispatch |
|---|---|---|
| Claude Code | .claude/agents/*.md (plus ~/.claude/agents/ and plugin agents) | the Agent tool, subagent_type set to the definition's name |
| GitHub Copilot CLI | .github/agents/*.agent.md (loaded as trusted config for the session directory and any --add-dir) | the CLI's subagent tool (runSubagent), or copilot --agent <name> for a whole session |
Both formats are Markdown with YAML frontmatter — name, description, and often model and tools.
On a host with no delegation mechanism, run the stages in-band; everything below still applies, with
you doing the work.
The repo's own agents come first. Stage 1 inventories them. A definition checked into the repo is
an instruction: where the repo routes a kind of work — migrations, frontend, tests, review — to a named
agent, use that agent, with the model and tools its definition specifies. Repo-owned definitions
outrank your user-level agents, which outrank a generic explorer or reviewer; where the repo names
none, generic is fine. If a mandated agent is missing or unusable, do the work yourself and name it in
the stage 10 report.
Each stage below marks what it fans out. Keep these yourself: the stage 4 decisions and assumption list, gate judgements, the PR/MR body, teardown, and the stage 10 report. You are the one accountable for them.
A delegate's report is a claim to check. It enters the plan only with file:line or command output
behind it, the same standard stage 3 applies to the ticket. Spot-check whatever a gate rests on, and
base stage 7 on runs you did yourself.
Bound what comes back. Every prompt asks for a fixed return shape with a size cap: a finding, its
file:line evidence, and one line of why. Your context stays small because the delegate's stays large.
Delegates inside the worktree (stages 6–8):
isolation: "worktree", for
example) unset. 1 INGEST ──▶ 2 CRITIQUE ──▶ 3 VALIDATE ──▶ 4 DECIDE ──▶ 5 ISOLATE
(ticket + (attack the (test every (plan + (worktree)
comments) request) claim) assumptions) │
▼
10 REPORT ◀── 9 TEARDOWN ◀── 8 DELIVER ◀── 7 VERIFY ◀────── 6 BUILD
(deviations) (always) (push, PR/MR) (evidence)
Advance only when the stage's gate holds. Gates are checkable artifacts that stand in for "I analysed it" and "I verified it".
Read the whole ticket: the description and every comment. Fetch it through
fetch-ticket in an isolated subagent on the host platform's fast,
lightweight model tier, per its delegation rules: pass the
identifier — or the pasted text — and the absolute repo root. It returns the canonical ticket with the
description and every comment verbatim, ticket_route, and repo_match. Where the host offers no
subagent, invoke it inline.
status: stopped ends the run with its stop_detail. For no-route, say the user can rerun with
the ticket text pasted.repo_match: mismatch is the wrong-repository stop. undetermined (Jira) is settled in stage 3,
once the ticket's claims have been tested against this checkout.Then follow the threads that change meaning:
file:line references cited in the discussion.CLAUDE.md, AGENTS.md, CONTRIBUTING.md, .github/, and the CI
workflows (.github/workflows/, .gitlab-ci.yml).# definitions the repo owns, with their frontmatter (find works in every shell, zsh included)
find .claude/agents .github/agents -maxdepth 1 -name '*.md' -print -exec head -20 {} + 2>/dev/null
# instructions that route work to a named agent
grep -rniE 'sub-?agent|\bagents?\b' CLAUDE.md AGENTS.md CONTRIBUTING.md \
.github/copilot-instructions.md .github/instructions 2>/dev/null
name and description are the routing rule; model and tools are part of it. Read the body too —
a repo agent usually carries the conventions stage 6 has to follow anyway.
Delegate: digesting a long ticket thread and its linked PRs/MRs — one agent, handed the fetched ticket, returning a summary of what was asked, what the comments settled, and what is still open.
Gate: you can state in one paragraph what is being asked, by whom, what the comments have already settled, and what is still open. Where a comment contradicts the body, the later comment wins — say so explicitly. You can also name the agents this repo owns and which of them this work has to go through.
Attack the request itself. Work through these, and keep only what actually applies:
Delegate: the angles that need their own dig — blast radius across callers, prior art, security surface. Launch these in one batch together with stage 3's claim checks: they read the same code, and the two gates are judged separately afterwards. The ranking and the keep-or-drop call stay with you.
Gate: a ranked list of concerns, each marked as changes what we build or worth noting. Each concern is specific to this ticket and this code. If the request genuinely is sound, say so and name the specific things you checked that make it sound. Everything marked changes what we build is destined for the stage 10 report.
Every factual claim in the ticket gets tested against the actual codebase:
repo_match: undetermined (Jira) → if the ticket's code references resolve nowhere in this
checkout and plainly belong to another codebase, that is the wrong-repository stop.git log / git blame on the relevant paths → has this been attempted or reverted before?Classify each claim: CONFIRMED (with file:line evidence) / OUTDATED / WRONG / UNVERIFIABLE.
Delegate: one agent per claim or claim cluster, in the stage 2 batch. Each returns a classification with its evidence; the verdict is yours.
Gate: every claim carries a classification, and confirmed ones carry evidence. Only verified claims enter the plan. Anything OUTDATED or WRONG goes in the stage 10 report.
Close the gaps found in stages 2 and 3 yourself, in this order:
Then produce a short plan: files to touch, behaviour change, test strategy, acceptance criteria, and an explicit out-of-scope list.
Gate: the plan is written down, every gap resolves to a decision with a reason, and the assumption list is non-empty or explicitly empty. You make every choice yourself: a delegate gathers evidence, you make the call.
Create a worktree for this ticket alone, and build only there:
ROOT=$(git rev-parse --show-toplevel)
ID=<ticket-id> # ABC-123 or 137; pasted text: BRANCH="$TYPE-$SLUG", ID=$SLUG
SLUG=<kebab-case-summary> # from the ticket title
TYPE=<feat|fix|chore> # from the ticket type or labels
BRANCH="$TYPE-$ID-$SLUG" # see "Branch and commit references"
WT="$ROOT/.worktrees/ticket-$ID"
# hide the worktree from git through the local exclude file, leaving tracked files as they are
EXCLUDE="$(git rev-parse --path-format=absolute --git-common-dir)/info/exclude"
grep -qxF '/.worktrees/' "$EXCLUDE" 2>/dev/null || echo '/.worktrees/' >> "$EXCLUDE"
git fetch origin
git remote set-head origin --auto >/dev/null
BASE=$(git symbolic-ref --short refs/remotes/origin/HEAD) # e.g. origin/main
git worktree add -b "$BRANCH" "$WT" "$BASE"
echo "ROOT=$ROOT WT=$WT BRANCH=$BRANCH BASE=$BASE" # copy these into the plan
Notes:
write-commit-message and Jira's
development panel find the ticket.git command a delegate runs uses git -C <worktree-path> — above all the commit delegate
in stage 6, because write-commit-message commits in whichever repository it runs in. Stage 9
returns to the repo root.Gate: git worktree list shows the worktree on its branch, and the main checkout is as you found
it (git -C <repo-root> status --short is unchanged).
Work only inside the worktree, with it as your working directory.
Follow the repo conventions found in stage 1, and match the surrounding code.
Write the test that expresses an acceptance criterion first, wherever a test can express it.
Commit in logical steps. Delegate every message to
write-commit-message in an isolated subagent on the host
platform's fast, lightweight model tier — Claude Code sets that with the Agent tool's model
override, Copilot CLI with the model field in the agent definition — and use it verbatim; it runs
autonomously from draft to commit. On a host without a model choice, delegate on the default model —
keeping the staged diff out of your context is most of the benefit.
Scope that delegation to the worktree, so it commits exactly the paths you staged there. Before invoking it:
git -C <worktree-path> add <paths>, naming each path
explicitly.git command with git -C <worktree-path>, and that the change is already
staged, so it commits the index exactly as it is.git -C <worktree-path> commit --cleanup=strip -F <tmpfile>, with the links
line from branch and commit references
— Ref: #<N> for a GitHub or GitLab issue; for Jira it reads the key from the branch name.Confirm with git -C <worktree-path> log -1 --oneline. The wording is entirely
write-commit-message's: use its message as it is, and keep the closing reference for the PR/MR body.
Delegate: work the repo has an agent for — by that agent's name — and independent file areas.
Each delegate gets the absolute worktree path, its slice of the plan, the acceptance criteria it
owns, and the out-of-scope list. One writer per area, and the commit delegate runs between staging
and the next writer.
If the plan turns out to be wrong mid-build, revise it, note what changed and why, carry that into the report, and keep going.
Gate: every acceptance criterion from stage 4 has code behind it, and the out-of-scope list is still out of scope.
CONTRIBUTING.md,
CLAUDE.md/AGENTS.md, package scripts, Makefile, or the CI workflow. Show the output, and report
failures verbatim, including the ones you caused.HEAD before you
start fixing, so each re-review can cover just the fix commits:
Review. Delegate review-local to an isolated subagent on the host's default model, not the
lightweight tier: review quality is the point. Give it the absolute worktree path, the scope
git -C <worktree-path> diff <base>...HEAD, and the plan and acceptance criteria as context. Tell it
to run every git command with git -C <worktree-path>, and never to stop and ask about scope:
on a very large diff it reviews every chunk. It cannot ask the user either, so tell it to return
any clarification question instead of asking it. It returns the code-review report:
findings at every severity, each with file:line evidence. It is read-only, so it changes
nothing. A pass counts only when the report says the review is complete. An incomplete pass, or
one that returns a clarification question, is not a clean pass: retry it once, with the missing
input when it asked for one. The retry counts toward the three passes. If it is still incomplete,
list it in the stage 10 report as unresolved with its gaps.
Where the repo also owns a review agent, run that as well and resolve its findings the same way.
Resolve. Give every finding a resolution, whatever its severity:
file:line or command output showing it does not hold, or that it lies
outside this change. Record the finding and the reason.A finding is not resolved because you disagree with it or find it minor. Fix the ones that hold up,
using the stage 6 rules: work in the worktree, stage the paths, and commit through
write-commit-message.
Re-run and re-review. After the fixes, run the repo's commands again. Then repeat step 1 on
the fix commits only (<noted HEAD>..HEAD), until a complete pass returns no new finding. A finding you
already rejected with evidence is not new. Stop after three review passes in all. Anything still
open goes in the stage 10 report as unresolved, with the finding as written.
Gate: the suite (or the documented subset) has been run after the last fix, and its output is on screen. Every acceptance criterion maps to named evidence. Every review finding is fixed, rejected with evidence, or (after three passes) listed as unresolved for the report, and the fixes are committed. The last review pass was complete, or its gaps are listed as unresolved for the report. Every "tests pass" points to a run on screen.
Push and open the PR/MR on the code host through code_route. Go straight ahead — implementing the
ticket is what was asked for. Run both from inside the worktree, per
opening the PR/MR.
git push -u origin <branch>
Title: what the change does, as an instruction that opens with its verb — "Stop refunded orders inflating the payout". Capitalise the first word and keep it under 72 characters. The ticket link goes on the body's last line.
Body, written to a file first:
<What this change does, in two to four sentences: what works differently once it is merged, and how.
Describe the change as a whole.>
<The outcome the ticket asked for, in one sentence.>
## Changes from the ticket
<Anything built differently from what the ticket asked, anything decided where the ticket was silent,
and anything the plan changed during the build, when a reviewer should know about it — one line each,
with the reason. Include the section when there is at least one.>
<closing reference>
Write the title and body in plain, everyday English, for a colleague who is new to this code: short sentences, common words. Name a class, function or file only where the reader needs it to find something. Write about the change itself; the skill's stages and labels stay in the report.
The closing reference comes from
linking the ticket: Closes #<N> for a GitHub
or GitLab issue, the Jira key with its link for Jira (which is linked only, its status left as it is).
For pasted text, the body ends with its last section.
Write this body once: stage 10 is the same material plus cleanup status. Comment on the ticket itself only if the user asks.
Gate: the PR/MR exists and its URL is captured for the report.
Runs when the PR/MR opens, when the work is abandoned, when the user stops the task, and when something fails unrecoverably. The worktree is always removed.
cd <repo-root> # remove a worktree from outside it
git worktree remove <worktree-path> # succeeds on a clean tree
git worktree prune
git worktree list # confirm it is gone
git worktree remove --force <worktree-path>. Guaranteed cleanup wins — this worktree
is yours.origin behind the PR/MR. A local-only branch with no
commits gets git branch -D <branch>. A local-only branch that does carry commits stays too —
say so in the report so the user can decide.Gate: git worktree list shows only the main checkout, and <repo-root>/.worktrees is empty or gone.
Close with a short written summary: the PR/MR body, plus what only the user needs to know. This is where everything that would have been a mid-flight question surfaces instead.
review-local raised, how many were fixed, and each one rejected or left open, with the reason.Keep it proportional. A faithful, low-risk implementation gets a few lines. A change that reinterpreted the ticket gets the deviation spelled out plainly at the top.
Gate: every concern marked changes what we build in stage 2, and every non-CONFIRMED claim from stage 3, appears in the report or in the PR/MR body.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dawn-technology/aicelerate --plugin aimate22 skills in this plugin
/asvs-auditStatic OWASP ASVS 5.0 Level 1 security audit of a codebase. Checks all 70 Level 1 requirements plus other security issues found on the way, verifies every finding against the code to remove false positives, runs the package manager's dependency audit, and writes a report to docs/. Use this when asked for a security audit, ASVS audit, security compliance review, or a code-level vulnerability scan. It reads code only; it is not a live penetration test./code-reviewReusable review core for structured findings on supplied code or diffs. Invoked by review-pr, review-local, and the pre-push self-review in resolve-pr-feedback; not for reviewing a PR/MR or local working tree directly, use those skills instead./configure-mcpValidate and configure project- or client-specific GitHub, GitLab, Jira/Confluence, Figma, Sentry, and Playwright tooling through a short interactive wizard, choosing CLI or MCP where both support the capability. Use when a user asks to install, set up, configure, repair, change, or onboard Aimate integrations or save project tool routing./estimate-sizeEstimate software tickets and work items with a configurable relative-sizing workflow. Respect dedicated estimators and local project rules, and use the built-in defaults when no local rules are provided./estimate-timeAdd a time estimate in hours to an existing implementation plan. Use when the user asks to estimate a plan or task list, or asks how long the work will take./fetch-ticketReusable ticket reader that resolves a Jira work item, GitHub Issue, or GitLab Issue through the project's saved route and returns it as one provider-neutral ticket with every comment verbatim. Invoked by prepare-ticket and implement-ticket; not for validating or implementing a ticket directly, use those skills instead.Other plugins' skills for the same job