agentleFS
mastro993mastro993/fstack/skills/implement-issue/SKILL.md

implement-issue

Skill2 starsChanged 5 days agoMITView on GitHub

Use when the user asks to implement, fix, or resume issues or tickets on any tracker, one or several, or a parent issue (an epic or tracking issue) through its sub-issues, such as "implement #42", "pick up PROJ-118", "carry on with #42", "implement #12, #15 and #19", "work through the sub-issues of #40", or "start the next batch", or when another skill hands off issues to build.

32 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use review-issue, create-issue and 7 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ravihammondSkill

    review-issue

    Review and repair one GitHub issue implementation in the current checkout.

    Also in 4 projects that use this

  • sahinSkill

    create-issue

    Also in 6 projects that use this

  • TermiX-officialSkill

    merge-pr

    Merge a GitHub PR via squash after /preparepr. Use when asked to merge a ready PR. Do not push to main or modify code. Ensure the PR ends in MERGED state and clean up worktrees after success.

    Also in 3 projects that use this

  • ShopifySkill

    triage-issue

    Triage a GitHub issue — classify priority (P0/P1/P2), search for duplicates, and apply labels.

    Also in 3 projects that use this

  • SentrySkill

    create-pr

    Create pull requests following Sentry conventions. Use when opening PRs, writing PR descriptions, or preparing changes for review. Follows Sentry's code review guidelines.

    Also in 4 projects that use this

  • OpenAISkill

    writing-skills

    Use when creating new skills, editing existing skills, or verifying skills work before deployment

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 31 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every single-issue run ends with exactly one status, as the reply's last line: STATUS: <status> — <short reason>.

    line 19
  2. Distinctive:

    Read the whole issue, with its comments: they can amend the scope, and the latest word from a maintainer wins.

    line 37
  3. Distinctive:

    Stop before anything else when:

    line 39
  4. Very specific:

    No way to verify: no test runner and no observable outcome you or a person could check.

    line 42
  5. Very specific:

    Drift: Check each thing the issue assumes (a file, function, behavior, data shape, documented decision) against the up-to-date default …

    line 51
  6. Distinctive:

    Add the issue's definition-of-done items.

    line 74
  7. Distinctive:

    Copy the pattern: Add an abstraction (a base class, a helper module, a dependency) only when nothing existing fits, and record why as a …

    line 84
  8. Distinctive:

    Follow-ups: the empty search state has no hint text

    line 123

“Common” is measured: kept by at least 6 in 10 of the 31 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Implement issue

Several issues, or a parent (an epic or tracking issue whose work lives in its sub-issues): you are the planner, not a builder. Read references/batches.md now and follow it in place of the rest of this file: each issue gets its own run of this skill, and your replies are the plan and the batch reports. One issue that isn't a parent, a child included: read on.

One issue in, one local branch of commits out. The issue is the contract: its acceptance criteria say what gets built, and you decide only how. Anything it doesn't ask for (a refactor you'd like, a bug you spot, the next issue's work) goes in the reply's Follow-ups, never into the diff: whoever reviews the branch checks it against the issue, and every unrequested line is one they must work out the intent of.

The run ends at the hand-back: the branch, committed and checked out, and the reply. Pushing it, opening a pull request, merging, and the next issue are the user's calls, made after the run.

The tracker holds the issue (GitHub, GitLab, Jira, Linear, Azure Boards, …); the code host holds the repository. Often one service is both; with Jira or Linear they differ. references/trackers.md has each one's commands and pitfalls: read the parts for yours before the first call.

Whatever you tell the user about what the code does cites its evidence: a file:line, or a command you ran and its output. A suspicion you haven't checked is either checked first or labelled as one; a confident wrong claim costs the reader more than silence.

Every single-issue run ends with exactly one status, as the reply's last line: STATUS: <status> — <short reason>.

StatusWhen
DONEEvery automated checklist item has its passing test committed on the branch, and full verification matches or beats the baseline. Concerns and manual checks are listed in the reply.
NEEDS_CONTEXTA person must answer or decide: missing criteria, open questions, the issue and the code disagree, a breaking or out-of-scope change.
BLOCKEDSomething outside the conversation must change first: an unmerged dependency, the same failure after two attempts, tooling you can't run.

Progress lives on the branch

