بنقرة واحدة
maintain-docs
Update and maintain project documentation -- READMEs, docs/ pages, and auto-generated sections.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Update and maintain project documentation -- READMEs, docs/ pages, and auto-generated sections.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | maintain-docs |
| description | Update and maintain project documentation -- READMEs, docs/ pages, and auto-generated sections. |
| when_to_use | When asked to update documentation, add a package README, refresh generated sections, or check for documentation drift after API changes. |
| disable-model-invocation | true |
| allowed-tools | ["Read","Edit","Write","Bash(cd tools/docgen && go run . *)","Bash(go doc *)","Bash(go list *)","Bash(find * -name README.md *)"] |
This project uses a hybrid documentation system: hand-written narrative
sections plus auto-generated boilerplate, managed by a generator tool at
tools/docgen/.
Run the generator to refresh all auto-populated sections across all READMEs:
make docs
This populates content between <!-- BEGIN:generated:SECTION --> and
<!-- END:generated:SECTION --> markers. Hand-written content outside
these markers is never touched.
To check for drift without writing (useful in CI or before committing):
make docs:check
If docs:check reports stale sections, run make docs and commit the result.
docs/templates/package-readme.md for the
canonical structure and section rules.README.md in the package directory following the template:
exported-api,
dependencies, used-by) with empty BEGIN/END pairs..go files.cmd/ packages: use a hand-written CLI Usage section instead
of the exported-api marker.internal/grpc/pb/ -- generated code gets no README.make docs to populate the generated sections.Reference examples: internal/agent/README.md,
internal/claude/README.md, internal/game/README.md.
After API changes (new exports, renamed functions, added/removed dependencies), generated sections may become stale.
make docs:check
If stale, run make docs to update. Also check whether hand-written
sections (Overview, Key Files) need updating to reflect the API changes.
To find packages that are missing READMEs entirely:
find internal cmd -type d -not -path '*/pb' | while read dir; do
[ -f "$dir/README.md" ] || echo "missing: $dir/README.md"
done
| Marker | Data Source | Used In |
|---|---|---|
exported-api | go doc output | Package READMEs |
dependencies | go list -json imports (internal only) | Package + cmd READMEs |
used-by | Inverted dependency graph | Package READMEs |
package-map | All packages with doc strings + file counts | Top-level README |
tool-catalog | Tool constants from internal/claude/tools.go | Top-level README |