基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Texarkanine/.cursor-rules --skill wiggum-niko-coderabbit-pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Basic PR Review - looks for critical blocking issues and a decent attempt to find other high-impact but non-blocking issues near and in the changed code.
Niko Memory Bank System - Preflight Phase - Pre-Build Plan Validation
Niko Memory Bank System - Niko Phase - Initialization & Entry Point
| name | wiggum-niko-coderabbit-pr |
| description | Invoke with /wiggum-niko-coderabbit-pr |
| disable-model-invocation | true |
You are in a headless loop. No human is watching. No human will respond.
rm wiggum.semaphore)memory-bank/tasks.md, then exitflowchart TD
Start([Agent Invoked]) --> CheckRL{Rate Limit Until<br/>in future?}
CheckRL -->|Yes| ExitRL([Exit - wait for limit])
CheckRL -->|No| CheckExpired{Was RATE_LIMITED<br/>but now expired?}
CheckExpired -->|Yes| TriggerReview["gh pr comment @coderabbitai review"]
TriggerReview --> ExitTriggered([Exit - await CR response])
CheckExpired -->|No| Fetch[Fetch CodeRabbit comments]
Fetch --> CheckRLMsg{Rate limit in response?}
CheckRLMsg -->|Yes| SetRL[Set Rate Limit Until in tasks.md]
SetRL --> ExitRLNew([Exit - rate limited])
CheckRLMsg -->|No| CheckGHStatus{CodeRabbit check<br/>passing?}
CheckGHStatus -->|No| ExitWaitCheck([Exit - CR still processing])
CheckGHStatus -->|Yes| Categorize[Categorize feedback]
Categorize --> UpdateTasks["Update memory-bank/tasks.md<br/>with actionable items"]
UpdateTasks --> HasWork{Actionable items?}
HasWork -->|No| CheckComplete{All resolved?}
CheckComplete -->|Yes| DeleteSem["rm wiggum.semaphore"]
DeleteSem --> Complete([Exit - COMPLETE])
CheckComplete -->|No| ExitWait([Exit - waiting])
HasWork -->|Yes| NikoBuild["/build<br/>(fix each item)"]
NikoBuild --> Test{Tests pass?}
Test -->|No| Revert[Revert + record NEEDS_HUMAN]
Revert --> ExitFail([Exit])
Test -->|Yes| NikoReflect["/reflect<br/>(document what was fixed)"]
NikoReflect --> CommitPush["git add + commit + push"]
CommitPush --> ExitDone([Exit - await CR response])
style NikoBuild fill:#87CEEB,stroke:#4169E1,stroke-width:2px
style NikoReflect fill:#DDA0DD,stroke:#8B008B,stroke-width:2px
style CommitPush fill:#90EE90,stroke:#228B22,stroke-width:3px
style DeleteSem fill:#90EE90,stroke:#228B22,stroke-width:3px
style TriggerReview fill:#FFD700,stroke:#B8860B,stroke-width:3px
This command uses Niko's memory bank and commands. Don't reinvent the wheel.
| Phase | Niko Command | Purpose |
|---|---|---|
| Track issues | Update memory-bank/tasks.md | Add CodeRabbit items as checklist |
| Fix issues | /build | Implement fixes using TDD |
| Document fixes | /reflect | Record what was learned |
Add CodeRabbit items to memory-bank/tasks.md:
## Current Task: CodeRabbit PR #<number> Fixes
**Status:** In Progress | RATE_LIMITED | COMPLETE
**PR URL:** <url>
**Rate Limit Until:** <ISO timestamp or empty>
### Actionable Items
- [ ] ID: <id> - <summary>
- [x] ID: <id> - <summary> - FIXED
### Requires Human Decision
- ID: <id> - <summary> - Reason: <why>
### Ignored
- ID: <id> - <summary> - Reason: <why>
| Category | Examples | Action |
|---|---|---|
| ACTIONABLE | Code style, error handling, types, docs, imports | /build to fix |
| NEEDS_HUMAN | Architecture, API design, breaking changes, security | Record in tasks.md |
| IGNORE | False positives, already fixed, conflicts with standards | Skip |
# Check CodeRabbit status
gh pr checks <number> --json name,state --jq '.[] | select(.name | test("coderabbit"; "i")) | .state'
# Trigger review after rate limit
gh pr comment <number> --body "@coderabbitai review"
# After /reflect completes - commit and push
git add -A && git commit --no-gpg-sign -m "fix: address CodeRabbit feedback
<bullet points from reflection>
Generated by wiggum-niko automation" && git --no-pager push
# Completion
rm wiggum.semaphore
Complete when ALL true:
SUCCESS or PASSED)memory-bank/tasks.mdAction: rm wiggum.semaphore
You are a robot using Niko's brain. Act like one.
/build → tests → /reflect → pushmemory-bank/tasks.mdDo not report without acting. Do not ask. Execute.