A later session resumes from the branch, not from this conversation. Each checklist item lands as its own commit whose subject names the criterion, so git log is the progress record; each decision rides in the body of the next commit as Decision: <what> — <why>.

Resuming. Look for this issue's branch: a local or remote branch with the issue reference in its name, or the head branch of an open pull request linked to the issue (trackers.md's Existing PR row). If there is one, check it out and read git log <default>..HEAD with the commit bodies; trust it over any memory of the work. Decisions recorded there are settled. Run the baseline (step 2), rerun each committed item's test, and continue from the first automated criterion without a passing committed test.

1. Find, read, and gate

Find the tracker from the reference, the project's docs (README, CONTRIBUTING, AGENTS.md or CLAUDE.md), and the git remote, as trackers.md's first table shows, and reach it with the first tool that works: an authenticated CLI, its MCP server, or the API. When nothing reaches it, ask the user to paste the issue with its comments and links, and say which checks that leaves to them (blockers, status).

Read the whole issue, with its comments: they can amend the scope, and the latest word from a maintainer wins. Read every spec, ADR, design, or doc it links, and every file it names.

Stop before anything else when:

  • No acceptance criteria, or none a person could check ("make it clearer", "clean up X"): NEEDS_CONTEXT. Say what's missing and propose criteria you'd use, each checkable, so the author is one edit from a startable issue. Don't build on your own proposal: what gets built is the author's call.
  • No way to verify: no test runner and no observable outcome you or a person could check. NEEDS_CONTEXT, saying what would make it checkable.
  • Not one branch of work: the issue is closed or done; say so and ask which issue to take. An issue that turns out to be a parent goes to references/batches.md.
  • Someone else's: it is assigned to anyone but the user or the account your tracker tool is signed in as. Ask whether to take it over.

Done when you hold the criteria, the scope (in and out), and every linked doc and named file.

2. Check the ground

  • Dependencies. Every issue this one is blocked by (its Dependencies section, "after #n" or "depends on PROJ-7" in the text, and the tracker's native blocked-by links) must be closed or done, with its work merged into the default branch: a merged PR (found the way trackers.md finds an existing one, filtered to merged) or commits on the default branch carrying its reference. An open one is BLOCKED, naming it; never build on its unmerged branch. One closed as won't-do or cancelled may have left its work undone: the drift check below settles whether the code has it.
  • Drift. Check each thing the issue assumes (a file, function, behavior, data shape, documented decision) against the up-to-date default branch. Where they disagree, stop with NEEDS_CONTEXT and this report:

    Expected: <what the issue says, quoted>
    Found: <what the code or docs say, with file:line>
    Why it matters: <what building it as written would break or miss>
    How should I proceed? <the options, your recommendation first>
  • Pattern. Find the code most like what you'll write (a sibling module, handler, or test) and read it: that's the shape to copy. Note the test layout and naming.
  • Baseline. Find every check CI runs (its pipeline config, such as .github/workflows/, .gitlab-ci.yml, or azure-pipelines.yml), else the project's scripts: tests, typecheck, lint, build, format. Run them all once on the default branch and record what already fails, so you neither fix it silently nor take it for your own.

Done when dependencies are merged, every assumption holds, and you hold the pattern and the baseline.

3. Questions, then the checklist

Read the issue as its toughest reviewer would: criteria that conflict, outcomes it leaves open (empty input, a limit exactly hit, an error path), scope edges, backward compatibility. Ask everything in one round through the question tool, your recommendation first on each, and wait. Ask only what changes what gets built; what the code or docs already settle is yours to settle. No real questions means no questions. With no one to answer (a headless run), end NEEDS_CONTEXT with them.

Then write the checklist, in the order the work builds on itself. Each criterion maps to exactly one check:

  • Automated: the test that proves it (file and test name), or for config, docs, and wiring the narrowest command that does (a build, a typecheck, running the command).
  • Manual, only when nothing automated can prove it (real devices, a third-party account, production data, visual judgment): the steps a person takes, and why.

Add the issue's definition-of-done items. Done when every criterion has its check.

4. Build, one item at a time

Claim the issue before the first commit, so others see it's taken: assign it to the account your tracker tool is signed in as (the agent's own account where it has one, else the user's), as trackers.md's Assign row shows. Already the user's or yours, it's claimed. Claiming sets the assignee only: leave the issue's status to the tracker's integration unless the user or repo asks you to move it. If the tracker refuses the assignment, say so in the reply and carry on.

Branch from the up-to-date default branch, named the repo's way with the issue reference in it (the bare key, like PROJ-118, where the tracker links branches by key). Load the implement skill for the shape of the code across the whole checklist; this skill's baseline is its first check run. For each automated item, load the test-driven-development skill and follow it: this skill's baseline and checklist are its ground step and test list. Without test-driven-development: write the test, watch it fail for the reason the criterion names, make it pass, refactor on green.

After each change, run the narrowest check that covers it (the one test file, typecheck or lint on the touched files); the full suite runs at item boundaries and in step 5. When an item is green, commit only the files you changed, the commit subject naming the criterion.

  • Copy the pattern. Add an abstraction (a base class, a helper module, a dependency) only when nothing existing fits, and record why as a Decision.
  • Exactly the issue. The implement skill's subtraction (deleting what the end state no longer needs in the change's path) is part of the work; record each deletion as a Decision. Other extras go in Follow-ups. A change the criteria don't need is a stop (below).
  • Keep the checks honest. Never skip, disable, delete, or loosen a test, lint rule, or type check to get green: no .skip, no eslint-disable, @ts-ignore, # type: ignore, or #[allow], no lowered thresholds or coverage, no expected value changed to match the output, no --no-verify. An existing test the issue makes wrong is updated as that item's red step and listed under Deviations; anything else red is a bug in your change.

