Back to list
reedom

collect-pr-info

by reedom

0🍴 0📅 Dec 22, 2025

SKILL.md


name: collect-pr-info description: Collect git info and prepare PR content for reedom-gh:pr-maker agent. allowed-tools: Read

Collect data, draft complete PR content, cleanup, return ready-to-use JSON.

Arguments

ArgDefaultDescription
--againstorigin/mainTarget branch
--langsystemPR content language
--prefix""Prefix to prepend to title

Workflow

  1. Run ${CLAUDE_PLUGIN_ROOT}/skills/collect-pr-info/scripts/collect-info.sh -a <target> --lang <lang>
  2. Check for errors
  3. Read temp files (commits, diffs)
  4. Draft PR title and body
  5. Prepare preceding PR update (if exists)
  6. Run ${CLAUDE_PLUGIN_ROOT}/skills/collect-pr-info/scripts/cleanup.sh <temp_dir>
  7. 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 --prefix value if provided
  • 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"}

Score

Total Score

40/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon