diff --git a/docs/src/layouts/Base.astro b/docs/src/layouts/Base.astro index c322cbc..553b29f 100644 --- a/docs/src/layouts/Base.astro +++ b/docs/src/layouts/Base.astro @@ -31,7 +31,7 @@ const pageTitle = title === 'Home' ? 'Warden' : `${title} | Warden`;
Warden provides a command-line interface for running code analysis locally and managing your configuration.
Run code analysis on the specified target. If no target is given, analyzes uncommitted changes.
target
Initialize Warden in your project. Creates a configuration file and GitHub workflow.
$ warden init + +Created warden.toml +Created .github/workflows/warden.yml + +Next steps: + 1. Add a skill: warden add <skill-name> + 2. Set WARDEN_ANTHROPIC_API_KEY in .env.local + 3. Add WARDEN_ANTHROPIC_API_KEY to repository secrets + 4. Commit and open a PR to test
Add a skill trigger to your configuration. The skill must already be installed.
skill-name
$ warden add security-review + +Added trigger for security-review to warden.toml
Create a GitHub App for Warden. This gives you a custom bot identity instead of the generic "github-actions" user.
--org <name>
--skill <name>
--fix
--json
--fail-on <level>
critical
high
medium
low
--config <path>
warden.toml
--verbose
--help
--version
Warden accepts different types of targets for analysis:
Specify paths directly to analyze specific files or directories.
Use git refs to analyze changes between commits.
WARDEN_ANTHROPIC_API_KEY
You can set this in a .env.local file in your project root for local development.
.env.local
Run before committing to catch issues early.
Use in CI scripts with JSON output and exit codes.
results.json + +# Review the output +cat results.json | jq '.findings[] | select(.severity == "high")'`} + lang="bash" + theme="vitesse-black" + /> +
Analyze all changes in a feature branch.
Create custom reviewers in .warden/skills/
.warden/skills/
Commands, options, and usage examples
Define custom skills in .warden/skills/. See the skills documentation for details.
Define custom skills in .warden/skills/.
Skills are agents that analyze your pull requests. Each skill has a specific purpose, a prompt that guides the analysis, and restrictions on what tools it can use.
Scans code changes for security vulnerabilities. This skill analyzes diffs for common security issues and reports findings with severity levels.
info
Identifies opportunities to reduce code complexity. This skill analyzes diffs for patterns that could be simplified, refactored, or made more readable.
Define your own skills in .warden/skills/ as TOML files.
name
description
prompt
tools.allowed
tools.denied
Skills can use Claude Code's built-in tools:
Read
Grep
Glob
WebFetch
Write
Edit
Bash
Reference your custom skill by name in triggers:
Skills return findings in a structured format. Each finding includes:
Warden translates these findings into GitHub PR reviews with inline comments on the relevant lines.