spec-writer

spec-writer is a skill for Claude Code from andregusman-raiz/a-gusman-claude. It costs 58 tokens per session (1,839 once invoked), scanned A, original, MIT.

A tool for writing short technical specifications that describe a feature or issue, its requirements, edge cases, and acceptance criteria. A specification is a shared plan for what software should do and how completion will be judged.

In plain words
What is it for?
Use it to document simple features, issues, and refactoring work before implementation.
Why use it?
It helps turn a vague feature request or bug into clear work that developers and reviewers can agree on.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: model in frontmatter.

Good fit Use it to document simple features, issues, and refactoring work before implementation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/andregusman-raiz/a-gusman-claude/spec-writer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add andregusman-raiz/a-gusman-claude --skill spec-writer
Clone the repo
git clone --depth 1 https://github.com/andregusman-raiz/a-gusman-claude

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spec-writer

README.md
[![agentmods](https://agentmods.dev/badge/skills/andregusman-raiz/a-gusman-claude/spec-writer/github.svg)](https://agentmods.dev/skills/andregusman-raiz/a-gusman-claude/spec-writer)
Your own site
<a href="https://agentmods.dev/skills/andregusman-raiz/a-gusman-claude/spec-writer"><img src="https://agentmods.dev/badge/skills/andregusman-raiz/a-gusman-claude/spec-writer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spec-writer

Your own site · 80×15
<a href="https://agentmods.dev/skills/andregusman-raiz/a-gusman-claude/spec-writer"><img src="https://agentmods.dev/badge/skills/andregusman-raiz/a-gusman-claude/spec-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,839 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 4
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.01839
Opus 5 $0.00029 $0.00920
Sonnet 5 $0.00012 $0.00368
Haiku 4.5 $0.00006 $0.00184

Measured 9d ago against content hash 81f437738163, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

spec-writer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/spec-writer/SKILL.md · 217 lines

How it starts

The opening of the file, as written. The whole thing — 217 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Spec Writer Skill

Criar SPECs tecnicas padronizadas para features, issues e refactors.

Docs Location (OBRIGATORIO)

Antes de salvar, resolver PROJECT_ROOT e validar:

PROJECT_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
if [ "$PROJECT_ROOT" = "$HOME/Claude" ]; then
  # PARAR — estou no workspace raiz, nao em projeto. Perguntar qual projeto.
  exit 1
fi
DEST="$PROJECT_ROOT/docs/specs/{name}-spec.md"

NUNCA salvar em ~/Claude/docs/specs/ — hook docs-location-guard.sh bloqueia. Detalhes: ~/Claude/.claude/shared/patterns/docs-location.md.

Naming Convention

  • Feature: $PROJECT_ROOT/docs/specs/{feature-name}-spec.md
  • Issue: $PROJECT_ROOT/docs/specs/issue-{N}-spec.md
  • Refactor: $PROJECT_ROOT/docs/specs/refactor-{scope}-spec.md

Template: SPEC Completa

# SPEC: [Titulo]

**Issue**: #N (se aplicavel)
**Author**: [nome]
**Date**: YYYY-MM-DD
**Status**: Draft | Review | Approved | Implemented

---

## 1. Objetivo

O que esta feature/fix resolve? Por que e necessario?
[1-3 frases claras]

## 2. Contexto

Situacao atual, problema, motivacao.
- Estado atual: [como funciona hoje]
- Problema: [o que esta errado ou faltando]
- Impacto: [quem e afetado e como]

## 3. Escopo

### In Scope
- Item 1
- Item 2
- Item 3

### Out of Scope
- Item A (motivo)
- Item B (sera feito na issue #M)

## 4. Requisitos Funcionais

### RF-01: [Nome do requisito]
**Descricao**: O sistema deve...
**Input**: [dados de entrada]
**Output**: [resultado esperado]
**Regras**:
- Regra 1
- Regra 2

### RF-02: [Nome do requisito]
...

## 5. Requisitos Nao-Funcionais

| ID | Requisito | Metrica | Target |
|----|-----------|---------|--------|
| RNF-01 | Performance | Response time | < 200ms p95 |
| RNF-02 | Disponibilidade | Uptime | 99.9% |
| RNF-03 | Seguranca | Auth required | All endpoints |
| RNF-04 | Acessibilidade | WCAG | Level AA |

## 6. Edge Cases

| # | Cenario | Comportamento Esperado |
|---|---------|----------------------|
| EC-01 | Input vazio | Mostrar mensagem de validacao |
| EC-02 | Timeout de API | Retry 3x com backoff, depois erro |
| EC-03 | Dados duplicados | Deduplicar silenciosamente |
| EC-04 | Permissao negada | Redirect para login |
| EC-05 | Dados inconsistentes | Log warning, usar fallback |

## 7. Criterios de Aceite

- [ ] CA-01: [criterio especifico e verificavel]
- [ ] CA-02: [criterio especifico e verificavel]
- [ ] CA-03: [criterio especifico e verificavel]
- [ ] CA-04: Todos os testes passam
- [ ] CA-05: TypeScript sem erros (`bun run typecheck`)
- [ ] CA-06: Lint sem warnings (`bun run lint`)
- [ ] CA-07: Code review aprovado

## 8. Dependencias

| Dependencia | Status | Responsavel |
|-------------|--------|-------------|
| API endpoint /foo | Done | Backend team |
| Design mockup | In Progress | UX team |
| Migration #123 | Pending | DBA |

## 9. Estimativa

| Fase | Esforco |
|------|---------|
| Implementacao | X horas |
| Testes | Y horas |
| Code review | Z horas |
| **Total** | **N horas** |

## 10. Notas Tecnicas

Decisoes de implementacao, trade-offs, riscos conhecidos.

Read the full file on GitHub · 217 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 217 lines · 58 tokens per session scan A 81f437738163

Subscribe to this mod's changes

spec-writer is a skill published in the GitHub repository andregusman-raiz/a-gusman-claude (19 stars, last pushed 4d ago), licensed MIT. It adds 58 tokens to every session and 1,839 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

taiyi-ui-design

A design-planning guide for describing how an application's user interface should look and behave. It produces a UI-DESIGN.md document covering layouts, components, interactions, accessibility, and error states.

Dong90/oh-my-taiyiforge · 35 tokens

taiyi-evolve

A workflow skill that compares the implemented code with the frozen design after development and testing. It records architecture changes and proposes updates to DESIGN.md, the document describing the intended system structure.

Dong90/oh-my-taiyiforge · 37 tokens

taiyi-diagram-c4

A code-scanning tool that builds C4 architecture documents from a repository. It separates facts observed in the code from conclusions inferred about the design and uses Mermaid diagrams as the source format.

Dong90/oh-my-taiyiforge · 48 tokens

retrospective-audit

Stage B of /prflow:retrospective-weekly: given a most-recent-first subset of one recurring pattern's occurrence-PR context bundles (bounded by auditbundlecap), re-derive the root cause and return one JSON object carrying a ranked findings array (one to three sub-patterns) — no edits, no worktree. Invoked as a subagent…

The01Geek/prflow · 91 tokens

docs

Use when documentation generally needs to catch up with a branch before pushing or merging, covering internal developer docs, external customer-facing docs, and release notes together — "update the docs", "do a docs pass before I merge", "make sure everything's documented". Prefer this when no single documentation…

The01Geek/prflow · 97 tokens

tmux-lane-orchestrator

Manage one tmux agent lane from its matching ops pane, inspect live pane state and Codex logs on cold start, and produce concise manager summaries for OpenClaw and adjacent project work.

vincentkoc/dotskills · 46 tokens