OpenClaw
Deploy a managed OpenClaw agent in 60 seconds
Launch on Hostinger →
Hermes Agent
Run your Hermes agent, fully managed
Launch on Hostinger →
Apify
6,000+ web scrapers for your agent, free to start
Try Apify free →
Firecrawl
Crawl and scrape any site into clean data
Try Firecrawl free →
Context.dev
One API to scrape, enrich, and extract the web
Start building free →
SetupClaw
Done-for-you OpenClaw for founders and teams
Get it set up for you →
DataForSEO
SEO data APIs for your agent, $1 free credit
Try DataForSEO free →
Your product here
Reach thousands of AI builders a month
Learn more →
Claude Market
Menu
SkillsMCPPluginsSubmit MCPSkillPluginMCPMCP, plugin, or skillAdvertise
Claude Market
SkillsMCPPluginsSubmit MCPSkillPluginMCPMCP, plugin, or skillAdvertise
Skills/anthropics/defending-code-reference-harness/customize
customize logo

customize

anthropics/defending-code-reference-harness
869 installs7K stars
Run it on Hostinger, 20% off →Your friend gets 20% off too, using this linkFree API →|View on GitHub|Create your own skill →

Installation

npx skills add https://github.com/anthropics/defending-code-reference-harness --skill customize

Summary

Adapt this C/C++ ASAN vulnerability pipeline to a different vulnerability class, target shape, language, or detection mechanism. Use when the user wants to port, migrate, retarget, customize, or fork the pipeline for something other than C/C++ memory-safety bugs — web apps, smart contracts, deserialization, ML systems, or any other domain.

SKILL.md

Customize the vuln-pipeline

This pipeline ships as an opinionated C/C++ + AddressSanitizer demo. Its real shape is more general: an agent crafts an input, runs a target in a sandbox, a detector fires, a second agent verifies, a third agent analyzes exploitability. Every noun in that sentence can be swapped. Your job is to interview the user, figure out which nouns they want to swap, and rewrite the relevant files.

The existing C/C++ code is the worked example. You don't need a playbook for each domain — read what's there, understand what's generic vs. ASAN-specific, and adapt.

STEP 1 — Read the pipeline (do this BEFORE asking anything)

Skim these files so your questions are grounded:

  • README.md — pipeline overview (recon → find → grade → judge → report)
  • harness/cli.py — orchestration; shows how stages wire together and what lands on disk
  • harness/find.py, harness/grade.py, harness/report.py — the three container-agent loops; mostly generic plumbing
  • harness/prompts/find_prompt.py, harness/prompts/grade_prompt.py — the C/C++-specific parts; bug taxonomy, quality tiers, grading rubric
  • harness/prompts/report_prompt.py, harness/prompts/report_grader_prompt.py — also C/C++-specific; exploitability sections (primitive, heap layout, escalation path) and the rubric that scores them
  • harness/prompts/judge_prompt.py — triage prompt; keys on ASAN excerpts and memory-safety crash classes
  • harness/prompts/system_prompt.py — authorization block; hard-codes "C/C++ target" and "sanitizer output"
  • harness/asan.py — stack-trace parser for dedup/judge signatures; ASAN-specific regex
  • harness/artifacts.py — CrashArtifact, GraderVerdict, JudgeVerdict, ReportVerdict data contracts
  • harness/config.py, targets/drlibs/config.yaml — target config schema
  • targets/README.md — how a target directory is structured (Dockerfile + config.yaml + entry wrapper)

You don't need agent.py, docker_ops.py, recon.py, judge.py, or novelty.py in detail — they're generic plumbing (judge/novelty domain-specificity lives in the prompts and the asan parser, not the flow). One caution: part of harness/ doubles as shared infrastructure — dnr_harness/ (the detection-and-response pipeline) imports agent.py, sandbox.py, docker_ops.py, agent_image.py's build/ensure_base, auth.py, cli.py's resolve_target_dir/terminate_subprocesses, and prompts/system_prompt.py's load_engagement_context. A domain port should touch only the domain-specific files (the prompts, asan.py, artifacts.py, target Dockerfiles); treat any edit to the shared files as a change to both pipelines.

STEP 2 — Interview the user

