mcpField
W
warden

warden

github.com/getsentryTesting & quality418322 installsUpdated today
Repository

About warden

warden is a CLI skill for analyzing code changes before committing. It supports trigger-based analysis, selected files or skills, and optional automatic fixes; findings are reported by severity.

Key features

  1. 01Analyze uncommitted changes
  2. 02Run analysis on selected files
  3. 03Run a specific skill
  4. 04Auto-apply fixes with --fix
  5. 05Initialize and manage skill triggers

Use cases

  1. 01Check changes before a commit
  2. 02Inspect selected source files
  3. 03Apply reported fixes automatically
  4. 04Set up Warden configuration and workflow

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/getsentry/warden --skill warden

After installing, type/wardenin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

SOURCES.md
SPEC.md
references/
cli-reference.md
config-schema.md
configuration.md
creating-skills.md

Details

From the project README

Run Warden to analyze code changes before committing.

References

Read the relevant reference when the task requires deeper detail:

DocumentRead When
<skill-root>/references/cli-reference.mdFull option details, per-command flags, examples
<skill-root>/references/configuration.mdEditing warden.toml, triggers, patterns, troubleshooting
<skill-root>/references/config-schema.mdExact field names, types, and defaults
<skill-root>/references/creating-skills.mdWriting custom skills, remote skills, skill discovery

Running Warden

# Analyze uncommitted changes (uses warden.toml triggers)
warden

# Run a specific skill
warden --skill <skill-name>

# Analyze specific files
warden src/auth.ts src/database.ts

# Analyze changes from a git ref
warden main..HEAD
warden HEAD~3

# Auto-apply suggested fixes
warden --fix

# Fail on high-severity findings
warden --fail-on high

Set WARDEN_MODEL and the WARDEN-prefixed provider API key for that model before running.

Pre-Commit Workflow

After making code changes and before committing:

  1. Run warden to analyze uncommitted changes
  2. Review the findings
  3. Fix issues Warden reports (or use warden --fix to auto-apply)
  4. Commit the changes

Run Warden once to validate work. Do not loop re-running Warden on the same changes.

Reading Output

Severity levels:

  • high - Must fix before merge
  • medium - Worth reviewing
  • low - Minor improvement

Exit codes: 0 = no findings at or above fail threshold. 1 = findings at or above fail threshold.

Verbosity: -v shows real-time findings. -vv shows debug info (tokens, latency). -q shows errors and summary only.

Commands

CommandDescription
wardenRun analysis (default)
warden initInitialize warden.toml and GitHub workflow
warden add [skill]Add skill trigger to warden.toml
warden sync [remote]Update cached remote skills
warden setup-appCreate GitHub App via manifest flow

For full options and flags, read <skill-root>/references/cli-reference.md.

Comments

Markdown supported