agentleFS
robdasirobdasi/skills/build-spec/SKILL.md

build-spec

Skill0 starsChanged 5 months agoMITView on GitHub

Write the spec before you let an AI build an automation. Turns a one-line "build me a thing that..." into a reviewable build spec: the job, the trigger, inputs and outputs, the happy path, state and idempotency, failure modes, rate limits, observability, a cost ceiling, and acceptance criteria. Use this BEFORE asking Claude (or any agent) to build a workflow, integration, or scheduled job, so it builds the thing that survives week two instead of the thing that demos. It stops at the spec. Building to the spec is the next step.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. korcekj/skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository5 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Inputs and sources: Every piece of data in, where it comes from, and how it authenticates.

    line 35
  2. Distinctive:

    External dependencies and limits: Every third-party it leans on, their rate limits and quotas, and the cost per call.

    line 45
  3. Distinctive:

    Do not write the implementation.

    line 59

≈ “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

Build Spec

Most AI-built automations break in week two, not week one. They work in the demo because the demo is the happy path. Then a field comes back null, an API rate-limits, the agent runs twice on the same record, and nobody decided what should happen because nobody wrote it down.

This skill writes that down first. You answer a short interview, it produces a build spec you can read in two minutes and hand to Claude (or a human) to build against. The spec is the review surface. Vibe-coding the prototype is fine. Vibe-coding the spec is how you get slop.

Twelve sections, in order. Fill them as you go. Do not skip ahead to writing code.

Inputs (ask for whatever is missing)

  • The one-line ask (required): "a thing that ___". The outcome, in plain English.
  • Who runs it and where (the stack: Trigger.dev / cron / a server / a serverless function), and what it touches (which APIs, DBs, tools).
  • Optional, makes it sharper: an example of a real input record, the worst input you can imagine, and how often it runs.

The 12 sections

  1. Job to be done. One sentence: the outcome, not the mechanism. "Every morning, surface companies in our niche that started hiring this week." If you can't say it in one sentence, the scope is wrong — split it.
  2. Trigger. What starts a run: a cron schedule (state it), a webhook, an event, a manual call. Note what happens if a run is still going when the next trigger fires (skip, queue, or overlap).
  3. Inputs and sources. Every piece of data in, where it comes from, and how it authenticates. For each source: what happens when it's slow, empty, or down.
  4. Outputs and destinations. What the run produces and where it lands (a row, a Slack message, an email, a file). The exact shape. Who or what consumes it next.
  5. The happy path. The steps of one successful run, in order, plainly. This is the part the demo proves. Keep it to the steps, not the code.
  6. State and idempotency. What the run remembers between runs. How you dedupe so the same item isn't processed twice. Whether re-running it is safe (it should be). What the unique key is.
  7. Failure modes. The list nobody writes. For each external call and each assumption: what can go wrong, and what should happen when it does — retry (how many, what backoff), skip and log, fall back, or stop and alert. A null field is a failure mode. A 429 is a failure mode. A model refusing is a failure mode.
  8. External dependencies and limits. Every third-party it leans on, their rate limits and quotas, and the cost per call. What degrades gracefully vs what takes the whole run down.
  9. Observability. What gets logged per run, what a healthy run looks like, and the one or two things that should page you. If you can't tell whether last night's run worked without opening the database, the spec isn't done.
  10. Cost and guardrails. The token / API budget per run, a hard spend ceiling, and a kill switch. What stops it looping forever or burning the month's budget at 3am.
  11. Acceptance criteria. How you know it works, as checks you can run: "given this input, produces this output", "given a 429, retries twice then logs", "running it twice produces one record, not two." These become the tests.
  12. Out of scope. What it deliberately will not do, this version. The single most useful section for stopping an agent from gold-plating. Write the "not yet" list explicitly.

Output

Produce the filled spec as a single markdown document under these twelve headings, with a one-line Open questions list at the top for anything the user still needs to decide. Then stop.

Do not write the implementation. The spec is the deliverable. Building to it — yours, or your agent's — is the next step, and now it has something to build against.

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.