No. 090 Write it down
Developer Diary Entry
Use when someone who was not in the session has to understand the result
- Claude Code
- Codex
- Cursor
- Write it down
# Developer Diary Entry Create a developer diary entry in `/docs/developer-diary/` that captures your personal insights about the current work. ## Entry Structure 1. **Date & Context** - Today's date and entry number - What you're currently working on - Related issues or PRs 2. **Technical Observations** - Interesting patterns or anti-patterns discovered - Clever solutions you found or created - Technical debt noticed - Performance considerations 3. **Personal Insights** - "Aha!" moments during development - Frustrations and how you overcame them - Things that surprised you - Questions that arose during work 4. **Future Considerations** - Ideas for improvements - Potential refactoring opportunities - Features that would be nice to have - Architectural thoughts 5. **Human Touch** - Your opinion on the code quality - What made you smile or laugh - Shower thoughts about the project - Analogies or metaphors that help explain complex parts ## Guidelines - Be authentic and show personality - Include code snippets if they illustrate a point - Don't hold back on constructive criticism - Share both successes and struggles - Think of it as a letter to future developers (including yourself) Remember: This is your space to be reflective, creative, and human. It's not just about what you did, but how you felt about it and what you learned.
When to use
“Developer Diary Entry” fits when someone who was not in the session has to understand the result, because it says “Developer Diary Entry”, and its first written step is “Date & Context”.
For “Developer Diary Entry”, the extra line you type is the requirement those steps ask for, for example “make src/cart.js return 0 on an empty cart and skip a line with no price”, and the file then starts at “Date & Context”.
When not to use
Leave “Developer Diary Entry” unused when the file's behavior is wrong and a paragraph would hide that, because “Developer Diary Entry” points the other way
How to run it
Claude Code
Claude Code stores “Developer Diary Entry” as a Claude command and runs it with that command, putting the requirement in the argument, and CLAUDE.md should not also carry “Developer Diary Entry”.
Codex
Codex takes “Developer Diary Entry” as a paste above the task. Leave AGENTS.md unchanged so the next thread does not inherit “Developer Diary Entry”.
Cursor
Cursor should see “Developer Diary Entry” only as a chat paste of “Developer Diary Entry” 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: Write it down
- Same stage: Gather Tech Stack Documentation
来源:Darin Cassler · https://github.com/cassler/awesome-claude-code-setup/blob/main/commands/dev-diary.md · MIT · Copyright (c) 2025 Darin Cassler · 2026-12-01