con un clic
goclaw-docs-audit
// Detect which GoClaw docs pages need updating when source code changes.
// Detect which GoClaw docs pages need updating when source code changes.
| name | goclaw-docs-audit |
| description | Detect which GoClaw docs pages need updating when source code changes. |
| argument-hint | [commit-range|file1 file2 ...] |
| metadata | {"author":"goclaw","version":"2.0.0"} |
Detect which GoClaw docs need updating when GoClaw source code changes. Cross-check accuracy against GoClaw source docs (source of truth).
/goclaw-docs-audit or /goclaw-docs-audit <commit-range> or /goclaw-docs-audit <file1> <file2>
/goclaw-docs-audit — audit all changes since last audit (or last commit if first run)/goclaw-docs-audit HEAD~5..HEAD — audit specific commit range/goclaw-docs-audit internal/agent/loop.go internal/channels/telegram/bot.go — audit specific filesThe skill needs access to the GoClaw source repository. Resolution order:
GOCLAW_SOURCE_PATH environment variable (set in shell or .claude/settings.local.json)../goclaw/ (assumes goclaw/ and goclaw-docs/ share the same parent folder)If neither resolves to a valid git repo, ask the user for the path.
Contributor setup example:
export GOCLAW_SOURCE_PATH=/path/to/my/goclaw
Or in .claude/settings.local.json:
{ "env": { "GOCLAW_SOURCE_PATH": "/path/to/my/goclaw" } }
When this skill is triggered, follow these steps exactly:
Determine $GOCLAW_SOURCE using the resolution order above:
GOCLAW_SOURCE_PATH env var is set and points to a valid git repo../goclaw/ exists and is a valid git repoGOCLAW_SOURCE_PATHUse $GOCLAW_SOURCE for all subsequent steps where ../goclaw/ was referenced.
.. or HEAD): run git diff --name-only <range> in $GOCLAW_SOURCE.claude/skills/goclaw-docs-audit/.last-audit for the last audit commit hashgit diff --name-only <last-audit-hash>..HEAD in $GOCLAW_SOURCEgit diff --name-only HEAD~1..HEAD in $GOCLAW_SOURCERead mapping.json from the same directory as this SKILL.md file.
The mapping also includes source_of_truth pointing to docs/ (relative to $GOCLAW_SOURCE) — use those authoritative docs to verify accuracy of goclaw-docs pages.
For each changed file, check if its path matches any pattern in the mapping rules (use glob matching). Collect all matched docs pages and their priority.
For each matched docs page, cross-reference with the corresponding $GOCLAW_SOURCE/docs/*.md file:
01-agent-loop.md for agent changes)Source of truth mapping ($GOCLAW_SOURCE/docs/):
| GoClaw Doc | Covers |
|---|---|
00-architecture-overview.md | Overall architecture, component relationships |
01-agent-loop.md | Agent loop, reasoning, tool execution |
02-providers.md | LLM provider integrations |
03-tools-system.md | Tool registration, execution, built-in tools |
04-gateway-protocol.md | WebSocket/RPC protocol |
05-channels-messaging.md | Channel integrations |
06-store-data-model.md | Database schema, data model |
07-bootstrap-skills-memory.md | Bootstrap, skills, memory systems |
08-scheduling-cron.md | Cron jobs, scheduling |
09-security.md | Security, auth, permissions |
10-tracing-observability.md | OpenTelemetry, tracing |
11-agent-teams.md | Agent teams, delegation |
12-extended-thinking.md | Extended thinking feature |
13-ws-team-events.md | WebSocket team events |
14-skills-runtime.md | Skills runtime |
15-core-skills-system.md | Core skills system |
16-skill-publishing.md | Skill publishing |
17-changelog.md | Changelog |
18-http-api.md | HTTP/REST API |
19-websocket-rpc.md | WebSocket RPC methods |
20-api-keys-auth.md | API keys, authentication |
For each matched docs page in the goclaw-docs repo:
getting-started/quick-start.md)vi/getting-started/quick-start.md)zh/getting-started/quick-start.md)Use git log -1 --format=%cd --date=short -- <file> to get last modification dates.
Create a markdown report with this format:
# GoClaw Docs Audit Report
**GoClaw changes:** `<commit-range or file list>`
**Date:** YYYY-MM-DD
## Affected Docs Pages
| Changed File | Affected Docs | Priority |
|---|---|---|
| internal/agent/loop.go | agents/*, core-concepts/agents-explained.md | High |
## Accuracy Check (vs $GOCLAW_SOURCE/docs/)
| Docs Page | Source of Truth | Status | Notes |
|---|---|---|---|
| agents/creating-agents.md | 01-agent-loop.md | Accurate | — |
| core-concepts/tools-overview.md | 03-tools-system.md | Discrepancy | Missing new tool type "x" |
## EN-VI-ZH Sync Status
| EN Page | Last EN | Last VI | VI Status | Last ZH | ZH Status |
|---|---|---|---|---|---|
| getting-started/quick-start.md | 2026-03-07 | 2026-03-01 | Outdated | 2026-03-07 | Synced |
## Recommended Actions
1. Review `agents/creating-agents.md` — agent creation flow changed
2. Fix accuracy: `core-concepts/tools-overview.md` missing new tool type
3. Sync VI translation for `getting-started/quick-start.md`
Save to {goclaw-docs-root}/plans/reports/docs-audit-{YYYY-MM-DD}.md or to the reports path provided by session context.
After saving the report, record the current HEAD commit hash of $GOCLAW_SOURCE so the next no-argument run starts from here:
cd $GOCLAW_SOURCE && git rev-parse HEAD > <goclaw-docs-root>/.claude/skills/goclaw-docs-audit/.last-audit
The .last-audit file contains a single line: the commit hash. This file is gitignored.
GOCLAW_SOURCE_PATH env var, fallback to ../goclaw/ (assumes same parent folder)$GOCLAW_SOURCE/docs/ is the source of truth for feature accuracygoclaw-docs/ (EN at root, VI under vi/)