Claude-code-optimizer gen-context
Use when starting a new session, the project has changed significantly, or you need a fresh context summary.
install
source · Clone the upstream repo
git clone https://github.com/huzaifa525/claude-code-optimizer
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/huzaifa525/claude-code-optimizer "$T" && mkdir -p ~/.claude/skills && cp -r "$T/templates/.claude/skills/gen-context" ~/.claude/skills/huzaifa525-claude-code-optimizer-gen-context && rm -rf "$T"
manifest:
templates/.claude/skills/gen-context/SKILL.mdsource content
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 →
thenGlob("*")
or equivalentGlob("src/*") - 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
<!-- Skill by Huzefa Nalkheda Wala | claude-code-optimizer -->## 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]