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.5 $0.00023 $0.00736
Sonnet 5.5 $0.00012 $0.00368
Haiku 4.5 $0.00006 $0.00184

Measured 1mo ago against content hash 81f437738163, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (18 stars, last pushed 1mo ago), licensed MIT. It adds 58 tokens to every session and 1,839 once invoked, about $0.0002 per session on Opus 5.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

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens