Reusable /goal blueprints for security engineers, AppSec teams, platform teams, and security-minded developers using agentic coding tools.
/goal is useful when a task is larger than one prompt but still has a verifiable stopping condition. Instead of asking an agent to do one step, you give it a durable objective, a validation loop, and explicit stop rules.
For security work, that distinction matters. Good security engineering is rarely one action. It is a loop:
- Map the surface.
- Test assumptions.
- Inspect code, APIs, data, logs, and product behavior.
- Verify evidence.
- Document risk and remediation.
- Repeat until the security question is answered.
These blueprints turn that loop into a reusable operating contract.
- Claude Code goals: documented for Claude Code v2.1.139 or later.
- Claude Code commands:
/goal [condition|clear]keeps Claude working across turns until the condition is met. - Codex CLI slash commands: documented as an experimental Codex CLI feature behind
features.goals. - Codex follow goals use case: describes durable objectives for long-running work.
Always confirm the behavior in your installed tool and version before running unattended work.
| Blueprint | Use When | Output |
|---|---|---|
| Product Security E2E Audit | You need a sandbox-only product-wide security and trust audit across UI, API, data, logs, docs, setup, and user workflows. | Audit report, coverage matrix, findings backlog, backend/data map. |
| Launch Readiness Security Review | You are preparing a major launch, beta, release, or public demo and need to know whether the feature is safe to ship. | Launch verdict, release surface matrix, blockers, rollback and observability assessment. |
| Blueprint | Use When | Output |
|---|---|---|
| AuthZ and Tenant Boundary Audit | You need to validate role-based access control, object-level authorization, and tenant isolation. | Role matrix, route/API coverage, bypass findings, reproduction steps. |
| Session and Authentication Hardening | You need to review login, logout, sessions, cookies, MFA, reset flows, OAuth/OIDC, and CSRF behavior. | Auth flow matrix, token/cookie assessment, session findings, hardening backlog. |
| Blueprint | Use When | Output |
|---|---|---|
| AI App Security Eval | You need to test an AI feature for prompt injection, tool abuse, retrieval leakage, and unsafe agent behavior. | Eval cases, run results, failure analysis, mitigations, regression test plan. |
| Blueprint | Use When | Output |
|---|---|---|
| Secrets and Supply Chain Hardening | You need to find exposed secrets, dependency risk, CI/CD over-permissioning, container issues, or provenance gaps. | Remediation-ready findings, safe patches, rotation checklist, residual risk register. |
| Repository Integrity and CI Hardening | You need to review whether CI/CD, repository settings, release workflows, or package publishing can be abused. | Workflow risk matrix, release control assessment, review bypass findings, remediation plan. |
| Blueprint | Use When | Output |
|---|---|---|
| Cloud and IaC Exposure Audit | You need to review IaC, runtime config, IAM, public exposure, network boundaries, storage, secrets, and deployment manifests. | Exposure summary, infrastructure matrix, IAM findings, drift and residual risk. |
| Blueprint | Use When | Output |
|---|---|---|
| Incident Replay and Detection Validation | You need to validate whether an incident, bug bounty, red-team, or near-miss scenario is detectable and preventable. | Replay summary, timeline comparison, detection gaps, runbook assessment, regression plan. |
| Blueprint | Use When | Output |
|---|---|---|
| Privacy, Logging, and Telemetry Audit | You need to trace sensitive data through UI, APIs, logs, analytics, exports, retention, deletion, and third-party telemetry. | Data-flow matrix, canary trace results, leakage findings, privacy promise mismatches. |
Use the same sections consistently:
/goal
GOAL:
One durable objective with a verifiable end state.
CONTEXT:
Repository, environment, threat model, docs, systems, credentials, and assumptions.
CONSTRAINTS:
Hard boundaries such as sandbox-only, no production data, no destructive actions, no credential rotation.
PRIORITY:
How to trade off safety, evidence, depth, speed, and scope.
PLAN:
The expected execution sequence.
DONE WHEN:
Measurable completion criteria.
VERIFY:
Commands, logs, tests, API calls, database checks, browser checks, screenshots, or artifacts required as proof.
OUTPUT:
The final report, patches, matrix, backlog, or evidence package.
STOP RULES:
Conditions where the agent must stop instead of improvising.
/goalis not a sandbox. Permissions, credentials, network access, and environment isolation are still your job.- The goal must have an observable stopping condition. "Make auth secure" is weak. "Every protected API route has an authZ test and the role matrix passes" is strong.
- The evaluator can only judge evidence surfaced in the session. Ask the agent to report commands, results, files changed, screenshots, logs, and unresolved gaps.
- Avoid mixing unrelated objectives. Use one blueprint per task, branch, worktree, issue, or investigation.
- For security work, stop rules matter as much as the goal. If production risk, credential ambiguity, or destructive action appears, the agent should stop.
- Use synthetic data and isolated accounts by default.
- Pick the blueprint closest to the security question.
- Replace placeholders like
[repo],[sandbox URL],[test tenant], and[policy matrix]. - Tighten the stop rules for your environment.
- Run in a trusted workspace with the right sandbox and approval settings.
- Review evidence before acting on findings.
- Convert validated findings into issues, patches, follow-up goals, or launch decisions.
Start from templates/goal-template.md, then read docs/writing-effective-goals.md for guidance on scope, evidence, and stop rules.
See CONTRIBUTING.md for the blueprint format and review checklist.
No license has been selected yet. Add one before inviting broad external reuse.
These prompts are designed for authorized security engineering work in systems you own or have explicit permission to test. Do not use them against third-party systems without authorization.