.claude/skills/tzurot-doc-audit/SKILL.md
Documentation and auto-memory freshness audit. Invoke with /tzurot-doc-audit to review docs and Claude auto-memory for staleness, items in the wrong layer, and missing-tool drift.
npx skillsauth add lbds137/tzurot tzurot-doc-auditInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Invoke with /tzurot-doc-audit to audit documentation freshness across the project.
Run this periodically (e.g., after adding new tools, after major refactors) to ensure docs stay accurate.
Standards live in .claude/rules/07-documentation.md. This skill is the verification procedure.
Fast triage before a full audit:
# What docs exist?
find docs/ -name '*.md' | sort
# What auto-memory entries exist? (Section 0 covers these — skip if
# this returns "No such file or directory" on a fresh install)
ls ~/.claude/projects/*tzurot*/memory/
# Recent changes (last 30 days)?
git log --since="30 days ago" --name-only --pretty=format: -- docs/ .claude/rules/ .claude/skills/ | sort -u | grep .
# Proposals that might be stale? (project uses backlog/ — no active/ dir by design)
ls docs/proposals/backlog/
# Skills lastUpdated dates
grep -r 'lastUpdated' .claude/skills/*/SKILL.md
Work through each section. For each item, verify accuracy and fix inline or note for follow-up.
Section 0 runs FIRST because memory entries that migrate to other layers (rules, docs, skills) will affect those sections' audits later.
Claude's auto-memory in ~/.claude/projects/*tzurot*/memory/ accumulates per-session knowledge that may belong in more durable, team-visible layers. Each memory file is catalogued in ~/.claude/projects/*tzurot*/memory/MEMORY.md (the index Claude reads at session start). Audit all entries before moving on — items that migrate to rules/docs/skills affect those layers' audits in later sections.
# Skip this section if the memory directory doesn't exist (fresh install,
# different machine) — there's nothing to audit. The 2>/dev/null + ||
# fallback turns the bash glob-expansion error into a friendly skip
# signal so a copy-paster sees clean output.
ls ~/.claude/projects/*tzurot*/memory/ 2>/dev/null \
|| echo "(no memory directory found — skip Section 0)"
# If the glob silently expands to nothing (different checkout path),
# find the project directory manually:
ls ~/.claude/projects/ 2>/dev/null | grep -i tzurot \
|| echo "(no tzurot project directory found in ~/.claude/projects/)"
Read each file and pick the matching trigger first — these are the heuristics for choosing a verdict in the table below:
.claude/skills/ (skill candidate)docs/research/ if distilled to TL;DR, or Delete if used and outdated.claude/rules/ (rule candidate)| Verdict | Action | When |
| -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Keep in memory | No action | Per-user context (e.g., user's recovery period), working-preference feedback that doesn't generalize to "always do X," time-bound project state (e.g., a deadline), or anything that's volatile or specific to one person's view of the project |
| Migrate to .claude/rules/ | Verify the target rule already covers, or will cover, the full intent — including any edge cases the memory captures. Then: add content to the rule file, delete the memory file, update MEMORY.md index | Constraint that should apply to every session and every developer ("the rule"). Driving example: feedback_out_of_scope_tracking.md → 06-backlog.md (Session 1) |
| Migrate to docs/reference/ | Verify the target doc captures the full intent — nuance, examples, exceptions. Then: create or extend the reference doc, delete the memory file, update MEMORY.md index | Persistent technical reference (architecture decision, runbook, design rationale) |
| Migrate to .claude/skills/ | Verify the target skill captures the full intent. Then: create or extend the skill, delete the memory file, update MEMORY.md index | Procedural knowledge ("how to do X") that should be invocable as a procedure |
| Delete | Remove the memory file, remove from MEMORY.md index | Stale, no longer relevant, redundant with content already captured elsewhere, or describes a one-time investigation that's been resolved |
The "verify target covers full intent" step in the three migrate verdicts is load-bearing: a memory entry often has nuance (a specific exception, a concrete failure case) that the destination file doesn't yet cover. If you delete the memory before the destination has the nuance, the nuance is gone. Either extend the destination first, or downgrade the verdict to Keep until the destination is updated.
After processing each file, the order matters — for migrate verdicts especially, do these steps in sequence:
MEMORY.md (the index) to remove deleted entries and revise descriptions for any that changedDoing them out of order risks orphaning the memory's nuance: if you delete the memory file before the destination has the content, the nuance is gone (the verdict table's bold "Verify the target..." callouts above guard against this).
Auto-memory audit runs as part of the recurring /tzurot-doc-audit cycle — there is no separate backlog item to track. If this section grows expensive enough to warrant its own cadence (e.g., audited weekly, while docs are quarterly), split it out then.
docs/proposals/backlog/Note: this project uses
BACKLOG.mdfor active work tracking, notdocs/proposals/active/— that directory does not exist by design. If you see references to it in any doc, they're stale and should be removed.
.claude/rules/)| File | Check |
| ---------------------- | ------------------------------------------------------------------------------- |
| 00-critical.md | Security rules still reflect current patterns? Post-mortem table current? |
| 01-architecture.md | Service boundaries match dependency-cruiser rules? Anti-patterns table current? |
| 02-code-standards.md | ESLint limits match eslint.config.js? Testing patterns current? |
| 03-database.md | Cache implementations table accurate? Protected indexes list current? |
| 04-discord.md | Shared utilities table lists all browse/dashboard helpers? |
| 05-tooling.md | All pnpm ops commands listed? pnpm quality description accurate? |
| 06-backlog.md | Backlog structure matches actual BACKLOG.md sections? |
| 07-documentation.md | Placement table covers all docs/reference/ subdirs? Lifecycle rules current? |
How to verify 05-tooling.md:
pnpm ops --help # Compare available commands vs documented ones
pnpm quality --help # Verify quality script description
.claude/skills/)For each skill:
lastUpdated date is recent (within 30 days of last relevant code change)ls .claude/skills/*/SKILL.md
| Subdirectory | Key checks |
| --------------- | ------------------------------------------------------------------------------- |
| architecture/ | ADRs reference current service names? Memory/context docs match implementation? |
| caching/ | Pub/sub guide matches actual cache invalidation code? |
| database/ | Prisma drift issues still relevant? |
| deployment/ | Railway operations match current deploy process? |
| features/ | Feature docs describe current behavior? |
| guides/ | Development setup works? Testing guide current? |
| operations/ | Runbooks reference correct commands/services? |
| standards/ | Patterns still used? No deprecated approaches? |
| templates/ | Templates produce valid output? |
| testing/ | Test procedures reference current tools? |
| tooling/ | OPS CLI reference matches pnpm ops --help? |
| Root files | STATIC_ANALYSIS.md matches CI config? CLI references current? |
proposals/active/ items are actually being worked on (check BACKLOG.md)docs/research/ are TL;DR format (2-5KB, not raw transcripts)docs/incidents/PROJECT_POSTMORTEMS.md entries match CLAUDE.md post-mortem tabledocs/steam-deck/ setup guides still accurate for current SteamOS versiondocs/steam-deck/ paths and commands work for the current dev environmentservices/ and all packages in packages/services/bot-client/src/commands/ls .claude/rules/)pnpm quality description matches root package.json scriptVerify docs don't reference files that have been renamed or removed:
# Check for references to deprecated root tracking files
grep -r 'CURRENT_WORK\|ROADMAP' docs/ .claude/ --include='*.md' -l
# Canonical names: CURRENT.md, BACKLOG.md
# Any hits for CURRENT_WORK.md or ROADMAP.md are stale and must be updated
CURRENT_WORK.md (renamed to CURRENT.md)ROADMAP.md (renamed to BACKLOG.md).md files in docs actually existThese catch drift between docs and code:
| What | Compare |
| --------------------------------------- | ----------------------------------------- |
| Architecture rules (01-architecture.md) | .dependency-cruiser.cjs forbidden rules |
| Quality command description | Root package.json quality script |
| CI steps | .github/workflows/ci.yml job steps |
| Pre-push checks | .husky/pre-push numbered steps |
| Package.json shortcuts | OPS_CLI_REFERENCE.md shortcuts table |
| Documentation placement table (07) | Actual docs/reference/ subdirectories |
| Cache implementations (03-database.md) | Actual cache classes in codebase |
lastUpdated on any modified skill filesdocs: audit and refresh documentation.claude/rules/07-documentation.mddocs/reference/DOCUMENTATION_PHILOSOPHY.md.claude/skills/tzurot-docs/SKILL.mddevelopment
Testing procedures. Invoke with /tzurot-testing for test execution, coverage audits, and debugging test failures.
tools
Git workflow procedures. Invoke with /tzurot-git-workflow for commit, PR, and release procedures.
documentation
Session workflow procedures. Invoke with /tzurot-docs for session start/end, CURRENT.md/BACKLOG.md management.
testing
Railway deployment procedures. Invoke with /tzurot-deployment for deploying, checking logs, and troubleshooting.