Official agent skill

PR Link Issue

by getsentry in getsentry/skills

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

OfficialApache-2.0Auto-check passed

Install PR Link Issue

skills CLI
$ npx skills add getsentry/skills --skill pr-link-issue -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install getsentry/skills pr-link-issue --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/getsentry/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/pr-link-issue .claude/skills/pr-link-issue && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pr-link-issue
GitHub stars
1k
Token cost
~681 tokens
SKILL.md length
279 words
Files
1
Skills in repo
27
Repo updated
First seen
Licence
Apache-2.0

At a glance

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

  • Works in 7 steps: Resolve the PR number — skip if user… → Extract issue number + repo from the… → Fetch the Linear ticket from the issue's… → …
  • Asked to link issue to pr
  • SKILL.md covers Inputs, Steps and Notes
  • Calls gh; reaches github.com

What it does

PR Link Issue is an agent skill from getsentry/skills, published by the product's own GitHub organization. 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.

Its SKILL.md is about 680 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with GitHub and Sentry. The repository describes itself as: Agent Skills used by the Sentry team for development. The licence is Apache-2.0.

When your agent uses it

  • Asked to link issue to pr
  • Fill in issue and linear in pr
  • Add issue refs to pr
  • Given a GitHub issue URL and asked to attach it to the current PR

Example prompts

  • “s description. Use when asked to”
  • “fill in issue and linear in pr”
  • “add issue refs to pr”
  • “/pr-link-issue”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Resolve the PR number — skip if user supplied one
  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
  4. Read the existing PR body so you can append rather than overwrite
  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…
  6. Update the PR with a heredoc to preserve newlines
  7. Confirm by echoing the resulting PR URL

What it can do on your machine

Read from SKILL.md and the folder at commit d18b7aa. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

PR Link Issue loads about 681 tokens when it runs. Until then it costs about 87 tokens; SKILL.md has 279 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~87
When it runs · the whole SKILL.md, loaded when a task matches
~681

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from getsentry/skills at commit d18b7aa, republished under its Apache-2.0 licence (© getsentry). 279 words, ~681 tokens.

