Skip to content

A Claude Code skill bundle for bug hunting and external red-team work - 82 skills, 15 slash commands, 681 disclosed-report patterns curated across 24 core vulnerability classes, plus enterprise identity + infrastructure attack matrices.

fix(engine): auto-detect skills dir for plugin installs; refresh plugin metadata (#47)

Sachin Sharma178ca21816ea
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
index 3e72572..f495219 100644
--- a/.claude-plugin/marketplace.json
+++ b/.claude-plugin/marketplace.json
@@ -12,7 +12,7 @@
{
"name": "claude-bughunter",
"source": "./",
- "description": "71-skill bug-hunting & external red-team bundle — 48 hunt-* web/vuln-class + framework skills, enterprise platform attack chains (M365/Entra, Okta, SharePoint, vCenter, SSL-VPN, APK), recon/OSINT, reporting & validation gates, Burp MCP integration. Skills auto-load by topic; 15 slash commands.",
+ "description": "82-skill bug-hunting & external red-team bundle — 57 hunt-* web/vuln-class + framework skills, enterprise platform attack chains (M365/Entra, Okta, SharePoint, vCenter, SSL-VPN, APK/iOS), recon/OSINT, reporting & validation gates, Burp MCP integration. Skills auto-load by topic; 15 slash commands.",
"version": "2.1.0",
"author": {
"name": "Sachin Sharma",
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json
index e60f1d7..b0432a9 100644
--- a/.claude-plugin/plugin.json
+++ b/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "claude-bughunter",
- "description": "71-skill bug-hunting & external red-team bundle for Claude Code — 48 hunt-* web/vuln-class + framework skills, enterprise platform attack chains (M365/Entra, Okta, SharePoint, vCenter, SSL-VPN, APK), recon/OSINT, reporting & validation gates, and Burp MCP integration. Skills auto-load by topic; 15 slash commands included.",
+ "description": "82-skill bug-hunting & external red-team bundle for Claude Code — 57 hunt-* web/vuln-class + framework skills, enterprise platform attack chains (M365/Entra, Okta, SharePoint, vCenter, SSL-VPN, APK/iOS), recon/OSINT, reporting & validation gates, and Burp MCP integration. Skills auto-load by topic; 15 slash commands included.",
"version": "2.1.0",
"author": {
"name": "Sachin Sharma",
diff --git a/engine/skill_map.py b/engine/skill_map.py
index 329cc25..9be9e70 100644
--- a/engine/skill_map.py
+++ b/engine/skill_map.py
@@ -8,13 +8,37 @@ their 20% expert effort where the 80% automation points:
surface (endpoint / parameter) -> attack class -> which hunt-* skill -> first curl
-Mappings are grounded in the skills actually installed (~/.claude/skills); anything not
-present is filtered out so we never point at a skill that isn't there.
+Mappings are grounded in the skills actually installed (auto-detected: the bundle's own
+skills/ for repo/plugin installs, or ~/.claude/skills for the copy installer, overridable
+via $CBH_SKILLS_DIR); anything not present is filtered out so we never point at a skill
+that isn't there.
Active testing is curl-first; Burp MCP is optional (only where noted — OOB/blind/fuzzing).
"""
import os
-SKILLS_DIR = os.path.expanduser("~/.claude/skills")
+
+def _resolve_skills_dir():
+ """Locate the installed skills/ directory across every install method.
+
+ Resolution order:
+ 1. $CBH_SKILLS_DIR — explicit override (e.g. a non-standard plugin cache path).
+ 2. skills/ shipped next to the engine — works for both a repo checkout and a
+ Claude Code plugin install (the whole bundle lives in the plugin cache, so
+ engine/ and skills/ stay siblings there too).
+ 3. ~/.claude/skills — the target of the scripts/install.sh copy method.
+ """
+ env = os.environ.get("CBH_SKILLS_DIR")
+ if env:
+ return os.path.expanduser(env)
+ bundled = os.path.join(
+ os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "skills"
+ )
+ if os.path.isdir(bundled):
+ return bundled
+ return os.path.expanduser("~/.claude/skills")
+
+
+SKILLS_DIR = _resolve_skills_dir()
# attack class -> hunt skill(s) in the bundle
CLASS_SKILL = {