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.

referencestech-spec.md

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

Tech spec template

Goes under the product spec in the same file, or in specs/<slug>-tech.md when the product half has a different reviewer.

## Tech spec

### Current shape

How the relevant code works today, with file paths. Only what the change
touches. A reviewer who does not know this area should be able to follow.

### Proposed shape

- Boundary (decides who, whether, what next): <files, functions>
- Service (does the how, returns structured results): <files, functions>
- Data: <tables, columns, files, and whether the change is additive>

A diagram helps when more than three components talk to each other.

### Acceptance check mapping

| Product check | Where it is enforced | How it is tested |
|---|---|---|
| 1 | `routes/drafts.ts` boundary, permission check | integration test plus recording |

### Alternatives considered

- <Option>: rejected because <reason>.

### Files touched

Expected list. Used by `worktree-isolation`'s overlap check against open PRs.

### Data and migration

Additive or destructive? How is it rolled back? What happens to rows written
between deploy and rollback?

### Risks

What could go wrong in production, and how `release-monitoring` would notice.

### Rollout

Flag, staged, or all at once. For all at once, say why that is safe.

### Test plan

Which automated tests are added, and which acceptance checks need runtime
evidence from `test-evidence`.

Notes:

  • Keep file paths real. Check them with a quick search before writing them down; a spec that names files that do not exist loses the reviewer's trust.
  • If "Files touched" overlaps an open PR, say so here and in the PR. That decision belongs to the human, per worktree-isolation.

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