Gen context
Skill huzaifa525/claude-code-optimizer/templates/.claude/skills/gen-context
Optimize Claude Code token usage — 22 skills, 8 hooks, 6 rules. One npm install. Zero manual steps. Cut costs by 67%.
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.
One thing 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.
What its author says it does
Copied from the file, not written here
Use when starting a new session, the project has changed significantly, or you need a fresh context summary.
SKILL.md
1.2 KB, 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 -->