Testing Handbook Skills: Turning the Testing Handbook into an Executable AppSec Testing Workflow

Introduction

When performing application security testing, fuzzing, static analysis, Sanitizers, and coverage tools often present a situation where “documentation exists, but the environment is difficult to set up, and CI alignment is even harder.” The Testing Handbook maintained by Trail of Bits is aimed at developers and security engineers, explaining how to configure, optimize, and automate these static and dynamic analysis methods; however, reliably handing over the steps in the manual to an Agent to execute chapter by chapter still requires structured Skills and validation.

Below is an introduction to the testing-handbook-skills plugin by Trail of Bits in the trailofbits/skills marketplace: it organizes the manual’s content into Skills usable by Claude Code, accompanied by topic-specific Skills and validation scripts generated from the handbook.

What is this

testing-handbook-skills is a plugin in the “Code Auditing” category of the Trail of Bits Skills Marketplace. It is officially described as Skills derived from the Application Security Testing Handbook, covering topics such as fuzzers, static analysis, Sanitizers, and coverage (consistent with the handbook’s table of contents).

The plugin’s position in the repository is not just a single SKILL.md, but a meta-Skill generator (testing-handbook-generator): it analyzes the manual’s structure, identifies tool/technique/domain candidates, generates Skills based on templates, and validates the generation results with scripts. The author is Paweł Płatek; plugin metadata can be found in the repository’s .claude-plugin/plugin.json.

Compared to “just throwing the manual link to the model,” this maps chapters to templates like tool-skill, fuzzer-skill, technique-skill, and domain-skill. The generated artifacts are placed in skills/[skill-name]/SKILL.md, and Related Skills cross-references are established to facilitate Agents linking dependencies (e.g., fuzzer → AddressSanitizer → coverage).

Core Features

The following capabilities are derived from the plugin’s README and the publicly available manual descriptions, and can be cross-referenced by repository path.

Manual Source and Positioning

The Testing Handbook is written by Trail of Bits with the goal of making it as straightforward as possible to set up security tools at all stages of the software lifecycle and lowering the barrier to entry for technologies like fuzzing and taint analysis. The manual currently covers:

  • Static Analysis: Semgrep, CodeQL
  • Dynamic Analysis: Fuzzing, Burp Suite Professional
  • Languages & Topics: C/C++ security checklists, Rust, etc.

The plugin’s generation templates explicitly support extracting content from chapters such as Semgrep, CodeQL (tools), libFuzzer / AFL++ / cargo-fuzz (fuzzers), Harness writing and coverage (techniques), cryptographic testing and Wycheproof (domains).

Generated Topic-Specific Skills (Examples)

The 14 generated Skills listed in the README and their types are as follows (see the Mermaid diagram in the repository for full cross-references):

Type Skill Name
Fuzzers (6) libfuzzer、aflpp、libafl、cargo-fuzz、atheris、ruzzy
Techniques (6) harness-writing、address-sanitizer、coverage-analysis、fuzzing-dictionary、fuzzing-obstacles、ossfuzz
Domain (2) wycheproof、constant-time-testing

Each generated Skill follows the corresponding template, includes body text extracted from the manual, and provides WebFetch summary-style links for non-video resources; they must pass validation via validate-skills.py before delivery.

Generation and Validation Workflow

  1. Discovery: Scan the manual’s directory structure to identify tools, techniques, and domains that can be solidified into Skills.
  2. Planning: Display the list of proposed Skills to the user and write them only after confirmation.
  3. Generation: Output to skills/[skill-name]/SKILL.md parallel to testing-handbook-generator/.
  4. Validation: scripts/validate-skills.py checks YAML, section structure, line counts, shortcodes, and cross-references.

Manual path resolution order (no hardcoded paths needed): Common directories (e.g., ./testing-handbook, ../testing-handbook, ~/testing-handbook) → Ask user → Finally, clone from https://github.com/trailofbits/testing-handbook.

Installation and Activation

The plugin is distributed via the trailofbits/skills marketplace; entries for Codex and Claude Code are listed separately in the parent repository’s installation instructions. The Cursor side does not have a separately described installation difference for this plugin in verified materials, so it is not expanded here.

Claude Code Marketplace

Add the marketplace and install the plugin in Claude Code:

/plugin marketplace add trailofbits/skills

Browse and install:

/plugin menu

Select testing-handbook-skills in the marketplace (the “Skills from the Testing Handbook” entry under the Code Auditing category).

