{
  "schema": "https://ai-atoms.com/schemas/skill-v1.json",
  "type": "skill",
  "id": "skill/pr",
  "version": "1.0.0",
  "name": "Pull Request",
  "description": "Open a GitHub pull request with a body generated from the branch's commits. Derives title and summary from commit history.",
  "system_prompt_fragment": "Open a pull request for the current branch. Derive: title from the most significant commit subject (≤70 chars), body from git log --oneline <base>..HEAD summarized into bullet points under ## Changes, and a ## Test plan checklist. Use gh pr create. If a PR already exists, show its URL instead. Do not push unless asked.",
  "applicable_domains": [
    "git",
    "code-review"
  ],
  "authored_by": "convergent-systems-key",
  "lifecycle": "stable",
  "invocation": [
    "/pr"
  ],
  "tags": [
    "git",
    "pull-request",
    "github"
  ],
  "invocation_contract": {
    "inputs": [
      {
        "name": "base_branch",
        "type": "string",
        "description": "Target branch (default: main).",
        "required": false
      }
    ],
    "outputs": [
      {
        "name": "pr_url",
        "type": "string",
        "description": "URL of the created or existing PR."
      }
    ],
    "side_effects": [
      "creates a GitHub pull request via gh CLI"
    ]
  },
  "category": "coding"
}