Trigger Types
Warden supports three trigger types:pull_request- GitHub pull request eventslocal- Local CLI execution onlyschedule- Scheduled runs (GitHub Actions cron)
Wildcard skills: Skills without triggers run everywhere (PR, local, and schedule contexts). Add explicit triggers to restrict when a skill runs.
Pull Request Triggers
Run skills on GitHub pull request events.Must be
"pull_request" for PR triggers.Pull request actions that trigger the skill.Valid actions:
"opened"- PR is created"synchronize"- New commits pushed to PR"reopened"- Closed PR is reopened"closed"- PR is closed
Examples
Run on PR creation and updates:Local Triggers
Restrict a skill to local CLI execution. The skill will not run in GitHub Actions.Must be
"local" for CLI-only triggers.Local-only skills are useful for:
- Experimental checks you’re testing
- Heavy analysis that’s too slow for CI
- Interactive workflows requiring human review
Schedule Triggers
Run skills on a cron schedule in GitHub Actions. Requires GitHub Actions workflow configuration.Must be
"schedule" for scheduled triggers.Title for the tracking issue created for this scheduled run.Default:
"Warden: {skillName}"Automatically create a pull request with fixes when
suggestedFix is available.Default: falseBranch name prefix for fix PRs.Default:
"warden-fix"Schedule Examples
Basic scheduled scan:.github/workflows/warden-schedule.yml
Multiple Triggers
Skills can have multiple triggers to run in different contexts with different settings.Per-Trigger Overrides
Triggers can override skill-level and default-level settings.Override
failOn threshold for this trigger.Override
reportOn threshold for this trigger.Override
maxFindings limit for this trigger.Override
reportOnSuccess for this trigger.Override
requestChanges for this trigger.Override
failCheck for this trigger.Override model selection for this trigger (highest precedence).
Override
maxTurns for this trigger.Override
minConfidence threshold for this trigger.Override Precedence
Settings are resolved in this order (highest to lowest):- Trigger-level (in
[[skills.triggers]]) - Skill-level (in
[[skills]]) - Defaults (in
[defaults]) - Built-in defaults
Common Patterns
PR and Schedule with Different Thresholds
Strict checking on PRs, comprehensive scheduled scans:Different Models per Context
Fast model for PRs, powerful model for scheduled analysis:Local Experimentation
Test skills locally before enabling in CI:Wildcard Skill
Run everywhere with no restrictions:Trigger Matching
Warden uses trigger configuration to determine which skills to run:Pull Request Context
When running on a PR (GitHub Actions orwarden pr <number>):
- Skills with
type = "pull_request"triggers matching the PR action - Wildcard skills (no triggers)
Local Context
When running via CLI (warden, warden run):
- Skills with
type = "local"triggers - Wildcard skills (no triggers)
Schedule Context
When triggered by GitHub Actions schedule:- Skills with
type = "schedule"triggers - Wildcard skills (no triggers)
Use
warden run <skill-name> to explicitly run a specific skill, ignoring trigger configuration.Validation
Next Steps
Skill Configuration
Configure skill behavior and paths
Severity Thresholds
Control when builds fail
GitHub Actions Setup
Configure CI/CD integration
CLI Reference
Command-line usage