Use AskUserQuestion to gather requirements. Start with broad context, then narrow to technical specifics based on what they say.

Round 1 — Context (always ask these first, together)

Two open-ended questions to understand who you're talking to and what they're after. Expect most answers to come via Other as free text — the options are there to prompt thinking, not to constrain.

Question A — Operating context

  • header: Context
  • question: What's your operating environment? Who will run this pipeline and why?
  • options: a few archetypes as inspiration — e.g. "Pentesting firm — client engagements, need reportable findings", "Internal appsec team — scan our own services in CI", "Smart-contract auditor — pre-deployment reviews", "Security researcher — hunting novel bug classes". These tell you what output format, grading rigor, and workflow integration matter.

Question B — Goal

  • header: Goal
  • question: Describe in your own words what you want this pipeline to find. What kind of target, what kind of bugs?
  • options: 2–3 concrete examples (e.g. "Web vulnerabilities like SQLi/XSS in HTTP services", "Reentrancy and access-control bugs in Solidity contracts", "Deserialization RCE in Java microservices").

The context answer calibrates your follow-ups: a pentesting firm probably cares about CVSS scoring and SARIF output; a researcher may want differential testing and novel detection signals; an internal team likely wants CI integration and low false-positive rates.

Round 2 — Technical follow-ups (adaptive — derive from round-1 answers)

Parse their round-1 answers against the axes of variation below. For each axis left ambiguous, ask a targeted follow-up. Batch up to 4 questions per AskUserQuestion call. Common follow-ups:

  • Detection signal — "How will the pipeline know it found something?" (crash, exception, canary file appears, DNS callback, differential mismatch, invariant violation)
  • PoC shape — "What does a proof-of-concept look like?" (single file, HTTP request sequence, transaction list, test-pipeline code)
  • Isolation — "Where does the target run?" (Docker, VM, testnet, remote sandbox, or no execution — static-only)
  • Grading criteria — "What makes a finding high-quality vs. low-quality in this domain?"
  • Exploitability analysis — "What sections should a report contain?" The C/C++ report has primitive · reachability · heap layout · escalation path · constraints. A web-vuln report might want injection vector · auth bypass · data exposure · chaining potential. Ask what they need, or whether they want the report stage at all.
  • Novelty/upstream check — "Should the pipeline check if a finding is already fixed upstream?" The C/C++ version shallow-clones the target's GitHub and checks git log <commit>..HEAD -- <crash_file>. Only applies if targets have a canonical upstream and a sensible "crashing file" to key on — many domains won't.
  • Scope — "Replace the C/C++ support entirely, or keep it alongside the new domain via a profile system?"

Keep going until you can fill in every row of the architecture map in STEP 3. If an answer is vague, ask a narrower follow-up rather than guessing.

Background — axes of variation (context for formulating follow-ups)

These are the dimensions along which customers might want to deviate from the C/C++ demo. Use this list to spot gaps in the user's description and generate follow-up questions — do not present it as a menu.

Vulnerability class: memory safety · web/API (SQLi, XSS, SSRF, XXE, path traversal, IDOR) · deserialization RCE · logic/race (TOCTOU, privilege escalation) · crypto (weak RNG, timing, nonce reuse) · DoS (ReDoS, hash flooding) · smart contracts (reentrancy, access control, front-running) · ML/AI (prompt injection, jailbreaks, data extraction) · protocol parsing

Target shape: CLI binary + file · HTTP service · library via test harness · network daemon · smart contract · browser extension · mobile app

Detection mechanism: crash/abort · uncaught exception · sanitizer hooks (Jazzer/Atheris) · outcome-based (canary file, DNS callback, shell spawn) · differential testing · invariant violation · taint tracking

Input modality: single file · HTTP request chain · multi-file archive · stdin stream · args + env + config combo · transaction sequence

Isolation boundary: Docker container · full VM · remote sandbox · local testnet · none (static analysis)

Dedup signature: (crash_type, top_frame) · (vuln_type, endpoint, param) · (function, state_transition) · (component, precondition)

Report structure: primitive/heap/escalation (memory safety) · vector/auth/exposure (web) · invariant/path/impact (contracts) · or drop the report stage entirely if find+grade is the deliverable

