用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/kapilvirenahuja/garura --skill analyze-pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | analyze-pr |
| description | Analyze branch and generate context-aware quality checklist |
| user-invocable | false |
| model | sonnet |
| allowed-tools | Bash, Read |
Model-invocable skill for analyzing PR readiness with dynamic quality checklists.
Analyze the current branch against base and produce a context-aware quality checklist.
You DO the analysis work. You do NOT make decisions about what to do with the results.
Receive from agent:
main)If pr_number was provided in the input:
If pr_number was not provided:
Invoke the platform-adapter skill with verb: diff-pr and args: {pr_number: {pr_number}} to fetch the unified diff.
Invoke the platform-adapter skill with verb: view-pr and args: {pr_number: {pr_number}} to fetch PR metadata (number, title, body, files, commits, baseRefName/target_branch, headRefName/source_branch).
If the adapter returns a non-zero exit code, halt with error: "PR-scoped mode requires a configured platform CLI. Check platform configuration and authentication."
Use the files list from the view-pr response as the changed files list (equivalent of git diff --name-only). Use the diff from the diff-pr response for content analysis. Use commit messages from the commits array for commit type analysis. Access the target branch via baseRefName (GitHub) or target_branch (GitLab) as appropriate for the active platform.
Proceed to Step 2 with the PR-derived data.
This step is skipped when pr_number is provided — PR-scoped mode uses Step 0a instead.
git diff --stat main..HEAD
git diff --name-only main..HEAD
git log --oneline main..HEAD
git branch --show-current
Using the changed files list (from Step 0a in PR-scoped mode, or Step 1 in branch-diff mode), determine which file patterns are affected:
*.ts, *.js, *.py, *.java, *.go)**/api/**, **/routes/**, **/controllers/**)**/auth/**, **/security/**, *.pem, *.key)**/migrations/**, *.sql, **/schema/**)**/components/**, *.tsx, *.vue)**/*.test.*, **/*.spec.*, **/test/**)*.md, **/docs/**)Determine branch pattern using: reference/branch-patterns.md
Determine commit types from commit messages using: ~/.garura/core/memory/standards/rules/commits.md
Load quality rules from: reference/quality-rules.md
For each rule in the loaded ruleset:
For items with automated verification:
git merge-tree --write-tree main HEADMark manual items as REVIEW status requiring human sign-off.
Generate the context-specific checklist with:
Produce output using template: templates/analysis-output.md
IMPORTANT: This skill produces analysis data. The calling agent receives this output and decides what to do next. Do NOT instruct the agent to return or stop.
| Field | Value |
|---|---|
| Version | 1.0.0 |
| Category | analysis |