agentleFS
bsafronovbsafronov/prosto-skills/skills/.experimental/write-spec/SKILL.md

write-spec

Skill0 starsChanged 3 months agoApache-2.0View on GitHub

Synthesize or revise a feature specification from agreed discussion, supplied requirements, and relevant repository evidence. Use when the user asks to capture intended behavior and acceptance criteria as a spec. Do not use for brainstorming alone, ticket decomposition, publishing an unchanged document, or reviewing implementation against an existing spec.

14 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use audit-choices, close-spec 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.
  • dzhngSkill

    audit-choices

    Audit the choices an implementing agent made, not its diff — a pure decision audit that traces the session's history into a choices ledger, changes no code, and never blocks an unsupervised run. Working code still embeds architecture the user never chose; surface it because future work inherits it. Use when the user wants to review the decisions the AI made on their behalf, before merging or committing AI-implemented work, when integrating a delegated subagent's pass, or when a fix "works" but might be a point fix.

    Also in 3 projects that use this

  • dzhngSkill

    close-spec

    When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to specs/done/ and rewrite it from a build-plan into a durable rationale — the why, the principles, the invariants — pointing back to the real code for the how. Use when implementation has landed and the plan no longer matches what shipped, or the user says a feature/spec is finished. Pairs with [write-spec](../write-spec/SKILL.md) (the plan this closes) and [review](../review/SKILL.md) (run before closing).

    Also in 3 projects that use this

  • LucasMatuszewskiSkill

    audit-agents

    Audit and maintain agent configuration files (.claude/agents, AGENTS.md, CLAUDE.md, agent-memory). Checks for duplicates, outdated info, naming conflicts, wrong technical facts, and files over 200 lines. Fixes all issues and commits.

    Also in 3 projects that use this

  • Halcyon666Skill

    write-skills

    Creates high-quality Agent Skills (SKILL.md files) that follow the open Agent Skills specification. Use when asked to create a skill, write a SKILL.md, package agent instructions, build a reusable capability, or turn a workflow into a shareable skill. Produces spec-compliant, concise, well-structured skills optimized for agent discovery and execution.

    Also in 3 projects that use this

  • isLinXuSkill

    eval-skills

    AI Agent Skill unit testing framework. A framework-agnostic toolkit for discovering, scaffolding, selecting, evaluating, and reporting on AI skills. Use this skill to assess skill quality before production, compare candidate skills on the same benchmark, enforce quality gates in CI/CD, and generate human-readable evaluation reports.

    Also in 3 projects that use this

  • Arman-KudaibergenovSkill

    write-plan

    Этот скилл MUST быть вызван когда есть design.md и нужно разбить доработку на атомарные задачи (2-5 мин) с точными путями файлов и критериями проверки в tasks.md. SHOULD также вызывать как промежуточный шаг между brainstorm и subagent-dev. Do NOT использовать для обсуждения идеи — используй brainstorm; для выполнения задач — используй subagent-dev.

    Also in 4 projects that use this

  • +6 more from dzhng

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 3

    Distinctive

    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:

    Follow the project's useful specification conventions.

    line 25
  2. Distinctive:

    Check that every agreed in-scope behavior has a checkable acceptance criterion, exclusions remain excluded, and assumptions or proposals …

    line 36
  3. Distinctive:

    Stop when the requested artifact captures the agreement, acceptance criteria cover its behavior, and remaining blockers are explicit.

    line 47

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

Write Spec

Produce a specification another person can implement and assess without reconstructing the conversation or mistaking proposals for decisions.

  1. Identify the requested artifact and inspect the discussion, existing spec, domain language, and relevant repository behavior. Separate the user's problem, accepted decisions, proposals, and current implementation. Explicit revisions supersede earlier choices; recency alone does not settle a genuine contradiction. Preserve unaffected requirements when revising an existing spec.
  2. Synthesize the available agreement without restarting discovery. Keep missing or conflicting decisions visible, with the behavior or acceptance criterion they block. For a draft, record them as open questions instead of inventing an answer. If the user needs a resolved specification and evidence cannot supply a material decision, ask only for that decision. Do not claim implementation readiness while a consequential requirement remains unresolved.
  3. Follow the project's useful specification conventions. Otherwise capture the problem and intended outcome, in-scope behavior, observable acceptance criteria, exclusions, and material open decisions. Add actors, error cases, constraints, and user stories only where they clarify agreed behavior; an exhaustive template must not manufacture scope.
  4. Make acceptance criteria distinguish success from failure through an observable interface. Reuse agreed test boundaries and repository evidence; a spec request does not require a new test architecture, another boundary approval, or TDD. Record only supported implementation decisions. Preserve exact contracts or a small decision-bearing prototype excerpt when prose would lose meaning, identifying its status without treating it as implemented.
  5. Check that every agreed in-scope behavior has a checkable acceptance criterion, exclusions remain excluded, and assumptions or proposals are not presented as facts. Current code is evidence of what exists, not authority to overwrite the agreed target. Surface relevant implementation gaps without fixing them.

Return the spec or update the requested local artifact. This Skill owns the specification; decomposition, implementation, tracker creation, labels, and publication are separate actions. Complete the reviewable draft before any needed publication approval. Existing explicit authorization for a destination remains sufficient; never require tracker setup merely to write a local spec.

Stop when the requested artifact captures the agreement, acceptance criteria cover its behavior, and remaining blockers are explicit. A spec is not evidence that its behavior has been implemented or verified.

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.