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.

194 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, to-questionnaire 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.
  • liufeng1976Skill

    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 54 projects that use this

  • AWSSkill

    to-questionnaire

    Turn a decision you can't fully answer into a questionnaire for someone else to fill in.

    Also in 110 projects that use this

  • RoentekSkill

    loop-me

    Grill me about specs for the workflows I want to build, within this workspace.

    Also in 61 projects that use this

  • richard12511Skill

    claude-handoff

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

    Also in 50 projects that use this

  • LesaniSkill

    writing-beats

    Shape an article as a journey of beats, choose-your-own-adventure style. The user picks a starting beat from the raw material, you write only that beat, then offer options for where to pivot next, beat by beat, until the article reaches a natural end. Use when the user has raw material and wants to assemble it as a narrative rather than an argument.

    Also in 64 projects that use this

  • AWSSkill

    wizard

    Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.

    Also in 140 projects that use this

  • +2 more from aws

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 182 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 182 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.