Index of every page on this site: llms.txt
All skills
Run it yourself

Write a product spec and a tech spec before building anything ambiguous, cross-cutting, or visible to users, and get a human to approve them before code starts. Use when triage says "spec", when a request has more than one reasonable design, when a change touches data shape, public APIs, or migrations, when asked to "write a spec", "plan this feature", or "design this", or when an earlier attempt was rejected as "not what I asked for".

Use this Skill: https://skilld.dev/gh/aditya-deokar/software-factory/spec-writing

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesproduct-spec.md

≈471 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Product spec template

Copy into specs/<slug>.md. Delete any section that genuinely does not apply, and say in one line why rather than leaving it empty.

# <Title>

Issue: #<n> · Status: draft | approved · Author: <agent/run id>

## Open questions

1. <Question>? Recommended: <answer>, because <one line>.
2. ...

## Aim

From `ambition-engine`. Goal beyond the goal: <line>. Rung: <n> of <m>,
<one line>. Target: <hard, specific>. Judge: <the outside check>. Rungs
above this spec: #<issue>.

## Problem

Who hits this, in what situation, and what it costs them today. Two to four
sentences. Quote the reporter if their words are clearer than yours.

## Users and situations

- <User type>: <the situation where this matters to them>

## Invariants

What must stay true no matter how this is built. These are the rules a
future change must not break.

- <e.g. A draft is never visible to anyone but its author.>

## Behavior

What a user sees and can do when this ships, step by step. Include the
unhappy paths: empty states, errors, permission denied, slow network.

## Non-goals

What this deliberately does not do, so review does not drift into it.
The rungs above the aim go here, each with its issue link.

## Acceptance checks

Each one observable, so `test-evidence` can prove it with an artifact.

| # | Check | Evidence type |
|---|---|---|
| 1 | Saving with an empty title shows "Title is required" and keeps the form contents | recording |
| 2 | A draft URL opened by another user returns 404 | output-pair |

Notes:

  • Invariants are the most reusable part. When one is new and durable, add it to the repo's AGENTS.md invariants after approval, or save it with agent-memory as a decision.
  • "Evidence type" uses the ledger's names: recording, screenshots, visual-diff, output-pair, measurement, query, log, test-suite.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning29d3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    This skill facilitates a structured workflow for writing product and technical specifications, incorporating human approval through GitHub Pull Requests. It utilizes standard version control and CLI tools to manage documentation and record approvals. The process emphasizes human-in-the-loop review, which mitigates risks associated with processing external information like issue descriptions.

  • Socket29d

    No alerts

  • Snyk29d

    Risk: MEDIUM · 1 issue

Signed by skilld at 546bbff. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated last month
What it can do
Runs commands
All 1 allowed tools
Bash(git:*) Bash(gh pr *) Bash(gh issue *) Bash(node:*)
Other metadata
compatibility
Plain markdown, any harness. Opening the spec as a PR needs git and an authenticated gh CLI. Records approval in run-ledger when the repo has .factory/.
metadata
{
  "author": "software-factory",
  "version": "1.1",
  "signals": "[misread-intent]"
}

README badge

README badge for aditya-deokar/software-factory/spec-writing