agentleFS
QAInsightsQAInsights/perf-skills/.claude/CLAUDE.md

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.

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
  1. Very specific:

    Run this to auto-optimize the description field in SKILL.md by testing trigger/no-trigger queries:

    line 95
  2. Distinctive:

    Must be objectively verifiable - avoid subjective grades like "response is good"

    line 126
  3. Very specific:

    Use unique id strings - they serve as the pass/fail key in eval_metadata.json

    line 128

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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:

  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

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 evals

eval_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 \
  --verbose

Eval Categories

CategoryEvalsWhat it tests
k61, 5, 7Diagnosis, executor choice, thresholds
tool-selection2, 12Recommending the right tool (Kafka and catalog-driven selection)
jmeter3OOM diagnosis, listener memory leak
migration4LoadRunner-to-k6 concept mapping
locust6catch_response silent failure
artillery8, 9ensure CI gating, arrivalRate vs concurrency
llm-inference10TTFT/TPOT metrics, benchmarking tools
slo-capacity11Error 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 id strings - they serve as the pass/fail key in eval_metadata.json

What to Commit vs. Gitignore

perf-skills-workspace/    # eval run outputs - large, ephemeral
feedback.json             # personal review notes

Commit:

  • skills/perf/SKILL.md
  • skills/perf/evals/evals.json
  • .claude/CLAUDE.md

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.