The plugin README also provides a Skill installation syntax (coexisting with the marketplace plugin path; choose based on your current Claude Code version documentation):

claude skills install testing-handbook-skills

Or manually mount the plugin directory in .claude/settings.json:

{
  "plugins": [
    "./plugins/testing-handbook-skills"
  ]
}

For local development, execute in the parent directory of the skills repository:

/plugins marketplace add ./skills

Codex

Codex is compatible with Claude plugin marketplaces; no extra sidecar metadata is needed:

codex plugin marketplace add trailofbits/skills
codex plugin list
codex plugin add testing-handbook-skills@trailofbits

Typical Usage

Batch Generate Skills from the Entire Manual

In an Agent session with the plugin installed, you can trigger the generation flow using natural language (README example):

Generate skills from the testing handbook

Following the steps above, the Agent will locate the manual, scan the structure, and present a generation plan; once you confirm, it generates the topic-specific Skills parallel to the generator under plugins/testing-handbook-skills/skills/.

Generate Skills for a Specific Chapter Only

For example, targeting the C/C++ libFuzzer chapter:

Create a skill for the libFuzzer section of the testing handbook

After generation, you can run validation using uv in the plugin root directory (required by README):

# Validate all generated Skills
uv run scripts/validate-skills.py

# Validate only one
uv run scripts/validate-skills.py --skill libfuzzer

# JSON output for CI
uv run scripts/validate-skills.py --json

Practical Context Aligned with Manual Toolchains

The generated fuzzer / technique Skills are consistent with the manual chapters, for example:

  • libFuzzer / AFL++ / cargo-fuzz: Corresponding to the language and engine documentation under the Fuzzing section of the manual.
  • address-sanitizer, coverage-analysis: Corresponding to the Sanitizer and coverage technology chapters in dynamic analysis.
  • ossfuzz: Corresponding to the OSS-Fuzz integration instructions.

For static analysis, the manual provides installation, advanced usage, and CI chapters for CodeQL and Semgrep; the plugin template tool-skill.md targets such tools, but the README’s “Generated Skills Summary” currently focuses mainly on fuzzing and related techniques. If independent Skills for Semgrep / CodeQL are needed, you can use the “Generate by chapter” flow and confirm the artifacts with validate-skills.py.

The manual also publicly shares the usage of Trail of Bits’ Semgrep and CodeQL query packs, which can be used in conjunction with static analysis Skills or manual processes, for example:

semgrep --config "p/trailofbits"
codeql pack download trailofbits/cpp-queries trailofbits/go-queries
codeql database analyze codeql.db --format=sarif-latest --output=results.sarif -- trailofbits/cpp-queries

The above commands are from the appsec.guide manual text and are not mandatory steps for the plugin, but are often used alongside manual-guided testing workflows.

Suitable Scenarios and Notes

Who it is for

  • Security engineers who need to systematically implement fuzzing, Sanitizers, coverage, and specific cryptographic testing topics in their audit or development workflows.
  • Teams already using or planning to use the Testing Handbook who want to turn chapters into Agent-executable, repeatable, and validatable Skills.
  • Claude Code / Codex users mounting multiple security Skills uniformly via the Trail of Bits plugin marketplace.

Limitations and Notes

  1. Generation depends on a copy of the manual: If the local manual is not found, it will ask for a path or attempt to clone from trailofbits/testing-handbook; you must prepare the path yourself if offline or without access.
  2. Cross-references and planned Skills: The README notes that some Skills still reference entries not yet generated (such as honggfuzz, fuzzing-corpus, sarif-parsing); use validate-skills.py output as the standard.
  3. Validation is the delivery gate: Generated Skills should pass the validation script before merging or releasing to avoid YAML, section, or reference non-compliance with repository conventions.
  4. Tool environments must be self-provided: Skills guide workflows but do not replace the installation of libFuzzer, CodeQL CLI, Semgrep, etc.; the manual emphasizes that local and CI/CD configuration is often harder than “just getting it to run.” Skills are a structured extension of documentation, not a one-click sandbox.
  5. Marketplace Metadata: ChatGPT Workspace imports must follow the parent repository’s marketplace.json and the agents/openai.yaml field requirements for some Skills; if import fails, you need to sync the marketplace according to the parent repository instructions and retry.

Conclusion

testing-handbook-skills converges the fuzzing, Sanitizers, coverage, and related topics from the Trail of Bits Testing Handbook into a generatable and validatable Agent Skill system; it is suitable for security testing practices that advance authoritative manuals from “reading materials” to “executable checklists.”

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye