agentleFS
mhmzdevmhmzdev/hisab-whatsapp/.agents/skills/to-spec/SKILL.md

to-spec

Skill9 starsChanged 3 months agoMITView on GitHub

Turn a hardened discussion into a numbered written spec — a WHAT/WHY contract with problem, solution, user stories, decisions and testing seams — saved to docs/specs/<NNN>-<slug>.md and registered in its INDEX. Use when the user says "spec this out", "write this up as a spec", "make a spec". Synthesises the conversation; does not re-interview.

105 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-ts-deep-modules, writing-beats and 10 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.
  • loulanyueSkill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 17 projects that use this

  • RoentekSkill

    writing-beats

    Writing, exploit — assemble raw material into a journey of beats, grounding each term before a beat leans on it.

    Also in 22 projects that use this

  • RoentekSkill

    writing-fragments

    Writing, explore — mine raw fragments, no structure yet.

    Also in 20 projects that use this

  • qwlabsSkill

    claude-handoff

    Hand the current conversation off to a fresh background agent that picks up the work immediately.

    Also in 16 projects that use this

  • qhuang20Skill

    migrate-to-shoehorn

    Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace `as` in tests, or needs partial test data.

    Also in 19 projects that use this

  • AnasX7Skill

    scaffold-exercises

    Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.

    Also in 19 projects that use this

  • +2 more from Roentek

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 96 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    If the conversation has not settled the WHAT (approaches still open, scope undefined), stop and recommend /brainstorm then /grill-me.

    line 20
  2. Very specific:

    Add a row to docs/specs/INDEX.md (| NNN | title | draft | date |).

    line 63

“Common” is measured: kept by at least 6 in 10 of the 96 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

To-Spec

Honour .agents/skills/README.md. Crystallise a discussion that already happened into a durable spec: the WHAT/WHY contract the rest of the lifecycle draws from. The HOW comes later.

/brainstorm → /grill-me → **/to-spec** → /file-an-issue → /create-plan → …

The next step is /file-an-issue, which slices the spec into GitHub issues — behind a human gate: present the spec, wait for approval.

A spec is temporary; GitHub is the durable contract. Once /file-an-issue runs, it copies Problem + Solution + Out of scope into the parent issue and links the children; from then on the issue is the source of truth and the file is disposable (status: ticketed, frontmatter carries parent:). Never link into a spec from other docs; link to the issue.

Step 0 — Do you have material?

If the conversation has not settled the WHAT (approaches still open, scope undefined), stop and recommend /brainstorm then /grill-me. A spec around an unresolved question gives the ambiguity a filename.

Step 1 — Gather

The conversation above is the primary source. Read docs/brainstorm/<slug>.md if it exists. Only if the discussion never touched the code: a light grounding pass (describe what exists, file:line). Use the repo's vocabulary from AGENTS.md: entry, posting, ledger, quarter file, tool, store, setup, template, language.

Step 2 — Testing seam (the one question you may ask)

Confirm with the user where this is verified: tests/smoke.py (no network — the default), tests/demo_terminal.sh (needs a model key), or the phone against the demo agent. Prefer the highest seam that gives honest confidence; prefer existing seams over new ones.

Step 3 — Number and write

ls docs/specs/ → highest NNN- prefix + 1, zero-padded (001 if empty). Write docs/specs/<NNN>-<slug>.md:

---
slug: <slug>
status: draft
last_verified: <YYYY-MM-DD>
---

# <NNN> — <Feature> — Spec

## Problem
Who feels it, when, what it costs. No implementation.

## Solution
In plain terms. Still no implementation.

## User stories
1. As a <person texting the agent / shop owner / self-hoster / judge in a terminal>, I can <X> so that <benefit>.

## Decisions
Tool shape, prompt rule, ledger convention, store field, language strings — the clarifications the grilling produced. Which existing patterns it reuses; which invariants it respects (six tools, strict check, entry numbers, offset-after-batch, fixed strings in `en` and `ur`).

## Testing decisions
The seam(s) from Step 2 and the closest prior-art test to mirror in tests/smoke.py.

## Out of scope
- <explicitly excluded>

## Further notes
- Open questions, links to the brainstorm doc.

Step 4 — Register

Add a row to docs/specs/INDEX.md (| [NNN](NNN-slug.md) | title | draft | date |); create the file with a one-line header if absent.

Step 5 — Hand off (human gate)

Present the spec and wait. Offer: Slice into issues (/file-an-issue, expected) · Plan it directly (/create-plan, single-slice) · Stop.

What NOT to do

  • Interview the user (only the seam question). Bake in file paths or code that will go stale (a schema or reply shape that is the decision is fine). Write the HOW. Invent a fact the discussion did not settle — flag it under Further notes.

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.