一键导入
task-processor-auto
Process tasks autonomously with automated PR reviews and gap analysis after each PR creation/commit.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Process tasks autonomously with automated PR reviews and gap analysis after each PR creation/commit.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Argue against proposed actions to test judgment quality. Not "is the code correct" but "should we be doing this at all?" Aligned with robustness, not performance.
Orchestrate Claude Code agent teams for parallel multi-agent collaboration
Learn and integrate new APIs, creating permanent skills for external service access.
Create and update CHANGELOG.md with entries that include AI model/CLI attribution, PRD context, and task references.
Audit decisions for judgment quality, compliance bias, and manipulation vulnerability. Inspired by Anthropic's Project Vend Phase 2 finding that helpfulness training creates exploitable attack surface.
Extract visual style from reference UI screenshot and codify into reusable design system.
| name | task-processor-auto |
| description | Process tasks autonomously with automated PR reviews and gap analysis after each PR creation/commit. |
| category | workflow |
Required:
gh) installed and authenticated: gh auth loginOptional:
Non-GitHub Hosting: If using GitLab, Bitbucket, or other platforms, the PR automation features won't work. You can still use the task processing and commit workflow, but skip the gh commands and create PRs manually through your platform's UI.
git add .git commit -m "feat(scope): summary" \
-m "- Detailed change 1" \
-m "- Detailed change 2" \
-m "Implements Task X.Y from tasks/[task-file].md"
git push -u origin [branch-name]gh pr create with detailed descriptiongh pr view [PR-number] to get PR statusdocs/PR_[number]_GAP_ANALYSIS.md# PR #[number] Gap Analysis
## Current State
- Files changed: X
- Lines added: Y
- Lines removed: Z
- Tests added: N
## Review Status
- CI Status: [passing/failing]
- Review Comments: [count]
- Blocking Issues: [list]
## Gap to "Ready to Merge"
### Critical Issues
- [ ] Issue 1
- [ ] Issue 2
### Nice to Have
- [ ] Enhancement 1
## Recommendation
Ready to merge / Needs work
git add docs/PR_[number]_GAP_ANALYSIS.mdgit commit -m "docs: add PR gap analysis"git pushgh pr comment [PR-number] --body "..."## Changes Summary
### Files Modified
- `path/to/file1.ts` - Brief description of changes
- `path/to/file2.test.ts` - Added N test cases
### Implementation Details
- Implemented feature X using pattern Y
- Refactored Z for better performance
- Added error handling for edge case W
### Testing
- All X tests passing
- Code coverage: Y%
- Integration tests added
### Gap Analysis
See docs/PR_[number]_GAP_ANALYSIS.md for detailed gap analysis.
**Status:** [Ready for review / Needs attention]
feat(scope): implement task X.Ygit checkout -b feat/phase-X-descriptiongit push -u origin feat/phase-X-descriptiongh pr create \
--title "Phase X: Parent Task Name" \
--body "$(cat <<'EOF'
## Summary
- Bullet point 1
- Bullet point 2
## Implementation
- Task X.1: Description
- Task X.2: Description
## Testing
- N tests added (M assertions)
- All tests passing
## Files Changed
- List of modified/created files
Closes #[issue-number] (if applicable)
EOF
)"
gh repo view --json nameWithOwner -q .nameWithOwnergh pr view [PR-number]gh pr checks [PR-number]gh api repos/[owner]/[repo]/pulls/[PR-number]/commentsInvoke the pr-review-loop skill for full automation.
See .claude/skills/pr-review-loop/SKILL.md for detailed protocol.
Summary of automated review loop:
Poll for Reviews (Indefinite)
AI Analysis of Review Comments
Implement Fixes (if blocking issues)
fix(review): address PR feedbackCI Verification
Pre-merge checklist (all must be true):
Merge execution:
# Squash merge with detailed message
gh pr merge [PR-number] --squash --delete-branch \
--subject "[PR title]" \
--body "Detailed description of changes
Reviewed-by: [reviewer(s)]
"
Post-merge:
[x] completed[x][x]Starting Task 1.0:
Processing: 1.1 Extend discovery engine
→ Implement code
→ Write tests
→ Run tests (pass)
→ Commit: "feat(discovery): extend engine for multi-strategy scanning"
Processing: 1.2 Create score normalization
→ Implement code
→ Write tests
→ Run tests (pass)
→ Commit: "feat(comparison): implement score normalization"
... (continue through 1.3, 1.4, 1.5, 1.6, 1.7)
All sub-tasks complete for Task 1.0
→ Push branch
→ Create PR #16
→ Wait for CI
→ Check review
→ Generate gap analysis
→ Push gap analysis
→ Add detailed comment
→ Mark parent task complete
PR Creation Fails:
gh pr list --head [branch-name]CI Unavailable or Timeout:
Git Conflicts:
git fetch origin maingit rebase origin/main or git merge origin/mainAPI Rate Limits:
GitHub API Completely Unavailable:
1. Generate gap analysis from local information only:
- Use `git diff --stat` for files changed
- Use `git log --oneline` for commit history
- Use local test results for test status
2. Mark CI status as "unavailable - manual verification needed"
3. Create gap analysis document anyway
4. Add note: "Generated from local state - verify manually"
PR Not Found or Access Denied:
1. Verify PR was created: `gh pr list --head [branch-name]`
2. Check authentication: `gh auth status`
3. If auth expired: `gh auth login`
4. If PR exists but not accessible, check repo permissions
Gap Analysis Document Can't Be Committed:
1. Check for git conflicts: `git status`
2. If conflicts exist, resolve them first
3. Ensure docs/ directory exists: `mkdir -p docs`
4. Try committing manually if automated commit fails
Review Comments Can't Be Fetched:
1. Fallback: Use `gh pr view [number]` for basic status
2. Check if PR has any reviews yet
3. Generate gap analysis without review details
4. Add note: "Review comments unavailable"
Network/Connectivity Issues:
1. Check network connectivity
2. Retry with exponential backoff (30s, 60s, 120s)
3. If persistent, generate local-only gap analysis
4. Queue PR operations for later retry
A task is NOT complete until:
When you encounter a new issue while implementing or validating:
Before marking any parent task complete:
Implementing Task 1.3...
→ Code written, tests pass
→ Running end-to-end validation...
→ Issue found: Database connection not configured
→ Fixing database connection (not deferring)
→ Re-running end-to-end validation...
→ Issue found: Missing environment variable
→ Adding environment variable handling
→ Re-running end-to-end validation...
→ Full flow works
→ NOW marking Task 1.3 complete
Implementing Task 1.3...
→ Code written, tests pass
→ "Task 1.3 is complete, but I noticed the database
connection isn't configured. That's a separate issue."
→ Moving to Task 1.4...
THIS IS WRONG - The task is NOT complete if end-to-end doesn't work!
reference.md.claude/skills/task-processor/SKILL.md.claude/skills/pr-review-loop/SKILL.md.claude/agents/tdd-developer.md.claude/agents/reliability-engineer.md