agentleFS
MartinKChenMartinKChen/harness-claude-code/skills/create-bug-issue/SKILL.md

create-bug-issue

Skill0 starsChanged 5 months agoMITView on GitHub

Create one kind:bug GitHub issue with a Zone-A (symptom) body — the reporter's record of what's broken: Summary, Environment, Steps to reproduce, Expected vs. actual, Evidence, Severity, Regression anchor. Helps the user fill the bug-issue.md template (without inventing facts), confirms it, then creates the issue (kind:bug, NO status, NO branch) via create-bug.sh so /ship analyze picks it up. Activate on '/create-bug-issue', 'file/report a bug', or 'create a bug issue for <x>'.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    Do NOT activate to diagnose or fix a bug (the analyze step + fix-bug.mjs, both driven by /ship, own that), or to file an enhancement / …

    line 16
  2. Distinctive:

    Write the approved body to a temp file, then:

    line 45

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

create-bug-issue

File a single kind:bug issue capturing only the symptom (Zone A). This is deliberately the lightest of the three issue-creation skills — it has no tasks, no acceptance criteria, and no linked branch, because a bug's spec is produced later by the read-only analyze step (workflow-engineer-analyze-bug), which reproduces the symptom, root-causes it, and posts a # Bug Analysis comment for a human to approve. This skill's job is to capture a clean, reproducible symptom so that analyze can do its work.

Sibling skills: create-feature-issues (decompose a PRD into many slices) and create-enhancement-issue (one feature-shaped enhancement). All three set kind:* at creation.

When to activate

  • The user types /create-bug-issue, or phrases like "file / report a bug", "create a bug issue for <x>", "something's broken: <symptom>".

Do NOT activate to diagnose or fix a bug (the analyze step + fix-bug.mjs, both driven by /ship, own that), or to file an enhancement / feature.

Input

The symptom information the user has — error text, screenshots, steps, where it happened. If the request is just "file a bug" with no detail, ask for the essentials (what's broken, how to reproduce, what you expected) before drafting.

Workflow

Step 0 — Resolve the repo

gh repo view --json nameWithOwner --jq .nameWithOwner. If not a GitHub repo, surface and stop.

Step 1 — Gather the symptom (do not invent)

Fill operation-git/templates/bug-issue.md from what the user provides — this is Zone A, a record of observed reality, so never fabricate logs, environments, or repro steps. Where a field is genuinely unknown, write unknown rather than guessing. Invest most in the two fields that make a bug actionable for the analyze step:

  • Steps to reproduce — numbered, deterministic. For a UI bug, start from the entry URL + exact clicks (this is the path the browser-driven analyze step will replay).
  • Evidence — paste, don't paraphrase: stack traces, error messages, request IDs, timestamps, the failing request/response, and any screenshot/recording.

Also capture Summary (observed vs. expected), Environment (where / version-commit / browser-OS / role), Severity + who's affected, and the Regression anchor (used to work? last-known-good).

Do NOT diagnose. Root cause, the proposed fix, and the regression-test plan are the analyze step's output, posted as a # Bug Analysis comment — not part of this issue body. If the user already has a theory, drop it into the Evidence/Notes as their hypothesis, clearly marked, not as a root-cause claim.

Step 2 — Confirm with the user

Show the drafted title + the full Zone-A body. Creating a GitHub issue is outward-facing — get explicit approval (and iterate) before Step 3. If it belongs to a milestone, ask whether to attach one (default: none — bugs run in /ship's repo-wide maintenance lane).

Step 3 — Create the issue

Write the approved body to a temp file, then:

bash skills/operation-git/scripts/create-bug.sh \
  --title "<title>" \
  --body-file <tmp-body-file> \
  [--milestone "<name>"]

The script creates the issue with kind:bug and no status:* label and no branch — exactly the analyze-eligible state.

Step 4 — Report

Report the created issue number/URL. State plainly what happens next: the bug carries kind:bug with no status, so the next /ship pass's analyze stage dispatches a read-only engineer that reproduces it (browser MCP / Playwright), posts a # Bug Analysis comment, and flips it to status:ready-to-review; a human then approves the approach (→ status:ready-to-implement) and /ship drives the fix via fix-bug.mjs.

Iron rules

  • Zone A only — the symptom, never the diagnosis. Root cause / fix / regression plan belong to the analyze step's # Bug Analysis comment, not this body.
  • Never fabricate observed facts. Logs, environment, and repro steps are a record of reality; unknown beats a guess.
  • No status label, no branch. A freshly-filed bug is kind:bug and nothing else — that is the analyze-eligible state the /ship analyze stage keys off. The fix branch is created later by fix-bug.mjs.
  • Confirm before creating. Creating the issue is outward-facing — get explicit user approval on the draft first.
  • Mechanical gh work goes through create-bug.sh, never hand-rolled gh issue create.

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.