AGENT SKILL

docs

Generate or refresh project documentation (README managed sections + docs/) from code, CHANGELOG and .vibe/

License 许可
MIT
最近更新
2026-11-13
Stars
★ 0
Forks
0

01 前言 Front Matter

name
docs
model
claude-sonnet-5-5
version
1.1.0
description
Generate or refresh project documentation (README managed sections + docs/) from code, CHANGELOG and .vibe/
argument-hint
[optional: --full to regenerate docs/ files]

03 SKILL.md 正文

/vibe:docs — Project Documentation Maintainer

Generate or refresh two kinds of documentation, both derived from the real project state (manifest, CHANGELOG, .vibe/, code) — never invented:

  • README managed sections, written for the end user: no file, function, or module names. Nothing outside the managed markers is ever touched — not a character, not whitespace.
  • docs/ files, written for developers who need to understand the project: real module names, paths, and commands are welcome as long as they come from the code.

Both in short, plain sentences — a fact per line beats a dense paragraph — and in the language CLAUDE.md's ## Project language section names; failing that, the language the README already uses, then the conversation's. Whatever the language, the banner, the markers and every command, path or identifier stay verbatim.

Step 1 — Read the sources

README.md; the manifest(s); CHANGELOG.md; .vibe/ (index.md, modules/, models.md, glossary.md, decisions/); .env.example; CLAUDE.md; the code itself (tree, entry points, main modules — .vibe/ is not the only source); every file currently in docs/. --full in $ARGUMENTS forces full regeneration of docs/.

Invoke the vibe:tasks skill with Update README sections → Update docs/.

Step 2 — README managed sections

Only the content between a marker pair is rewritten:

<!-- vibe:begin:features -->
...generated content...
<!-- vibe:end:features -->
Section Markers Derived from
Features vibe:begin:features / vibe:end:features CHANGELOG.md, all versions + [Unreleased] — deduplicated, phrased as benefits, not a changelog copy; no CHANGELOG.md → what the code and the manifest let the user do, nothing more (a bare scaffold has no feature yet — say so in one line rather than invent one)
Installation vibe:begin:install / vibe:end:install manifest — prerequisites, the install command that puts what the manifest exposes (a bin, an executable, a library) in the user's hands, how to verify it, update/uninstall when the method provides them
Usage vibe:begin:usage / vibe:end:usage manifest scripts and real entry points — every user-facing command with realistic examples checked against the code
Documentation vibe:begin:docs-index / vibe:end:docs-index every Markdown file in docs/, filled in Step 3 once docs/ is final
  • README with managed sections → rewrite inside each pair present; a pair that is missing is reported as absent, never inserted (to manage that section too, paste its markers where the section belongs and run the skill again).
  • README without any managed section → never insert them silently into a hand-written file: list the sections that could be managed and ask which to add (end of file by default).
  • No README → create it: title, one-paragraph description (manifest + CLAUDE.md), the four managed sections.

Step 3 — docs/

docs/ Markdown files are fully generated and start with:

> Generated by /vibe:docs — manual edits will be overwritten; use README for hand-written content.

Inventory the aspects a new developer must understand, from the Step 1 sources including the code walk, and create one file per aspect — only when the condition holds and there is real substance:

File Aspect Only if
docs/architecture.md main modules, responsibilities, data flow ≥ 2 identifiable modules
docs/configuration.md env vars and options: name, purpose, default, required the project has configuration
docs/data-model.md entities, relationships, persistence a schema, models, or migrations exist
docs/api.md HTTP endpoints or a library's public surface: inputs, outputs, errors an API or public surface exists
docs/workflows.md business flows, lifecycles, state machines multi-step processes exist
docs/testing.md kinds of tests, what each covers, how to run them a test suite exists
docs/development.md local setup, build, project conventions setup takes more than one obvious command
docs/<aspect>.md any other substantial aspect, name kept stable across runs it would confuse a new developer otherwise

Guardrails: never an empty or near-empty file, and no docs/ directory at all when no aspect qualifies; never a paraphrase of .vibe/ or the README — each doc gives a reading those sources do not; a generated file whose aspect disappeared from the code is deleted and reported; a docs/ file without the banner is hand-written — leave it alone and mention it.

Diagrams: when one explains better than prose, embed a ```mermaid block derived from the code, ~15 nodes max, always paired with explanatory text.

Incremental by default: a generated file is rewritten only when something it describes changed since its last commit — git log -1 --format=%H -- docs/<file> for that commit, then git log <commit>..HEAD --name-only --pretty=format: and git status --porcelain on the paths it names — or when it was never committed; without git history every applicable file is rewritten. --full rewrites every applicable file. The stale-aspect check above runs on every generated file either way.

Non-Markdown files in docs/ (.html, .css, .js, images, .nojekyll, …) are never modified, never deleted and never indexed.

Documentation index: once docs/ is final, rewrite the docs-index section (when its markers exist) so it lists every Markdown file in docs/ — generated or hand-written — one line each (relative link + one user-facing sentence), sorted by path, entries for vanished files removed; "No additional documentation yet." if docs/ is absent or holds no Markdown file.

Step 4 — Report

Short, plain sentences: README sections updated / unchanged / absent; each aspect considered, marked created / updated / unchanged / skipped / deleted with its reason; any hand-written docs/ file left alone. Do not print file contents unless asked. Do not commit — the caller or the user does.

04 同仓库更多 Skills

neolao
neolao/claude-plugin-vibe

workspace-init

Set up or refresh a multi-repo workspace from the parent folder of its sibling repos — the hub repo (repos registry, cross-repo backlog and decisions) that /vibe:next-task reads, and the local, untracked workspace-root CLAUDE.md that indexes the hub and the siblings

★ 0
neolao
neolao/claude-plugin-vibe

usage-report

Usage report of a vibe workflow: counts, while the work runs, the bricks called, the loop rounds, the findings, the questions asked to the user and the fixes, then writes these statistics to `.vibe/usage-reports/` in the project at the end. Invoked by `vibe:feature` and `vibe:fix` through their shared workflow, at the start of the work and at the end. Never triggered by a user request.

★ 0
neolao
neolao/claude-plugin-vibe

tasks

Creates and tracks a vibe workflow's task list and keeps it up to date until the end — through the native task system (TaskCreate / TaskUpdate / TaskList / TaskGet) when it is available, otherwise through a `tasks.tsv` file in the scratchpad, kept by a script that reproduces the same model (ids, statuses, blockedBy dependencies, owner). Invoked internally by other vibe skills, never directly by users.

★ 0
neolao
neolao/claude-plugin-vibe

sync

Sync .vibe/ — generate on first run, incrementally update on subsequent runs

★ 0
neolao
neolao/claude-plugin-vibe

rewrite

暂无简介

★ 0
neolao
neolao/claude-plugin-vibe

review

Runs the project's active review agents on a scope and returns their raw findings — one owner per dimension, the shared finding contract injected into every prompt — without judging, fixing or committing anything. Invoked by the build workflow (`vibe:feature`, `vibe:fix`) as its internal review step and by `vibe:audit`, never directly by users.

★ 0