Agent skill
update-pr-title
Updates the PR title based on the changes in the PR using conventional commit format.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/update-pr-title
SKILL.md
Update PR Title Skill
Updates the current PR's title based on analysis of the changes.
Usage
Invoke with /update-pr-title or /update-pr-title <PR-number>.
Workflow
- Get PR info: Run
gh pr viewto get the current PR (or specified PR number) - Get diff: Run
gh pr diffto see the changes - Analyze: Review the diff to understand what changed
- Generate title: Create a conventional commit-style title:
feat(scope): descriptionfor new featuresfix(scope): descriptionfor bug fixesrefactor(scope): descriptionfor refactoringdocs(scope): descriptionfor documentationchore(scope): descriptionfor maintenance
- Update: Run
gh pr edit --title "new title"to update the PR
Execution
Run autonomously without user confirmation. Execute all steps and report the result.
Step 1: Get PR Information
gh pr view --json number,title,headRefName
If a PR number was provided as an argument, use:
gh pr view <PR-number> --json number,title,headRefName
Step 2: Get the Diff
gh pr diff
Step 3: Analyze and Update
After analyzing the diff:
- Determine the primary type of change (feat/fix/refactor/docs/chore)
- Identify the scope (affected area/package)
- Write a concise description of the change
- Update the PR:
gh pr edit --title "type(scope): description"
Output
Report the old title and new title after updating.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?