Overview
Thewarden init command sets up Warden in your repository by creating:
warden.toml- Configuration file with example skills.github/workflows/warden.yml- GitHub Actions workflow.agents/skills/- Directory for custom skills (optional)
Usage
Interactive Setup
The init command runs interactively by default:Generated Files
warden.toml
A basic configuration file is created:warden.toml
.github/workflows/warden.yml
A GitHub Actions workflow is created:.github/workflows/warden.yml
- Runs on all PR events
- Requires
ANTHROPIC_API_KEYsecret - Posts findings as PR comments
.agents/skills/
An empty directory for custom skills:Options
—force
Overwrite existing files:—skip-workflow
Skip creating the GitHub Actions workflow:—skip-skills-dir
Skip creating the.agents/skills/ directory:
Next Steps
Add API key to GitHub Secrets
Go to your repository Settings → Secrets and variables → Actions and add
ANTHROPIC_API_KEY.Examples
Initialize with custom config
Create a minimal config:warden.toml
Initialize in monorepo
For monorepos, initialize at the root:warden.toml
Initialize without GitHub integration
Skip workflow creation:.gitlab-ci.yml
Troubleshooting
init fails with 'warden.toml already exists'
init fails with 'warden.toml already exists'
Use Or manually remove the file:
--force to overwrite:Workflow not running on PRs
Workflow not running on PRs
Verify:
.github/workflows/warden.ymlexists- Workflow is enabled in Actions tab
ANTHROPIC_API_KEYsecret is set- Workflow has required permissions
Want to add more skills after init
Want to add more skills after init
Use Or edit
warden add to add skills:warden.toml manually.Related
Configuration
Complete warden.toml reference
Add skills
Add more skills after init
GitHub Action setup
Advanced workflow configuration
Creating skills
Write custom skills