Skip to content

Instantly share code, notes, and snippets.

View dkarter's full-sized avatar

Dorian Karter dkarter

View GitHub Profile
@dkarter
dkarter / audit.ex
Created May 19, 2026 05:54 — forked from PJUllrich/audit.ex
The Prompts I use for finding Vulnerabilities in Elixir/Erlang projects
defmodule MyApp.Prompts.Audit do
@moduledoc """
Prompts for the audit pipeline. Two entry points:
* `audit_file/4` — embeds a single source file in the prompt and
runs `MyApp.CodingAgent` against it. Style is `:simple` or
`:deep`; the executor picks based on `audit.strategy`.
* `audit_directory/2` — whole-package audit. Spawns the agent with
`:cwd` set to the source dir so it can use Read/Grep/Bash.
"""