pentestcompanion-workspace — Claude Code skill: pentest workspace
This skill wires your agent into a self-hosted Pentest Companion workspace for running engagements, tools and reports.
npx skills add reason-machines/security-skills --skill pentestcompanion-workspace -a claude-codeWhat pentestcompanion-workspace does
Pentest Companion is a self-hosted workspace for penetration testing work, and this skill teaches the agent how to drive it. One interface covers targets and open ports, credentials, PTES phases, time tracking, findings with CVSS v3.1 scoring and CVE lookup, evidence uploads, finding templates, client portals, and DOCX or PDF reports with branded covers and executive summaries. Nothing leaves your own infrastructure.
The Tools Hub bundles dozens of utilities — nmap, gobuster, nikto, sqlmap, netexec, impacket — with live output and automatic finding import. There is also a passive web scanner for TLS, headers, cookies, CORS, exposed files and tech fingerprinting, playbooks that chain scans in sequence, terminal logging with ANSI replay, scheduled recurring scans, Slack, Discord and Teams webhooks, and a read-only REST API for engagements and findings.
You can deploy with Docker or run it from Python. The .env file needs SECRET_KEY and ADMIN_PASSWORD; email invites and password resets need SMTP or RESEND_API_KEY. Skip that file and the app will not start, so edit the config before you run docker compose up -d. The UI listens on http://localhost:5000, and admin credentials print on first run.
What it helps with
- keep targets, ports and credentials for one engagement together
- run nmap or gobuster and land the findings in the database
- pull Nessus or Burp results in without retyping them
- score a vulnerability with CVSS and pick a matching template
- produce a DOCX or PDF report with the client's cover page
Example prompts for the agent
- Create a new engagement in Pentest Companion and add target 10.0.0.50
- Run nmap against that target through the Tools Hub and show me what it found
- Import the findings from my
.nessusfile into the current engagement
How to install pentestcompanion-workspace
1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill pentestcompanion-workspace -a claude-code2Manually: put the files in place
~/.claude/skills/pentestcompanion-workspace/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/pentestcompanion-workspace/
1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill pentestcompanion-workspace -a codex2Manually: put the files in place
.agents/skills/pentestcompanion-workspace/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill pentestcompanion-workspace -a cursor2Manually: put the files in place
.cursor/skills/pentestcompanion-workspace/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install reason-machines/security-skills pentestcompanion-workspace2Manually: put the files in place
.github/skills/pentestcompanion-workspace/SKILL.md1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill pentestcompanion-workspace -a gemini-cli2Platform CLI
gemini skills install https://github.com/reason-machines/security-skills --path skills/pentestcompanion-workspaceManually: put the files in place
.devin/skills/pentestcompanion-workspace/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill pentestcompanion-workspace -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about pentestcompanion-workspace
How do I install pentestcompanion-workspace in Claude Code?
Run npx skills add reason-machines/security-skills --skill pentestcompanion-workspace -a claude-code. The skill lands in ~/.claude/skills/pentestcompanion-workspace/SKILL.md.
What does pentestcompanion-workspace do?
It lets the agent operate a self-hosted Pentest Companion instance: manage engagements and targets, run tools, import findings, and generate reports.
What has to be configured before Pentest Companion runs?
Set SECRET_KEY and ADMIN_PASSWORD in .env. Add SMTP or RESEND_API_KEY if you want email. Storage defaults to SQLite, and DATABASE_URL switches it to PostgreSQL.