agent-kit
Skill2 starsChanged 2 days agoMITView on GitHub
Agent toolkit, one skill with sub-skills for running Claude Code agents cheaply. (1) cost: route each agent to the cheapest model tier that can finish it, give it a checkable finish line, skip agents the task doesn't need, with a PreToolUse hook that nudges Agent calls that set no model; (2) prompt-cache: keep agent prompt prefixes byte-identical so the prompt cache hits, with a uv-run script that builds a fingerprinted project outline, writes agent briefs and reports per-agent hit rate. Use WHENEVER you are about to spawn subagents, forks, parallel agents or a Workflow, run /loop or ScheduleWakeup, pick a model for an agent, or the user says "save tokens", "agent cost", "which model", "prompt caching", "cache hit", "token usage", "ลด token". Read the sub-skill's SKILL.md before acting.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- kdcllc/skillstheir own version, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- kdcllc/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository23 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- new-skillSkill
- agent-kit-costSkill
- agent-kit-prompt-cacheSkill
- containers-podmanSkill
- containersSkill
- dependency-vuln-explainerSkill
- design-coreSkill
- design-flowSkill
- devops-changeSkill
- devops-network-diagramSkill
- devops-release-scopeSkill
- devopsSkill
- documentation-doc-styleSkill
- documentation-pdf-operationsSkill
- documentationSkill
- poc-spec-driven-builderSkill
- qa-answer-reviewSkill
- qa-excel-importSkill
- qa-export-evidenceSkill
- qaSkill
- qa-ticket-reportSkill
- thai-mock-namingSkill
The file
Files
agent-kit: sub-skills
| When the work is… | Read | Scripts |
| spawning agents, "which model for this agent", "too many agents", "agent cost" | cost/SKILL.md | cost/scripts/agent_guard.py (PreToolUse hook, --selftest) |
| fanning out agents that share context, /loop, "cache hit rate", "prompt caching" | prompt-cache/SKILL.md | prompt-cache/scripts/pcache.py (build · brief · stats · --self-test) |
They chain: cost decides whether to spawn and on which tier; prompt-cache makes the briefs those
agents get share one cached prefix, then measures it.
Rules every sub-skill keeps
- No agent is free. Count the brief, the re-read and the summary against doing it inline.
- Measure, don't estimate. Report hit rates and token counts from the session logs (
pcache.py stats). - Never block the user's work. The hook nudges; it doesn't refuse a call.
Tests
cd skills/agent-kit
uv run --script cost/scripts/agent_guard.py --selftest
uv run --script prompt-cache/scripts/pcache.py --self-testDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

