catchup
Rebuild working context fast after /clear or a fresh session — reads the handoff note and the…
Keep CLAUDE.md current and lean — capture this session's durable learnings into it (default), or `audit` it for stale commands, drift, and bloat. Enforces the line budget either way.
$ npx -y skills add poshan0126/dotclaude --skill claude-md --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/claude-mdContext preview
The summary Claude sees to decide when to auto-load this skill.
Keep CLAUDE.md current and lean — capture this session's durable learnings into it (default), or `audit` it for stale commands, drift, and bloat. Enforces the line budget either way.
name: claude-md description: Keep CLAUDE.md current and lean — capture this session's durable learnings into it (default), or `audit` it for stale commands, drift, and bloat. Enforces the line budget either way. argument-hint: "[audit?]" disable-model-invocation: true
`CLAUDE.md` loads every turn for every developer; this skill is how it earns that. Two modes: default captures learnings from the current session; `audit` checks the whole file against reality.
Scan THIS conversation for durable, project-level learnings. A learning qualifies only if ALL of these hold:
For each qualifying learning (usually 0-3 per session — finding none is a fine outcome):
1. Draft it as ONE line, with the why if it isn't obvious: `Use \`make test-fast\` for iteration — \`make test\` spins up Docker (3 min).` 2. Pick its destination: command fixes → Commands section; constraints with a path scope → suggest a path-scoped rule instead; everything else → the matching CLAUDE.md section. 3. If it contradicts an existing line, propose editing that line, not appending a second truth.
Present all candidates with AskUserQuestion (multiSelect — let the user pick which to keep), then apply only the selected ones.
Check every line of CLAUDE.md against reality:
1. **Commands**: does each documented command still exist (`package.json` scripts, Makefile targets, etc.) and match its description? Run `--help`/`--dry-run` variants where cheap. 2. **Paths and names**: do referenced directories, files, and tools still exist? 3. **Duplication**: lines that repeat `.claude/rules/` content, hook-enforced behavior, or standard conventions Claude already knows — propose deletion. 4. **Leftovers**: any `> REPLACE:` template blocks — propose deletion. 5. **Staleness candidates**: claims contradicted by recent code (cross-check anything that smells off against the source).
Report findings as a table (line → problem → proposed fix/deletion), confirm, apply.
CLAUDE.md non-blank lines at skill start: !`grep -cvE '^[[:space:]]*$' CLAUDE.md 2>/dev/null || echo 0`
Under 25 non-blank lines = healthy. 25-50 = list the longest sections, propose trims. Over 50 = the additions don't go in until something comes out — propose the trade explicitly ("add line X, delete lines Y-Z"). The number above is the pre-edit baseline; after applying changes, recount with `grep -cvE '^[[:space:]]*$' CLAUDE.md 2>/dev/null || echo 0` to confirm the result still fits.
A lean .claude/ setup for daily development. Seven specialist agents, twelve workflow skills, six modular rules, and eight safety/productivity hooks. No bloat, no model assignments, no opinions you can't override.
Repo: poshan0126/dotclaude
Rebuild working context fast after /clear or a fresh session — reads the handoff note and the…
Estimate per-turn token cost of `.claude/` and `CLAUDE.md` — always-loaded vs path-scoped vs…
Find and fix a bug. Default is careful (reproduce, investigate, test). Add `--fast` for…
Explain code. Default is a one-sentence summary plus a mental model. Add `verbose` to also…
Take a GitHub issue from number to tested fix — read the issue and comments, reproduce,…
Get oriented in an unfamiliar codebase fast. An Explore-subagent-driven tour that goes from a…