No slash command · from statsclaw
Automates scanning, triaging, and fixing open GitHub issues. Fetches issues, classifies them, prioritizes by severity, runs a fix loop to create branches and PRs, and posts replies.
Ships in statsclaw. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill enables StatsClaw to automatically scan open GitHub issues in a target repository, triage them, fix bugs, push fixes, and reply to issues — all from a simple user prompt.
Any of the following user intents activate this skill. Exact wording is NOT required — leader routes semantically:
A short prompt like "patrol fect issues on cfe" is sufficient.
gh issue list| Parameter | Required | Default | Description |
|---|---|---|---|
repo | Yes | — | GitHub repository (e.g., xuyiqing/fect) |
base_branch | No | main | Branch to create fix branches from |
branch_prefix | No | claude/fix | Prefix for fix branch names |
labels | No | all open issues | Filter issues by label (e.g., bug) |
max_issues | No | 10 | Maximum issues to process per patrol run |
auto_push | No | true | Automatically push fix branches |
auto_reply | No | true | Automatically post comments on issues |
auto_pr | No | true | Automatically create pull requests |
loop_interval | No | 0 (one-shot) | Minutes between patrol runs (0 = run once) |
Leader extracts these from the user's natural language prompt. Missing parameters use defaults.
When this skill is activated, leader follows this sequence:
.repos/workspace/<repo-name>/runs/PATROL-<timestamp>/request.md with patrol parametersgh issue list --repo <owner/repo> --state open --limit <max_issues> --json number,title,body,labels,createdAt
patrol-triage.md to the run directory with the classification tableFor each actionable issue (in priority order):
.repos/workspace/<repo-name>/runs/PATROL-<timestamp>/issue-<number>/request.md scoped to this specific issueimpact.md based on the issue description and codebase explorationspec.md and test-spec.md for the issuespec.md; after builder completes, tester is dispatched with test-spec.md<branch_prefix>-issue-<number>-<short-desc> from <base_branch>), push, create PR, and comment on the issueWrite patrol-report.md summarizing:
If loop_interval > 0, repeat from Phase 2. Use the /loop skill via the Skill tool — do NOT implement polling with sleep.
<branch_prefix>-issue-<number>-<short-description>
Examples:
claude/fix-issue-42-null-pointerclaude/fix-issue-17-test-timeoutShort description is derived from the issue title, lowercased, spaces replaced with hyphens, max 30 chars.
When shipper posts a comment on the issue, use this template:
## Automated Fix Available
A fix for this issue has been pushed to branch `<branch-name>` and a pull request has been opened: #<pr-number>
### Summary of Changes
<brief description of what was changed and why>
### Validation
- R CMD check: PASS (0 errors, 0 warnings, N notes)
- Tests: all passing
- Review: approved by automated review
Please review the PR and let us know if the fix addresses your concern.
---
*This comment was generated by [StatsClaw](https://github.com/xuyiqing/StatsClaw) automated issue patrol.*
All of these should trigger the same workflow:
"patrol fect issues on cfe"
"check open issues in xuyiqing/fect, fix bugs, push to cfe branch"
"monitor fect issues and auto-fix them"
"check fect issues and fix them on cfe branch"
"auto-fix fect issues"
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
github-issues, automated-fix, issue-triage, bug-fixing, ci-cd
npx claudepluginhub statsclaw/statsclaw --plugin statsclaw15 skills in this plugin
/credential-setupOther plugins' skills for the same job