Claude-skill-registry collect-pr-info
Collect git info and prepare PR content for reedom-gh:pr-maker agent.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/collect-pr-info" ~/.claude/skills/majiayu000-claude-skill-registry-collect-pr-info && rm -rf "$T"
manifest:
skills/data/collect-pr-info/SKILL.mdsource content
Collect data, draft complete PR content, cleanup, return ready-to-use JSON.
Arguments
| Arg | Default | Description |
|---|---|---|
| origin/main | Target branch |
| system | PR content language |
| "" | Prefix to prepend to title |
Workflow
- Run
${CLAUDE_PLUGIN_ROOT}/skills/collect-pr-info/scripts/collect-info.sh -a <target> --lang <lang> - Check for errors
- Read temp files (commits, diffs)
- Draft PR title and body
- Prepare preceding PR update (if exists)
- Run
${CLAUDE_PLUGIN_ROOT}/skills/collect-pr-info/scripts/cleanup.sh <temp_dir> - Return complete PR data
Output JSON
{ "current_branch": "feature/x", "target_branch": "origin/main", "push_needed": true, "matched_spec": "auth", "pr": { "title": "feat(auth): add login module", "body": "## Summary\n..." }, "existing_pr": { "exists": false, "number": null }, "preceding_pr": { "exists": true, "number": 122, "updated_body": "## PR Order\n- this PR\n- #NEW\n\n<original body>" } }
Agent replaces
#NEW with actual PR number after creation.
Title Format
<prefix> type(scope): description
- Prepend
value if provided--prefix - Type: feat/fix/refactor/chore/docs/test (from commits)
- Scope: matched_spec if single, omit if multiple/none
- Max 50 chars (excluding prefix), lowercase, imperative
Body Format
Language:
lang.effective
## Summary What and why (2-3 sentences) ## Changes - Key changes ## Testing How to verify ## Related Issues closes #N
Preceding PR Update
If preceding PR exists, prepare
updated_body:
## PR Order - this PR - #NEW <original body>
Use
## PR順序 for Japanese.
Large Diff Strategy
When split: read manifest.json, prioritize source files, skip generated.
Error Handling
{"error": "message", "error_code": "NOT_GIT_REPO"}