Skip to content

feat: Claude Code command & subagent layer (scope-first workflow)#21

Merged
TrueNix merged 1 commit into
mainfrom
feature/claude-commands
Jul 12, 2026
Merged

feat: Claude Code command & subagent layer (scope-first workflow)#21
TrueNix merged 1 commit into
mainfrom
feature/claude-commands

Conversation

@TrueNix

@TrueNix TrueNix commented Jul 12, 2026

Copy link
Copy Markdown
Owner

What

A thin, Claude-Code-native front end over the bugbounty_ctf package. It adds no new capability — it packages the authorized workflow (scope → recon → validate → report) as slash commands and subagents, with scope enforcement and the scope-compliance audit trail baked in as the backbone.

Slash commands (.claude/commands/)

  • /scope <program> — ingest a HackerOne program's structured scopes into a ScopeGuard and bind an AuditLog. Run first.
  • /recon <base-url> — scoped, mostly read-only attack-surface mapping.
  • /validate <lead> — confirm a candidate finding with the minimum proof needed; cut false positives.
  • /report [path] — remediation-focused writeup with the scope-compliance summary attached.

Subagents (.claude/agents/)

recon-agent, validator, report-writer — mirror the stages, each with a narrow tool scope.

Why this shape

It ties the whole session's work together and makes it ergonomic: /scope uses the HackerOne client (#19) → ScopeGuard; /recon and /validate route through a SecurityScanner bound to the AuditLog (#17); /validate records what worked via the pattern DB (#18); /report uses the retention-bounded save_report (#20). The decomposition deliberately reinforces responsible testing — scope first, everything recorded, minimal proof, no escalation, authorized use only — rather than being a broad offensive arsenal.

Notes

🤖 Generated with Claude Code

Adds a thin Claude-Code-native front end over the package that packages the
authorized workflow (scope -> recon -> validate -> report) with scope
enforcement and the scope-compliance audit trail baked in. No new capability;
it orchestrates existing modules with authorization and accountability first.

- .claude/commands/: /scope (ingest a HackerOne program's scope into a
  ScopeGuard + bind an AuditLog), /recon (scoped, read-only surface mapping),
  /validate (minimal-PoC confirmation, cut false positives), /report
  (remediation-focused writeup with the scope-compliance summary attached).
- .claude/agents/: recon-agent, validator, report-writer subagents mirroring
  the stages, each with a narrow tool scope.
- .claude/README.md documents the layer and its guardrails.

Every command leads with scope/authorization and routes requests through the
audited SecurityScanner, so testing stays in-bounds and recorded. Structure
inspired by shuvonsec/claude-bug-bounty (MIT), reduced to the responsible core
workflow and wired to this project's ScopeGuard / AuditLog / HackerOneClient.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@TrueNix
TrueNix merged commit 6a99970 into main Jul 12, 2026
5 checks passed
@TrueNix
TrueNix deleted the feature/claude-commands branch July 12, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant