agentleFS
mhmzdevmhmzdev/hisab-whatsapp/.agents/skills/file-an-issue/SKILL.md

file-an-issue

Skill9 starsChanged 3 months agoMITView on GitHub

File work as real GitHub issues on mhmzdev/hisab-whatsapp and the Hisab Engineering project board. Two modes — slice an approved spec into a parent issue plus tracer-bullet child sub-issues with native sub-issue and blocking edges, or file one standalone issue for a bug, chore or follow-up. Use when the user says "file an issue", "open an issue", "break this into tickets", "make tickets", "slice this up". Issues live on GitHub, never as local files.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    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 title becomes the downstream slug: GH-<N>-<kebab-topic>.

    line 15
  2. Very specific:

    A1 — Gather: Read the spec and what it links.

    line 32
  3. Very specific:

    Create before the approval gate.

    line 74

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

File an Issue

Honour .agents/skills/README.md. You file work as real GitHub issues. Nothing you produce is a local markdown file.

Step 0 — Repo facts

From AGENTS.md → Repo facts: issues_repo (mhmzdev/hisab-whatsapp), project_board (1, owner mhmzdev, Status Todo · In progress · Done, Priority P0 · P1 · P2, Team), check (python3 tests/smoke.py), labels (apply only what gh label list --repo mhmzdev/hisab-whatsapp returns; never create one). Board prerequisite: gh auth status must show the project scope, else gh auth refresh -s project once.

The title carries the topic

Every title becomes the downstream slug: GH-<N>-<kebab-topic>. Undo by reply removes the wrong entry → GH-12-undo-by-reply. Avoid titles that are only a verb or only a component.

Pick your mode

ModeWhenCreates
A — Spec breakdownAn approved spec in docs/specs/, or "break this into tickets"One parent + one child sub-issue per tracer-bullet slice, wired with sub-issue and Blocked by edges
B — StandaloneA bug, chore, follow-up or decision found mid-flightOne issue

Ambiguous → ask. Mode B and new capability: if it introduces behaviour a user would have opinions about, plausibly needs more than one slice, or has a real fork in what to build, say so in one sentence and recommend /to-spec first. Respect the answer; if they say file it, file it and note "filed without a spec" in the body.


Mode A — Spec breakdown

Each ticket is a tracer bullet: cuts through every layer it needs (prompt → tool → ledger → test, or transport → store → reply), is independently demoable, fits one context window.

A1 — Gather. Read the spec and what it links. A GH-<N> already in the spec filename means a parent exists — ask whether to add children rather than create a second parent.

A2 — Light codebase pass (optional). Spot prefactoring ("make the change easy, then make the easy change"); give prefactors their own early ticket.

A3 — Draft slices. Observable behaviour, not layers ("a Roman Urdu voice note about lending posts a receivable and the reply names the person", not "the transcription part" then "the tool part"). Prefactors first. Honest sizing: a new report kind is one ticket; a new language is one ticket; a new tool is at least two (tool + prompt + tests, then the phone path).

A4 — Approval gate. Numbered list: Title, Blocked by, Priority (P0–P2), What it delivers. Ask: granularity right, edges real, merge or split? Create nothing on GitHub until approved.

A5 — Create.

  • Parent: title = spec title; body = Problem + Solution + Out of scope condensed, a ## Children checklist (filled after), Spec: docs/specs/<file> (note it is temporary). gh issue create --repo mhmzdev/hisab-whatsapp --title … --body-file <tmp> [--label …]. Parse the number.
  • Children, in dependency order, body:
**What to build:** the end-to-end behaviour, in observable terms — who sees it (phone / terminal / judge).

**Surfaces:** prompt / tools / ledger / transport / setup / i18n / templates / docker / docs.

**Blocked by:** #N, or "nothing".

## Done when
- [ ] <observable criterion>
- [ ] Repo check passes — `verify: python3 tests/smoke.py`

Those boxes are what /create-plan mines for success criteria; write them provable.

  • Wire: node ids via gh issue view <N> --json id; gh api graphql with addSubIssue (issueId: parent, subIssueId: child) and, for real same-spec dependencies, addBlockedBy (issueId: the blocked child, blockingIssueId: its blocker). If a mutation is refused on this account, fall back to a Blocked by #N line in the body and the parent's checklist, and say so.
  • Board: gh project item-add 1 --owner mhmzdev --url <issue-url> for parent and children; set Status Todo and Priority via gh project item-edit (field and option ids from gh project field-list 1 --owner mhmzdev --format json; never hard-code). Never set In progress here.

A6 — Mark the spec ticketed. Frontmatter status: ticketed, add parent: <url>; update the INDEX row.

A7 — Report. Parent URL, every child URL, which start blocked. Offer /create-plan <first unblocked> and wait.


Mode B — Standalone

  1. Raise the spec question once (above).
  2. Ground it. A real number or a reproduction, file:line for the mechanism read this run, gh issue list --repo mhmzdev/hisab-whatsapp --state all --search "<keywords>" for a sibling.
  3. Body: ## What's wrong (or What's missing) with the evidence · ## Why it matters · ## Options only for a real fork · ## Done when with the same verify rule.
  4. gh issue create → board item-add with Status Todo and a Priority. If an open parent covers the area, offer addSubIssue under it.
  5. Report the URL, board status, parent (if any); offer /create-plan and wait.

What NOT to do

  • Create before the approval gate. Slice by layer. Invent labels, columns or ids. Circular or hand-wavy blocking edges. Oversize. Set In progress. Write issue files under docs/. Fabricate an issue number or file:line.

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.