claude-code-workspace-upkeep/WORKED-EXAMPLE.md

Documentation · Review before use · file 9 of 9

SHA-256 e4db44b7b48216a7dea01d0ad5ace9be0b33c2cbee0fec9ec595710261cf03be · 4,203 bytes

# Worked example
Three short examples drawn from our own Claude Code setup, with personal and project details removed. The audit
excerpt in part 1 is rewritten in generic terms, but each finding type is one we actually found.
## 1. A setup audit (excerpt)
**Prompt:** *"Run upkeep-setup-audit on CLAUDE.md and ~/.claude/rules."*
```
SETUP AUDIT 2026-11-23: report only, nothing changed
Files: CLAUDE.md (262 lines) · 7 rule files (418 lines)
Findings: 3 false claims · 4 duplicates · 2 conflicts · 5 stale · 3 bandaids · 1 vague · 2 defaults
1. FALSE CLAIM: rules/git-workflow.md:9 says a setting prevents attribution trailers in commits.
Evidence: no setting with that name exists in the settings file (checked by name only).
Proposal: add the real setting, or rewrite the rule as a convention.
2. STALE: CLAUDE.md:30–41 lists current projects. Two are marked active but their own status notes say
paused (dated 2026-10-30). Proposal: reconfirm with the user, then update.
3. CONFLICT: CLAUDE.md:88 says "always auto-dispatch agents"; the harness instructions for some sessions
say "don't call agents unless asked". Proposal: add an explicit precedence line.
4. BANDAID → MOVE: CLAUDE.md:141–160, a 20-line rule about one hosting platform's packaging. It's true but
only relevant to two projects. Proposal: move it to a path-scoped rule file that loads only for that
platform's config files.
5. DEFAULT: "Write clean, readable code" (rules/coding-style.md:3). The model does this by default.
Proposal: delete.
…
Expected result if all approved: CLAUDE.md 262 → about 235 lines.
Not checked: plugin versions (no access to the plugin manifest in this session).
```
**What happened next (real):** the owner approved most proposals. CLAUDE.md went from 262 to 235 lines, one narrow
rule moved to a path-scoped file, and the stale project list was reconfirmed and updated.
An earlier audit had found a rule asserting that a setting existed when it didn't. The behaviour had only held by
habit. Another found that a reminder hook only *printed* a suggestion, which had gone unactioned for 21 days. Both are
why step 3, "verify claims, don't just read them", exists.
## 2. A memory tidy plan (excerpt)
**Prompt:** *"Run upkeep-memory-tidy on my memory folder; the index is MEMORY.md."*
```
MEMORY TIDY PLAN: nothing changed. Back up the folder before applying anything.
Competing entry points (project "mobile app"): 4 notes say "START HERE".
Current: notes/app_status_2026-11-20.md (latest commit and decision).
Mark SUPERSEDED (body and index summary): app_status_2026-10-17.md, app_v2_plan.md, app_handoff_0902.md.
Stale: notes/pricing.md says "price is $9/mo"; notes/pricing_change_1104.md says $12. Propose a correction
line in pricing.md pointing to the newer note.
Relative dates: 6 notes ("next Tuesday", "yesterday"). Proposed absolute dates are listed per note.
Finished work: 14 closed threads → one archive note (each keeps its one-line summary, standing decisions
and open items).
Index: 231 → 142 lines (proposed index in full below).
```
## 3. A handoff entry
The `upkeep-save-handoffs` rule exists because of a real loss. A session on one of our apps ended mid-task without
saving. Its uncommitted fixes, a failing test and a change of direction from the owner all had to be rebuilt from the
conversation log.
**Prompt:** *"Write the handoff."* The resulting entry (illustrative content, real format):
```markdown
## Handoff 2026-11-27 18:40: checkout copy updated, deploy waiting for owner
**Done (verified):** pricing page copy updated (commit 4f2c1a9); all 214 tests pass; checked on the local server.
**Decided, not done:** owner chose annual billing as the default (2026-11-27); not implemented yet.
**Still open:** `test_coupon_expiry` fails on main, unrelated to this change; not investigated.
**Next action:** implement the annual-default toggle in billing settings, then ask the owner for deploy approval.
**State:** branch pricing-copy at 4f2c1a9 · uncommitted: none · other branches: billing-annual (empty)
**Approvals:** deploy NOT approved. The owner's "go" on 2026-11-26 was for the previous release only.
```

Shown as plain text. Invisible or direction-changing characters are displayed as <U+XXXX>.