Download SKILL.mdSave it as .claude/skills/pr-link-issue/SKILL.md (or your agent's skills folder).
name
pr-link-issue
description
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.

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:

    bash
    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:

    bash
    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:

    bash
    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:

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

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

    bash
    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.

© getsentry, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/pr-link-issue of getsentry/skills.

Open the folder on GitHubat commit d18b7aa

Compare with similar skills

PR Link Issue next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

PR Link Issue compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
PR Link Issue this skillgetsentry/skills1k—~681Automated safety check: PassApache-2.0
Scraps Reviewgetsentry/sentry45k—~1.2kAutomated safety check: NotesCustom licence
Create Pull Request with Work Item IDmakeplane/plane60k—~824Automated safety check: PassAGPL-3.0
Dotagentsgetsentry/sentry-wizard295—~900Automated safety check: PassCustom licence
Reviewgetsentry/sentry-react-native1.8k—~1.9kAutomated safety check: PassMIT
Superset Automatesuperset-sh/superset15k—~1.4kAutomated safety check: PassCustom licence

Similar skills

  • Scraps Review

    getsentry/sentry

    Official

    Filter large Sentry Scraps design-system migration PRs for review by separating mechanical import-path changes, generated baseline updates, snapshot mocks, and pure renames from substantive…

    45k GitHub stars~1.2k tokensUpdated today
    Frontend & DesignAuto-check: notes
  • Opens a pull request for the current branch using the repo's template, a work item ID in the title and a description filled in from the actual diff.

    60k GitHub stars~824 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Dotagents

    getsentry/sentry-wizard

    Official

    Manage agent skill dependencies with dotagents. An agent skill from getsentry/sentry-wizard.

    295 GitHub stars~900 tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Review

    getsentry/sentry-react-native

    Official

    Three-axis review of the branch diff — Standards (this repo's documented standards + public API/bridge surface), Spec (the originating Linear/GitHub issue or PR), and Correctness (runtime bugs + the…

    1.8k GitHub stars~1.9k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Superset Automate

    superset-sh/superset

    Turns a recurring chore into a scheduled or event-triggered Superset agent, drafting its prompt, picking a target and trigger, and reviewing the first run.

    15k GitHub stars~1.4k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Spec

    getsentry/sentry-react-native

    Official

    Produce a verified spec — problem, desired outcome, and acceptance criteria — before building.

    1.8k GitHub stars~1.1k tokensUpdated today
    Product & Project ManagementAuto-check passed

More from getsentry/skills

All 27 skills in this repo
  • Skill Scanner

    getsentry/skills

    Official

    Scan agent skills for security issues. An agent skill from getsentry/skills.

    1k GitHub starsUsed in 4 repos~2.5k tokens
    Auto-check: warnings
  • Gh Review Requests

    getsentry/skills

    Official

    Fetch unread GitHub notifications for open PRs where review is requested from a specified team or opened by a team member.

    1k GitHub starsUsed in 3 repos~621 tokens
    Auto-check: notes
  • Security Review

    getsentry/skills

    Official

    Security code review for vulnerabilities. An agent skill from getsentry/skills.

    1k GitHub starsUsed in 4 repos~2.9k tokens
    Auto-check: notes
  • Skill Writer

    getsentry/skills

    Official

    Create, synthesize, and iteratively improve agent skills following the Agent Skills specification.

    1k GitHub stars~2.5k tokensUpdated 4 days ago
    Auto-check passed
  • Django Access Review

    getsentry/skills

    Official

    Django access control and IDOR security review. An agent skill from getsentry/skills.

    1k GitHub starsUsed in 3 repos~2.6k tokens
    Auto-check: notes
  • Gha Security Review

    getsentry/skills

    Official

    GitHub Actions security review for workflow exploitation vulnerabilities.

    1k GitHub starsUsed in 3 repos~2.2k tokens
    Auto-check: notes

Works with

Questions about PR Link Issue

What does PR Link Issue do?

Append a GitHub issue link and its Linear ticket to the current PR's description. PR Link Issue is an agent skill from getsentry/skills, published by the product's own GitHub organization. Append a GitHub issue link and its Linear ticket to the current PR's description.

When should I use PR Link Issue?

PR Link Issue fits situations like: asked to link issue to pr; fill in issue and linear in pr; add issue refs to pr; given a GitHub issue URL and asked to attach it to the current PR.

How do I install PR Link Issue in Claude Code?

Run `npx skills add getsentry/skills --skill pr-link-issue -a claude-code`. Or copy the skill folder (skills/pr-link-issue in getsentry/skills) into .claude/skills/pr-link-issue in your project. Claude Code loads it when a task matches its description.

How do I install PR Link Issue in Codex?

Run `npx skills add getsentry/skills --skill pr-link-issue -a codex`. Or copy the skill folder (skills/pr-link-issue in getsentry/skills) into .agents/skills/pr-link-issue in your project. Codex loads it when a task matches its description.

Can I use PR Link Issue in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add getsentry/skills --skill pr-link-issue -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pr-link-issue, .gemini/skills/pr-link-issue, .github/skills/pr-link-issue and .opencode/skills/pr-link-issue in your project.

What does PR Link Issue need to run?

Going by SKILL.md and its folder, PR Link Issue needs the command-line tools its instructions call (gh).

Does PR Link Issue access the network?

SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is PR Link Issue safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does PR Link Issue use?

PR Link Issue is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does PR Link Issue use?

About 681 tokens (SKILL.md is roughly 2.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to PR Link Issue?

Skills that share tags, products or a category with PR Link Issue: Scraps Review (getsentry/sentry, 45k stars), Create Pull Request with Work Item ID (makeplane/plane, 60k stars), Dotagents (getsentry/sentry-wizard, 295 stars) and Review (getsentry/sentry-react-native, 1.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains PR Link Issue?

getsentry (a GitHub organization, an official publisher) maintains it in getsentry/skills, which has 1,037 GitHub stars. The repository holds 27 skills in this directory. The repository was last updated on October 2, 2026.

Source: getsentry/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.