warden
Original:🇺🇸 English
Translated
Run Warden to analyze code changes before committing. Use when asked to "run warden", "check my changes", "review before commit", "warden config", "warden.toml", "create a warden skill", "add trigger", or any Warden-related local development task.
1installs
Sourcegetsentry/warden
Added on
NPX Install
npx skill4agent add getsentry/warden wardenTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Run Warden to analyze code changes before committing.
References
Read the relevant reference when the task requires deeper detail:
| Document | Read When |
|---|---|
| Full option details, per-command flags, examples |
| Editing warden.toml, triggers, patterns, troubleshooting |
| Exact field names, types, and defaults |
| Writing custom skills, remote skills, skill discovery |
Running Warden
bash
# Analyze uncommitted changes (uses warden.toml triggers)
warden
# Run a specific skill
warden --skill find-bugs
# 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 highSet or log in via before running.
WARDEN_ANTHROPIC_API_KEYclaude loginPre-Commit Workflow
After making code changes and before committing:
- Run to analyze uncommitted changes
warden - Review the findings
- Fix issues Warden reports (or use to auto-apply)
warden --fix - Commit the changes
Run Warden once to validate work. Do not loop re-running Warden on the same changes.
Reading Output
Severity levels:
- - Must fix before merge
critical - - Should fix before merge
high - - Worth reviewing
medium - - Minor improvement
low - - Informational only
info
Exit codes: = no findings at or above fail threshold. = findings at or above fail threshold.
01Verbosity: shows real-time findings. shows debug info (tokens, latency). shows errors and summary only.
-v-vv-qCommands
| Command | Description |
|---|---|
| Run analysis (default) |
| Initialize warden.toml and GitHub workflow |
| Add skill trigger to warden.toml |
| Update cached remote skills |
| Create GitHub App via manifest flow |
For full options and flags, read .
${CLAUDE_SKILL_ROOT}/references/cli-reference.md