/akira:compactfrom akira
Compresses completed pentest phase outputs into an engagement summary to save context tokens, keeping session.json as the source of truth.
Ships in akira. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Long engagements burn context fast. This skill compresses completed phase outputs
into a single engagement_summary.md without losing any certified intelligence.
Rule: session.json is always the authoritative source of truth.
After compaction, the AI re-reads session.json instead of relying on conversation history.
Auto-trigger at these moments:
session.json signals[] exceeds 30 entriesGet target:
TARGET=$1
SESSION=~/pentest-toolkit/results/$TARGET/session.json
RESULTS=~/pentest-toolkit/results/$TARGET
Identify completed phases:
ls $RESULTS/interesting_*.md 2>/dev/null
For each completed phase - compress to 5 bullet signals:
Read each interesting_<phase>.md and distill to essential intelligence only:
RECON SIGNALS (from interesting_recon.md):
- Live hosts: <N> discovered, key: <most interesting>
- Tech stack: <comma-separated confirmed tech>
- WAF: <vendor or null>
- Key endpoints: <top 3>
- Hypothesis calibration: H1 <N>%, H2 <N>%
SECRETS SIGNALS (from interesting_secrets.md):
- Credentials found: <Y/N>, type: <aws_key|jwt|password>
- Key files: <source locations>
- Cloud provider confirmed: <Y/N>
EXPLOIT SIGNALS (from interesting_exploit.md):
- Confirmed findings: <N>, classes: <list>
- SSRF vectors: <Y/N>, endpoints: <list>
- Potential findings: <N>
Write engagement_summary.md:
cat > $RESULTS/engagement_summary.md << EOF
# Engagement Summary: $TARGET
Compacted: $(date +%Y-%m-%d\ %H:%M)
Source of truth: session.json
## Phase Intelligence (Compressed)
<5-bullet summaries per completed phase>
## Active Hypotheses
<from session.json hypotheses[] - all active ones with current probability>
## Confirmed Findings
<from session.json report_draft.findings[] - title + severity + status per finding>
## Open Discovery Queue
<from session.json discovery_queue[] - surface + priority per item>
## Signal Summary
Total signals: <N>
Critical signals: <list VULN_CONFIRMED + CRED_FOUND entries>
## Next Recommended Action
<based on engagement_state and top hypothesis probability>
EOF
Purge completed phase files from active context (they are now in engagement_summary.md):
Rehydrate from session.json:
# Re-read key session fields after compaction
STATE=$(jq -r '.engagement_state' $SESSION)
TOP_HYPO=$(jq -r '.hypotheses | sort_by(-.probability) | .[0] | "\(.id)[\((.probability*100)|round)%] \(.label)"' $SESSION)
DRAFT_COUNT=$(jq '.report_draft.findings | length' $SESSION)
SCALPEL_SCORE=$(jq -r '.scalpel.snr.scalpel_score // "pending"' $SESSION)
echo "State: $STATE | Top: $TOP_HYPO | Draft findings: $DRAFT_COUNT | Scalpel: $SCALPEL_SCORE"
Filter for certified findings only:
If compaction is triggered after /triage has run:
SCALPEL_CERTIFIED findings persist in active contextNOISE findings are dropped entirelyPOTENTIAL findings are compressed to one line eachTell the user:
Context compacted. <N> phase files compressed to engagement_summary.md.
Session.json remains authoritative — <N> signals, <N> draft findings.
Scalpel Score so far: <N>/100
Continuing from: <engagement_state> state, top hypothesis: <label> at <N>%
What SKILL.md sets; muted values are Claude Code's defaults
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: skills.0: Invalid string: must start with "./", skills.1: Invalid string: must start with "./", skills.2: Invalid string: must start with "./", skills.3: Invalid string: must start with "./", skills.4: Invalid string: must start with "./", skills.5: Invalid string: must start with "./", skills.6: Invalid string: must start with "./", skills.7: Invalid string: must start with "./", skills.8: Invalid string: must start with "./", skills.9: Invalid string: must start with "./", skills.10: Invalid string: must start with "./", skills.11: Invalid string: must start with "./", skills.12: Invalid string: must start with "./", skills.13: Invalid string: must start with "./", skills.14: Invalid string: must start with "./"
.claude-plugin/plugin.json: skills.0: Invalid string: must start with "./", skills.1: Invalid string: must start with "./", skills.2: Invalid string: must start with "./", skills.3: Invalid string: must start with "./", skills.4: Invalid string: must start with "./", skills.5: Invalid string: must start with "./", skills.6: Invalid string: must start with "./", skills.7: Invalid string: must start with "./", skills.8: Invalid string: must start with "./", skills.9: Invalid string: must start with "./", skills.10: Invalid string: must start with "./", skills.11: Invalid string: must start with "./", skills.12: Invalid string: must start with "./", skills.13: Invalid string: must start with "./", skills.14: Invalid string: must start with "./"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
16 skills in this plugin
/403-bypassUse when encountering HTTP 403 Forbidden responses during pentests or bug bounty hunting, testing access control bypasses, trying to reach restricted endpoints, admin panels, or protected API routes. Also trigger when the user says "403 bypass", "bypass forbidden", "access denied bypass", "forbidden page bypass", or "trying to access restricted endpoint". Use this whenever a 403 needs to be tested - not just blindly accepted./ad-attacksUse when attacking Active Directory environments, hunting Kerberoastable accounts, AS-REP roasting, DCSync, Pass-the-Hash, Pass-the-Ticket, BloodHound path analysis, LDAP enumeration, GPO abuse, ACL abuse, or full AD domain compromise chains. Also use when the user says "attack AD", "domain compromise", "Kerberoast", "DCSync", "BloodHound", or "lateral movement"./cloud-auditUse when auditing cloud infrastructure for misconfigurations, testing AWS IAM privilege escalation, enumerating exposed S3 buckets, attacking GCP service accounts, testing Azure RBAC misconfigs, hunting for exposed Kubernetes API servers, or finding cloud credential leaks in metadata services. Also use when the user says "cloud audit", "AWS pentest", "GCP attack", "K8s attack", "S3 exposed", "metadata service", or "cloud misconfiguration"./ctfUse when working on CTF (Capture the Flag) challenges, HackTheBox machines, TryHackMe rooms, pwn challenges, reverse engineering, cryptography puzzles, forensics, web exploitation CTF tasks, OSINT challenges, or steganography. Also use when the user says "CTF", "HackTheBox", "HTB", "TryHackMe", "THM", "pwn this", "reverse this binary", "solve this crypto", or "find the flag"./exploitUse when running exploitation phase of a pentest, testing for SQL injection, XSS, SSRF, JWT confusion, deserialization, prototype pollution, HTTP smuggling, cache poisoning, SSTI, XXE, GraphQL, SAML, LFI, file upload bypass, CORS, WebSocket hijacking, IDOR, mass assignment, account takeover chains, 2FA bypass, or any class of web/API vulnerability. Also use when the user says "run exploit", "phase 3", "start exploitation", "test for XSS/SQLi/SSRF", or names any specific vuln class./oauth-attacksUse when attacking OAuth 2.0 or OIDC implementations, testing for authorization code interception, PKCE bypass, open redirect chains, token leakage via referer, state parameter CSRF, token substitution, JWT confusion, implicit flow token theft, or OAuth misconfiguration in bug bounty targets. Also use when the user says "attack OAuth", "OAuth bug", "PKCE bypass", "redirect_uri bypass", "token leakage", or "SSO attack".Other plugins' skills for the same job