ossfuzz — Claude Code skill: what it does, how to install
Guides your AI agent through enrolling projects in Google OSS-Fuzz and running fuzzer targets locally with helper scripts.
npx skills add trailofbits/skills --skill ossfuzz -a claude-codeWhat ossfuzz does
This skill guides the agent in connecting open-source projects to Google's continuous fuzzing service. It provides instructions to create the necessary setup files: project.yaml, a custom Dockerfile with build dependencies, and build.sh to compile harnesses.
The workflow uses the infra/helper.py script via uv to manage Docker containers, build fuzzers with sanitizers such as AddressSanitizer, and run individual test targets. It also explains how to inspect build status logs and reproduce crashes from bug reports locally.
Generating local coverage reports requires installing gsutil on your system beforehand. This workflow does not fit closed-source repositories unless you plan to host your own instance of the fuzzing infrastructure.
What it helps with
- prepare
project.yaml,Dockerfile, andbuild.shfor OSS-Fuzz enrollment - build fuzzing harnesses locally with
AddressSanitizer - reproduce crash reports locally from bug findings
- generate local code coverage reports using helper scripts
Example prompts for the agent
- Help me write the Dockerfile and build.sh to enroll this project into OSS-Fuzz
- Build and run our fuzzer harnesses locally with AddressSanitizer using helper.py
- How do I reproduce this OSS-Fuzz crash report locally?
How to install ossfuzz
1Skills CLI (Vercel)
npx skills add trailofbits/skills --skill ossfuzz -a claude-code2Manually: put the files in place
~/.claude/skills/ossfuzz/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/ossfuzz/
1Skills CLI (Vercel)
npx skills add trailofbits/skills --skill ossfuzz -a codex2Manually: put the files in place
.agents/skills/ossfuzz/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add trailofbits/skills --skill ossfuzz -a cursor2Manually: put the files in place
.cursor/skills/ossfuzz/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install trailofbits/skills ossfuzz2Manually: put the files in place
.github/skills/ossfuzz/SKILL.md1Skills CLI (Vercel)
npx skills add trailofbits/skills --skill ossfuzz -a gemini-cli2Platform CLI
gemini skills install https://github.com/trailofbits/skills --path plugins/testing-handbook-skills/skills/ossfuzzManually: put the files in place
.devin/skills/ossfuzz/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add trailofbits/skills --skill ossfuzz -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set35
The whole set →Similar
Questions about ossfuzz
How do I install ossfuzz in Claude Code?
Run npx skills add trailofbits/skills --skill ossfuzz -a claude-code in your terminal.
What does the ossfuzz skill do?
It teaches the agent how to configure continuous fuzzing via Google's OSS-Fuzz, run harnesses inside Docker containers locally, and evaluate test coverage.
What dependencies are required for coverage analysis?
You need gsutil installed on your machine to pull coverage data before running infra/helper.py with --sanitizer=coverage.