Official agent skill

Lading Optimize Review

by DataDog in DataDog/lading

Reviews optimization patches using a 5-persona peer review system.

OfficialMITAuto-check passedResearch & Science

Install Lading Optimize Review

skills CLI
$ npx skills add DataDog/lading --skill lading-optimize-review -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install DataDog/lading lading-optimize-review --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/DataDog/lading.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/lading-optimize-review .claude/skills/lading-optimize-review && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
lading-optimize-review
GitHub stars
101
Token cost
~1.9k tokens
SKILL.md length
716 words
Files
3 (incl. assets)
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

Reviews optimization patches using a 5-persona peer review system.

  • Works in 5 steps: Benchmark Execution → Five-Persona Review → Kani/Property Test Check → …
  • Tasks that involve Peer review
  • SKILL.md covers Role: Judge, Outcomes, Arguments and Phase 1: Benchmark Execution, plus 4 more sections
  • Calls cargo

What it does

Lading Optimize Review is an agent skill from DataDog/lading, published by the product's own GitHub organization. Reviews optimization patches using a 5-persona peer review system. Requires unanimous approval backed by benchmarks.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including assets (for example `assets/approved.template.yaml` and `assets/rejected.template.yaml`).

It sits in Research & Science, covering Peer review. The repository describes itself as: A suite of data generation and load testing tools. The licence is MIT.

When your agent uses it

  • Tasks that involve Peer review

Example prompts

  • “Use the lading-optimize-review skill to review optimization patches using a 5-persona peer review system”
  • “/lading-optimize-review”

Requirements

  • Pre-approved tools (allowed-tools): Bash(cat:*), Bash(sample:*), Bash(samply:*), Bash(cargo:*), Bash(ci/*:*), Bash(hyperfine:*), Bash(*/payloadtool:*), Bash(tee:*), Read, Glob, Grep

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Benchmark Execution
  2. Five-Persona Review
  3. Kani/Property Test Check
  4. Decision
  5. Return Report

What it can do on your machine

Read from SKILL.md and the folder at commit a7bb0ea. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(cat:*)
    • Bash(sample:*)
    • Bash(samply:*)
    • Bash(cargo:*)
    • Bash(ci/*:*)
    • Bash(hyperfine:*)
    • Bash(*/payloadtool:*)
    • Bash(tee:*)
    • Read
    • Glob

    …and 1 more on the same allowed-tools line.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • cargo

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Lading Optimize Review loads about 1.9k tokens when it runs. Until then it costs about 35 tokens; SKILL.md has 716 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~35
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from DataDog/lading at commit a7bb0ea, republished under its MIT licence (© DataDog). 716 words, ~1,852 tokens.

Download SKILL.mdSave it as .claude/skills/lading-optimize-review/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
lading-optimize-review
description
Reviews optimization patches using a 5-persona peer review system. Requires unanimous approval backed by benchmarks.
allowed-tools
Bash(cat:*), Bash(sample:*), Bash(samply:*), Bash(cargo:*), Bash(ci/*:*), Bash(hyperfine:*), Bash(*/payloadtool:*), Bash(tee:*), Read, Glob, Grep
argument-hint
[bench] [fingerprint] [file] [target] [technique]
context
fork

Optimization Patch Review

A rigorous 5-persona peer review system for optimization patches in lading. Requires unanimous approval backed by concrete benchmark data. Duplicate Hunter persona prevents redundant work.

Role: Judge

Review is the decision-maker. It does NOT record results.

Review judges using benchmarks and 5-persona review, then returns a structured report.

Outcomes

OutcomeVotesAction
APPROVED5/5 APPROVEReturn APPROVED report
REJECTEDAny REJECTReturn REJECTED report

Arguments

This skill requires 5 positional arguments passed by the caller:

ArgFieldExampleUsed for
$ARGUMENTS[0]benchtrace_agentcargo criterion --bench flag
$ARGUMENTS[1]fingerprintci/fingerprints/trace_agent_v04/lading.yamlpayloadtool config path
$ARGUMENTS[2]filelading_payload/src/trace_agent/v04.rsreport + duplicate check
$ARGUMENTS[3]targetV04::to_bytesreport
$ARGUMENTS[4]techniquebuffer-reusereport + duplicate check

