Warden

3 min read Original article ↗

SkillsDefine skills in Markdown.

security-review

code-review

api-design-review

architecture-review

dependency-review

test-coverage

auth-hardening

performance-guardrails

error-handling

Run before you pushCompose them into agents.

Every pull requestCompose them into agents that review every change.

SQL injection via unsanitized input

User input is interpolated directly into a SQL query. Use parameterized queries to prevent SQL injection attacks.

Suggested fix: Use parameterized query

-db.query(`SELECT * FROM users WHERE id = ${id}`)

+db.query("SELECT * FROM users WHERE id = $1", [id])

Your Code Is Under New Management

Define skills in Markdown. Compose them into agents that review every change.

Every Pull Request

Open a PR and Warden reviews it automatically. Findings appear as suggested changes you can apply with one click.

SQL injection via unsanitized input

User input is interpolated directly into a SQL query. Use parameterized queries to prevent SQL injection attacks.

Suggested fix: Use parameterized query

−db.query(`SELECT * FROM users WHERE id = ${id}`)

+db.query("SELECT * FROM users WHERE id = $1", [id])

Warden ensures issues missed locally are still caught during review.

It's Just Skills

The PR feedback above comes from skills. Warden ships with security-review for baseline AppSec coverage and code-review for correctness bugs. They are first passes, and they are still just SKILL.md files telling Warden what to look for.

---
name: security-review
description: Finds exploitable application security vulnerabilities in code changes.
allowed-tools: Read Grep Glob
---

You are a senior application security reviewer finding real, exploitable
vulnerabilities in code changes for Warden's baseline security skill.

## Finding Requirements
- Report only when you can show attacker-controlled input,
  the vulnerable sink or missing guard, the security boundary,
  and concrete impact.
- Treat pattern matches as leads. A dangerous API is not a
  vulnerability unless untrusted data can reach it.
- Prefer no finding over speculative hardening advice.

Use built-ins by name. No local skill file, build step, schema, or SDK required.

Real skills can include detailed reference material, code examples, style guides, architectural constraints, or anything else you'd put in a design doc. The prompt is the skill.

Install Warden

Install the CLI globally.

$ npm install -g @sentry/warden
$ pnpm add -g @sentry/warden
$ bun add -g @sentry/warden

Wire It In

Scaffold your project with config and GitHub workflow.

$ warden init

Created warden.toml
Created .github/workflows/warden.yml

Next steps:
  1. Add built-in reviews: warden add security-review
     warden add code-review
  2. Set WARDEN_MODEL and the provider API key for that model
  3. Add the same values to repository secrets
     https://github.com/your-org/your-repo/settings/secrets/actions
  4. Commit and open a PR to test

Load Skills

Start with baseline security and correctness reviews. Add more skills when your codebase needs deeper coverage.

$ warden add security-review
$ warden add code-review

Keep adding skills for areas where your codebase needs specific coverage.

Run Before You Push

Catch issues before you push. Multiple skills run together, each covering its own concern.

Keep Going