[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CHES66TFEPDB7RNQRM6GBM":3,"skill-same:01M7CHES66TFEPDB7RNQRM6GBM":84},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7CHES66TFEPDB7RNQRM6GBM","testing-handbook-generator",null,"Generates Claude Code skills from the Trail of Bits Testing Handbook (appsec.guide), analyzing handbook pages and emitting SKILL.md files with the structure each skill type requires. Use when creating or refreshing a skill from handbook content, or when the user names the testing handbook or appsec.guide. Not for answering security testing questions — the generated skills cover those.","bongkage\u002Ftrailofbits-skills","bongkage","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F101378796?v=4","01M7CH419QTJ16DNJ33P0WCWBE","01M7CH41A9NWK8D2JBRK9F0M2C",1,"CC-BY-SA-4.0","https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Ftesting-handbook-skills\u002Fskills\u002Ftesting-handbook-generator\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: testing-handbook-generator\ndescription: \"Generates Claude Code skills from the Trail of Bits Testing Handbook (appsec.guide), analyzing handbook pages and emitting SKILL.md files with the structure each skill type requires. Use when creating or refreshing a skill from handbook content, or when the user names the testing handbook or appsec.guide. Not for answering security testing questions — the generated skills cover those.\"\n---\n\n# Testing Handbook Skill Generator\n\nGenerate and maintain Claude Code skills from the Trail of Bits Testing Handbook.\n\n## When to Use\n\n**Invoke this skill when:**\n- Creating new security testing skills from handbook content\n- User mentions \"testing handbook\", \"appsec.guide\", or asks about generating skills\n- Bulk skill generation or refresh is needed\n\n**Do NOT use for:**\n- General security testing questions (use the generated skills)\n- Non-handbook skill creation\n\n## Handbook Location\n\nThe skill needs the Testing Handbook repository. See [discovery.md](discovery.md) for full details.\n\n**Quick reference:** Check `.\u002Ftesting-handbook`, `..\u002Ftesting-handbook`, `~\u002Ftesting-handbook` → ask user → clone as last resort.\n\n**Repository:** `https:\u002F\u002Fgithub.com\u002Ftrailofbits\u002Ftesting-handbook`\n\n## Workflow Overview\n\n```\nPhase 0: Setup              Phase 1: Discovery\n┌─────────────────┐        ┌─────────────────┐\n│ Locate handbook │   →    │ Analyze handbook│\n│ - Find or clone │        │ - Scan sections │\n│ - Confirm path  │        │ - Classify types│\n└─────────────────┘        └─────────────────┘\n         ↓                          ↓\nPhase 3: Generation        Phase 2: Planning\n┌─────────────────┐        ┌─────────────────┐\n│ TWO-PASS GEN    │   ←    │ Generate plan   │\n│ Pass 1: Content │        │ - New skills    │\n│ Pass 2: X-refs  │        │ - Updates       │\n│ - Write to gen\u002F │        │ - Present user  │\n└─────────────────┘        └─────────────────┘\n         ↓\nPhase 4: Testing           Phase 5: Finalize\n┌─────────────────┐        ┌─────────────────┐\n│ Validate skills │   →    │ Post-generation │\n│ - Run validator │        │ - Update README │\n│ - Test activation│       │ - Update X-refs │\n│ - Fix issues    │        │ - Self-improve  │\n└─────────────────┘        └─────────────────┘\n```\n\n## Scope Restrictions\n\n**ONLY modify these locations:**\n- `plugins\u002Ftesting-handbook-skills\u002Fskills\u002F[skill-name]\u002F*` - Generated skills (as siblings to testing-handbook-generator)\n- `plugins\u002Ftesting-handbook-skills\u002Fskills\u002Ftesting-handbook-generator\u002F*` - Self-improvement\n- Repository root `README.md` - Add generated skills to table\n\n**NEVER modify or analyze:**\n- Other plugins (`plugins\u002Fproperty-based-testing\u002F`, `plugins\u002Fstatic-analysis\u002F`, etc.)\n- Other skills outside this plugin\n\nDo not scan or pull into context any skills outside of `testing-handbook-skills\u002F`. Generate skills based solely on handbook content and resources referenced from it.\n\n## Quick Reference\n\n### Section → Skill Type Mapping\n\n| Handbook Section | Skill Type | Template |\n|------------------|------------|----------|\n| `\u002Fstatic-analysis\u002F[tool]\u002F` | Tool Skill | tool-skill.md |\n| `\u002Ffuzzing\u002F[lang]\u002F[fuzzer]\u002F` | Fuzzer Skill | fuzzer-skill.md |\n| `\u002Ffuzzing\u002Ftechniques\u002F` | Technique Skill | technique-skill.md |\n| `\u002Fcrypto\u002F[tool]\u002F` | Domain Skill | domain-skill.md |\n| `\u002Fweb\u002F[tool]\u002F` | Tool Skill | tool-skill.md |\n\n### Skill Candidate Signals\n\n| Signal | Indicates |\n|--------|-----------|\n| `_index.md` with `bookCollapseSection: true` | Major tool\u002Ftopic |\n| Numbered files (00-, 10-, 20-) | Structured content |\n| `techniques\u002F` subsection | Methodology content |\n| `99-resources.md` or `91-resources.md` | Has external links |\n\n### Exclusion Signals\n\n| Signal | Action |\n|--------|--------|\n| `draft: true` in frontmatter | Skip section |\n| Empty directory | Skip section |\n| Template\u002Fplaceholder file | Skip section |\n| GUI-only tool (e.g., `web\u002Fburp\u002F`) | Skip section (Claude cannot operate GUI tools) |\n\n## Decision Tree\n\n**Starting skill generation?**\n\n```\n├─ Need to analyze handbook and build plan?\n│  └─ Read: discovery.md\n│     (Handbook analysis methodology, plan format)\n│\n├─ Spawning skill generation agents?\n│  └─ Read: agent-prompt.md\n│     (Full prompt template, variable reference, validation checklist)\n│\n├─ Generating a specific skill type?\n│  └─ Read appropriate template:\n│     ├─ Tool (Semgrep, CodeQL) → templates\u002Ftool-skill.md\n│     ├─ Fuzzer (libFuzzer, AFL++) → templates\u002Ffuzzer-skill.md\n│     ├─ Technique (harness, coverage) → templates\u002Ftechnique-skill.md\n│     └─ Domain (crypto, web) → templates\u002Fdomain-skill.md\n│\n├─ Validating generated skills?\n│  └─ Run: scripts\u002Fvalidate-skills.py\n│     Then read: testing.md for activation testing\n│\n├─ Finalizing after generation?\n│  └─ See: Post-Generation Tasks below\n│     (Update main README, update Skills Cross-Reference, self-improvement)\n│\n└─ Quick generation from specific section?\n   └─ Use Quick Reference above, apply template directly\n```\n\n## Two-Pass Generation (Phase 3)\n\nGeneration uses a **two-pass approach** to solve forward reference problems (skills referencing other skills that don't exist yet).\n\n### Pass 1: Content Generation (Parallel)\n\nGenerate all skills in parallel **without** the Related Skills section:\n\n```\nPass 1 - Generating 5 skills in parallel:\n├─ Agent 1: libfuzzer (fuzzer) → skills\u002Flibfuzzer\u002FSKILL.md\n├─ Agent 2: aflpp (fuzzer) → skills\u002Faflpp\u002FSKILL.md\n├─ Agent 3: semgrep (tool) → skills\u002Fsemgrep\u002FSKILL.md\n├─ Agent 4: harness-writing (technique) → skills\u002Fharness-writing\u002FSKILL.md\n└─ Agent 5: wycheproof (domain) → skills\u002Fwycheproof\u002FSKILL.md\n\nEach agent uses: pass=1 (content only, Related Skills left empty)\n```\n\n**Pass 1 agents:**\n- Generate all sections EXCEPT Related Skills\n- Leave a placeholder: `## Related Skills\\n\\n\u003C!-- PASS2: populate after all skills exist -->`\n- Output report includes `references: DEFERRED`\n\n### Pass 2: Cross-Reference Population (Sequential)\n\nAfter all Pass 1 agents complete, run Pass 2 to populate Related Skills:\n\n```\nPass 2 - Populating cross-references:\n├─ Read all generated skill names from skills\u002F*\u002FSKILL.md\n├─ For each skill, determine related skills based on:\n│   ├─ related_sections from discovery (handbook structure)\n│   ├─ Skill type relationships (fuzzers → techniques)\n│   └─ Explicit mentions in content\n└─ Update each SKILL.md's Related Skills section\n```\n\n**Pass 2 process:**\n1. Collect all generated skill names: `ls -d skills\u002F*\u002FSKILL.md`\n2. For each skill, identify related skills using the mapping from discovery\n3. Edit each SKILL.md to replace the placeholder with actual links\n4. Validate cross-references exist (no broken links)\n\n### Agent Prompt Template\n\nSee **[agent-prompt.md](agent-prompt.md)** for the full prompt template with:\n- Variable substitution reference (including `pass` variable)\n- Pre-write validation checklist\n- Hugo shortcode conversion rules\n- Line count splitting rules\n- Error handling guidance\n- Output report format\n\n### Collecting Results\n\nAfter Pass 1: Aggregate output reports, verify all skills generated.\nAfter Pass 2: Run validator to check cross-references.\n\n### Handling Agent Failures\n\nIf an agent fails or produces invalid output:\n\n| Failure Type | Detection | Recovery Action |\n|--------------|-----------|-----------------|\n| Agent crashed | No output report | Re-run single agent with same inputs |\n| Validation failed | Output report shows errors | Check gaps\u002Fwarnings, manually patch or re-run |\n| Wrong skill type | Content doesn't match template | Re-run with corrected `type` parameter |\n| Missing content | Output report lists gaps | Accept if minor, or provide additional `related_sections` |\n| Pass 2 broken ref | Validator shows missing skill | Check if skill was skipped, update reference |\n\n**Important:** Do NOT re-run the entire parallel batch for a single agent failure. Fix individual failures independently.\n\n### Single-Skill Regeneration\n\nTo regenerate a single skill without re-running the entire batch:\n\n```\n# Regenerate single skill (Pass 1 - content only)\n\"Use testing-handbook-generator to regenerate the {skill-name} skill from section {section_path}\"\n\n# Example:\n\"Use testing-handbook-generator to regenerate the libfuzzer skill from section fuzzing\u002Fc-cpp\u002F10-libfuzzer\"\n```\n\n**Regeneration workflow:**\n1. Re-read the handbook section for fresh content\n2. Apply the appropriate template\n3. Write to `skills\u002F{skill-name}\u002FSKILL.md` (overwrites existing)\n4. Re-run Pass 2 for that skill only to update cross-references\n5. Run validator on the single skill: `uv run scripts\u002Fvalidate-skills.py --skill {skill-name}`\n\n## Output Location\n\nGenerated skills are written to:\n```\nskills\u002F[skill-name]\u002FSKILL.md\n```\n\nEach skill gets its own directory for potential supporting files (as siblings to testing-handbook-generator).\n\n## Quality Checklist\n\nBefore delivering generated skills:\n\n- [ ] All handbook sections analyzed (Phase 1)\n- [ ] Plan presented to user before generation (Phase 2)\n- [ ] Parallel agents launched - one per skill (Phase 3)\n- [ ] Templates applied correctly per skill type\n- [ ] Validator passes: `uv run scripts\u002Fvalidate-skills.py`\n- [ ] Activation testing passed - see [testing.md](testing.md)\n- [ ] Main `README.md` updated with generated skills table\n- [ ] `README.md` Skills Cross-Reference graph updated\n- [ ] Self-improvement notes captured\n- [ ] User notified with summary\n\n## Post-Generation Tasks\n\n### 1. Update Main README\n\nAfter generating skills, update the repository's main `README.md` to list them.\n\n**Format:** Add generated skills to the same \"Available Plugins\" table, directly after `testing-handbook-skills`. Use plain text `testing-handbook-generator` as the author (no link).\n\n**Example:**\n\n```markdown\n| Plugin | Description | Author |\n|--------|-------------|--------|\n| ... other plugins ... |\n| [testing-handbook-skills](plugins\u002Ftesting-handbook-skills\u002F) | Meta-skill that generates skills from the Testing Handbook | Paweł Płatek |\n| [libfuzzer](plugins\u002Ftesting-handbook-skills\u002Fskills\u002Flibfuzzer\u002F) | Coverage-guided fuzzing with libFuzzer for C\u002FC++ | testing-handbook-generator |\n| [aflpp](plugins\u002Ftesting-handbook-skills\u002Fskills\u002Faflpp\u002F) | Multi-core fuzzing with AFL++ | testing-handbook-generator |\n| [semgrep](plugins\u002Ftesting-handbook-skills\u002Fskills\u002Fsemgrep\u002F) | Fast static analysis for finding bugs | testing-handbook-generator |\n```\n\n### 2. Update Skills Cross-Reference\n\nAfter generating skills, update the `README.md`'s **Skills Cross-Reference** section with the mermaid graph showing skill relationships.\n\n**Process:**\n1. Read each generated skill's `SKILL.md` and extract its `## Related Skills` section\n2. Build the mermaid graph with nodes grouped by skill type (Fuzzers, Techniques, Tools, Domain)\n3. Add edges based on the Related Skills relationships:\n   - Solid arrows (`-->`) for primary technique dependencies\n   - Dashed arrows (`-.->`) for alternative tool suggestions\n4. Replace the existing mermaid code block in README.md\n\n**Edge classification:**\n| Relationship | Arrow Style | Example |\n|--------------|-------------|---------|\n| Fuzzer → Technique | `-->` | `libfuzzer --> harness-writing` |\n| Tool → Tool (alternative) | `-.->` | `semgrep -.-> codeql` |\n| Fuzzer → Fuzzer (alternative) | `-.->` | `libfuzzer -.-> aflpp` |\n| Technique → Technique | `-->` | `harness-writing --> coverage-analysis` |\n\n**Validation:** After updating, run `validate-skills.py` to verify all referenced skills exist.\n\n### 3. Self-Improvement\n\nAfter each generation run, reflect on what could improve future runs.\n\n**Capture improvements to:**\n- Templates (missing sections, better structure)\n- Discovery logic (missed patterns, false positives)\n- Content extraction (shortcodes not handled, formatting issues)\n\n**Update process:**\n1. Note issues encountered during generation\n2. Identify patterns that caused problems\n3. Update relevant files:\n   - `SKILL.md` - Workflow, decision tree, quick reference updates\n   - `templates\u002F*.md` - Template improvements\n   - `discovery.md` - Detection logic updates\n   - `testing.md` - New validation checks\n4. Document the improvement in commit message\n\n**Example self-improvement:**\n```\nIssue: libFuzzer skill missing sanitizer flags table\nFix: Updated templates\u002Ffuzzer-skill.md to include ## Compiler Flags section\n```\n\n## Example Usage\n\n### Full Discovery and Generation\n\n```\nUser: \"Generate skills from the testing handbook\"\n\n1. Locate handbook (check common locations, ask user, or clone)\n2. Read discovery.md for methodology\n3. Scan handbook at {handbook_path}\u002Fcontent\u002Fdocs\u002F\n4. Build candidate list with types\n5. Present plan to user\n6. On approval, generate each skill using appropriate template\n7. Validate generated skills\n8. Update main README.md with generated skills table\n9. Update README.md Skills Cross-Reference graph from Related Skills sections\n10. Self-improve: note any template\u002Fdiscovery issues for future runs\n11. Report results\n```\n\n### Single Section Generation\n\n```\nUser: \"Create a skill for the libFuzzer section\"\n\n1. Read \u002Ftesting-handbook\u002Fcontent\u002Fdocs\u002Ffuzzing\u002Fc-cpp\u002F10-libfuzzer\u002F\n2. Identify type: Fuzzer Skill\n3. Read templates\u002Ffuzzer-skill.md\n4. Extract content, apply template\n5. Write to skills\u002Flibfuzzer\u002FSKILL.md\n6. Validate and report\n```\n\n## Tips\n\n**Do:**\n- Always present plan before generating\n- Use appropriate template for skill type\n- Preserve code blocks exactly\n- Validate after generation\n\n**Don't:**\n- Generate without user approval\n- Skip fetching non-video external resources (use WebFetch)\n- Fetch video URLs (YouTube, Vimeo - titles only)\n- Include handbook images directly\n- Skip validation step\n- Exceed 500 lines per SKILL.md\n\n---\n\n**For first-time use:** Start with [discovery.md](discovery.md) to understand the handbook analysis process.\n\n**For template reference:** See [templates\u002F](templates\u002F) directory for skill type templates.\n\n**For validation:** See [testing.md](testing.md) for quality assurance methodology.\n","# Testing Handbook Skill Generator\n\nGenerate and maintain Claude Code skills from the Trail of Bits Testing Handbook.\n\n## When to Use\n\n**Invoke this skill when:**\n- Creating new security testing skills from handbook content\n- User mentions \"testing handbook\", \"appsec.guide\", or asks about generating skills\n- Bulk skill generation or refresh is needed\n\n**Do NOT use for:**\n- General security testing questions (use the generated skills)\n- Non-handbook skill creation\n\n## Handbook Location\n\nThe skill needs the Testing Handbook repository. See [discovery.md](discovery.md) for full details.\n\n**Quick reference:** Check `.\u002Ftesting-handbook`, `..\u002Ftesting-handbook`, `~\u002Ftesting-handbook` → ask user → clone as last resort.\n\n**Repository:** `https:\u002F\u002Fgithub.com\u002Ftrailofbits\u002Ftesting-handbook`\n\n## Workflow Overview\n\n```\nPhase 0: Setup              Phase 1: Discovery\n┌─────────────────┐        ┌─────────────────┐\n│ Locate handbook │   →    │ Analyze handbook│\n│ - Find or clone │        │ - Scan sections │\n│ - Confirm path  │        │ - Classify types│\n└─────────────────┘        └─────────────────┘\n         ↓                          ↓\nPhase 3: Generation        Phase 2: Planning\n┌─────────────────┐        ┌─────────────────┐\n│ TWO-PASS GEN    │   ←    │ Generate plan   │\n│ Pass 1: Content │        │ - New skills    │\n│ Pass 2: X-refs  │        │ - Updates       │\n│ - Write to gen\u002F │        │ - Present user  │\n└─────────────────┘        └─────────────────┘\n         ↓\nPhase 4: Testing           Phase 5: Finalize\n┌─────────────────┐        ┌─────────────────┐\n│ Validate skills │   →    │ Post-generation │\n│ - Run validator │        │ - Update README │\n│ - Test activation│       │ - Update X-refs │\n│ - Fix issues    │        │ - Self-improve  │\n└─────────────────┘        └─────────────────┘\n```\n\n## Scope Restrictions\n\n**ONLY modify these locations:**\n- `plugins\u002Ftesting-handbook-skills\u002Fskills\u002F[skill-name]\u002F*` - Generated skills (as siblings to testing-handbook-generator)\n- `plugins\u002Ftesting-handbook-skills\u002Fskills\u002Ftesting-handbook-generator\u002F*` - Self-improvement\n- Repository root `README.md` - Add generated skills to table\n\n**NEVER modify or analyze:**\n- Other plugins (`plugins\u002Fproperty-based-testing\u002F`, `plugins\u002Fstatic-analysis\u002F`, etc.)\n- Other skills outside this plugin\n\nDo not scan or pull into context any skills outside of `testing-handbook-skills\u002F`. Generate skills based solely on handbook content and resources referenced from it.\n\n## Quick Reference\n\n### Section → Skill Type Mapping\n\n| Handbook Section | Skill Type | Template |\n|------------------|------------|----------|\n| `\u002Fstatic-analysis\u002F[tool]\u002F` | Tool Skill | tool-skill.md |\n| `\u002Ffuzzing\u002F[lang]\u002F[fuzzer]\u002F` | Fuzzer Skill | fuzzer-skill.md |\n| `\u002Ffuzzing\u002Ftechniques\u002F` | Technique Skill | technique-skill.md |\n| `\u002Fcrypto\u002F[tool]\u002F` | Domain Skill | domain-skill.md |\n| `\u002Fweb\u002F[tool]\u002F` | Tool Skill | tool-skill.md |\n\n### Skill Candidate Signals\n\n| Signal | Indicates |\n|--------|-----------|\n| `_index.md` with `bookCollapseSection: true` | Major tool\u002Ftopic |\n| Numbered files (00-, 10-, 20-) | Structured content |\n| `techniques\u002F` subsection | Methodology content |\n| `99-resources.md` or `91-resources.md` | Has external links |\n\n### Exclusion Signals\n\n| Signal | Action |\n|--------|--------|\n| `draft: true` in frontmatter | Skip section |\n| Empty directory | Skip section |\n| Template\u002Fplaceholder file | Skip section |\n| GUI-only tool (e.g., `web\u002Fburp\u002F`) | Skip section (Claude cannot operate GUI tools) |\n\n## Decision Tree\n\n**Starting skill generation?**\n\n```\n├─ Need to analyze handbook and build plan?\n│  └─ Read: discovery.md\n│     (Handbook analysis methodology, plan format)\n│\n├─ Spawning skill generation agents?\n│  └─ Read: agent-prompt.md\n│     (Full prompt template, variable reference, validation checklist)\n│\n├─ Generating a specific skill type?\n│  └─ Read appropriate template:\n│     ├─ Tool (Semgrep, CodeQL) → templates\u002Ftool-skill.md\n│     ├─ Fuzzer (libFuzzer, AFL++) → templates\u002Ffuzzer-skill.md\n│     ├─ Technique (harness, coverage) → templates\u002Ftechnique-skill.md\n│     └─ Domain (crypto, web) → templates\u002Fdomain-skill.md\n│\n├─ Validating generated skills?\n│  └─ Run: scripts\u002Fvalidate-skills.py\n│     Then read: testing.md for activation testing\n│\n├─ Finalizing after generation?\n│  └─ See: Post-Generation Tasks below\n│     (Update main README, update Skills Cross-Reference, self-improvement)\n│\n└─ Quick generation from specific section?\n   └─ Use Quick Reference above, apply template directly\n```\n\n## Two-Pass Generation (Phase 3)\n\nGeneration uses a **two-pass approach** to solve forward reference problems (skills referencing other skills that don't exist yet).\n\n### Pass 1: Content Generation (Parallel)\n\nGenerate all skills in parallel **without** the Related Skills section:\n\n```\nPass 1 - Generating 5 skills in parallel:\n├─ Agent 1: libfuzzer (fuzzer) → skills\u002Flibfuzzer\u002FSKILL.md\n├─ Agent 2: aflpp (fuzzer) → skills\u002Faflpp\u002FSKILL.md\n├─ Agent 3: semgrep (tool) → skills\u002Fsemgrep\u002FSKILL.md\n├─ Agent 4: harness-writing (technique) → skills\u002Fharness-writing\u002FSKILL.md\n└─ Agent 5: wycheproof (domain) → skills\u002Fwycheproof\u002FSKILL.md\n\nEach agent uses: pass=1 (content only, Related Skills left empty)\n```\n\n**Pass 1 agents:**\n- Generate all sections EXCEPT Related Skills\n- Leave a placeholder: `## Related Skills\\n\\n\u003C!-- PASS2: populate after all skills exist -->`\n- Output report includes `references: DEFERRED`\n\n### Pass 2: Cross-Reference Population (Sequential)\n\nAfter all Pass 1 agents complete, run Pass 2 to populate Related Skills:\n\n```\nPass 2 - Populating cross-references:\n├─ Read all generated skill names from skills\u002F*\u002FSKILL.md\n├─ For each skill, determine related skills based on:\n│   ├─ related_sections from discovery (handbook structure)\n│   ├─ Skill type relationships (fuzzers → techniques)\n│   └─ Explicit mentions in content\n└─ Update each SKILL.md's Related Skills section\n```\n\n**Pass 2 process:**\n1. Collect all generated skill names: `ls -d skills\u002F*\u002FSKILL.md`\n2. For each skill, identify related skills using the mapping from discovery\n3. Edit each SKILL.md to replace the placeholder with actual links\n4. Validate cross-references exist (no broken links)\n\n### Agent Prompt Template\n\nSee **[agent-prompt.md](agent-prompt.md)** for the full prompt template with:\n- Variable substitution reference (including `pass` variable)\n- Pre-write validation checklist\n- Hugo shortcode conversion rules\n- Line count splitting rules\n- Error handling guidance\n- Output report format\n\n### Collecting Results\n\nAfter Pass 1: Aggregate output reports, verify all skills generated.\nAfter Pass 2: Run validator to check cross-references.\n\n### Handling Agent Failures\n\nIf an agent fails or produces invalid output:\n\n| Failure Type | Detection | Recovery Action |\n|--------------|-----------|-----------------|\n| Agent crashed | No output report | Re-run single agent with same inputs |\n| Validation failed | Output report shows errors | Check gaps\u002Fwarnings, manually patch or re-run |\n| Wrong skill type | Content doesn't match template | Re-run with corrected `type` parameter |\n| Missing content | Output report lists gaps | Accept if minor, or provide additional `related_sections` |\n| Pass 2 broken ref | Validator shows missing skill | Check if skill was skipped, update reference |\n\n**Important:** Do NOT re-run the entire parallel batch for a single agent failure. Fix individual failures independently.\n\n### Single-Skill Regeneration\n\nTo regenerate a single skill without re-running the entire batch:\n\n```\n# Regenerate single skill (Pass 1 - content only)\n\"Use testing-handbook-generator to regenerate the {skill-name} skill from section {section_path}\"\n\n# Example:\n\"Use testing-handbook-generator to regenerate the libfuzzer skill from section fuzzing\u002Fc-cpp\u002F10-libfuzzer\"\n```\n\n**Regeneration workflow:**\n1. Re-read the handbook section for fresh content\n2. Apply the appropriate template\n3. Write to `skills\u002F{skill-name}\u002FSKILL.md` (overwrites existing)\n4. Re-run Pass 2 for that skill only to update cross-references\n5. Run validator on the single skill: `uv run scripts\u002Fvalidate-skills.py --skill {skill-name}`\n\n## Output Location\n\nGenerated skills are written to:\n```\nskills\u002F[skill-name]\u002FSKILL.md\n```\n\nEach skill gets its own directory for potential supporting files (as siblings to testing-handbook-generator).\n\n## Quality Checklist\n\nBefore delivering generated skills:\n\n- [ ] All handbook sections analyzed (Phase 1)\n- [ ] Plan presented to user before generation (Phase 2)\n- [ ] Parallel agents launched - one per skill (Phase 3)\n- [ ] Templates applied correctly per skill type\n- [ ] Validator passes: `uv run scripts\u002Fvalidate-skills.py`\n- [ ] Activation testing passed - see [testing.md](testing.md)\n- [ ] Main `README.md` updated with generated skills table\n- [ ] `README.md` Skills Cross-Reference graph updated\n- [ ] Self-improvement notes captured\n- [ ] User notified with summary\n\n## Post-Generation Tasks\n\n### 1. Update Main README\n\nAfter generating skills, update the repository's main `README.md` to list them.\n\n**Format:** Add generated skills to the same \"Available Plugins\" table, directly after `testing-handbook-skills`. Use plain text `testing-handbook-generator` as the author (no link).\n\n**Example:**\n\n```markdown\n| Plugin | Description | Author |\n|--------|-------------|--------|\n| ... other plugins ... |\n| [testing-handbook-skills](plugins\u002Ftesting-handbook-skills\u002F) | Meta-skill that generates skills from the Testing Handbook | Paweł Płatek |\n| [libfuzzer](plugins\u002Ftesting-handbook-skills\u002Fskills\u002Flibfuzzer\u002F) | Coverage-guided fuzzing with libFuzzer for C\u002FC++ | testing-handbook-generator |\n| [aflpp](plugins\u002Ftesting-handbook-skills\u002Fskills\u002Faflpp\u002F) | Multi-core fuzzing with AFL++ | testing-handbook-generator |\n| [semgrep](plugins\u002Ftesting-handbook-skills\u002Fskills\u002Fsemgrep\u002F) | Fast static analysis for finding bugs | testing-handbook-generator |\n```\n\n### 2. Update Skills Cross-Reference\n\nAfter generating skills, update the `README.md`'s **Skills Cross-Reference** section with the mermaid graph showing skill relationships.\n\n**Process:**\n1. Read each generated skill's `SKILL.md` and extract its `## Related Skills` section\n2. Build the mermaid graph with nodes grouped by skill type (Fuzzers, Techniques, Tools, Domain)\n3. Add edges based on the Related Skills relationships:\n   - Solid arrows (`-->`) for primary technique dependencies\n   - Dashed arrows (`-.->`) for alternative tool suggestions\n4. Replace the existing mermaid code block in README.md\n\n**Edge classification:**\n| Relationship | Arrow Style | Example |\n|--------------|-------------|---------|\n| Fuzzer → Technique | `-->` | `libfuzzer --> harness-writing` |\n| Tool → Tool (alternative) | `-.->` | `semgrep -.-> codeql` |\n| Fuzzer → Fuzzer (alternative) | `-.->` | `libfuzzer -.-> aflpp` |\n| Technique → Technique | `-->` | `harness-writing --> coverage-analysis` |\n\n**Validation:** After updating, run `validate-skills.py` to verify all referenced skills exist.\n\n### 3. Self-Improvement\n\nAfter each generation run, reflect on what could improve future runs.\n\n**Capture improvements to:**\n- Templates (missing sections, better structure)\n- Discovery logic (missed patterns, false positives)\n- Content extraction (shortcodes not handled, formatting issues)\n\n**Update process:**\n1. Note issues encountered during generation\n2. Identify patterns that caused problems\n3. Update relevant files:\n   - `SKILL.md` - Workflow, decision tree, quick reference updates\n   - `templates\u002F*.md` - Template improvements\n   - `discovery.md` - Detection logic updates\n   - `testing.md` - New validation checks\n4. Document the improvement in commit message\n\n**Example self-improvement:**\n```\nIssue: libFuzzer skill missing sanitizer flags table\nFix: Updated templates\u002Ffuzzer-skill.md to include ## Compiler Flags section\n```\n\n## Example Usage\n\n### Full Discovery and Generation\n\n```\nUser: \"Generate skills from the testing handbook\"\n\n1. Locate handbook (check common locations, ask user, or clone)\n2. Read discovery.md for methodology\n3. Scan handbook at {handbook_path}\u002Fcontent\u002Fdocs\u002F\n4. Build candidate list with types\n5. Present plan to user\n6. On approval, generate each skill using appropriate template\n7. Validate generated skills\n8. Update main README.md with generated skills table\n9. Update README.md Skills Cross-Reference graph from Related Skills sections\n10. Self-improve: note any template\u002Fdiscovery issues for future runs\n11. Report results\n```\n\n### Single Section Generation\n\n```\nUser: \"Create a skill for the libFuzzer section\"\n\n1. Read \u002Ftesting-handbook\u002Fcontent\u002Fdocs\u002Ffuzzing\u002Fc-cpp\u002F10-libfuzzer\u002F\n2. Identify type: Fuzzer Skill\n3. Read templates\u002Ffuzzer-skill.md\n4. Extract content, apply template\n5. Write to skills\u002Flibfuzzer\u002FSKILL.md\n6. Validate and report\n```\n\n## Tips\n\n**Do:**\n- Always present plan before generating\n- Use appropriate template for skill type\n- Preserve code blocks exactly\n- Validate after generation\n\n**Don't:**\n- Generate without user approval\n- Skip fetching non-video external resources (use WebFetch)\n- Fetch video URLs (YouTube, Vimeo - titles only)\n- Include handbook images directly\n- Skip validation step\n- Exceed 500 lines per SKILL.md\n\n---\n\n**For first-time use:** Start with [discovery.md](discovery.md) to understand the handbook analysis process.\n\n**For template reference:** See [templates\u002F](templates\u002F) directory for skill type templates.\n\n**For validation:** See [testing.md](testing.md) for quality assurance methodology.\n",{"name":5,"description":7},"main","321ccfe628eca0d314b0ee4eaffcdd8a05639aaf","plugins\u002Ftesting-handbook-skills\u002Fskills\u002Ftesting-handbook-generator",0,"https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills","https:\u002F\u002Fgithub.com\u002Fbongkage","2026-11-06 12:15:06",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add bongkage\u002Ftrailofbits-skills --skill testing-handbook-generator",{"tool":36,"command":37},"bunx","bunx skills add bongkage\u002Ftrailofbits-skills --skill testing-handbook-generator",{"tool":39,"command":40},"pnpm","pnpm dlx skills add bongkage\u002Ftrailofbits-skills --skill testing-handbook-generator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Ftesting-handbook-skills\u002Fskills\u002Ftesting-handbook-generator\u002FSKILL.md",true,[44,50,54,60,64,68,72,76,80],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"agent-prompt.md","REFERENCE","参考文档",11497,"https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Ftesting-handbook-skills\u002Fskills\u002Ftesting-handbook-generator\u002Fagent-prompt.md",{"path":51,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":52,"sourceHtmlUrl":53},"agents\u002Fopenai.yaml",128,"https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Ftesting-handbook-skills\u002Fskills\u002Ftesting-handbook-generator\u002Fagents\u002Fopenai.yaml",{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"assets\u002Ftrail-of-bits-mark.svg","ASSET","资产文件",3084,"https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Ftesting-handbook-skills\u002Fskills\u002Ftesting-handbook-generator\u002Fassets\u002Ftrail-of-bits-mark.svg",{"path":61,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":62,"sourceHtmlUrl":63},"discovery.md",15747,"https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Ftesting-handbook-skills\u002Fskills\u002Ftesting-handbook-generator\u002Fdiscovery.md",{"path":65,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":66,"sourceHtmlUrl":67},"templates\u002Fdomain-skill.md",17036,"https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Ftesting-handbook-skills\u002Fskills\u002Ftesting-handbook-generator\u002Ftemplates\u002Fdomain-skill.md",{"path":69,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":70,"sourceHtmlUrl":71},"templates\u002Ffuzzer-skill.md",11363,"https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Ftesting-handbook-skills\u002Fskills\u002Ftesting-handbook-generator\u002Ftemplates\u002Ffuzzer-skill.md",{"path":73,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":74,"sourceHtmlUrl":75},"templates\u002Ftechnique-skill.md",12641,"https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Ftesting-handbook-skills\u002Fskills\u002Ftesting-handbook-generator\u002Ftemplates\u002Ftechnique-skill.md",{"path":77,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":78,"sourceHtmlUrl":79},"templates\u002Ftool-skill.md",9440,"https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Ftesting-handbook-skills\u002Fskills\u002Ftesting-handbook-generator\u002Ftemplates\u002Ftool-skill.md",{"path":81,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":82,"sourceHtmlUrl":83},"testing.md",16692,"https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Ftesting-handbook-skills\u002Fskills\u002Ftesting-handbook-generator\u002Ftesting.md",[85,92,99,106,113,120],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M7CHJAESZRWKJXFQG55BMNAA","zeroize-audit","Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C\u002FC++\u002FRust code handling secrets, keys, passwords, or other sensitive data.","https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fzeroize-audit\u002Fskills\u002Fzeroize-audit\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M7CHJ543G42A9GQC3PJE4F4V","yara-rule-authoring","Guides authoring of high-quality YARA-X detection rules for malware identification. Use when writing, reviewing, or optimizing YARA rules. Covers naming conventions, string selection, performance optimization, migration from legacy YARA, and false positive reduction. Triggers on: YARA, YARA-X, malware detection, threat hunting, IOC, signature, crx module, dex module.","https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fyara-authoring\u002Fskills\u002Fyara-rule-authoring\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":18},"01M7CHHYVFS1AKDTH3YDS1Y4K4","writing-lean-proofs","Writes and reviews structured Lean 4 proofs and designs Lean libraries following Mathlib conventions. Use when proving theorems in Lean, formalizing mathematics or specifications in Lean 4, defining new types or definitions in a Lean library, reviewing Lean proofs for readability and maintainability, refactoring long tactic proofs into lemmas, filling in sorry placeholders in a Lean development, setting up CI or linters for a Lean project, diagnosing slow proofs or maxHeartbeats timeouts, or writing custom tactics, macros, or linters.","https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fwriting-lean-proofs\u002Fskills\u002Fwriting-lean-proofs\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":18},"01M7CHHQXA39M4965MV2RMM5YS","vulnerability-triage-brocards","This skill should be used when the user asks to \"triage a vulnerability report\", \"assess a CVE\", \"evaluate a bug bounty submission\", \"decide if a finding is valid\", \"review a security finding\", \"dismiss a vulnerability\", \"should we fix this CVE\", \"prioritize a vulnerability report\", or needs to determine whether an incoming vulnerability report warrants investigation. Applies 7 brocards (rules of thumb) to systematically accept, dismiss, or request more information on vulnerability reports, or needs to filter raw findings from agentic vulnerability discovery pipelines before human review.","https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fvulnerability-triage-brocards\u002Fskills\u002Fvulnerability-triage-brocards\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":18},"01M7CHHJVQC2ZG2M310GXT0T42","variant-analysis","Hunts for the other instances of a bug already found — the variants of one root cause across a codebase. Use immediately after a vulnerability, logic bug, or bad pattern turns up in a specific file and the question becomes where else it occurs, including the bare conversational form (\"are there others like this?\", \"is this the same bug?\"). Also for generalizing one known instance into a CodeQL or Semgrep query for its whole pattern family, and for triaging a set of look-alike candidates against a known root cause. Not for initial discovery with no bug in hand.","https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fvariant-analysis\u002Fskills\u002Fvariant-analysis\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":18},"01M7CHHC1GM5GH585ZWGP7D03P","vector-forge","Mutation-driven test vector generation. Finds implementations of a cryptographic algorithm or protocol, runs mutation testing to identify escaped mutants, then generates new test vectors that deliberately exercise the uncovered code paths. Compares before\u002Fafter mutation kill rates to prove vector effectiveness. Use when generating cryptographic test vectors, measuring Wycheproof coverage gaps, finding escaped mutants via mutation testing, creating cross-implementation test suites, or improving test vector coverage for crypto primitives.","https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Ftrailmark\u002Fskills\u002Fvector-forge\u002FSKILL.md",[],[]]