AGENT SKILL

spec-new

Create a committed per-feature spec under `docs/specs/YYYY-MM-DD-<slug>/{spec,tasks}.md` with frontmatter (status, created, owner, pr, tags). Promotes an ephemeral `.claude/plans/<name>.md` into a persistent, searchable artifact. Use when starting a feature that's larger than a one-shot PR.

License 许可
MIT
最近更新
2026-11-14
Stars
★ 1
Forks
1

01 前言 Front Matter

name
spec-new
type
skill
description
Create a committed per-feature spec under `docs/specs/YYYY-MM-DD-<slug>/{spec,tasks}.md` with frontmatter (status, created, owner, pr, tags). Promotes an ephemeral `.claude/plans/<name>.md` into a persistent, searchable artifact. Use when starting a feature that's larger than a one-shot PR.

03 SKILL.md 正文

spec-new

Agent-OS-style spec creation, adapted to our stack.

When to use

  • A plan in ~/.claude/plans/ is ready to execute AND will span multiple sessions or PRs.
  • User asks "let's formalize this / make a spec for it".
  • You're about to create a branch that will take more than one session.

When NOT to use

  • One-session quick fix → just commit, no spec.
  • Research/brainstorm that may not ship → leave as plan.

Usage

~/.claude/rag-index/venv/bin/python ~/.claude/rag-index/specs.py new "<slug>" \
  --repo <path-to-repo> \
  [--from-plan ~/.claude/plans/<file>.md] \
  [--tags "rag,platform"]

Outputs a new folder docs/specs/<date>-<slug>/ containing:

  • spec.md — goal + context + approach + verification, with YAML frontmatter (status: proposed by default).
  • tasks.md — checkbox list. If --from-plan was used, headers like ### Phase N become tasks automatically.

Typical flow

  1. Draft plan in ~/.claude/plans/<name>.md via plan skill.
  2. spec-new <slug> --from-plan ... commits it to the repo.
  3. Work through tasks.md across sessions. Tick boxes as they land.
  4. When all tasks are ✓ and PR merged → use spec-ship.
  5. Periodically regenerate docs/roadmap.md via roadmap-refresh.

Integration with RAG

Specs index under source_type=spec, roadmaps under source_type=roadmap. Retrieve related past specs before drafting:

~/.claude/rag-index/venv/bin/python ~/.claude/rag-index/query.py --scope spec "<new feature summary>"

See also

  • spec-ship — archive a shipped spec.
  • roadmap-refresh — regenerate docs/roadmap.md from spec frontmatters.
  • plan — ephemeral session planning.

04 同仓库更多 Skills

LucasSantana-Dev
LucasSantana-Dev/forgekit

token-audit

Audit historical Claude Code token usage from JSONL session files — shows total spend, cache hit rates, top costly sessions, weekly trends, and where tokens are going. Run after heavy sessions or weekly to measure optimization impact. Answers how many tokens a session used, how expensive was that session, session cost, and token usage report.

★ 1
LucasSantana-Dev
LucasSantana-Dev/forgekit

smart-model-route

Auto-classify prompt complexity via Haiku (with heuristic fallback) and inject model routing hints for Agent tool calls. Wired as a UserPromptSubmit hook — fires on every prompt, routes low tasks to Haiku, standard to Sonnet, complex to Sonnet with thorough reasoning, and critical (security/arch/migrations) to Opus. Handles model selection, for example choose model by task complexity.

★ 1
LucasSantana-Dev
LucasSantana-Dev/forgekit

smart-commands

Decision guide for when to proactively use Claude Code slash commands — /think, /model, /compact, /clear. Use when choosing whether to invoke a command before or during a task, or when a complexity-classifier hook has flagged a task as high or critical. Pairs with the complexity-classifier UserPromptSubmit hook. Answers when to compact, should I switch models, and whether to use extended thinking. Use to pick the right /model command and switch model.

★ 1
LucasSantana-Dev
LucasSantana-Dev/forgekit

spec-ship

暂无简介

★ 1
LucasSantana-Dev
LucasSantana-Dev/forgekit

spec-new

Create a committed per-feature spec under `docs/specs/YYYY-MM-DD-<slug>/{spec,tasks}.md` with frontmatter (status, created, owner, pr, tags). Promotes an ephemeral `.claude/plans/<name>.md` into a persistent, searchable artifact. Use when starting a feature that's larger than a one-shot PR.

★ 1
LucasSantana-Dev
LucasSantana-Dev/forgekit

roadmap-refresh

Regenerate `docs/roadmap.md` for a repo from all specs under `docs/specs/` + their frontmatter (status, tags, pr). Produces Now/Next/Recently-shipped sections. Run after creating / shipping a spec, or at the start of a new session for orientation.

★ 1