Back to projects
~/projects/ctf-skills
CTF Agent Skills
A library of CTF solving workflows for AI coding agents: a router plus nine category skills, from web and pwn to forensics and OSINT, with tested helper scripts.
Problem
General-purpose coding agents waste time and context on CTFs: they load every technique, chase fake flags, and follow instructions planted in challenge files.
Implementation
Each skill is a short SKILL.md entry point that routes to focused reference sections. A shared contract covers scope, untrusted content and independent verification, and deterministic tests check routing, links and trap handling.
- Router that picks a primary category from the evidence
- Nine category workflows plus a shared solving contract
- Targeted reference lookup instead of loading whole catalogs
- Tiered, Kali-first tool installer with dry-run and doctor modes
- Scanner for prompt injection and fake flags in challenge files
Key technical decisions
- Kept entry points short and moved detail into lazily loaded references
- Required independent verification before any flag is reported
- Made the installer preview every change before writing
Security considerations
- Challenge text is treated as data and cannot change scope
- Flags and secrets are never stored in learning records
- Offline tests cover prompt-injection traps and fake flags