repo-guardian
Automated GitHub PR review governance and repository maintenance automation. Use when reviewing pull requests with dual-model consensus, enforcing merge gates, auto-merging approved PRs, and triaging repo state on a cron schedule. Not for implementing issue fixes end-to-end (use gh-issues) or general GitHub CLI operations (use the github skill). Designed for your-org/your-repo repo but works on any GitHub repository.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bloodandeath/repo-guardianWhat This Skill Does
Repo Guardian is an automated governance and maintenance layer for GitHub repositories. Designed to ensure high code quality and repository health, it acts as a gatekeeper for your pull requests and a concierge for your issue tracker. By employing a dual-model consensus mechanism—where two distinct AI models evaluate every pull request independently—the skill eliminates bias and captures edge cases that single-model reviews might miss. It orchestrates the entire PR lifecycle: if both models reach a consensus on approval, the skill auto-merges the PR; if changes are required or critical vulnerabilities are detected, it posts detailed feedback and appropriate labels to the thread.
Beyond PRs, Repo Guardian performs intelligent issue triage. It assesses the complexity of incoming issues to determine if they are actionable for the gh-issues pipeline or require manual human intervention. This creates a friction-less developer experience where minor bugs and feature requests are addressed or labeled without human oversight, while complex problems are correctly prioritized.
Installation
To integrate Repo Guardian into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/bloodandeath/repo-guardian
Once installed, you can configure recurring repository maintenance via cron by adding an entry to your ~/.openclaw/cron/jobs.json file. This allows the guardian to check your repositories every six hours or on your custom schedule.
Use Cases
- Automated PR Governance: Automatically validate PR quality without manual intervention by running the dual-model review process.
- Repository Maintenance: Keep your issue board clean by automatically triaging and labeling new tickets based on complexity and scope.
- CI/CD Quality Gates: Enforce a zero-trust policy where all code changes must pass automated architecture, security, and quality analysis before entering the main codebase.
- Consistency Enforcement: Ensure that code styles and best practices are applied across multiple repositories consistently by leveraging the same dual-model prompts.
Example Prompts
- "Run the repo-guardian for my-org/web-frontend to clear out the current backlog and review pending PRs."
- "Check the status of the repository governance and perform a full triage on all open issues in the backend-service repo."
- "Configure a cron job to trigger the repo-guardian every 12 hours for the core-library repository."
Tips & Limitations
- Scope Boundaries: Always remember that Repo Guardian is for reviewing and triaging. If you need to actually write code or implement a fix, hand off the task to the
gh-issuesskill. Attempting to use this skill for code authorship will result in errors. - Dual-Model Fallback: The skill uses Opus and GPT-5.4 by default. If you encounter errors, ensure your API tokens for these specific models are active and authenticated in your OpenClaw settings.
- Human-in-the-loop: Always review the labels applied by the agent. If an issue is labeled 'needs-human', it means the agent identified high complexity that potentially involves breaking changes or sensitive infrastructure updates.
- Configuration: Use the provided bash scripts for manual overrides if a specific PR requires an immediate, one-off review outside of the scheduled cron cycle.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-bloodandeath-repo-guardian": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: external-api, code-execution
Related Skills
design-engineering
Orchestrate iterative design and frontend engineering work through research, planning, sub-agent execution, and validation loops. Use when a visual/UI task requires multiple iterations, when the first implementation needs refinement based on feedback, when choosing between competing technical approaches (Canvas vs SVG vs CSS), or when coordinating sub-agents on design-heavy work. Covers animation architecture decisions, progressive enhancement patterns, performance-aware rendering choices, and the research→plan→execute→validate workflow. Complements frontend-design (which handles aesthetics) by adding engineering discipline, iteration management, and technical decision-making.
agent-cost-monitor
Real-time token usage and cost tracking across all your OpenClaw agents — alerts, budgets, and optimization tips
web-monitor
Monitor web pages for content changes and get alerts. Track URLs, detect updates, view diffs. Use when asked to watch a website, track changes on a page, monitor for new posts/content, set up page change alerts, or check if a site has been updated. Supports CSS selectors for targeted monitoring.
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
code-reviewer
Conduct rigorous, adversarial code reviews with zero tolerance for mediocrity. Default behavior is a single-model adversarial review that identifies security holes, lazy patterns, edge case failures, and bad practices across Python, R, JavaScript/TypeScript, SQL, and front-end code. Supports an optional `--dual` mode for heavier cross-model iterative review when deeper scrutiny is worth the added cost and latency. Use when users ask to "critically review my code", "critically review" code or a PR, "critique my code", "find issues in my code", "find issues" in code, ask "what's wrong with this code", ask to "review this code", "critique my PR", say "double review this", or request a "cross-model review". Scrutinizes error handling, type safety, performance, accessibility, and code quality. Provides structured feedback with severity tiers (Blocking, Required Changes, Suggestions, Noted) and specific, actionable recommendations.