compact
Use when context is running long during a pentest engagement, at phase boundaries after completing a full phase, or when the user says "compact", "compress…
Skill by kalpmodi
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/kalpmodi-compact
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/compact
What's inside
- Skill name
compact- Description
- Use when context is running long during a pentest engagement, at phase boundaries after completing a full phase, or when the user says "compact", "compress context", "trim context", or "save tokens". Compresses completed phase outputs while keeping session.json as the authoritative source of truth.
- License
- MIT
- Instructions
- 118 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Compact - Context Compaction ## Overview 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. --- ## When to Trigger Auto-trigger at these moments: - After completing any full phase (recon, secrets, exploit, zerodayhunt) - When `session.json signals[]` exceeds 30 entries - When the user asks explicitly - Before spawning a new fork (give the fork a clean context budget) --- ## Steps 1. **Get target:** ```bash TARGET=$1 SESSION=~/pentest-toolkit/results/$TARGET/session.json RESULTS=~/pentest-toolkit/results/$TARGET ``` 2. **Identify completed phases:** ```bash ls $RESULTS/interesting_*.md 2>/dev/null ``` 3. **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> ``` 4. **Write `engagement_summary.md`:** ```bash 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 ``` 5. **Purge completed phase files from active context** (they are now in engagement_summary.md): - Do NOT delete the files - they stay on disk for triage - Simply note: "Context compacted. Phase files remain at $RESULTS/ — reread session.json for current state." 6. **Rehydrate from session.json:** ```bash # 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" ``` 7. **Filter for certified findings only:** If compaction is triggered after `/triage` has run: - Only `SCALPEL_CERTIFIED` findings persist in active context - `NOISE` findings are dropped entirely - `POTENTIAL` findings are compressed to one line each 8. **Tell 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>% ```
From kalpmodi/akira, MIT.
More from kalpmodi/akira
- 0.552score
plan-engagement
kalpmodi
Use when starting any pentesting engagement, receiving a target domain or IP, saying "new engagement", "start a pentest", "plan this target", or beginning any…
SkillCFreshness: C★ 23Claude Code +9 - 0.491score
zerodayhunt
kalpmodi
Use when hunting for zero-days, backdoors, RCE, supply chain attacks, JWT vulnerabilities, cache poisoning, HTTP smuggling, dependency confusion, source map…
SkillDFreshness: D★ 23Claude Code +9 - 0.491score
race-conditions
kalpmodi
Use when testing for race conditions, single-packet attacks, TOCTOU vulnerabilities, limit-bypass via concurrent requests, coupon/voucher reuse, double-spend…
SkillDFreshness: D★ 23Claude Code +9 - 0.491score
recon
kalpmodi
Use when running reconnaissance on a pentest target, starting phase 1 of an engagement, gathering subdomains, DNS resolution, live hosts, port scan results…
SkillDFreshness: D★ 23Claude Code +9 - 0.491score
redteam
kalpmodi
Use when running APT-level red team operations, post-exploitation, lateral movement, credential harvesting, Active Directory attacks (Kerberoasting, DCSync…
SkillDFreshness: D★ 23Claude Code +9 - 0.491score
report
kalpmodi
Use when generating a pentest report, writing up findings from a completed assessment, converting triage output into a structured document, or producing an…
SkillDFreshness: D★ 23Claude Code +9 - 0.491score
triage
kalpmodi
Use when aggregating pentest findings across all phases, clustering vulnerabilities by severity, prioritizing findings for a report, or surfacing the top…
SkillDFreshness: D★ 23Claude Code +9 - 0.491score
ad-attacks
kalpmodi
Use when attacking Active Directory environments, hunting Kerberoastable accounts, AS-REP roasting, DCSync, Pass-the-Hash, Pass-the-Ticket, BloodHound path…
SkillDFreshness: D★ 23Claude Code +9 - 0.491score
exploit
kalpmodi
Use when running exploitation phase of a pentest, testing for SQL injection, XSS, SSRF, JWT confusion, deserialization, prototype pollution, HTTP smuggling…
SkillDFreshness: D★ 23Claude Code +9 - 0.491score
oauth-attacks
kalpmodi
Use when attacking OAuth 2.0 or OIDC implementations, testing for authorization code interception, PKCE bypass, open redirect chains, token leakage via…
SkillDFreshness: D★ 23Claude Code +9 - 0.487score
secrets
kalpmodi
Use when hunting for secrets, API keys, tokens, or credentials on a pentest target, running phase 2 of an engagement, scanning JS files for hardcoded secrets…
SkillDFreshness: D★ 23Claude Code +9 - 0.487score
ctf
kalpmodi
Use when working on CTF (Capture the Flag) challenges, HackTheBox machines, TryHackMe rooms, pwn challenges, reverse engineering, cryptography puzzles…
SkillDFreshness: D★ 23Claude Code +9
Signals
- Stars
- 23
- Forks
- 4
- Open issues
- 0
- Last commit (this folder)
- Apr 25, 2026 (6 months ago)
- Last release
- Apr 25, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/kalpmodi/akira
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from kalpmodi
- 0.552score
plan-engagement
kalpmodi
Use when starting any pentesting engagement, receiving a target domain or IP, saying "new engagement", "start a pentest", "plan this target", or beginning any…
SkillCFreshness: C★ 23Claude Code +9 - 0.491score
oauth-attacks
kalpmodi
Use when attacking OAuth 2.0 or OIDC implementations, testing for authorization code interception, PKCE bypass, open redirect chains, token leakage via…
SkillDFreshness: D★ 23Claude Code +9 - 0.491score
ad-attacks
kalpmodi
Use when attacking Active Directory environments, hunting Kerberoastable accounts, AS-REP roasting, DCSync, Pass-the-Hash, Pass-the-Ticket, BloodHound path…
SkillDFreshness: D★ 23Claude Code +9 - 0.491score
triage
kalpmodi
Use when aggregating pentest findings across all phases, clustering vulnerabilities by severity, prioritizing findings for a report, or surfacing the top…
SkillDFreshness: D★ 23Claude Code +9 - 0.491score
exploit
kalpmodi
Use when running exploitation phase of a pentest, testing for SQL injection, XSS, SSRF, JWT confusion, deserialization, prototype pollution, HTTP smuggling…
SkillDFreshness: D★ 23Claude Code +9 - 0.491score
race-conditions
kalpmodi
Use when testing for race conditions, single-packet attacks, TOCTOU vulnerabilities, limit-bypass via concurrent requests, coupon/voucher reuse, double-spend…
SkillDFreshness: D★ 23Claude Code +9
Cite this page
compact skill. Agent Mart. https://agentmart.dev/skills/kalpmodi-compact (last updated 2026-10-24)