Stop rules

A precise stop beats a branch built on a guess. When one fires, leave the branch at its last green commit, report, and end with the status.

TriggerReportStatus
The issue and the code or docs disagreethe drift report (step 2)NEEDS_CONTEXT
A breaking change (public API, schema, config, CLI, behavior other callers rely on) or a change outside the issue's scopethe change, why the criteria need it, the options with your recommendationNEEDS_CONTEXT
The same failure after two different attemptsthe exact error, each attempt and why it failed, your best hypothesisBLOCKED
A dependency isn't mergedthe issue, and its open PR or branch if it has oneBLOCKED

An attempt is one hypothesis, changed and run; rerunning the same thing is not a second attempt. A small ambiguity the code settles is not a stop: decide it and record it as a Decision.

5. Verify

  1. Full verification. Rerun every baseline check on the final tree; a run from earlier in the session doesn't count. Match or beat the baseline, and name any check still red.
  2. Spec review. Read the diff from the default branch (git diff <default>...HEAD), not your memory of it, against each checklist item: met (its test seen passing), not met, or manual. Then look for extra (in the diff, not in the issue, beyond step 4's subtraction) and misread (built, but not what the criterion means). Not met or misread goes back to step 4; extra comes out.
  3. Quality review, a separate pass after the spec review. Give a reviewer subagent the issue link, the base SHA and the diff command, and the repo's conventions files; ask for correctness bugs, missed edge cases, departures from the repo's patterns, dead code or leftover debugging, weak tests, and docs describing changed behavior that weren't updated, each with file:line and a confidence from 0 to 100, reporting only 80 and up and nothing that predates the branch. Tell it your commit messages and reasons are claims, not evidence, and that you just ran the full verification, so it reads the diff and the code around it instead of rerunning the suite. Without subagents, make the pass yourself, re-reading the diff cold. Fix confirmed findings within scope, commit, and rerun full verification; the rest become follow-ups.

Done when full verification is at or above the baseline, every item is met or manual, and the review's in-scope findings are fixed and committed.

6. Hand back

Reply in this shape, with Deviations and Concerns lines when there are any and empty parts dropped, and end the run there:

#27 Search results show the shelf location — branch 27-shelf-location, 2 commits

  • Each result shows its shelf code, like B-12 — result shows shelf code in test/search.test.js
  • A book with no shelf says Not shelved — unshelved book says so in test/search.test.js
  • The lobby kiosk still fits each result on one line — manual: look at it on the kiosk (visual judgment)

Verified: npm test 58 passed (baseline: clean)

Decisions: the shelf code comes from the copy, not the title — one title has copies on several shelves

Follow-ups: the empty search state has no hint text

STATUS: DONE — every automated criterion passes; the kiosk check is yours

Manual items stay unticked until the person who did them says so: you didn't do them, and a ticked box tells the reader someone did.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.