Gen context
Skill huzaifa525/claude-code-optimizer/templates/.claude/skills/gen-context
Use when starting a new session, the project has changed significantly, or you need a fresh context summary.From its SKILL.md
npx -y skills add huzaifa525/claude-code-optimizer --skill gen-contextAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 9 stars9 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
- runs commandsInstructs the agent to run 1 command, including `git log --oneline -10`.
SKILL.md
1.2 KB, 280 tokens by cl100k_base, as published. Nobody here has run it
Generate a comprehensive but concise project context by analyzing the codebase.
Steps
- Read package.json / pyproject.toml / Cargo.toml → identify stack, dependencies, scripts
- Scan top-level structure →
Glob("*")thenGlob("src/*")or equivalent - Find entry points → main files, index files, app setup files
- Identify framework → Express, Next.js, FastAPI, Django, etc.
- Check for existing CLAUDE.md → read current instructions
- Read recent git history →
git log --oneline -10 - Identify key patterns → how routes/components/models are structured
Return Format
## Project: [name]
## Stack: [framework, language, database, etc.]
### Commands
- Build: [command]
- Test: [command]
- Dev: [command]
### Entry Points
- [file] → [what it wires together]
### Structure
- [dir/] → [purpose]
### Recent Activity
- [last 5 commits summarized]
### Suggested CLAUDE.md Updates
- [anything missing from current CLAUDE.md]
<!-- Skill by Huzefa Nalkheda Wala | claude-code-optimizer -->What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.