If any argument is missing -> REJECT. All 5 are required.

Generate Report ID

Derive the id from the file and technique arguments:

  1. Take the filename stem from $ARGUMENTS[2] (e.g. lading_payload/src/trace_agent/v04.rs → trace-agent-v04)
  2. Append the technique $ARGUMENTS[4] (e.g. buffer-reuse)
  3. Join with - → trace-agent-v04-buffer-reuse

Use this id in the report.


Phase 1: Benchmark Execution

Step 1: Read Baseline Data

Read the baseline benchmark files captured:

  • /tmp/criterion-baseline.log — micro-benchmark baseline
  • /tmp/baseline.json — macro-benchmark timing baseline
  • /tmp/baseline-mem.txt — macro-benchmark memory baseline

If baseline data is missing -> REJECT. Baselines must be captured before any code change and before this gets invoked.

Step 2: Run Post-Change Micro-benchmarks
bash
cargo criterion --bench $ARGUMENTS[0] 2>&1 | tee /tmp/criterion-optimized.log

Note: Criterion automatically compares against the last run and reports percentage changes.

Compare results — look for "change:" lines showing improvement/regression.

Example output: time: [1.2345 ms 1.2456 ms 1.2567 ms] change: [-5.1234% -4.5678% -4.0123%]

Step 3: Run Post-Change Macro-benchmarks
bash
cargo build --release --bin payloadtool
hyperfine --warmup 3 --runs 30 --export-json /tmp/optimized.json \
  "./target/release/payloadtool $ARGUMENTS[1]"
./target/release/payloadtool "$ARGUMENTS[1]" --memory-stats 2>&1 | tee /tmp/optimized-mem.txt
Statistical Requirements
  • Minimum 30 runs for hyperfine (--runs 30)
  • Criterion handles statistical significance internally
  • Time improvement >= 5% for significance
  • Memory improvement >= 10% for significance
  • Allocation reduction >= 20% for significance
NO EXCEPTIONS
  • "Test dependencies don't work" -> REJECT. Fix dependencies first.
  • "Theoretically better" -> REJECT. Prove it with numbers.
  • "Obviously an improvement" -> REJECT. Obvious is not measured.
  • "Will benchmark later" -> REJECT. Benchmark now.

Phase 2: Five-Persona Review

1. Duplicate Hunter (Checks for Redundant Work)
  • Check .claude/skills/lading-optimize-hunt/assets/db.yaml for $ARGUMENTS[2] + $ARGUMENTS[4] combo
  • File + technique combo not already approved
  • No substantially similar optimization exists
  • If duplicate found -> REJECT with "DUPLICATE: see <existing entry>"
2. Skeptic (Demands Proof)
  • Baseline data verified present
  • Post-change benchmarks executed with identical methodology
  • Hot path verified via profiling (not just guessed)
  • Micro threshold met (>=5% time)
  • Macro threshold met (>=5% time OR >=10% mem OR >=20% allocs)
  • Statistical significance confirmed (p<0.05 or criterion "faster")
  • Improvement is real, not measurement noise
  • Benchmark methodology sound (same config, same machine)
3. Conservative (Guards Correctness)
  • Run ci/validate and validate that it passes completely
  • No semantic changes to output
  • Determinism preserved (same seed -> same output)
  • No .unwrap() or .expect() added (lading MUST NOT panic)
  • No bugs introduced (if bug found -> REJECT with bug details)
  • Property tests exist for changed code
Show full SKILL.md (264 more words)Show less
4. Rust Expert (Lading-Specific Patterns)
  • No mod.rs files (per CLAUDE.md)
  • All use statements at file top (not inside functions)
  • Format strings use named variables ("{index}" not "{}")
  • Pre-computation in initialization, not hot paths
  • Worst-case behavior considered, not just average-case
  • No unnecessary cloning or allocation in hot paths
5. Greybeard (Simplicity Judge)
  • Code still readable without extensive comments
  • Complexity justified by measured improvement
  • "Obviously fast" pattern, not clever trick
  • Follows 3-repeat abstraction rule (no premature abstraction)
  • Change is minimal - no scope creep

Phase 3: Kani/Property Test Check

If the optimization touches critical code:

For lading_throttle:
bash
ci/kani lading_throttle
For lading_payload:
bash
ci/kani lading_payload

Kani constraints:

  • Kani proofs are more complete but labor-intensive
  • Kani may not compile complex code
  • Kani runs are EXTREMELY slow for complex code

If Kani fails to run:

  1. Document why (compilation error? timeout?)
  2. Verify comprehensive property tests exist instead
  3. This is acceptable - Kani feasibility varies

Phase 4: Decision

OutcomeVotesAction
APPROVED5/5 APPROVEReturn APPROVED report
REJECTEDAny REJECTReturn REJECTED report

Duplicates, bugs, correctness issues, and missing benchmarks are all rejections. Describe the specific reason in the report's reason field.


Phase 5: Return Report

Review does NOT record results and does NOT create files. Return a structured YAML report to the caller.

Fill in the appropriate template and return the completed YAML:

VerdictTemplate
approved.claude/skills/lading-optimize-review/assets/approved.template.yaml
rejected.claude/skills/lading-optimize-review/assets/rejected.template.yaml
  1. Read the appropriate template from the .claude/skills/lading-optimize-review/assets/ directory
  2. Fill in placeholders using argument values:
    • id → generated ID (see "Generate Report ID" above)
    • target → $ARGUMENTS[2]:$ARGUMENTS[3] (e.g. lading_payload/src/trace_agent/v04.rs:V04::to_bytes)
    • technique → $ARGUMENTS[4]
  3. Fill remaining fields with actual benchmark data from the review
  4. Return the filled-in report

© DataDog, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (assets) in .claude/skills/lading-optimize-review of DataDog/lading.

  • SKILL.md
  • assets/approved.template.yaml
  • assets/rejected.template.yaml

Open the folder on GitHubat commit a7bb0ea

Compare with similar skills

Lading Optimize Review next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Lading Optimize Review compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Lading Optimize Review this skillDataDog/lading101—~1.9kAutomated safety check: PassMIT
Peer Reviewspacering-net/codeg3.8k18 repos~5.9kAutomated safety check: NotesMIT
Scholar Evaluationspacering-net/codeg3.8k12 repos~3.2kAutomated safety check: PassMIT
Academic Paper Writing PipelineImbad0202/academic-research-skills51k—~16kAutomated safety check: PassCustom licence
LLM Counciltenfoldmarc/llm-council-skill8192 repos~4.2kAutomated safety check: PassNone
Academic Paper ReviewerImbad0202/academic-research-skills51k—~11kAutomated safety check: PassCustom licence

Similar skills

  • Peer Review

    spacering-net/codeg

    Structured manuscript/grant review with checklist-based evaluation.

    3.8k GitHub starsUsed in 18 repos~5.9k tokens
    Research & ScienceAuto-check: notes
  • Scholar Evaluation

    spacering-net/codeg

    Systematically evaluate scholarly work using the ScholarEval framework, providing structured assessment across research quality dimensions including problem formulation, methodology, analysis, and…

    3.8k GitHub starsUsed in 12 repos~3.2k tokens
    Research & ScienceAuto-check passed
  • Academic Paper Writing Pipeline

    Imbad0202/academic-research-skills

    Runs a 12-agent pipeline that plans, drafts, cites, reviews and formats academic papers, with modes for revision, rebuttals, abstracts and citation checks.

    51k GitHub stars~16k tokensUpdated 5 days ago
    Research & ScienceAuto-check passed
  • LLM Council

    tenfoldmarc/llm-council-skill

    Run any question, idea, or decision through a council of 5 AI advisors who independently analyze it, peer-review each other anonymously, and synthesize a final verdict.

    819 GitHub starsUsed in 2 repos~4.2k tokens
    Research & ScienceAuto-check passed
  • Academic Paper Reviewer

    Imbad0202/academic-research-skills

    Simulates a journal peer review of a manuscript with a five-seat reviewer panel, an editorial synthesizer and several review modes.

    51k GitHub stars~11k tokensUpdated 5 days ago
    Research & ScienceAuto-check passed
  • Peer Review

    K-Dense-AI/claude-scientific-writer

    Prepare evidence-bounded, constructive peer-review drafts and structured manuscript assessments.

    2.4k GitHub starsUsed in 2 repos~3.1k tokens
    Research & ScienceAuto-check: notes

