Skip to content

Instantly share code, notes, and snippets.

@SilenNaihin
Last active January 28, 2026 03:00
Show Gist options
  • Select an option

  • Save SilenNaihin/916e4f2cbcd96f487b2845edaed469a3 to your computer and use it in GitHub Desktop.

Select an option

Save SilenNaihin/916e4f2cbcd96f487b2845edaed469a3 to your computer and use it in GitHub Desktop.
Claude Code: Update CLAUDE.md with recent learnings

Update CLAUDE.md

You are updating this project's CLAUDE.md to reflect meta learnings (conventions, philosophy, gotchas) and significant recent changes to the codebase.

What TO Add

  • Philosophy/conventions - e.g., "No backwards compatibility unless explicitly requested"
  • Gotchas - Non-obvious things that cause bugs repeatedly
  • Commands or scripts - New ways to run/test things
  • Structure changes - When directories or files move
  • Recent significant changes - New features, refactors, or capabilities added

What NOT to Add

  • Specific technical details about a single bug fix
  • Implementation details that are obvious from code
  • Temporary workarounds
  • One-off decisions that won't recur
  • Verbose explanations of how something works

Rule of thumb: If it's something you'd tell a new developer joining the project, add it. If it's just details about today's work, skip it.

Instructions

  1. Read current CLAUDE.md - Understand what's already documented
  2. Review recent work - Check git log/diff for significant changes; extract meta learnings
  3. Update conservatively - Keep CLAUDE.md <300 lines. Remove outdated info if needed.

Output

After updating, summarize:

  • What was added
  • What was removed (if anything)
  • Current line count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment