discover-patterns

Identify behavioral anti-patterns from CVE research for code review.

Updated Dec 25, 2025
One-click install
npx skills add https://github.com/chrismcmacken/bounty-hunter --skill discover-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: discover-patterns
Source: https://github.com/chrismcmacken/bounty-hunter/tree/main/.claude/skills/discover-patterns
Command: npx skills add https://github.com/chrismcmacken/bounty-hunter --skill discover-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Discover Patterns Skill enables researchers and developers to identify dangerous behavioral patterns that emerge in custom code, using CVEs as research input to derive generalizable pattern classes.

Core Features & Use Cases

  • Surface behavioral patterns from CVEs to create reusable pattern rules.
  • Group results by pattern class (injection, ssrf, traversal, deserialization, etc.) and map to potential detections.
  • Support ecosystem-agnostic analysis across languages (Python, JavaScript, Java, Go) to inform pattern-driven tooling.

Quick Start

Use /discover-patterns CWE-94 to start extracting patterns from recent CVEs; then review results and map to pattern rules.

Frequently Asked Questions about discover-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract behavioral anti-patterns from CVEs for code review?

To extract behavioral anti-patterns from CVEs, use the discover-patterns Skill to analyze OSV.dev data and generalize vulnerabilities into reusable pattern classes like SSRF or path traversal. It structures findings to inform pattern-driven code review tooling.

What is the best way to generalize CVE research into security rules across npm, PyPI, and Maven?

Generalizing CVE research across npm, PyPI, and Maven requires an ecosystem-agnostic analysis approach. This Skill processes vulnerability data to surface pattern classes such as template options injection and deserialization, mapping them to potential detection rules.

Can I use CWE identifiers to find related behavioral security patterns in custom code?

Yes, you can use CWE identifiers to find related behavioral security patterns by passing them to the Skill. It processes the associated CVE research to identify dangerous behavioral patterns and outputs structured guidance and candidate rules for review.

Does this pattern discovery approach work across multiple programming languages?

This pattern discovery approach works ecosystem-agnostically across Python, JavaScript, Java, and Go. It analyzes vulnerability data to identify generalized behavioral pattern classes rather than language-specific syntax issues, ensuring broad applicability for security research.

How do I map discovered CVE patterns to semgrep detection rules?

To map discovered CVE patterns to detection rules, the Skill applies a structured scoring framework to the identified behavioral anti-patterns. It outputs candidate rules and guidance that can be used to inform pattern-driven tooling like semgrep.

When should I not use CVE pattern discovery for security analysis?

You should not use CVE pattern discovery when you need language-specific syntax linting rather than generalized behavioral pattern extraction. This Skill focuses on deriving reusable anti-pattern classes from OSV.dev vulnerability data, not scanning custom code directly.