agentleFS
CodevetterCodevetter/codevetter/skills/codevetter-performance/SKILL.md

codevetter-performance

Skill1 starsChanged 59 days agoMITView on GitHub

Measure or investigate performance with CodeVetter when asked to profile an agent change, investigate a slowdown, benchmark a workload, or verify an optimization. Require same-workload paired evidence for improvement claims.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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:

    Use this skill for bounded local workload measurements and supported optimization claims.

    line 8
  2. Very specific:

    Read repository instructions and the existing benchmark or performance-sensitive test.

    line 16

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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
SKILL.md

CodeVetter Performance

Use this skill for bounded local workload measurements and supported optimization claims. CodeVetter owns workload admission, samples, warmups, cleanup, comparisons and verdicts; do not recreate its grader.

Automatic use

Load this skill when the coding-agent task calls for performance investigation or optimization verification, without waiting for the user to name CodeVetter. Complete the relevant authorized flow and its use-and-log loop; do not stop at discovery if the requested workload can run.

Identify the workload

Read repository instructions and the existing benchmark or performance-sensitive test. Inspect codevetter --version and codevetter --help once. Use the shared recorder with --skill codevetter-performance --repo <repo> -- followed by one appropriate discovery command:

scope --consumer performance --flow <behavior> --json
scope --consumer performance --change <base..head> --json

Select a contained existing target, supported adapter (node-test, node-script, vitest, playwright, go-bench) and exact workload name where needed. Plan before execution:

performance --operation plan --adapter <adapter> --target <relative-path> --json

Target discovery and a successful plan are not performance results.

Inspect the selected file and verify that it exercises the requested behavior before execution. Reject generated/dependency targets (.build/checkouts, node_modules, vendored snapshots and build outputs), unrelated high-confidence matches, and stale legacy preview presets. Discovery confidence is a heuristic, not relevance proof; obtain the current preview from the user or repository evidence.

Measure and compare

When local workload execution is authorized, use performance --operation diagnose with the exact planned adapter/target. Keep sample/warmup/timeout bounds explicit. Use --samples 3 --warmups 1 --timeout-ms 30000 as an example, not a calibrated policy for every workload. Browser workloads require fresh foreground authorization when they can launch apps or take focus. Do not send production load or install missing prerequisites implicitly.

For an optimization, provide a clean baseline checkout and the same workload:

performance --operation verify-paired --adapter <adapter> --target <relative-path> --baseline-repo <clean-baseline> --samples 3 --warmups 1 --timeout-ms 30000 --json

Use performance --operation inspect --subject-run-id <recorded-id> --json to reload recorded runtime evidence. Preserve engine rejection, no-confidence and regression classifications; exit zero or a faster wall-clock sample alone is not improvement proof. Record hardware/runtime, exact revisions, workload identity, sample distributions, cleanup, process-tree resource coverage and all limitations. Periodic RSS sampling can miss peaks. Confirm correctness separately before recommending the candidate.

Judge the benefit

An exact-workload speedup is a measured code outcome. It does not establish that CodeVetter improved agent productivity. Use codevetter-evaluate to compare the agent's outcome with and without CodeVetter evidence, including extra elapsed time, finding burden and available cost. Never invent developer time saved.

Close the usefulness log

Before handing the task back, assess each recorded invocation as helped, did_not_help, inconclusive or blocked through the closing log. Explain the concrete contribution or lack of it, cite receipt pointers, and preserve the added runtime. This is agent-reported usefulness, not independently established productivity. Log negative and blocked results as reliably as positive ones.

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.