一键导入
process-issues
Process GitHub Issues - fetch open issues, read comments, analyze suggestions, find similar, create Beads tasks, propose fix plan
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Process GitHub Issues - fetch open issues, read comments, analyze suggestions, find similar, create Beads tasks, propose fix plan
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Analyzes code changes for bugs, security vulnerabilities, performance problems, and architectural improvements. Generates structured markdown reports with evidence-based findings tied to specific file:line references, and creates Beads tasks for tracking. Adapts review depth based on scope — from quick pre-commit checks to thorough branch reviews. Use proactively when reviewing code before commits, after implementing features, before PRs, when checking code quality, or when the user mentions "review", "check changes", "code review", "PR review", "review branch", or any code quality assessment.
Inline orchestration workflow for dead code detection and removal with Beads integration. Provides step-by-step phases for dead-code-hunter detection, priority-based cleanup with dead-code-remover, and verification cycles.
Inline orchestration workflow for dependency audit and updates with Beads integration. Provides step-by-step phases for dependency-auditor detection, priority-based updates with dependency-updater, and verification cycles.
Inline orchestration workflow for automated bug detection and fixing with Beads integration. Provides step-by-step phases for bug-hunter detection, history enrichment for priority bugs, priority-based fixing with bug-fixer, and verification cycles.
Process error logs from admin panel - fetch new errors, analyze, create tasks, fix, and mark resolved
Inline orchestration workflow for code duplication detection and consolidation with Beads integration. Provides step-by-step phases for reuse-hunter detection, priority-based consolidation with reuse-fixer, and verification cycles.
| name | process-issues |
| description | Process GitHub Issues - fetch open issues, read comments, analyze suggestions, find similar, create Beads tasks, propose fix plan |
| version | 1.1.0 |
Automated workflow for processing GitHub Issues from repository.
YOU MUST FOLLOW THESE RULES. NO EXCEPTIONS.
EVERY issue MUST have a Beads task before fixing. No direct fixes without tracking.
# ALWAYS run this FIRST for each issue:
bd create --type=<bug|task|feature> --priority=<1-3> --title="<issue_title>" --external-ref="gh-<number>"
bd update <task_id> --status=in_progress
ALWAYS read comments to issues — they contain valuable insights:
# View issue with all comments
gh issue view <number> --comments
# Or via API for structured data
gh api repos/{owner}/{repo}/issues/<number>/comments --jq '.[].body'
What to analyze in comments:
Decision making for suggestions:
| Suggestion Type | Action |
|---|---|
| Clear fix with code | Verify correctness, adopt if valid |
| Architecture proposal | Evaluate complexity, discuss with user if major |
| Workaround | Note it, but look for proper fix |
| Conflicting advice | Analyze trade-offs, choose best approach |
| Outdated advice | Check if still relevant to current codebase |
Include in analysis:
### Comments Analysis
- **Useful suggestions**: <list helpful comments>
- **Decision**: Adopt / Modify / Reject with reason
Before fixing ANY issue, search BOTH sources:
# Search by keywords from issue title/body
bd search "<keyword>" --type=bug --status=closed
bd search "<keyword>" --type=task --status=closed
# Example searches:
bd search "silent failure"
bd search "Stage 6"
bd search "regeneration"
What to look for in Beads:
# Search closed issues
gh issue list --state closed --search "<keyword>"
# View specific closed issue for context
gh issue view <number>
Similar to mc2-xxx / gh-NN. Same fix applied.ALWAYS query documentation before implementing:
mcp__context7__resolve-library-id → mcp__context7__query-docs
When to use:
Route tasks by complexity:
| Complexity | Examples | Action |
|---|---|---|
| Simple | Typo fix, single import, config value | Execute directly |
| Medium | Multi-file fix, migration, API change | Delegate to subagent |
| Complex | Architecture change, new feature | Ask user first |
Subagent selection for MEDIUM tasks:
| Domain | Subagent | When |
|---|---|---|
| DB/migrations | database-architect | Schema changes, RLS |
| UI components | nextjs-ui-designer | New pages, components |
| Backend services | fullstack-nextjs-specialist | APIs, workers |
| Types | typescript-types-specialist | Complex types, generics |
| Pipeline stages | stage-pipeline-specialist | Stages 1-7 |
| GitHub Label | Priority | Description |
|---|---|---|
bug | P1-P2 | Bug fix (severity determines) |
enhancement | P2-P3 | Feature improvement |
UX | P2 | User experience issue |
A11Y | P3 | Accessibility |
feature | P3 | New feature request |
This is PRODUCTION. Every bug matters.
Fix fundamentally, not superficially:
Quality over speed:
Invoke via: /process-issues or "обработай GitHub issues"
Optional arguments:
/process-issues --label=bug — only bug issues/process-issues --limit=5 — process max 5 issues/process-issues 123 — process specific issue #123# Get all open issues sorted by priority
gh issue list --state open --json number,title,labels,body,createdAt --limit 50
# Or filter by label
gh issue list --state open --label bug --json number,title,labels,body
For each open issue:
Read issue details:
gh issue view <number>
Read and analyze comments (MANDATORY):
# View issue with all comments
gh issue view <number> --comments
# Or get comments via API for parsing
gh api repos/{owner}/{repo}/issues/<number>/comments
Analyze each comment for:
Make decision: Adopt useful suggestions, note rejected ones with reason.
Extract key information:
Search for similar resolved issues (MANDATORY):
# In Beads
bd search "<keyword from issue>"
# In GitHub
gh issue list --state closed --search "<keyword>"
For each issue, generate:
## Issue #NN: <title>
### Type & Priority
- Type: bug | feature | enhancement | UX
- Priority: P0 (blocker) | P1 (critical) | P2 (important) | P3 (nice-to-have)
### Comments Analysis
- **Total comments**: N
- **Useful suggestions**:
- @user1: "Suggested fix X" → **Adopt** (valid approach)
- @user2: "Try workaround Y" → **Note** (temporary, need proper fix)
- @user3: "Related to #MM" → **Investigate** (check linked issue)
- **Rejected suggestions**:
- @user4: "Do Z" → **Reject** (outdated, doesn't match current architecture)
### Similar Issues Found
- Beads: mc2-xxx (similar problem with X, fixed by Y)
- GitHub: #NN (same root cause, fix in commit abc123)
### Root Cause Analysis
<Why this happens>
### Proposed Solution
1. <Step 1>
2. <Step 2>
### Files to Modify
- `path/to/file1.ts` — description
- `path/to/file2.tsx` — description
### Subagent Assignment
- Subagent: <name> | Execute directly
- Complexity: Simple | Medium | Complex
### Context7 Queries Needed
- [ ] Next.js: <topic>
- [ ] Supabase: <topic>
For each issue:
# Create task with external reference
bd create "<issue_title>" -t <bug|task|feature> -p <1-3> \
--external-ref="gh-<number>" \
-d "<root_cause_and_solution>"
# Save the task ID for tracking
Task description template:
GitHub Issue: #<number>
Root Cause: <why this happens>
Solution: <what needs to be done>
Files: <list of files>
Similar to: mc2-xxx / gh-NN (if found)
Present to user:
## GitHub Issues Processing Plan
### Summary
| # | Issue | Type | Priority | Similar Found | Subagent |
| --- | ----- | ---- | -------- | ------------- | ------------------ |
| 1 | #NN | bug | P1 | mc2-xxx | database-architect |
| 2 | #MM | UX | P2 | — | nextjs-ui-designer |
### Beads Tasks Created
- mc2-aaa: Issue #NN (P1)
- mc2-bbb: Issue #MM (P2)
### Execution Order (by priority)
1. **P0-P1 (Critical)**: #NN, #MM
2. **P2 (Important)**: #XX
3. **P3 (Nice-to-have)**: #YY
### Questions for User
- Issue #ZZ: Need clarification on <topic>
- Issue #WW: Complex change, approve approach?
### Ready to Execute?
- [ ] Approve plan
- [ ] Modify priorities
- [ ] Skip certain issues
For each issue in priority order:
Claim Beads task:
bd update <task_id> --status=in_progress
Query Context7 (if needed):
mcp__context7__resolve-library-id → mcp__context7__query-docs
Delegate or Execute:
Verify:
pnpm type-check
pnpm build
Close GitHub Issue:
gh issue close <number> --comment "Fixed in commit <sha>
**Solution:**
<description of fix>
Beads task: <task_id>"
Close Beads Task:
bd close <task_id> --reason="Fixed: <description>"
## Issues Processing Complete
### Results
| Issue | Status | Beads Task | Commit |
| ----- | -------- | ---------- | ------ |
| #NN | Fixed | mc2-aaa | abc123 |
| #MM | Fixed | mc2-bbb | def456 |
| #XX | Deferred | mc2-ccc | — |
### Deferred Issues (need user input)
- #XX: <reason>
### Commits Made
- `abc123`: fix: <description>
- `def456`: feat: <description>
### Validation
- Type Check: PASS
- Build: PASS
| Pattern in Issue | Category | Subagent | Priority |
|---|---|---|---|
silent failure | Bug | Same domain subagent | P1 |
not displayed | UI Bug | nextjs-ui-designer | P2 |
not editable | UI Bug | nextjs-ui-designer | P2 |
focus, scroll | UX | nextjs-ui-designer | P2 |
keyboard, a11y | Accessibility | nextjs-ui-designer | P3 |
Stage N | Pipeline | stage-pipeline-specialist | P2 |
database, migration | DB | database-architect | P2 |
tRPC, API | Backend | fullstack-nextjs-specialist | P2 |
type error | Types | typescript-types-specialist | P2 |
Before marking ANY issue as fixed:
pnpm type-check passespnpm build passes (or known pre-existing failures)# Fetch issues
gh issue list --state open --json number,title,labels,body
# View specific issue
gh issue view 123
# View issue with comments (IMPORTANT!)
gh issue view 123 --comments
# Get comments via API (structured)
gh api repos/{owner}/{repo}/issues/123/comments
# Get comments as JSON for parsing
gh api repos/{owner}/{repo}/issues/123/comments --jq '.[] | {author: .user.login, body: .body}'
# Search closed issues
gh issue list --state closed --search "keyword"
# Close issue with comment
gh issue close 123 --comment "Fixed in commit abc123"
# Add comment to issue
gh issue comment 123 --body "Analysis: ..."
# Create Beads task
bd create "Issue title" -t bug -p 1 --external-ref="gh-123"
# Search Beads
bd search "keyword"
# Close Beads task
bd close mc2-xxx --reason="Fixed"
.claude/docs/beads-quickstart.md.claude/skills/process-logs/SKILL.md (similar workflow)