按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。
claude-code-habits
Claude Code instance of session-hygiene — read that skill first for the portable doctrine. This skill is only the Claude-Code-specific mechanics.
Session checks
/context— verify your context floor after big operations; watch for silent jumps.
Rewind options (escalating)
- Undo / escape-cancel — cancel mid-run, rewind a few messages.
- `/rewind` — rewind to a point in the conversation.
- Slash-command session — start a clean, scoped session.
- `git` recovery —
git diff,git stash,git resetas the last resort. Git is the ground truth.
Slash commands worth knowing
/model— check the model; switching mid-task changes behavior./permissions— manage what the agent may run without asking./agents— subagent management.
Bash modes
- Foreground for interactive; background (
&-style runs) for long jobs you monitor. - If the harness blocks a command, prefer the supported path over forcing it.
Settings backup
Back up your settings file (~/.claude/settings.json) and skills directory before labs that reset harness config.