More from DataDog/lading

  • Official

    Finds a valid optimization target in lading. An agent skill from DataDog/lading.

    101 GitHub stars~1.5k tokensUpdated 8 days ago
    Auto-check: notes
  • Lading Optimize Hunt

    DataDog/lading

    Official

    Coordinates optimization attempts. An agent skill from DataDog/lading.

    101 GitHub stars~1k tokensUpdated 8 days ago
    Auto-check passed
  • Official

    Full optimization workflow with git branch creation, commits, and optional PR.

    101 GitHub stars~837 tokensUpdated 8 days ago
    Auto-check passed
  • Lading Preflight

    DataDog/lading

    Official

    Environment validation checklist. An agent skill from DataDog/lading.

    101 GitHub stars~668 tokensUpdated 8 days ago
    Auto-check: notes
  • Release

    DataDog/lading

    Official

    Prepare a lading release. An agent skill from DataDog/lading.

    101 GitHub stars~465 tokensUpdated 8 days ago
    Auto-check: notes

Questions about Lading Optimize Review

What does Lading Optimize Review do?

Reviews optimization patches using a 5-persona peer review system. Lading Optimize Review is an agent skill from DataDog/lading, published by the product's own GitHub organization. Reviews optimization patches using a 5-persona peer review system.

When should I use Lading Optimize Review?

Lading Optimize Review fits situations like: tasks that involve Peer review.

How do I install Lading Optimize Review in Claude Code?

Run `npx skills add DataDog/lading --skill lading-optimize-review -a claude-code`. Or copy the skill folder (.claude/skills/lading-optimize-review in DataDog/lading) into .claude/skills/lading-optimize-review in your project. Claude Code loads it when a task matches its description.

How do I install Lading Optimize Review in Codex?

Run `npx skills add DataDog/lading --skill lading-optimize-review -a codex`. Or copy the skill folder (.claude/skills/lading-optimize-review in DataDog/lading) into .agents/skills/lading-optimize-review in your project. Codex loads it when a task matches its description.

Can I use Lading Optimize Review in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add DataDog/lading --skill lading-optimize-review -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/lading-optimize-review, .gemini/skills/lading-optimize-review, .github/skills/lading-optimize-review and .opencode/skills/lading-optimize-review in your project.

What does Lading Optimize Review need to run?

Going by SKILL.md and its folder, Lading Optimize Review needs the command-line tools its instructions call (cargo). Its frontmatter pre-approves these tools: Bash(cat:*), Bash(sample:*), Bash(samply:*), Bash(cargo:*), Bash(ci/*:*), Bash(hyperfine:*), Bash(*/payloadtool:*), Bash(tee:*), Read, Glob, Grep.

Does Lading Optimize Review access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Lading Optimize Review safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Lading Optimize Review use?

Lading Optimize Review is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Lading Optimize Review use?

About 1.9k tokens (SKILL.md is roughly 7.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Lading Optimize Review?

Skills that share tags, products or a category with Lading Optimize Review: Peer Review (spacering-net/codeg, 3.8k stars), Scholar Evaluation (spacering-net/codeg, 3.8k stars), Academic Paper Writing Pipeline (Imbad0202/academic-research-skills, 51k stars) and LLM Council (tenfoldmarc/llm-council-skill, 819 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Lading Optimize Review?

DataDog (a GitHub organization, an official publisher) maintains it in DataDog/lading, which has 101 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on September 30, 2026.

Source: DataDog/lading on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.