feat: modularize oracle, query-opt, and replication skills#2
Conversation
|
@looreenz You suggested to split up those fairly large (100-200 lines) Skill files into modular ones, with a skill-registry.md file as the index. The modular files are just are just 10-20 lines. I asked Claude if such a granular split make sense in terms of saving tokens and performance. Short answer: no — as proposed, it's a net loss on both tokens and latency, not a win. The PR author's "lazy-loading" framing rests on a misunderstanding of how Anthropic Skills actually load. Three reasons the split is a pessimization
The right granularity for an agent-consumed SKILL.md is ~8–12 KB — Robert's biggest is ~20 KB, well within sane limits. Anthropic's own published skills run in that band. The "many small files" pattern is a navigation aesthetic (good for humans browsing the repo) being misapplied as a runtime optimization (bad for agent ingestion). What's worth salvaging
Implementation defect, separate issue .atl/skill-registry.md contains absolute file:///home/lorenzo-aps/Dev/skills/... paths — the PR author's laptop. That registry is useless to anyone else and needs to be fixed (or removed) before the PR could be merged on its own merits, independently of the modularization question. How to communicate this back Suggest the PR author run a quick A/B experiment: open a fresh Claude session with the unmodified mariadb-features skill, ask it three representative questions, count the turns and tokens. Then repeat with their modular version. The modular version will consistently take more turns (one Read per atomic file consulted) and more tokens once tool-use overhead is counted. That's the most convincing way to land the point without an architectural debate. |
Continued implementation of the modular refactoring, applying the new architecture to high-density technical skills.
Key Changes: