基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Abilityai/abilities --skill validate-pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Generate an agent-specific `/update-dashboard` skill that keeps `dashboard.yaml` current for Trinity. Analyzes the agent's purpose and data sources, proposes metrics, gets user approval, then scaffolds a schedulable skill.
Modify an existing playbook based on conversation context or explicit instructions. Use when user wants to update, fix, extend, or refine a playbook they already have.
Create a new skill or playbook. Guides through requirements gathering and generates the appropriate template based on complexity.
| name | validate-pr |
| description | Validate a pull request against the project development methodology and generate a merge decision report. |
| allowed-tools | Bash, Read, Grep |
| user-invocable | true |
| argument-hint | <pr-number-or-url> |
| automation | gated |
| metadata | {"version":"1.0","created":"2026-03-13T00:00:00.000Z","author":"Ability.ai","changelog":["1.0: Initial version — validates a pull request against the project development methodology and generates a merge decision report."]} |
ℹ️ First, set expectations: before anything else, print one short line with this skill's version and its most recent change — the top entry of
metadata.changelogabove — e.g.validate-pr vX.Y — recent: <summary>. Then proceed.
Validate a pull request against the project development methodology and generate a merge decision report.
| Source | Location | Read | Write | Description |
|---|---|---|---|---|
| PR Details | GitHub API | ✅ | PR metadata and diff | |
| Changelog | docs/memory/changelog.md | ✅ | Entry check | |
| Requirements | docs/memory/requirements.md | ✅ | Req updates | |
| Architecture | docs/memory/architecture.md | ✅ | API changes | |
| Feature Flows | docs/memory/feature-flows/ | ✅ | Flow updates | |
| GitHub Issues | GitHub repo | ✅ | Issue references |
/validate-pr <pr-number-or-url>
PR_NUMBER=<extract number from argument>
gh pr view $PR_NUMBER --json title,body,author,baseRefName,headRefName,files,additions,deletions,changedFiles
gh pr diff $PR_NUMBER --name-only
gh pr diff $PR_NUMBER
Check if docs/memory/changelog.md is in the changed files list.
### YYYY-MM-DD HH:MM:SSIf missing: Flag as FAIL - "Changelog not updated"
Check if PR references a GitHub Issue.
Required if PR adds new functionality or changes feature scope.
Required if PR modifies API endpoints, database schema, or external integrations.
Run security checks on the PR diff:
## PR Validation Report
**PR**: #[number] - [title]
**Author**: [author]
**Branch**: [head] -> [base]
**Files Changed**: [count] (+[additions]/-[deletions])
### Summary
| Category | Status | Notes |
|----------|--------|-------|
| Changelog | ✅/❌ | [details] |
| GitHub Issues | ✅/❌/➖ | [details or N/A] |
| Requirements | ✅/❌/➖ | [details or N/A] |
| Architecture | ✅/❌/➖ | [details or N/A] |
| Feature Flows | ✅/❌/⚠️ | [details] |
| Security Check | ✅/❌ | [details] |
| Code Quality | ✅/⚠️ | [details] |
| Requirements Trace | ✅/⚠️ | [details] |
### Recommendation
**[APPROVE / REQUEST CHANGES / NEEDS DISCUSSION]**
| Change Type | Changelog | Requirements | Architecture | Feature Flow |
|---|---|---|---|---|
| Bug fix | ✅ | ➖ | ➖ | ⚠️ if behavior changes |
| New feature | ✅ | ✅ | ⚠️ if API/schema | ✅ |
| Refactor | ✅ | ➖ | ⚠️ if structure | ⚠️ if flow changes |
| API change | ✅ | ⚠️ if scope | ✅ | ✅ |
| Schema change | ✅ | ➖ | ✅ | ⚠️ |