perf-skills
CLAUDE.md16 starsChanged 3 months agoMITView on GitHub
Tell Claude Code: Claude will: 1. Spawn a with-skill subagent - reads SKILL.md, then executes the prompt 2. Spawn a without-skill baseline subagent - same prompt, no skill context 3. Save outputs under perf-skills-workspace/iteration-1/eval-{id}/ 4. Grade each assertion and write eval_metadata.json + timing.json per eval 5. Aggregate results into perf-skills-workspace/iteration-1/benchmark.json Run this to auto-optimize the description field in SKILL.md by testing trigger/no-trigger queries: Commit: - skills/perf/SKILL.md - skills/perf/evals/evals.json - .claude/CLAUDE.md
In this repositoryOne other file it gives its agents.
- perfSkill
The file
We split this CLAUDE.md into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 95
Run this to auto-optimize the description field in SKILL.md by testing trigger/no-trigger queries:
- Distinctive: line 126
Must be objectively verifiable - avoid subjective grades like "response is good"
- Very specific: line 128
Use unique id strings - they serve as the pass/fail key in eval_metadata.json
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
perf-skills Eval Guide
Skill Under Evaluation
- Skill name:
perf - Skill path:
skills/perf/SKILL.md - Evals path:
skills/perf/evals/evals.json - Workspace:
perf-skills-workspace/(gitignored - outputs only)
Running Evals
Full eval run (all test cases)
Tell Claude Code:
Run evals for skills/perf using skills/perf/evals/evals.json.
Save results to perf-skills-workspace/iteration-1/Claude will:
- Spawn a with-skill subagent - reads
SKILL.md, then executes the prompt - Spawn a without-skill baseline subagent - same prompt, no skill context
- Save outputs under
perf-skills-workspace/iteration-1/eval-{id}/ - Grade each assertion and write
eval_metadata.json+timing.jsonper eval - Aggregate results into
perf-skills-workspace/iteration-1/benchmark.json
Single eval run
Run eval id=3 from skills/perf/evals/evals.json.
Save to perf-skills-workspace/iteration-1/eval-3/Output Directory Structure
perf-skills-workspace/
└── iteration-1/
├── eval-0/
│ ├── with_skill/
│ │ └── outputs/ ← full LLM response with skill context
│ ├── without_skill/
│ │ └── outputs/ ← full LLM response without skill context
│ ├── eval_metadata.json ← assertion grades, pass/fail, notes
│ └── timing.json ← latency for each subagent call
├── eval-1/
│ └── ...
└── benchmark.json ← aggregate pass rates across all evalseval_metadata.json schema
{
"eval_id": 1,
"category": "jmeter",
"with_skill": {
"passed": ["has-thread-group", "has-ramp-up", "has-http-sampler"],
"failed": [],
"notes": ""
},
"without_skill": {
"passed": ["has-thread-group"],
"failed": ["has-ramp-up", "has-http-sampler", "has-assertion"],
"notes": "Missing ramp-up and assertion configuration without skill context"
}
}benchmark.json schema
{
"iteration": 1,
"total_evals": 10,
"with_skill_pass_rate": 0.92,
"without_skill_pass_rate": 0.54,
"delta": 0.38,
"categories": {
"jmeter": { "with_skill": 1.0, "without_skill": 0.5 },
"k6": { "with_skill": 1.0, "without_skill": 0.67 }
}
}Description Optimization (one-time, after skill content is stable)
Run this to auto-optimize the description field in SKILL.md by testing trigger/no-trigger queries:
python -m scripts.run_loop \
--eval-set skills/perf/evals/trigger-eval.json \
--skill-path skills/perf \
--model claude-sonnet-4-20250514 \
--max-iterations 5 \
--verboseEval Categories
| Category | Evals | What it tests |
k6 | 1, 5, 7 | Diagnosis, executor choice, thresholds |
tool-selection | 2, 12 | Recommending the right tool (Kafka and catalog-driven selection) |
jmeter | 3 | OOM diagnosis, listener memory leak |
migration | 4 | LoadRunner-to-k6 concept mapping |
locust | 6 | catch_response silent failure |
artillery | 8, 9 | ensure CI gating, arrivalRate vs concurrency |
llm-inference | 10 | TTFT/TPOT metrics, benchmarking tools |
slo-capacity | 11 | Error budgets, CI gating with burn rate |
Assertion Writing Rules
- State in present tense:
"Output contains...","Response includes..." - Must be objectively verifiable - avoid subjective grades like "response is good"
- 2–4 assertions per eval is the target range
- Use unique
idstrings - they serve as the pass/fail key ineval_metadata.json
What to Commit vs. Gitignore
perf-skills-workspace/ # eval run outputs - large, ephemeral
feedback.json # personal review notesCommit:
skills/perf/SKILL.mdskills/perf/evals/evals.json.claude/CLAUDE.md
Does 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.

