Software DevelopmentOfficial · getsentry

Pr Link Issue skill for Claude

Append a GitHub issue link and its Linear ticket to the current PR's description.

When Claude uses it

Use when asked to "link issue to pr", "fill in issue and linear in pr", "add issue refs to pr", or when given a GitHub issue URL and asked to attach it to the current PR. Resolves the Linear ticket automatically from the issue's linear-linkback comment.

Pr Link Issue SKILL.md

The full skill file from getsentry/skills (Apache-2.0).

Link a GitHub Issue + Linear Ticket on a PR

Appends a Sentry-style #### Issues block to a PR description, referencing both the GitHub issue and the Linear ticket pulled from the issue's linear-linkback comment.

Inputs

  • <issue-url> — GitHub issue URL like https://github.com/<owner>/<repo>/issues/<n>. Issue number alone is fine if the PR is in the same repo.
  • (optional) <pr-number> — defaults to the open PR for the current branch.

Steps

  1. Resolve the PR number — skip if user supplied one:

    gh pr view --json number,body -q '.number'
    

    If no PR exists on the branch, stop and tell the user.

  2. Extract issue number + repo from the input URL, or accept a bare #1234 for current repo.

  3. Fetch the Linear ticket from the issue's linear-linkback comment:

    gh issue view <n> --repo <owner>/<repo> --json comments \
      -q '.comments[] | select(.author.login=="linear-code") | .body' \
      | grep -Eioe '[a-z]+-[0-9]+' | head -1
    

    If no match, fall back to asking the user for the Linear key, or omit it.

  4. Read the existing PR body so you can append rather than overwrite:

    gh pr view <pr-number> --json body -q '.body'
    
  5. Construct the new body. If the body is empty, use just the #### Issues block. Otherwise, append it after a blank line. Don't duplicate — if #### Issues is already present, replace that section instead of adding a second one.

    Format:

    #### Issues
    
    * Resolves: #<n>
    * Resolves: <linear-key>
    
  6. Update the PR with a heredoc to preserve newlines:

    gh pr edit <pr-number> --body "$(cat <<'EOF'
    <new body>
    EOF
    )"
    
  7. Confirm by echoing the resulting PR URL:

    gh pr view <pr-number> --json url -q '.url'
    

Notes

  • Linear linkback comments are posted by the GitHub user linear-code. The body contains a markdown link whose text is the Linear key, e.g. PY-2357.
  • Project keys vary per repo (PY-… for sentry-python, JS-… for sentry-javascript, etc.) — the regex [a-z]+-[0-9]+ covers them.
  • Don't strip existing PR content. Always read first, append/replace second.
  • If the issue doesn't have a Linear linkback yet (newly filed), proceed with just the GitHub issue reference and tell the user the Linear key is missing.

How to install Pr Link Issue

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit getsentry/skills/skills/pr-link-issue#main ~/.claude/skills/pr-link-issue

Codex

npx degit getsentry/skills/skills/pr-link-issue#main ~/.codex/skills/pr-link-issue

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Pr Link Issue skill do?

Append a GitHub issue link and its Linear ticket to the current PR's description. Use when asked to "link issue to pr", "fill in issue and linear in pr", "add issue refs to pr", or when given a GitHub issue URL and asked to attach it to the current PR. Resolves the Linear ticket automatically from the issue's linear-linkback comment.

+How do I install Pr Link Issue in Claude Code?

Copy the skill folder into ~/.claude/skills/pr-link-issue, for example with "npx degit getsentry/skills/skills/pr-link-issue#main ~/.claude/skills/pr-link-issue". Claude Code loads it automatically and uses it when a task matches.

+Does Pr Link Issue work with ChatGPT or Codex?

Yes. Pr Link Issue uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/pr-link-issue. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Pr Link Issue free?

Pr Link Issue is published on GitHub by getsentry under the Apache-2.0 license, which allows free use.

Related software development skills

  1. Code Review

    Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's…

    mattpocock/skills★ 327k
  2. Using Agent Skills

    Discovers and invokes agent skills. Use when starting a session, or when you need to decide which skill or workflow applies to the piece of…

    addyosmani/agent-skills★ 119k
  3. Build

    Fully automate a coding task with make-plan, do, and babysit.

    thedotmack/claude-mem★ 118k
  4. Secret Serialization

    Official

    Finds secrets, tokens, passwords, and API keys that can leak through generated serialization: Python dataclass repr and asdict, attrs,…

    getsentry/skills★ 1.2k
  5. Typing Exclusion Worker

    Official

    Python typing exclusion worker: remove assigned mypy exclusion modules in small scoped batches, fix typing issues, run validation, and…

    getsentry/skills★ 1.2k
  6. Youtube Api

    Reach for this when YouTube data is needed and Google's Data API is the obstacle: no quota units, no OAuth consent screens, one Bearer key.

    artemchuikin/youtube-skills★ 275
  7. Mongodb Atlas Stream Processing

    Official

    Manages MongoDB Atlas Stream Processing (ASP) workflows. Handles workspace provisioning, data source/sink connections, processor lifecycle…

    mongodb/agent-skills★ 206
  8. Mongodb Connection

    Official

    Optimize MongoDB client connection configuration (pools, timeouts, patterns) for any supported driver language.

    mongodb/agent-skills★ 206
  9. N8n Code Javascript

    Write, review, or debug JavaScript in an n8n Code node. Use when a Code node is already in the workflow (editing it, fixing an error,…

    WilkoMarketing/antigravity-n8n-skills★ 108

See all software development skills →

More skills from getsentry

  1. Pr Screenshots

    Official

    Capture screenshots of the Sentry UI in a web browser, lay them out in a pull request description as before/after tables, and upload them…

    getsentry/skills★ 1.2k
  2. Pr Writer

    Official

    Create or refresh reviewer-facing PR titles and descriptions. Use when opening a PR, updating its title or body, or preparing branch…

    getsentry/skills★ 1.2k
  3. Presentation Creator

    Official

    Create data-driven presentation slides using React, Vite, and Recharts with Sentry branding.

    getsentry/skills★ 1.2k

All skills by getsentry →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.