HaiAI123

Curated Global AI Tools Directory

Industry update
Flat

Developer adds a /pr slash command to Claude Code for drafting GitHub PRs

11/20/2026 — 11/20, 09:18·1 sources (all)·1 reports (all)

Key takeaways

  • A developer added a /pr slash command to Claude Code by dropping pr.md into .claude/commands, where the filename becomes the command name. I…

Background & analysis

On November 20, 2026, the AI section of DEV Community published an account of a developer who turned a repetitive prompting habit in Claude Code into a reusable slash command. Instead of pasting the branch diff and asking Claude Code to draft a GitHub PR title and body, then waiting, the developer stored the whole instruction set in a single file at .claude/commands/pr.md. The file name becomes the command, so invoking /pr in Claude Code loads that definition and starts drafting from the current branch.

The file opens with front matter that describes the command and its expected input. The description reads "Draft a GitHub PR from the current branch", and the argument-hint is written as "[base branch | extra instructions]". The command body then instructs Claude Code to draft a GitHub PR for the current branch and explicitly bars it from creating the PR until the user confirms. $ARGUMENTS is used to pass in the base branch or to add extra instructions, which removes the need to paste the diff and the boilerplate prompt on every run.

The report presents the setup as an individual developer practice built on Claude Code's slash command feature, and it offers no indication of an official release, a maintained repository, or any later update to the approach. As described, the workflow stops at the point where the drafted PR is ready for a human to review and approve before creation.

AI-generated from 1 reports · updated 2 days ago

Related AI tools

updream
24-hour heatHeat index 25 · peak 47 · 23h ago
24 hours agonow

Reports on this story headlines open the original

Nov 20
  1. A developer turned a frequently pasted prompt into a reusable /pr slash command in Claude Code. Saved as .claude/commands/pr.md, it drafts a GitHub pull request title and body from the current branch and waits for confirmation before creating anything, while $ARGUMENTS lets you name the base branch or add extra instructions.

    DEV Community · AIAI score 60

Other stories people are talking about

How is heat calculated?About the method

Heat counts how many independent sources covered a story in the last 48 hours: one source counts once no matter how many posts it published, decaying with a 24-hour half-life. What ranks first is what many people are talking about.

This page aggregates public feeds. Headlines and summaries are machine-organized and remain the property of the original authors; verify important facts at the source. If you believe a headline or summary infringes your rights, email the contact address in the footer with the page URL and basis of your claim, and we will remove or replace it after review.

Surge
Discussion rising fast
New
First report within 6 hours
Rising
Still gathering discussion

Back to AI industry updates →