agentleFS
sivaprasadreddysivaprasadreddy/sivalabs-agent-skills/skills/spec-writer/SKILL.md

spec-writer

Skill198 starsChanged 5 days agoMITView on GitHub

Accept a feature description, a GitHub issue, or an ID referencing a requirement in a local file, interview the human one question at a time to clarify intent and business rules, then write reviewable behavioral requirements and acceptance criteria before implementation.

30 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use adr-writer, security-reviewer and 3 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.
  • Mathews-TomSkill

    adr-writer

    Generates Architecture Decision Records capturing context, rationale, alternatives, and consequences in numbered status-tracked format. Triggers on: "write an ADR", "document this decision", "architecture decision record", "decision record", "design decision", "ADR for".

    Also in 3 projects that use this

  • lsyamsiarSkill

    security-reviewer

    Identifies security vulnerabilities, generates structured audit reports with severity ratings, and provides actionable remediation guidance. Use when conducting security audits, reviewing code for vulnerabilities, or analyzing infrastructure security. Invoke for SAST scans, penetration testing, DevSecOps practices, cloud security reviews, dependency audits, secrets scanning, or compliance checks. Produces vulnerability reports, prioritized recommendations, and compliance checklists.

    Also in 3 projects that use this

  • GitHubSkill

    meeting-minutes

    Generate concise, actionable meeting minutes for internal meetings. Includes metadata, attendees, agenda, decisions, action items (owner + due date), and follow-up steps.

    Also in 3 projects that use this

  • GoogleSkill

    code-reviewer

    Also in 4 projects that use this

  • genomewalkerSkill

    learn

    Learn from web sources, generate SKILL.md, and store key patterns in soul memory. Trigger keywords: learn, skill-gen, web-learn, documentation, tutorial.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 26 edited versions we read keep these.

  • 6

    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:

    Feature description: check docs/requirements.md for a matching requirement and reuse its ID if found.

    line 15
  2. Distinctive:

    If the input type is unclear, the source cannot be read, or the ID does not resolve to exactly one requirement, ask the human before …

    line 16
  3. Distinctive:

    Read the available request, issue, specification, and relevant project context.

    line 20
  4. Very specific:

    Use the following metadata keys and headings in this order.

    line 30
  5. Distinctive:

    Do not silently invent business rules or convert technical preferences into business requirements.

    line 61
  6. Distinctive:

    Prefer observable behavior over prescribing classes, methods, frameworks, or internal design.

    line 62
  7. Distinctive:

    Keep requirements testable, specific, and concise.

    line 64
  8. Distinctive:

    Do not begin feature implementation until the behavior and material ambiguities are approved.

    line 65

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

Behavior Specification

Purpose

Establish what the software must do before an agent chooses how to implement it.

Starting input

  • GitHub issue (e.g. #123, owner/repo#123, or an issue URL): read it with gh issue view <id> --comments and use its title, description, and comments as the starting requirements.
  • Local ID reference (e.g. UC-001, REQ-001): read the matching requirement from docs/requirements.md (or the referenced requirements file) and use its ID, title, dependencies, description, and acceptance criteria as the starting requirements.
  • Feature description: check docs/requirements.md for a matching requirement and reuse its ID if found; otherwise treat it as a new requirement.
  • If the input type is unclear, the source cannot be read, or the ID does not resolve to exactly one requirement, ask the human before proceeding.
  • During the interview, ask only about gaps and conflicts; do not repeat questions the source already answers.

Workflow

  1. Read the available request, issue, specification, and relevant project context.
  2. Separate explicit requirements from assumptions and inferred details.
  3. Identify ambiguities, conflicting rules, missing failure behavior, boundary conditions, and relevant security or data-integrity concerns.
  4. Begin an adaptive interview with the most important gap in understanding. Ask exactly one question per turn, addressing a single decision or topic, then wait for the human's answer. Keep follow-ups, confirmation, and file-location or overwrite questions in separate turns too; do not bundle subquestions into one sentence, list, or tool call.
  5. Use each answer to update the understanding and choose the next question. Follow up on vague answers or contradictions before moving on. Explore relevant edge cases and negative scenarios as they emerge, clearly labeling suggestions that need a business decision. Offer brief examples or choices when useful, while keeping each turn focused on one question. Ask about implementation details only when they affect expected behavior.
  6. Continue until the clarity criteria below are met, using prior answers rather than repeating questions. Keep track of confirmed details and unresolved points; defer drafting or saving the specification until the interview is complete. Then summarize the understood behavior, scope, and assumptions in the conversation and ask one question inviting confirmation or correction. Wait for the response; silence is not confirmation. If corrected, resolve the remaining gaps one question at a time and confirm the revised understanding before proceeding.
  7. Produce a concise behavior specification using the specification format below. Describe the goal, triggers, main success paths, validation and failure behavior, and relevant boundary and edge cases under UseCase Details. State invariants under Business Rules and acceptance criteria as observable outcomes. Record any explicitly deferred, nonessential decisions under the relevant section.
  8. Save the specification as {feature-title}.md in the feature's agreed documentation location (default to docs/specs/). Use a short, filesystem-safe feature title (lowercase kebab-case); do not overwrite an existing specification without checking with the human. Present the specification and any added requirements entry for human review. Do not treat unresolved assumptions as approved requirements.

Specification format

Use the following metadata keys and headings in this order. The metadata values shown are examples: use the feature's title, status, following existing project conventions. Set the initial status to NOT_IMPLEMENTED.

---
Title: Initial Project Setup
Status: NOT_IMPLEMENTED
---

## Actors
## Preconditions
## UseCase Details
## Business Rules
## Acceptance Criteria
## In Scope
## Out of scope

Populate every section with the confirmed behavior; use None when a section does not apply.

Clarity criteria

The interview is complete when the human has established:

  • The actors, their goals, and the problem the feature addresses.
  • The scope, exclusions, triggers, and preconditions.
  • The main success paths and observable outcomes.
  • The business rules, validation, failure behavior, and boundaries that materially affect correctness.
  • Enough detail to state testable acceptance criteria without inventing requirements.

Use these as coverage criteria, not a fixed questionnaire. An answer may resolve several areas at once. Resolve material uncertainty before declaring clarity; record explicitly deferred, nonessential decisions as open questions. Once the criteria and confirmation are satisfied, write the specification instead of continuing the interview.

Rules

  • The human owns business intent and final decisions about expected behavior.
  • Do not silently invent business rules or convert technical preferences into business requirements.
  • Prefer observable behavior over prescribing classes, methods, frameworks, or internal design.
  • Reuse existing project conventions and documented decisions; call out conflicts rather than silently overriding them.
  • Keep requirements testable, specific, and concise.
  • Do not begin feature implementation until the behavior and material ambiguities are approved.

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.