Best for
- Use when authoring a spec or implementation plan, or planning multi-task work.
whiteguo233/OpenBiliClaw/.claude/skills/writing-specs/SKILL.md
Use when authoring a spec or implementation plan, or planning multi-task work.
Decision brief
Produce an authoritative design spec and an executable implementation plan before changing code. Resolve every placeholder against the live repository.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/whiteguo233/OpenBiliClaw --skill ".claude/skills/writing-specs"Inspect the Agent Skill "writing-specs" from https://github.com/whiteguo233/OpenBiliClaw/blob/3d0889e6f29bf2c47f57a430d4f087f0f17bbff7/.claude/skills/writing-specs/SKILL.md at commit 3d0889e6f29bf2c47f57a430d4f087f0f17bbff7. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
: .
Define interfaces, algorithms, error behavior, tests, rollout, and numeric acceptance gates.
Define interfaces, algorithms, error behavior, tests, rollout, and numeric acceptance gates.
For Claude: REQUIRED SUB-SKILL: superpowers:executing-plans (execute this plan task-by-task). Spec: YYYY-MM-DD--spec.md Status: Execution order: Tech:
State the production/shadow/canary observation, commands, owner, duration, and rollback trigger.
Permission review
The documentation asks the agent to run terminal commands or scripts.
[ ] Run `<focused test command>` and confirm FAIL for the intended missing behavior.Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 91/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 3,023 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Produce an authoritative design spec and an executable implementation plan before changing code. Resolve every placeholder against the live repository.
Create both documents with the same dated slug:
docs/plans/YYYY-MM-DD-<slug>-spec.mddocs/plans/YYYY-MM-DD-<slug>-plan.mdCommit the pair as docs: add <feature> spec and plan before implementation. Do not mix code
into this docs-first commit.
# <Feature> Spec — <measurable outcome>
**Created:** YYYY-MM-DD
**Scope:** <affected behavior, modules, and integrations>
**Out of scope:** <explicit non-goals>
## Goal
State the current cost or failure, quantified target outcomes, and the exact commands that
verify them.
## Design invariants (MUST hold in every phase)
1. **<Invariant name>:** <falsifiable rule and verification surface>.
2. **<Invariant name>:** <falsifiable rule and verification surface>.
## Current diagnosis
### D1. <Observed problem>
Record evidence at `path/to/file.py:line`; distinguish confirmed facts from hypotheses.
### D2. <Observed problem>
Record the caller, data flow, failure mode, and existing test coverage with `file:line` evidence.
## Priority classification
| Phase | Content | Tier | Why |
| --- | --- | --- | --- |
| 0 | <gate or prerequisite> | **MUST** | <risk it controls> |
| 1 | <main change> | RECOMMENDED | <measured leverage> |
List dependencies, then group work into **Wave A**, **Wave B**, and later waves by risk and
dependency. State what can ship independently and where work may safely stop.
## Phase designs
### Phase 0 — <name>
Define interfaces, algorithms, error behavior, tests, rollout, and numeric acceptance gates.
## Expected impact
| Lever | Measured effect |
| --- | --- |
| <phase> | <quantified result> |
## Documentation obligations
List every module doc, changelog, architecture diagram, CLI/config reference, installer doc,
and README surface triggered by the design.
Every invariant must be testable, every diagnosis must cite live code, and every claimed improvement must have a reproduction command.
# <Feature> — Implementation Plan
> **For Claude:** REQUIRED SUB-SKILL: superpowers:executing-plans (execute this plan task-by-task).
> **Spec:** [`YYYY-MM-DD-<slug>-spec.md`](./YYYY-MM-DD-<slug>-spec.md)
> **Status:** <revision and review state>
> **Execution order:** <dependency-ordered tasks and Wave grouping>
> **Tech:** <runtime, interpreter, focused tests, lint, format, and type-check commands>
**Invariants that MUST hold — re-read before each task:**
- <Restate the spec's invariant without weakening it.>
- <Restate the spec's invariant without weakening it.>
### Task N: <single deliverable>
**Files:** Add/modify/test exact paths.
**Interfaces:** Consumes: <inputs/dependencies>. Produces: <outputs/contracts>.
**Steps:**
- [ ] Write one focused failing test for <behavior>.
- [ ] Run `<focused test command>` and confirm FAIL for the intended missing behavior.
- [ ] Add the minimal implementation needed for that test.
- [ ] Rerun `<focused test command>` and confirm PASS with no warnings.
- [ ] Run the touched regression tests, lint/format checks, and MyPy command.
**Acceptance:**
- Numeric gate: <metric, comparator, threshold, sample size, and failure meaning>.
- Reproduce with `<exact command>`; record the result in the PR.
## Verification after merge
State the production/shadow/canary observation, commands, owner, duration, and rollback trigger.
## Explicitly out of scope
- <non-goal>
Keep the handoff line and checkbox steps verbatim so superpowers/GSD execution conventions remain discoverable. Restate every spec invariant at the plan top and require the executor to re-read them before each task.
For a model-visible profile reduction, a concrete gate is: admission flip rate ≤ 3% and
Spearman rank correlation ≥ 0.95 on at least 100 aligned candidates, verified by
scripts/run_profile_diet_ab.py. The command, dataset provenance, baseline commit, and observed
values belong in the spec and the task acceptance block—not only in a PR comment.
Use
docs/plans/2026-07-05-llm-token-diet-spec.md
as a reference for quantified invariants, D1..Dn diagnosis, risk Waves, phase designs, impact,
and documentation obligations.
Frequently asked questions
Produce an authoritative design spec and an executable implementation plan before changing code. Resolve every placeholder against the live repository.
The source record exposes this install command: npx skills add https://github.com/whiteguo233/OpenBiliClaw --skill ".claude/skills/writing-specs". Inspect the command and pinned source before running it.
Static rules flagged exec-script in the source; the page lists the matching lines and excerpts.
Alternatives
oaustegard/claude-skills
Generate hierarchical _FEATURES.md files that describe what a codebase DOES from a user/consumer perspective, anchored to source symbols via tree-sitting. Supports large complex codebases through feature-driven decomposition into sub-feature files. Uses a multi-pass synthesis: orientation → detail → overview rewrite. Use when someone says "what does this do", "document features", "feature inventory", "_FEATURES.md", or needs to understand a codebase's purpose before modifying it. Complements tre
NintendaDev/unikit-ai
Generate and maintain the project's TECHNICAL documentation from its codebase — scans the project structure, tech stack, and module boundaries, then writes a lean README landing page plus detailed topic pages (architecture, modules, setup, build, APIs), only the docs that are relevant. Use whenever the user wants to create, update, or validate documentation of the CODE or the project itself, e.g. "generate documentation", "create docs", "write the README", "update the project docs", "document th
alirezarezvani/claude-skills
ISO 13485 Quality Management System implementation and maintenance for medical device organizations. Provides QMS design, documentation control, internal auditing, CAPA management, and certification support. Use when working with medical device quality systems, preparing for ISO 13485 audits, managing regulatory compliance documentation, setting up corrective actions, or building audit preparation programs. Useful for quality management, audit preparation, regulatory compliance, medical device d
compozy/compozy
Build terminal user interfaces with Go and Bubbletea framework. Use when creating TUI apps with the Elm architecture, dual-pane layouts, accordion modes, mouse/keyboard handling, Lipgloss styling, and reusable components. Includes production-ready templates, effects library, and battle-tested layout patterns from real projects. Don't use for plain-text CLI scripts without an interactive UI, web/desktop GUIs, or non-Go terminal frameworks (Ink, Textual, Ratatui).