agentleFS
epicsagasepicsagas/epic-harness/.claude/skills/benchmark/SKILL.md

benchmark

Skill19 starsChanged 3 months agoApache-2.0View on GitHub

Executes Bare-vs-Epic A/B benchmarking, Ring 0 Guard 50 challenge, and full golden set evaluation for epic-harness. Orchestrates worker sessions, enforces strict workspace isolation, and synthesizes multi-dimensional comparison reports in TUI. Triggers: /benchmark, 'benchmark', 'a/b test', 'eval harness', 'smoke test', 'full eval'.

51 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-deploy, cso and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ayudaySkill

    setup-deploy

    Configure deployment settings for /land-and-deploy. Detects your deploy platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom), production URL, health check endpoints, and deploy status commands. Writes the configuration to CLAUDE.md so all future deploys are automatic. Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I deploy with gstack", "add deploy config".

    Also in 9 projects that use this

  • ayudaySkill

    cso

    Chief Security Officer mode. Performs OWASP Top 10 audit, STRIDE threat modeling, attack surface analysis, auth flow verification, secret detection, dependency CVE scanning, supply chain risk assessment, and data classification review. Use when: "security audit", "threat model", "pentest review", "OWASP", "CSO review".

    Also in 8 projects that use this

  • AICreator-WindSkill

    document-release

    技术作家工具。更新项目文档。

    Also in 9 projects that use this

  • Kit4SomeSkill

    unfreeze

    Also in 9 projects that use this

  • seek888Skill

    design-html

    Design finalization: generates production-quality Pretext-native HTML/CSS. Works with approved mockups from /design-shotgun, CEO plans from /plan-ceo-review, design review context from /plan-design-review, or from scratch with a user description. Text actually reflows, heights are computed, layouts are dynamic. 30KB overhead, zero deps. Smart API routing: picks the right Pretext patterns for each design type. Use when: "finalize this design", "turn this into HTML", "build me a page", "implement this design", or after any planning skill. Proactively suggest when user has approved a design or has a plan ready. (gstack) Voice triggers (speech-to-text aliases): "build the design", "code the mockup", "make it real".

    Also in 5 projects that use this

  • CodeWithBehnamSkill

    setup-browser-cookies

    Import cookies from your real browser (Comet, Chrome, Arc, Brave, Edge) into the headless browse session. Opens an interactive picker UI where you select which cookie domains to import. Use before QA testing authenticated pages.

    Also in 8 projects that use this

  • +2 more from ayuday

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 45 edited versions we read keep these.

  • 1

    Distinctive

    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:

    Total Isolation: Before launching Bare, the director explicitly deletes any .harness/, .claude/, .agents/, CLAUDE.md, and AGENTS.md files …

    line 50
  2. Very specific:

    Test Integrity Protection: After the agent completes its run, the grading runner restores the original unmodified test files (test_*.py, …

    line 55
  3. Distinctive:

    Run the appropriate Python orchestration script in the terminal:

    line 70

“Common” is measured: kept by at least 6 in 10 of the 45 edited versions of this file we could read. “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
SKILL.md

Benchmark — epic-harness A/B Evaluation & Golden Set Runner

CRITICAL: This is a repository-local developer evaluation skill. It is NOT included in the published epic-harness plugin bundle to prevent runtime context overhead in user projects.


1. When to Trigger

  • Explicit /benchmark, /benchmark full, /benchmark smoke, or /benchmark guard commands
  • User asks to "run A/B test", "evaluate harness", "run smoke test", or "benchmark all"
  • Pre-release verification to confirm zero regressions and 100% guard interception rate
  • Comparing new model profiles (e.g., Claude 3.7 Sonnet, GLM-5, GPT-4o) on Bare vs Epic

2. Command Reference & Execution Modes

CommandScopeWhat It Runs
/benchmark full (or /benchmark all)Full Suite (Recommended)1) Ring 0 Guard 50 Challenge Suite<br>2) 5 Golden Set Tasks (Bare vs Epic A/B)<br>3) Master comparison report
/benchmark smoke5 Golden Set TasksRuns A/B evaluation across task1 ~ task5
/benchmark task <name>Single TaskRuns A/B evaluation on a specific task (e.g. task3-security-auth-token)
/benchmark guardRing 0 Safety GateRuns 50-case command interception challenge (guard_challenge.py)
/benchmark swebenchSWE-bench VerifiedRuns 500-instance containerized A/B run (run_swebench.sh)
/benchmark reportReporting OnlyReads DIRECTOR-REPORT.md and provides executive insights

3. Sandbox Environment Manifest & File Copy Specifications

To guarantee reproducible, non-destructive, and leak-free evaluation, each arm executes in a dedicated temporary sandbox (/tmp/ab-<task>-<profile>-<arm>-XXXX).

3.1 Sandbox Copy Manifest (File Whitelist / Blacklist)

