No. 052 Instruction files
Summarize what we did this session and suggest what to add…
Use when later sessions should inherit a written instruction
- Claude Code
- Codex
- Cursor
- Instruction files
summarize what we did this session and suggest what to add to CLAUDE.md
When to use
“Summarize what we did this session and suggest what to add…” fits when later sessions should inherit a written instruction, because it says “summarize what we did this session and suggest what to add to CLAUDE.md”, and that published sentence is the whole assignment.
Send “Summarize what we did this session and suggest what to add…” as the turn itself: summarize what we did this session and suggest what to add to CLAUDE.md
When not to use
Leave “Summarize what we did this session and suggest what to add…” unused when you are fixing one bug tonight and you do not want tomorrow's session to inherit the words, because “summarize what we did this session and suggest what to add to CLAUDE.md” points the other way
How to run it
Claude Code
Claude Code takes “Summarize what we did this session and suggest what to add…” as one paste at the repo root. Do not also save .claude/commands, or “summarize what we did this session and suggest what to add to CLAUDE.md” replays on the next task.
Codex
Codex takes “Summarize what we did this session and suggest what to add…” as a paste above the task. Leave AGENTS.md unchanged so the next thread does not inherit “summarize what we did this session and suggest what to add to CLAUDE.md”.
Cursor
Cursor should see “Summarize what we did this session and suggest what to add…” only as a chat paste of “summarize what we did this session and suggest what to add to CLAUDE.md” for this turn. A file at .cursor/rules would keep applying after the turn ends.
Comparison
对比待补
This before-and-after was not run on this machine.
Related
- Stage: Instruction files
- Same stage: pnpm install, test, and typecheck
来源:Anthropic · https://code.claude.com/docs/en/prompt-library · 2026-12-01