Index of every page on this site: llms.txt
All skills
getsentry avatar

/warden

@2998ac7
by Sentrygetsentry/mobilebuildmcp6.6k stars
329
Run it yourself

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.

Use this Skill: https://skilld.dev/gh/getsentry/mobilebuildmcp/warden

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesconfiguration.md

≈695 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Configuration (warden.toml)

See config-schema.md for the complete schema reference.

Minimal Example

The name field references a skill you've created (via warden add) or defined in .agents/skills/<name>/SKILL.md. Use that same name everywhere — in config, CLI flags, and triggers.

version = 1

[defaults]
model = "claude-sonnet-4-20250514"

[[skills]]
name = "my-skill"           # matches .agents/skills/my-skill/SKILL.md
paths = ["src/**/*.ts"]

[[skills.triggers]]
type = "pull_request"
actions = ["opened", "synchronize"]

Skill Configuration

Skills define what to analyze and when. Each skill requires a name. Triggers are optional — skills with no triggers run everywhere (PR, local, schedule). All skills run locally regardless of trigger type.

[[skills]]
name = "my-skill"
paths = ["src/auth/**", "src/payments/**"]
failOn = "high"
reportOn = "medium"
maxFindings = 20

[[skills.triggers]]
type = "pull_request"
actions = ["opened", "synchronize"]

Trigger types: pull_request, local (local-only), schedule (CI-only)

Actions (pull_request): opened, synchronize, reopened, closed

Common Patterns

Strict checks on critical files:

[[skills]]
name = "my-skill"
model = "claude-opus-4-20250514"
maxTurns = 100
paths = ["src/auth/**", "src/payments/**"]
failOn = "high"

[[skills.triggers]]
type = "pull_request"
actions = ["opened", "synchronize"]

Skip test files:

[[skills]]
name = "my-skill"
paths = ["src/**/*.ts"]
ignorePaths = ["**/*.test.ts", "**/*.spec.ts"]

Whole-file analysis for configs:

[defaults.chunking.filePatterns]
pattern = "*.config.*"
mode = "whole-file"

Model Precedence

From highest to lowest priority:

  1. Skill-level model
  2. [defaults] model
  3. CLI --model flag
  4. WARDEN_MODEL env var
  5. SDK default

Environment Variables

Variable Purpose
WARDEN_ANTHROPIC_API_KEY Claude API key (required unless using Claude Code subscription)
WARDEN_MODEL Default model (lowest priority)
WARDEN_STATE_DIR Override cache location (default: ~/.local/warden)
WARDEN_SKILL_CACHE_TTL Cache TTL in seconds for unpinned remotes (default: 86400)

Troubleshooting

No findings reported:

  • Check --report-on threshold (default shows all)
  • Verify skill matches file types in paths
  • Use -v to see which files are being analyzed

Files being skipped:

  • Built-in skip patterns: lock files, minified, node_modules/, dist/
  • Check ignorePaths in config
  • Use -vv to see skip reasons

Token/cost issues:

  • Reduce maxTurns (default: 50)
  • Use chunking settings to control chunk size
  • Filter to relevant files with paths

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The skill provides a code analysis tool that can fetch extension 'skills' from external GitHub repositories and analyzes code changes in pull requests, creating a surface for indirect prompt injection from malicious project files.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: MEDIUM · 1 issue

Signed by skilld at 2998ac7. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Activeupdated 7 months ago

README badge

README badge for getsentry/mobilebuildmcp/warden