.claude/skills/refresh-claude/SKILL.md
Review recent changes and update CLAUDE.md to keep it relevant for future sessions. Use after significant changes or periodically to maintain context.
npx skillsauth add zbruhnke/claude-code-starter refresh-claudeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
development
Start an autonomous implementation loop from a spec or PRD. Enters plan mode for user approval, enforces command gates (test/lint/typecheck/build), validates dependencies, commits incrementally, and maintains documentation and changelog. Production-ready quality gates.
testing
Document risks for changes touching auth, data, or migrations. Lists top risks, how to test/monitor them, and rollback strategy.
data-ai
Review a merge request or branch. Compares a branch against main/master, summarizes changes, highlights concerns, and provides actionable feedback. Use for PR reviews or before merging.
development
Run a final release checklist before shipping. Verifies no TODOs, no debug code, docs updated, tests passing, dependencies justified, and security reviewed.