claude-code-workspace-upkeep/.claude/skills/upkeep-setup-audit/SKILL.md
SHA-256 91e11af6a1a77cdbcbb467c70ebc7ba16a9c625bc74354d56195ea26943f5df0 · 3,582 bytes
Skill: its instructions load when the assistant decides the skill applies.
---
name: upkeep-setup-audit
description: Report-only audit of a Claude Code setup's instructions (CLAUDE.md files and rules) using five filters, plus verification of every factual claim the instructions make about the setup. Changes nothing; proposes edits for the user to approve. Use weekly, or when instructions feel long, contradictory or stale.
---
# Setup self-audit (report only)
Long-lived instruction files rot. Rules pile up after one bad session, contradict each other, repeat what the model
already does, or describe settings, tools and paths that no longer exist. A rule that asserts something false about
the setup is worse than no rule.
**This skill changes nothing.** It writes a report with proposed edits. The user decides what to apply.
## What to audit
Ask the user which files are in scope, and only read those. Typical scope:
- the project's `CLAUDE.md` (and `CLAUDE.local.md` if it exists);
- the project's `.claude/rules/` and the user-level `~/.claude/CLAUDE.md` and `~/.claude/rules/`, if the user
includes them.
Skip large third-party collections of skills and plugins. Audit what the user wrote.
## Steps
1. **Inventory.** List each in-scope file with its line count, and each distinct rule or instruction in it (one line
each).
2. **Apply five filters to every rule.** Mark each one that applies:
1. **Default:** does it tell the model to do something it already does without being told?
2. **Conflict:** does it contradict another rule? Name both.
3. **Duplicate:** does it repeat another rule? Name both, and say which copy should stay.
4. **Bandaid:** was it written to patch one bad output, and is it too specific to help again?
5. **Vague:** is it too vague to apply consistently (for example "be careful", "write good code")?
3. **Verify claims, don't just read them.** For every rule that states a fact about the setup (a setting name, a
version number, a tool or server that's configured, an agent, skill or command that exists, a file path, a hook),
check it:
- files and folders: do they exist at that path?
- skills, agents and commands: are they actually present?
- settings: verify the setting exists by its name. Never copy setting values into the report, because they can
include private values.
- versions: compare with what's installed, if you can see it. Otherwise mark "not checked".
Record each claim as **true**, **false** or **not checked**.
4. **Find stale context.** Dated statements ("as of…", project status, people, current priorities) that are more than
a month old: list them for the user to reconfirm. Don't guess the current state.
5. **Write the report** to `upkeep/setup-audit-YYYY-MM-DD.md` in the current project:
- a summary (files, line counts, and counts of findings per filter);
- findings, highest value first: rule (file:line), filter or false claim, evidence, proposed change (delete,
merge, rewrite as… or reconfirm);
- the expected line savings if all proposals are applied;
- a "not checked" list.
6. **Stop.** Show the summary and ask the user which proposals to apply. Apply only those they approve, and only to
files inside the current project. For files outside it (such as `~/.claude/CLAUDE.md`), give the user the exact
edits to make themselves.
## Rules
- Report first, change later, and only with approval.
- Never delete a rule because it's inconvenient. The filters are the only reasons.
- Prefer moving narrow rules to where they apply (a path-scoped rule file) over deleting them, when they're still
true.
Shown as plain text. Invisible or direction-changing characters are displayed as <U+XXXX>.