agentleFS
luiseimanluiseiman/dotforge/skills/benchmark/SKILL.md

benchmark

Skill8 starsChanged 7 months agoMITView on GitHub

Compare Claude Code output with full config vs minimal config using standardized tasks per stack.

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

11 rules. 0 are common, 8 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 45 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If multiple stacks match, let user choose or run the first match

    line 22
  2. Very specific:

    If no stack matches, use generic.yml

    line 23
  3. Distinctive:

    Create two git worktrees from the current HEAD:

    line 39
  4. Distinctive:

    Create minimal CLAUDE.md with only project name and "Build & Test" section

    line 46
  5. Very specific:

    Create minimal .claude/settings.json with only allowedTools (no hooks, no deny list)

    line 47
  6. Distinctive:

    tests_passing: run the test command from task definition, count pass/fail

    line 64
  7. Distinctive:

    lint_issues: run lint command from task definition, count issues

    line 65
  8. Very specific:

    Remove worktrees: git worktree remove /tmp/bench-full-{{slug}} and minimal

    line 98
  9. Distinctive:

    NEVER run benchmark automatically — always require explicit user confirmation

    line 127
  10. Distinctive:

    NEVER push or commit from worktrees — they are disposable

    line 128
  11. Distinctive:

    If Claude Code execution fails in either worktree, report the failure and still show partial results

    line 129

“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

Compare the effectiveness of a project's full dotforge configuration against a minimal baseline by executing the same standardized task in two isolated worktrees.

Cost warning: Each benchmark runs Claude Code twice (full + minimal). Use sparingly and only after Fases 0-2 are working.

Prerequisites

  • Project must have .claude/settings.json and CLAUDE.md
  • Project must be a git repository with a clean working tree
  • Task definitions must exist in $DOTFORGE_DIR/tests/benchmark-tasks/

Step 1: Select task

  1. Detect project stacks from .claude/.forge-manifest.json or infer from project files
  2. Load matching task from $DOTFORGE_DIR/tests/benchmark-tasks/{stack}.yml
  3. If multiple stacks match, let user choose or run the first match
  4. If no stack matches, use generic.yml

Display:

═══ BENCHMARK SETUP ═══
Project: {{name}}
Stack detected: {{stack}}
Task: {{task title}}
Description: {{task description}}

⚠ This will run Claude Code twice in isolated worktrees.
Proceed? (yes/no)

Step 2: Prepare worktrees

Create two git worktrees from the current HEAD:

  1. Full config — git worktree add /tmp/bench-full-{{slug}} HEAD
    • Copy entire .claude/ directory as-is
    • Copy CLAUDE.md as-is
  2. Minimal config — git worktree add /tmp/bench-minimal-{{slug}} HEAD
    • Create minimal CLAUDE.md with only project name and "Build & Test" section
    • Create minimal .claude/settings.json with only allowedTools (no hooks, no deny list)
    • No .claude/rules/, no hooks, no agents

Step 3: Execute task

For each worktree, run the task prompt using Claude Code in non-interactive mode:

cd /tmp/bench-full-{{slug}}
claude --print "{{task prompt}}" --allowedTools "Bash,Read,Write,Edit,Glob,Grep"

Same for minimal worktree.

Capture for each run:

  • files_created: count of new files (git diff --name-only --diff-filter=A)
  • files_modified: count of modified files
  • tests_passing: run the test command from task definition, count pass/fail
  • lint_issues: run lint command from task definition, count issues
  • errors: grep stderr for error patterns
  • has_test: boolean — did Claude create a test file?

Step 4: Compare and report

═══ BENCHMARK RESULTS — {{project}} ═══
Task: {{task title}}
Stack: {{stack}}
Date: {{YYYY-MM-DD}}

                   Full Config    Minimal Config    Delta
Files created:         {{N}}          {{N}}          {{+/-N}}
Tests created:         {{yes/no}}     {{yes/no}}     —
Tests passing:         {{N/M}}        {{N/M}}        {{+/-N}}
Lint issues:           {{N}}          {{N}}          {{+/-N}}
Errors:                {{N}}          {{N}}          {{+/-N}}

── ANALYSIS ──
{{if full is better across metrics:
  "Full config prevented {{N}} lint issues and {{N}} errors.
   ROI: rules + hooks justified for this project."}}
{{if similar:
  "Minimal difference detected. Consider simplifying configuration
   or running /forge rule-check to identify inert rules."}}
{{if minimal is better:
  "⚠ Full config may be adding overhead without benefit.
   Review rules for contradictions or excessive constraints."}}

Step 5: Cleanup

  1. Remove worktrees: git worktree remove /tmp/bench-full-{{slug}} and minimal
  2. Optionally save results to ~/.claude/metrics/{{slug}}/benchmark-{{date}}.json

Results JSON schema:

{
  "project": "{{slug}}",
  "date": "{{YYYY-MM-DD}}",
  "stack": "{{stack}}",
  "task": "{{task id}}",
  "full": {
    "files_created": 0,
    "tests_passing": 0,
    "lint_issues": 0,
    "errors": 0,
    "has_test": false
  },
  "minimal": {
    "files_created": 0,
    "tests_passing": 0,
    "lint_issues": 0,
    "errors": 0,
    "has_test": false
  }
}

Important constraints

  • NEVER run benchmark automatically — always require explicit user confirmation
  • NEVER push or commit from worktrees — they are disposable
  • If Claude Code execution fails in either worktree, report the failure and still show partial results
  • Timeout each run at 5 minutes — if Claude hasn't finished, capture partial state
  • Clean up worktrees even on failure

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.