SKILL.md--- name: security-audit description: Security guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full/comprehensive/end-to-end reviews, or requested report artifacts. --- # Security Audit Find vulnerabilities that violate a real trust boundary, then give owners the source evidence, safe reproduction, priority, and smallest effective fix. This is a defensive, source-first workflow. A candidate without a concrete affected principal, resource, or security outcome is not a confirmed finding. ## Operating modes This skill is guidance by default. Loading it does not authorize the complete audit workflow or file creation. - **Guidance mode**: For security questions, focused reviews, methodology, triage, or investigation of specific findings, use only the relevant parts of this skill. Do not automatically run all six phases, create an output directory, or write audit artifacts. You may launch focused agents when useful; they return results to the current task. - **Full audit mode**: Use the complete workflow when the user explicitly asks to audit or pen-test a codebase, asks for a full, comprehensive, or end-to-end security review, or requests report artifacts. Run all six phases and write the files defined below. If the request could mean either mode, ask one focused question before creating files or starting the complete workflow. ## Platform terminology This skill is agent-neutral: - **Parent** is the agent that coordinates the run and owns shared state. - **Task tool** is the platform's delegation or sub-agent mechanism. - **`research` agent** is a delegated agent for focused source exploration and factual verification. - **`general` agent** is a delegated agent for broad investigation and bounded local execution. - **`subagent_type:`** in a heading names which of these two delegated agent roles runs that work. Use equivalent platform capabilities while preserving role, write-isolation, prompt, and independence boundaries. ## Universal execution safety These rules apply in both operating modes. Source inspection is read-only. Run target-controlled builds, tests, processes, browsers, emulators, fuzzers, and fixture processing only inside an OS-enforced sandbox that provides all of these controls: - no external network; use only an isolated loopback namespace when the check needs local client/server traffic; - an empty environment populated from an explicit allowlist with safe values, with scratch-local `HOME`, temporary directories, and caches; - a read-only target and toolchain, with the target-controlled process able to write only inside its assigned `scratch/` directory; and - explicit low CPU, memory, process, file-size, d