用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/RunnerQuan/SAFE-Agent --skill pr-creation-workflow命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Find doctors with Healthgrades - search providers, read reviews, and check credentials
Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks.
基于RFM模型和回归算法的客户生命周期价值(LTV)预测分析工具,支持电商和零售业务的客户价值预测。使用时需要客户交易数据、订单历史或消费记录,自动进行RFM特征工程、回归建模和价值预测。
基于 SOC 职业分类
正在显示 SKILL.md
| name | pr-creation-workflow |
| description | Generic PR creation workflow with configurable quality checks and multi-platform integration |
| license | Apache-2.0 |
| compatibility | opencode |
| metadata | {"audience":"developers","workflow":"pr-creation"} |
I provide a generic PR creation workflow:
Use when:
dev)This is a framework skill - provides PR creation logic that other skills extend.
Methods:
read -p "Enter target branch (main/develop/staging): " TARGET_BRANCHgit symbolic-ref refs/remotes/origin/HEAD.git/configCommon targets: main, develop, staging, production, master
Important: Don't hardcode to dev - different projects use different conventions!
Configurable checks:
| Check | JS/TS | Python | Java | C# |
|---|---|---|---|---|
| Linting | npm run lint | poetry run ruff check | mvn checkstyle | dotnet format |
| Build | npm run build | N/A | mvn compile | dotnet build |
| Test | npm run test | poetry run pytest | mvn test | dotnet test |
| Type check | npm run typecheck | mypy . | N/A | N/A |
| Docstrings | docstring-generator | docstring-generator | docstring-generator | docstring-generator |
Error handling: If check fails, ask user to fix, continue, or cancel
Detection:
JIRA_TICKET=$(git log --oneline -1 | grep -oE '[A-Z]+-[0-9]+')
GIT_ISSUE=$(git log --oneline -1 | grep -oE '#[0-9]+')
if [ -f "PLAN.md" ]; then
PLAN_JIRA=$(grep -oE '[A-Z]+-[0-9]+' PLAN.md | head -1)
fi
Systems:
PROJECT-NUM format (e.g., IBIS-123)#NUM format (e.g., #456)Verify:
# Check working tree
if [ -n "$(git status --porcelain)" ]; then
read -p "Commit changes? (y/n): " COMMIT_CHANGES
if [ "$COMMIT_CHANGES" = "y" ]; then
git add . && git commit -m "Prepare for PR"
fi
fi
# Check remote tracking
CURRENT_BRANCH=$(git branch --show-current)
if ! git branch -vv | grep "* $CURRENT_BRANCH" | grep -q "\["; then
git push -u origin "$CURRENT_BRANCH"
fi
PR title format (use git-semantic-commits):
feat: <summary> [${TRACKING_ID}] - New featurefix: <summary> [${TRACKING_ID}] - Bug fixdocs: <summary> [${TRACKING_ID}] - Documentationfeat(api): add auth [${TRACKING_ID}]feat!: breaking change [${TRACKING_ID}]PR body template:
## Summary
<Bullet points describing changes>
<if jira>
## JIRA Reference
- Ticket: ${TRACKING_ID}
- Link: https://<company>.atlassian.net/browse/${TRACKING_ID}
</if>
<if git issue>
## Issue Reference
- Resolves #${TRACKING_ID}
</if>
## Changes
- <Key change 1>
- <Key change 2>
## Quality Checks
- Linting: ${LINT_RESULT}
- Build: ${BUILD_RESULT}
- Tests: ${TEST_RESULT}
- Type Check: ${TYPECHECK_RESULT}
## Files Modified
- `src/path/to/file.ts` - Description
- `README.md` - Documentation updates
## Checklist
- [ ] Code follows style guidelines
- [ ] All quality checks passed
- [ ] Documentation updated
- [ ] Self-reviewed
Create PR:
gh pr create \
--base "$TARGET_BRANCH" \
--title "feat: <summary> [${TRACKING_ID}]" \
--body "$(cat pr-body.md)"
Detection:
# Find images in common locations
IMAGES=$(find diagrams /tmp . -maxdepth 2 \
-type f \( -name "*.png" -o -name "*.svg" -o -name "*.jpg" \) \
-mmin -60 2>/dev/null)
Handling:
Merge confirmation:
read -p "Merge this PR? (y/n): " MERGE_CONFIRM
if [ "$MERGE_CONFIRM" = "y" ]; then
gh pr merge "$PR_NUMBER"
# Update JIRA status
if [ "$TRACKING_SYSTEM" = "jira" ]; then
read -p "Update JIRA to Done? (y/n): " UPDATE_JIRA
if [ "$UPDATE_JIRA" = "y" ]; then
# Use jira-status-updater framework
jira-status-updater --ticket "$TRACKING_ID" --status "Done"
fi
fi
fi
git-semantic-commits - PR title formattinggit-issue-updater - Issue progress updatesjira-status-updater - JIRA status transitionsjira-git-integration - JIRA operationslinting-workflow - Quality checksdocstring-generator - Docstring verificationdev - detect or ask/tmp/git-semantic-commitsread -p "Enter target branch (main/develop/staging): " TARGET_BRANCH
read -p "Linting failed. Run auto-fix? (y/n): " AUTO_FIX
read -p "Create PR anyway? (y/n): " CONTINUE_PR
# Create standalone PR
TRACKING_SYSTEM="none"
# Or ask user
read -p "Enter JIRA ticket or issue number: " USER_TRACKING
git push -u origin $(git branch --show-current)
Before creating PR:
After PR creation:
Skills using this framework:
git-pr-creator - PR creation with JIRA integrationnextjs-pr-workflow - Next.js-specific PR workflowSupporting frameworks:
git-semantic-commits - Semantic commit formattinggit-issue-updater - Issue progress updatesjira-status-updater - JIRA status transitionsjira-git-integration - JIRA operationslinting-workflow - Quality checksticket-branch-workflow - Initial setup