Output format: result.json + poc.bin · SARIF · Nuclei template · prose report

Patch verification signal: ASAN-clean exit · uncaught-exception-free · sanitizer hook silent (Jazzer/Atheris) · canary file untouched · invariant assertion holds · differential output matches reference. This is what _t1_passes() in patch_grade.py encodes — "the bug is gone" for the new domain.

Background — architecture map (what changes vs. what stays)

FileC/C++-specific?What it does
harness/prompts/find_prompt.pyYes — rewriteBug taxonomy, quality tiers, ASAN output format, exit-code examples
harness/prompts/grade_prompt.pyYes — rewrite5-criterion rubric assumes ASAN traces and Unix signal exit codes
harness/prompts/report_prompt.pyYes — rewriteExploitability sections: primitive, heap layout, escalation path — memory-safety-specific
harness/prompts/report_grader_prompt.pyYes — rewriteScores the above sections; rubric is tied to the section set
harness/prompts/judge_prompt.pyYes — rewriteTriage keys on ASAN excerpts and crash-class taxonomy
harness/prompts/patch_prompt.pyYes — rewriteAsks for git diff -- '.c' '.h', assumes ASAN trace, memcpy-style root-cause guidance
harness/prompts/system_prompt.pyYes — rewriteAuthorization block says "C/C++ target", "sanitizer output"
harness/asan.pyYes — rewriteRegex for #N 0xHEX in func /path:line frames; feeds dedup, judge, novelty
targets/README.md + Dockerfile templateYes — rewritegcc -fsanitize=address, entry.c wrapper pattern
harness/patch_grade.pyLight edit_t1_passes() checks AddressSanitizer: substring; rest of the verification ladder is generic
harness/report.pyLight edit_SECTIONS tuple and token lists need to match the new report structure; flow is generic
harness/novelty.pyLight editcrash_file_from_frame() is ASAN-specific; git-log logic is generic. Drop entirely if no upstream.
harness/config.pyLight editMay need new fields (profile, run_command instead of binary_path); attack_surface likely stays
harness/artifacts.pyLight editcrash_type/exit_code semantics may shift; ReportVerdict.section_scores keys must match new sections
harness/dedup.pyLight editSignature function needs the new parser; grouping logic is generic
harness/prompts/recon_prompt.pyLight editMostly language-agnostic; scrub C idioms
harness/cli.pyUnchangedOrchestration is domain-neutral
harness/agent.pyUnchangedAgent runner is generic
harness/docker_ops.pyUnchangedContainer plumbing is generic (may need changes if isolation ≠ Docker)
harness/find.py, grade.py, recon.py, judge.py, patch.pyUnchangedFlow is generic; only injected prompts change

STEP 3 — Present a plan and get confirmation

Before editing anything, summarize back to the user:

  1. What you understood — restate their goal in one sentence
  2. What will change — list each file you'll edit with a one-line rationale
  3. What stays — reassure them the orchestration core is untouched; call

out explicitly if the plan does reach into the shared files listed above (they also serve dnr_harness/) and why

  1. Open questions — anything you're still unsure about

Wait for explicit approval. If they adjust the plan, incorporate and re-confirm.

STEP 4 — Execute

