catchup
Rebuild working context fast after /clear or a fresh session — reads the handoff note and the…
Safely refactor code with test coverage as a safety net. Use `--diff` to simplify just the current working diff before committing.
$ npx -y skills add poshan0126/dotclaude --skill refactor --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/refactorContext preview
The summary Claude sees to decide when to auto-load this skill.
Safely refactor code with test coverage as a safety net. Use `--diff` to simplify just the current working diff before committing.
name: refactor description: Safely refactor code with test coverage as a safety net. Use `--diff` to simplify just the current working diff before committing. argument-hint: "[file, function, or pattern | --diff]" disable-model-invocation: true
Refactor `$ARGUMENTS` safely. If `$ARGUMENTS` contains `--diff`, use Diff mode below instead.
The pre-commit polish pass. Target = the current working diff (`git diff` + `git diff --cached`; if clean, the last commit). Goal: make the diff smaller and clearer with identical behavior.
1. Read the diff. For each hunk ask: would a reviewer write this more simply?
2. Touch ONLY lines in the diff (plus mechanical consequences like an import). Never expand into surrounding code — that's regular refactor mode. 3. Show the proposed simplifications, confirm, apply in small steps, run the tests for the touched files after each. 4. Report: lines before → after. If nothing to simplify, say "diff is already minimal" and stop — don't invent work.
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…
Keep CLAUDE.md current and lean — capture this session's durable learnings into it (default),…
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,…