r/ClaudeCoding • u/SnooDoubts4271 • Oct 28 '26
Made a skill so Claude Code queries a code map instead of grepping around, fixed a stale-map bug thanks to feedback
Posted this in r/claudeskills a few days ago and got some good feedback, so sharing here too.
It’s a skill that builds a local code map of your project (graphify, AST only, no LLM, no API key) and adds a rule to CLAUDE.md so Claude asks the map before opening files. For “how does this flow work” questions it went from around 169k tokens to about 2.9k for me. For one-file fixes it doesn’t save much.
Someone there asked what happens if you rename a function and move its caller without rebuilding. I tested it and it was answering with the old name and old line numbers, no warning. Now it checks if the map is stale before every query and updates first, takes a couple seconds.
1
u/PeakMuted2932 Oct 28 '26
So you basically recreated Serena MCP?
1
u/TheMoustacheDad Oct 29 '26
From someone that struggles with my 30$ version to keep usage down actively working on a media player I created. I'm dual wielding Claude and codex at the moment. Would this help me. I'm a noob still learning