Review recent changes and update CLAUDE.md to keep it relevant for future sessions. Use after significant changes or periodically to maintain context.
You are refreshing the project's CLAUDE.md file to ensure it stays relevant and useful for future Claude Code sessions.
CLAUDE.md serves as persistent context between sessions. When a project evolves, CLAUDE.md should evolve too. This skill:
# Recent commits
git log --oneline -20
# Changed files
git diff --stat HEAD~10..HEAD
# New files
git diff --name-status HEAD~10..HEAD | grep "^A"
Look for:
Read the existing CLAUDE.md and identify:
Check for patterns not reflected in CLAUDE.md:
# Check for new test patterns
ls -la **/test* **/*test* **/*spec* 2>/dev/null | head -20
# Check for new config files
ls -la *.config.* .* 2>/dev/null | head -20
# Check package.json/pyproject.toml/etc for new scripts
cat package.json 2>/dev/null | jq '.scripts' || true
Make targeted updates:
DO update:
DON'T add:
After updating, verify:
## CLAUDE.md Refresh Summary
### Changes Made
- Added: [what was added]
- Updated: [what was updated]
- Removed: [what was removed]
### Context Discovered
- [New pattern or convention found]
- [New tool or command found]
### Recommendations
- [Suggestions for project improvements]
CLAUDE.md should be scannable. Every line should earn its place.
❌ "This project uses React, which is a JavaScript library for building user interfaces..."
✓ "React 18 with TypeScript. See src/components/ for patterns."
Include information Claude needs to work effectively:
✓ Commands to run
✓ Key file locations
✓ Conventions to follow
✓ Things to avoid
Don't repeat what's in:
Remove information that's:
## Commands
+ npm run e2e # Run end-to-end tests
## Conventions
+ API routes follow REST conventions in `src/api/`
+ Use `zod` for runtime validation at API boundaries
- ## Legacy
- The old auth system in `src/auth-old/` is deprecated.
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer