用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tools-only/X-Skills --skill issue-manager命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | issue-manager |
| description | Finds or creates GitHub issues for program implementations |
| tools | Bash, Grep |
| model | opus |
IMPORTANT: Use careful, step-by-step reasoning before taking any action. Think through:
Take time to analyze thoroughly before implementing solutions.
Finds existing GitHub issues or creates new ones for program implementations. Ensures each implementation has a single source of truth issue for documentation and coordination.
Extract from the request:
# Search for open issues with program name and state
gh issue list --state open --search "in:title <state> <program>"
# Also search with full state name
gh issue list --state open --search "in:title <full-state-name> <program>"
# Check for alternative program names (e.g., LIHEAP vs Low Income Home Energy Assistance)
gh issue list --state open --search "in:title <state> energy assistance"
If NO issues found → Proceed to Step 3 (create new issue) and continue workflow autonomously.
If issues ARE found → STOP and present to user for decision.
# For each found issue, read its details
gh issue view <issue-number> --repo PolicyEngine/policyengine-us
Present to user:
## Found Existing Issue(s)
### Issue #1234: "DC TANF 2017, 2018 Updates"
- **Status:** Open
- **Last activity:** 2023-06-20
- **Summary:** [Brief description of what the issue covers]
### Issue #5678: "Implement DC TANF"
- **Status:** Open
- **Last activity:** 2024-02-15
- **Summary:** [Brief description of what the issue covers]
---
**Options:**
1. Use Issue #5678
2. Use Issue #1234
3. Create a NEW issue (ignore existing)
Which would you like? Or say "continue" to create new.
Wait for user response before proceeding.
gh issue create --title "Implement <State> <Program>" --body "
# Implement <Full State Name> <Full Program Name>
## Overview
Implementation tracking issue for <State> <Program>.
## Status Checklist
- [ ] Documentation collected
- [ ] Parameters created
- [ ] Variables implemented
- [ ] Tests written
- [ ] CI passing
- [ ] PR ready for review
## Documentation Summary
*To be filled by document-collector agent*
### Program Overview
<!-- Basic program description -->
### Income Limits
<!-- Income thresholds and limits -->
### Benefit Calculation
<!-- Benefit formulas and amounts -->
### Eligibility Rules
<!-- Eligibility criteria -->
### Special Cases
<!-- Edge cases and exceptions -->
### References
<!-- Authoritative sources and links -->
## Implementation Details
### Parameter Files
<!-- List of parameter files created -->
### Variable Files
<!-- List of variable files created -->
### Test Files
<!-- List of test files created -->
## Related PRs
<!-- PRs will be linked here -->
---
*This issue serves as the central coordination point for all agents working on this implementation.*
"
# Assign relevant labels based on program type
gh issue edit <issue-number> --add-label "enhancement"
# Add state label if state-specific
gh issue edit <issue-number> --add-label "state-<state-code-lowercase>"
# Add program type labels
case "<program>" in
*LIHEAP*|*"energy assistance"*)
gh issue edit <issue-number> --add-label "energy-assistance"
;;
*TANF*)
gh issue edit <issue-number> --add-label "cash-assistance"
;;
*SNAP*|*"food"*)
gh issue edit <issue-number> --add-label "food-assistance"
;;
*CCAP*|*"child care"*)
gh issue edit <issue-number> --add-label "childcare"
;;
*Medicaid*)
gh issue edit <issue-number> --add-label "healthcare"
;;
esac
# Add implementation tracking label
gh issue edit <issue-number> --add-label "implementation-tracking"
Before creating a new PR, search for existing PRs:
# Search for open PRs with program name and state
gh pr list --state open --search "in:title <state> <program>"
If NO PRs found → Proceed to Step 4 (create new PR) and continue workflow autonomously.
If PRs ARE found → STOP and present to user for decision.
# For each found PR, read its details and files
gh pr view <pr-number> --repo PolicyEngine/policyengine-us
gh pr diff <pr-number> --repo PolicyEngine/policyengine-us --stat
Present to user:
## Found Existing PR(s)
### PR #1234: "Add DC TANF income parameters"
- **Status:** Draft
- **Last activity:** 2023-07-20
- **Files:** 5 parameter files
- **Summary:** [Brief description of what the PR covers]
### PR #5678: "Implement DC TANF"
- **Status:** Draft
- **Last activity:** 2024-02-15
- **Files:** 12 files (parameters, variables, tests)
- **Summary:** [Brief description of what the PR covers]
---
**Options:**
1. Continue on PR #5678
2. Continue on PR #1234
3. Create a NEW PR (ignore existing)
Which would you like? Or say "continue" to create new.
Wait for user response before proceeding.
If a new issue was created (or no suitable existing PR), create a draft PR:
# Only if we created a new issue
if [ "$ISSUE_ACTION" == "created_new" ]; then
# ============================================
# FIX 1: Simple branch name (no prefix, no date)
# ============================================
# BEFORE: git checkout -b integration/<program>-<date>
# AFTER:
git checkout -b <state-code>-<program>
# Example: or-tanf, ky-tanf, az-liheap
# ============================================
# FIX 2: Empty commit instead of placeholder file
# ============================================
# BEFORE:
# mkdir -p sources
# echo "# <State> <Program> Implementation" > sources/implementation_<program>.md
# git add sources/implementation_<program>.md
# git commit -m "Initial commit..."
# AFTER: Use --allow-empty to create commit without files
git commit --allow-empty -m "Initial commit for <State> <Program> implementation
Starting implementation of <State> <Program>.
Documentation and parallel development will follow."
# Push to origin (user's fork)
git push -u origin <state-code>-<program>
# ============================================
# FIX 3: Explicitly target upstream repo
# ============================================
# BEFORE: gh pr create --draft --title "..." --base master
# AFTER: Add --repo to explicitly create PR in upstream
gh pr create --draft \
--repo PolicyEngine/policyengine-us \
--title "Add <State> <Program> Program" \
--body "## Summary
Work in progress implementation of <State> <Program>.
Closes #<issue-number>
## Status
- [ ] Documentation collected
- [ ] Parameters created
- [ ] Variables implemented
- [ ] Tests written
- [ ] CI passing
---
*This is a draft PR created automatically. Implementation work is in progress.*" \
--base master
PR_NUMBER=$(gh view --json number -q .number)
Return a structured response:
ISSUE_FOUND: <true/false>
ISSUE_NUMBER: <number>
ISSUE_URL: https://github.com/PolicyEngine/policyengine-us/issues/<number>
ISSUE_ACTION: <"found_existing" | "created_new">
PR_NUMBER: <number-if-created>
PR_URL: <url-if-created>
BRANCH: <state-code>-<program>
# After collecting docs, update the issue
gh issue comment <issue-number> --body "
## Documentation Collected - <timestamp>
### Income Limits
<details from documentation>
### References
<all references with links>
"
# Reference the issue for documentation
gh issue view <issue-number>
# Link PR to issue (use --repo for cross-fork PR)
gh pr create --repo PolicyEngine/policyengine-us --body "Fixes #<issue-number>"
Common search variations to try:
<state-code> <program> (e.g., "AZ LIHEAP")<full-state> <program> (e.g., "Arizona LIHEAP")<state> <program-full-name> (e.g., "Arizona Low Income Home Energy")implement <state> <program>add <state> <program>✅ Correctly identifies existing issues
✅ Creates well-structured issues when needed
✅ Returns consistent format for other agents
✅ Avoids duplicate issues
✅ Provides clear issue URL for reference
✅ Uses simple branch names (<state-code>-<program>)
✅ Creates PR from fork to upstream explicitly
✅ No unnecessary placeholder files