Table of contents
- Install CI/CD Skills
- Create Monitoring Prompts
- Set Up Alerts
- Schedule Checks
- Example Configurations
- Next Steps
- FAQ
Install CI/CD Skills
GitHub
openclaw skills install github
Authorize GitHub access with necessary scopes (repo, admin:repo_hook, read:org).
GitLab
openclaw skills install gitlab
Configure GitLab personal access token with api and read_api scopes.
Create Monitoring Prompts
Create ~/.openclaw/workspace/prompts/ci-status.md:
# CI/CD Status Check
Check all running workflows:
- List failed workflows in last 24 hours
- Identify workflows running >30 minutes
- Check deployment status for production
Report any issues and suggest fixes.
Set Up Alerts
Create ~/.openclaw/workspace/prompts/ci-alerts.md:
# CI/CD Alert Rules
Alert immediately if:
- Any workflow fails
- Production deployment fails
- Test success rate drops below 80%
- Workflow runs >60 minutes
Send alerts to Slack and Telegram with details.
Schedule Checks
Add to ~/.openclaw/openclaw.json:
{
"automation": {
"cron": {
"ci-monitor": {
"schedule": "*/5 * * * *",
"prompt": "file:prompts/ci-alerts.md",
"target": ["slack", "telegram"]
},
"ci-daily": {
"schedule": "0 9 * * *",
"prompt": "file:prompts/ci-status.md",
"target": "slack"
}
}
}
}
Example Configurations
GitHub Actions Monitor
gh run list --status=failure --limit=10
GitLab Pipeline Monitor
gitlab pipeline list --status=failed
Deployment Tracker
Check if latest commit is deployed to production
Compare HEAD SHA between main and production
Alert if production is behind main >3 commits
Next Steps
FAQ
Q: Can OpenClaw restart failed jobs?
A: Yes, but enable approvals. Use with caution on production pipelines.
Q: How do I monitor multiple repositories?
A: Create separate prompts or use a wildcard pattern to monitor all repos.
Q: What about Jenkins?
A: Use the exec tool with Jenkins CLI or API calls.
Q: Can it merge PRs automatically?
A: Not recommended. Use for notifications and analysis only.