CategoryFile / DirectoryBare Arm (Unassisted)Epic Arm (Harness Loaded)Purpose
Codebasetasks/<name>/repo/*COPIEDCOPIEDBase source files and initial failing test fixtures
Prompttasks/<name>/task.mdCOPIEDCOPIEDTarget task requirements handed to the agent
Dependenciespyproject.toml, Cargo.toml, etc.COPIEDCOPIEDRuntime dependencies and tool configurations
Harness Pluginepic@epicsagas plugin binaryEXCLUDEDINJECTEDRing 0 hooks, Ring 1 pipelines, Ring 2 quality skills
Harness RulesCLAUDE.md, AGENTS.mdSTRIPPEDINJECTEDProject-specific agent instructions
Harness Config.harness/guard-rules.yamlSTRIPPEDINJECTEDCustom guard intercept rules
Agent Configs.claude/, .agents/, .codex/STRIPPEDCONFIGUREDHost settings and plugin toggles

3.2 Bare Arm Baseline Configuration

  • Total Isolation: Before launching Bare, the director explicitly deletes any .harness/, .claude/, .agents/, CLAUDE.md, and AGENTS.md files from the sandbox workdir.
  • Tool Parity: Native CLI tools (Bash, File Edit, Read, Glob, Grep) remain enabled so the model can inspect, edit, and test code normally.
  • Invocation: Executed with --bare flag (claude --bare -p "$(cat task.md)") to suppress all plugins and hooks.

3.3 Anti-Tampering Grader Protocol

  • Test Integrity Protection: After the agent completes its run, the grading runner restores the original unmodified test files (test_*.py, *_test.*) from the pristine repo source into the sandbox before running the grader.
  • This prevents models from "cheating" by modifying assertions or deleting failing tests.

4. Execution Procedure for Director Session (TUI)

Step 1: Parse User Request

Determine:

  • Target mode: full (default), smoke, guard, or specific task <name>.
  • Model profile: zai (default), native, claude, etc.
  • Flags: --dry-run if testing pipeline mechanics without API calls.

Step 2: Execute Director Runner

Run the appropriate Python orchestration script in the terminal:

# 1. Run Full Suite (Guard 50 + All 5 Golden Tasks) in one command
python3 benchmarks/ab/run_director.py --full --profile {profile}

# 2. Run Guard 50 Challenge only
python3 benchmarks/ab/guard_challenge.py

# 3. Dry-run to test workflow without consuming tokens
python3 benchmarks/ab/run_director.py --full --dry-run

Step 3: Parse Results & Synthesize Executive Briefing

Present a structured report in the TUI containing:

  1. Guard Interception Summary: Score (target: 50/50, 100%) and category breakdown.
  2. Task Matrix: Pass@1 status, Total Cost ($), Turns, Latency (ms), and Input/Output Tokens per arm.
  3. Aggregated Value Analysis:
    • Net-New Resolutions ($C_1$): Tasks resolved by Epic where Bare failed.
    • Cost-Per-Resolved-Instance (CPRI): Value-normalized cost.
    • Regression Defense: Instances where Bare broke PASS_TO_PASS tests but Epic preserved integrity.
  4. Final Verdict:
    • STATE A (Value Proven): $C_1 > 0$ on non-trivial tasks and CPRI ratio $\le 1.5$.
    • STATE B (Cost Exceeds Value): Zero net-new gain with increased token cost.
    • TIE: Both arms passed (trivial task ceiling effect; suggest B3/B4 hard tasks).

5. Golden Set Reference

Task NameCategoryTested Skills & Capabilities
task1-palindromeBasic BugfixSingle-function debugging (string_utils.py)
task2-moving-averageTDD GreenfieldTest-driven implementation (/tdd, stats.py)
task3-security-auth-tokenSecurity & SASTJWT expiration check + Parameterized SQL query (/secure, /vuln-scan)
task4-cart-multi-file-regressionMulti-File Regression3-file e-commerce discount & tax with rounding defense (/go, /verify)
task5-async-rate-limiterConcurrency & Asyncasyncio.Lock race-condition resolution (/debug, /perf)
guard_challenge.pyRing 0 Safety50 destructive, credential-dump, and infra commands

6. Anti-Rationalization

ExcuseRebuttalWhat to do instead
"Bare is cheaper and passes easy tasks"Easy tasks have a ceiling effect where value cannot be measuredTest on multi-file regression (task4) or hard security tasks (task3)
"A/B testing consumes too many tokens"Unmeasured harness is unproven overheadRun --dry-run first, or run Guard 50 (zero LLM token cost)
"Tests pass so code is safe"Functional unit tests miss SQL injection and token forgeryInspect SAST security scan results

7. Evidence Required

  • run_director.py output captured (or guard_challenge.py)
  • Both Bare and Epic arms evaluated in isolated temporary workdirs
  • Bare workdir strictly stripped of all .harness/, .claude/, CLAUDE.md artifacts
  • Independent pytest verification executed post-run
  • DIRECTOR-REPORT.md generated and presented to user

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.