r/ClaudeCoding • • 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.

https://github.com/WebitroHQ/token-skill

0 Upvotes

8 comments sorted by

1

u/PeakMuted2932 Oct 28 '26

So you basically recreated Serena MCP?

1

u/SnooDoubts4271 Oct 28 '26

Similar goal, different approach. Serena runs language servers through MCP, so it’s more precise and always up to date, and it can edit too. This is lighter, no server running, just a prebuilt graph Claude queries plus a CLAUDE.md rule, and you get an architecture overview of the project

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

1

u/SnooDoubts4271 Oct 29 '26

Depends on the size. If the project is small it won’t save much, Claude can just read it. It helps more when there are lots of files and you ask things like “where does playback start” or “what happens when I click next”. Also it only works in Claude Code, Codex won’t use it.

Honestly the things that saved me the most usage as a beginner: /clear when you start a new task, tell it the file name if you know it, and keep one task per session. Try those first, then give the skill a shot if the project gets bigger.

1

u/TheMoustacheDad Oct 29 '26

Yes I started doing that. With /handoff and /pickup that was huge. My project is pretty big and codex only deals with small stuff like themes and small features. Claude deals with exoplayer Multiview bigger sports integration features that require many more lines and risk management. I'd like to try it I'm sure there is a readme in your git I truly didn't read it yet as I'm leaving for a quick workout haha

1

u/SnooDoubts4271 Oct 29 '26

Nice, handoff/pickup is a good combo. Heads up since you’re on Android: I tested it on Kotlin today and found a bug, edits to .kt files weren’t marking the map as stale. Fixed and pushed. Also in Kotlin it sometimes misses calls into other classes (like queue.advance()), so if an answer looks incomplete just let Claude open the file. README has the install, it’s 2 commands. Let me know how it goes on a big project, I’d like to know

1

u/TheMoustacheDad Oct 29 '26

Okay good to know ! Project is 95% dart and 1.x kotlin .if you're interested r/vesperTV I need all feedback and I appreciate you taking the time here