Edit the files per the approved plan. Work through them in dependency order: prompts and parser first (they're standalone), then config/artifacts, then the target template, then README. Commit incrementally if the user wants checkpoints.

STEP 5 — Validate

  1. Add a canary target under targets/<domain>-canary/ with 2–3 planted bugs of the new class
  2. Run: bin/vp-sandboxed run <domain>-canary --model <model-id> --runs 3 --parallel --stream --max-turns 50 (use Claude Opus unless the user specifies a different model). Run ./scripts/setup_sandbox.sh once first if the sandbox isn't already set up.
  3. Confirm all planted bugs are found and graded PASS
  4. Confirm judge triage worked: cat results/<domain>-canary/<ts>/reports/judge_log.jsonl — expect one NEW per distinct bug, DUP_SKIP for repeats
  5. Confirm reports landed: ls results/<domain>-canary/<ts>/reports/bug_*/report.json and spot-check section scores
  6. Run vuln-pipeline dedup results/<domain>-canary/ and confirm signatures group correctly

Score

0–100
75/ 100

Grade

B

Popularity17/30

869 installs — growing adoption. Source repo has 6,937 GitHub stars.

Completeness27/30

Documented: full SKILL.md body, description, one-line install. Missing: category/license metadata.

Trust25/25

Published by anthropics — an official/recognized organization.

Freshness6/15

No update timestamp is tracked for this skill in our catalog.

Scored automatically from popularity, completeness, trust, and freshness — computed only from data in our catalog, never fabricated.

Proud of your score? Add this badge to your README.

Paste a snippet into your GitHub README. The badge updates automatically and links back to this page.

Customize skill score badge previewScore badge

Markdown

[![Customize skill](https://www.claudemarket.ai/skills/anthropics/defending-code-reference-harness/customize/badges/score.svg)](https://www.claudemarket.ai/skills/anthropics/defending-code-reference-harness/customize)

HTML

<a href="https://www.claudemarket.ai/skills/anthropics/defending-code-reference-harness/customize"><img src="https://www.claudemarket.ai/skills/anthropics/defending-code-reference-harness/customize/badges/score.svg" alt="Customize skill"/></a>

Customize FAQ

How do I install the Customize skill?

Run “npx skills add https://github.com/anthropics/defending-code-reference-harness --skill customize” in your terminal. The skill is added to your agent's skills directory and picked up automatically on the next run — no restart or extra configuration needed.

What does the Customize skill do?

Adapt this C/C++ ASAN vulnerability pipeline to a different vulnerability class, target shape, language, or detection mechanism. Use when the user wants to port, migrate, retarget, customize, or fork the pipeline for something other than C/C++ memory-safety bugs — web apps, smart contracts, deserialization, ML systems, or any other domain. The full SKILL.md on this page shows the exact instructions the skill gives your agent.

Is the Customize skill free?

Yes. Customize is a free, open-source skill published from anthropics/defending-code-reference-harness. As with any third-party skill, review the source repository before installing it into an agent with sensitive access.

Does Customize work with Claude Code and OpenClaw?

Yes. Skills use the portable SKILL.md format, so Customize works with Claude Code, OpenClaw, Codex, Hermes, and any other agent that reads SKILL.md skills.

Recommended skills

Browse all →
find-skills logo

find-skills

vercel-labs/skills

2.8M installsInstall
grill-me logo

grill-me

mattpocock/skills

757K installsInstall
frontend-design logo

frontend-design

anthropics/skills

743K installsInstall
grill-with-docs logo

grill-with-docs

mattpocock/skills

643K installsInstall
agent-browser logo

agent-browser

vercel-labs/agent-browser

630K installsInstall
improve-codebase-architecture logo

improve-codebase-architecture

mattpocock/skills

618K installsInstall

Related guides

Hand-picked reading to help you choose, install, and use agent skills.

GuideOpenclaw Bazaar Persistent Memory SkillsGuideBest Openclaw Skills 2026GuideHow To Evaluate Openclaw Skill Before Installing

Skills by category

FrontendBackend & APIsTesting & QASecurityDevOps & CI/CDMCP & ToolingAutomationData & Analysis+20 more

MCP servers by category

AI & MLDeveloper ToolsVector & MemoryFiles & DocsDatabasesFinance & PaymentsBrowser & ScrapingCommunication+8 more

Plugins by category

developmentproductivitycommunicationdesignsecuritydatabaseworkflowcompliance+34 more

The Agent Stack

Weekly Claude Code, Agent SDK, and MCP moves worth your time — free.

Claude Market

AI agent skills directory, marketplace, and workflow hub for OpenClaw, Hermes Agent, Claude Code, Codex, and MCP-powered operator stacks.

Independent project, not affiliated with Anthropic.

Resources

  • Browse Skills
  • Browse MCP Servers
  • Browse Plugins

More

  • Submit a Tool
  • Create a Skill
  • Advertise
  • Free Tools
  • API
  • Shipping
  • Contact
  • Terms
  • Privacy
© 2026 Claude Market · Not affiliated with Anthropic
Fazier badgeFeatured on Twelve ToolsFeatured on Wired BusinessRemote OpenClaw - Featured on AI Agents DirectoryListed on Turbo0Featured on Uneed