Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
2691bce
Add design spec for generate-feature-docs skill
jevansnyc Apr 28, 2026
8acd181
Add implementation plan for generate-feature-docs skill
jevansnyc Apr 28, 2026
0ee1cfd
Exclude internal specs from VitePress build
jevansnyc Apr 28, 2026
b563377
Add implemented/ directory for promoted specs
jevansnyc Apr 28, 2026
17a2207
Move existing specs to drafts/ with status: draft frontmatter
jevansnyc Apr 28, 2026
367f79e
Document spec-readiness convention in CLAUDE.md
jevansnyc Apr 28, 2026
2d29ec6
Add /generate-feature-docs slash command
jevansnyc Apr 28, 2026
2a6acb1
Add SKILL.md with identity and readiness rules for generate-feature-docs
jevansnyc Apr 29, 2026
f7466fe
Fix YAML frontmatter and chat-native prompts in generate-feature-docs…
jevansnyc Apr 29, 2026
9e8e678
Add stage 1 extraction pass to generate-feature-docs skill
jevansnyc Apr 29, 2026
e05ec41
Fix table cell separators in stage 1 outline template
jevansnyc Apr 29, 2026
9a7659d
Add stage 2 generation pass to generate-feature-docs skill
jevansnyc Apr 29, 2026
48421b3
Add edge cases and self-check rules to generate-feature-docs skill
jevansnyc Apr 29, 2026
a51c686
Amend generate-feature-docs design with stricter readiness verification
jevansnyc Apr 30, 2026
2f648ce
Implement readiness verification amendments in generate-feature-docs …
jevansnyc Apr 30, 2026
33d1cf5
Add verified_against_commit to documented spec frontmatter
jevansnyc Apr 30, 2026
c716178
Apply prettier formatting to docs and specs
jevansnyc Apr 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .claude/commands/generate-feature-docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Generate publisher-facing documentation from an implemented engineering spec.

Spec path: $ARGUMENTS

Use the `generate-feature-docs` skill at `.claude/skills/generate-feature-docs/SKILL.md` to perform this task. The skill runs in two interactive stages (extraction pass for outline review, generation pass for prose and reference-doc updates) and commits the result on user approval.

If `$ARGUMENTS` is empty, ask the user which spec to document, defaulting to the most recently modified file under `docs/superpowers/specs/implemented/`.
408 changes: 408 additions & 0 deletions .claude/skills/generate-feature-docs/SKILL.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ src/*.html
!.claude/settings.json
!.claude/commands/
!.claude/agents/
!.claude/skills/

# SSL certificates
*.pem
Expand Down
26 changes: 26 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,32 @@ both runtime behavior and build/tooling changes.

---

## Engineering Spec Conventions

Implementation specs live under `docs/superpowers/specs/`, split by lifecycle:

- `docs/superpowers/specs/drafts/`: brainstorm output. The Superpowers brainstorming skill writes new specs here. Specs are not yet ready for documentation. Frontmatter: `status: draft`.
- `docs/superpowers/specs/implemented/`: post-implementation truth. Specs are promoted here once code has shipped and the spec body has been updated to reflect what shipped. Frontmatter: `status: implemented`.

**Required frontmatter** (every spec):

```yaml
---
status: draft | in-progress | implemented
implemented_in: PR#123 # optional, set on promotion
last_reviewed: 2026-04-15 # optional, YYYY-MM-DD
verified_against_commit: a1b2c3d4 # optional, audit trail (skill records, does not validate)
---
```

**For agents writing new specs:** when invoked from this project, the brainstorming skill must write to `docs/superpowers/specs/drafts/`, not the parent directory. Add `status: draft` frontmatter at write time.

**For agents generating user-facing docs:** the `generate-feature-docs` skill operates only on specs under `implemented/` with `status: implemented`. See `.claude/skills/generate-feature-docs/SKILL.md`.

Promoting a spec from draft to implemented is a `git mv` plus a frontmatter edit, ideally landed in the same PR that updates the spec body to match shipped code.

---

## What NOT to Do

- Do not add unnecessary dependencies without justification.
Expand Down
1 change: 1 addition & 0 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export default withMermaid(
description:
'Privacy-preserving edge computing for ad serving and edge cookie (EC) generation',
base: '/trusted-server',
srcExclude: ['superpowers/**', '**/node_modules/**'],

// Replace version placeholders like {{NODEJS_VERSION}} with values from .tool-versions
markdown: {
Expand Down
Loading
Loading