agentleFS
alexnthnzalexnthnz/keel/skills/to-spec/SKILL.md

to-spec

Skill5 starsChanged 2 months agoMITView on GitHub

Write the one-page spec for a Feature or Initiative objective and attach it to the Linear project as a document. No interview: it uses what the conversation and the codebase already settled.

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

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 182 edited versions we read keep these.

  • 3

    Distinctive

    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:

    Only Feature and Initiative work gets a spec.

    line 13
  2. Distinctive:

    Write the spec below. It fits one page: about 40 lines.

    line 19
  3. Distinctive:

    No user-story list, no file paths, no code.

    line 48
  4. Distinctive:

    Write for a reader who has not seen this conversation.

    line 51

“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

Adapted from to-spec in mattpocock/skills (MIT, commit 6f7f783). Local edits: the template is replaced by a four-part one-page spec, the output is a Linear document, and the user stories, implementation decisions and triage label are dropped. See THIRD_PARTY_NOTICES.md.

Turn the objective and what is already settled into a spec. Do not interview anyone: grilling happened before this skill runs. If a fact is missing, read the code or ask Explore. If a decision is missing and no prototype can settle it, write your recommended answer into the spec and name it as an assumption in your reply.

Only Feature and Initiative work gets a spec. A Quick change goes straight to one ticket (see to-tickets). Linear conventions are in ../lead/linear.md.

Process

  1. Read the current state of the code in the area the objective touches, and use the project's vocabulary. Respect the decisions already recorded for the area. If a Chart: <objective> document exists, read it. Resolve each Decided item's arcflux-memory pointer with search_memory or read_facts, and treat those decisions as settled.
  2. Pick the seams where a builder will prove the work. Prefer an existing seam. Use the highest one that can see the behaviour. The ideal count is one.
  3. Write the spec below. It fits one page: about 40 lines. Cut anything a builder can find by reading the code.
  4. Create the document in Linear with save_document, attached to the project and titled Spec: <objective>. First search the project with list_documents. If a document with that title exists, update it instead. Skip the write only when the caller explicitly says not to write, as in a dry-run test; then return the body and write nothing. For an Initiative with no project, attach the spec to the Initiative.

Template

## Outcome

What is true for the user once this ships, in two or three sentences.

## Out of scope

- What a reader might assume is included and is not.

## Pass predicates

Each predicate is checkable and fails on today's trunk. Run it before you write it down.

1. <observable behaviour, with the command, request or action that shows it>

## Verification surface

- **Where:** the environment and entry point the builder drives.
- **Scenario:** the end-to-end run that proves the outcome.
- **Seams:** the one or two places tests attach, and why they are the highest that work.

Rules

  • No user-story list, no file paths, no code. Exception: a prototype produced a type shape or state machine that states a decision better than prose. Inline the decision-rich lines and say it came from a prototype.
  • A predicate that already passes on trunk proves nothing. Drop it or sharpen it.
  • A predicate names a behaviour, not a function. "Returns 404 for an unknown id" beats "calls lookup".
  • Write for a reader who has not seen this conversation. Follow unslop and technical-writing.

Reply

The document link, or the body in a draft run, then the assumptions you made, each with the answer you applied.

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.