Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Pr

ASecurity

Canonical rules for preparing, opening, and updating Shift pull requests. Use whenever the user asks to create, open, draft, update, or review a pull request. Enforces issue discovery and linkage, Conventional Commit titles, release-note quality, complete validation evidence, and safe pushing.

274 stars
0 votes
0 copies
1 views
Added 9/20/2026
testingrusttestinggitdocumentation

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add shift-editor/shift --skill pr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pr?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Pr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shift-editor-shift-54af1d69/badge)](https://www.skillsdirectory.com/skills/shift-editor-shift-54af1d69)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: pr
description: Canonical rules for preparing, opening, and updating Shift pull requests. Use whenever the user asks to create, open, draft, update, or review a pull request. Enforces issue discovery and linkage, Conventional Commit titles, release-note quality, complete validation evidence, and safe pushing.
---

# /pr — How Shift pull requests are written

A pull request is one reviewable product or engineering change. Its title must make sense in history and as potential Release Please input.

## Title syntax

Every pull request title uses Conventional Commits:

```text
<type>[optional scope][optional !]: <concise imperative description>
```

Use the same types and subject rules as `/commit`. Examples:

```text
feat: add source conversion preview
fix(document): preserve the last valid save
ci: publish signed Alpha artifacts
```

The title must:

- be at most 72 characters;
- use lowercase imperative wording after the colon;
- describe the user or system outcome, not the list of files changed;
- omit trailing punctuation, emoji, agent labels, and `[codex]` prefixes.

CI rejects titles that are not Conventional Commits. GitHub may also use the pull request title as a squash commit subject, so treat it as release-quality history.

## Release Please behavior

Release Please reads conventional commits merged to `main` and maintains a draft release pull request.

- `feat`, `fix`, and `perf` become public changelog entries.
- `refactor`, `test`, `docs`, `build`, `ci`, `style`, and `chore` remain valid but are hidden from public release notes.
- Ordinary pull requests must not bump the product version or edit generated changelog sections.
- Maturity and milestone changes require explicit user approval and a `Release-As:` footer.
- The generated `chore: release Shift …` pull request is special: review its version, changelog, warning text, and artifact readiness before merging it.

## Pull request body

Use a concise body with evidence:

```markdown
## Summary

- what changed and why
- important behavioral or architectural boundary

## Issue

Closes #123

## Testing

- `exact command`
- focused manual verification
```

Add `## Risks` or `## Follow-up` only when they materially help review. Do not add empty sections, generic claims such as “tests pass,” generated marketing prose, or agent attribution.

Testing entries must distinguish:

- commands that passed;
- checks that failed and why;
- checks not run;
- focused manual verification where an automated test would be low value.

For release changes, state whether packaging was smoke-tested and which hosted platform/signing checks remain.

### UI review evidence

For materially visible UI changes, attach screenshots or recordings before marking the pull request ready for review.

- Cover every distinct state needed to review the change, including native dialogs and fallback, error, empty, loading, or disabled states when affected.
- Capture the actual implementation. Include before-and-after evidence when the change intentionally modifies existing appearance or interaction.
- Prefer GitHub user attachments over committing review-only media to the repository.
- Redact private user data, credentials, and sensitive documents before uploading.
- If useful evidence cannot be captured safely or reliably, state why in the pull request rather than silently omitting it.

Do not add ceremonial screenshots for changes with no visible review surface.

### Desktop E2E impact

For changes that can affect desktop user flows or rendering, complete the E2E impact check in `apps/desktop/e2e/README.md` before opening or updating the pull request.

- Search existing specs by affected surface, command, or workflow even when the branch does not change E2E files.
- Run the smallest relevant Playwright project, file, and title filter. Run the complete affected project for broad or shared-fixture changes.
- Update visual snapshots only for intentional appearance changes, inspect every changed image, and rerun without update mode.
- List exact E2E commands in `## Testing`; explicitly identify relevant E2E coverage not run and why.

### Issue linkage

Every ordinary pull request includes `## Issue`. Search open and recently closed issues before opening or updating the pull request, and reference every issue materially addressed by the change.

- Use `Closes #123` only when the pull request fully satisfies that issue's acceptance criteria. Merging to the default branch then closes the issue.
- Use `Refs #123` for partial work, prerequisites, investigation, or related context. The issue remains open.
- If substantial feature, bug, regression, or roadmap work has no adequate issue, invoke `/issue` and create one before opening the pull request.
- For small maintenance, documentation, dependency, or mechanical work with no issue, write `No issue — <brief reason>` rather than creating a ceremonial issue.
- Generated Release Please and dependency-bot pull requests are exempt from the issue section.

Never use a closing keyword merely because an issue is related. If any accepted outcome remains, use `Refs`.

## Preparation process

1. Read `git status`, staged and unstaged diffs, the branch commits, and the complete diff against `main`.
2. Confirm the branch contains only the requested change. Do not absorb unrelated dirty files.
3. Search open and recently closed issues; decide whether the pull request closes, references, or does not require an issue.
4. For substantial untracked work, invoke `/issue` before opening the pull request.
5. Use `/commit` to create any required logical commits.
6. Rebase or merge the current `main` only when needed. Do not rewrite a published branch without explicit approval.
7. Run focused validation and the repository checks required by the affected subsystem.
8. Re-read the final diff and summarize observable behavior, not implementation trivia.
9. Choose a Conventional Commit title that matches the dominant change.
10. Push the named branch without force unless explicitly approved.
11. Create the pull request with an explicit base and head, preferably using a body file to preserve formatting.
12. Verify the rendered issue keyword and all body formatting on GitHub.
13. Return the pull request URL, title, issue relationship, commit list, and validation status.

A request to create or update a pull request authorizes the ordinary push needed for that request. It never authorizes force-pushing, changing repository settings, merging the pull request, or publishing a release.

## Review process

When reviewing a pull request:

- inspect the diff and tests rather than trusting the body;
- verify the title matches Conventional Commits and the actual dominant change;
- identify user-visible `feat`, `fix`, and `perf` wording that would be confusing in release notes;
- verify the issue section exists, every linked issue is relevant, and `Closes` is used only for complete resolution;
- check that version and generated changelog edits appear only in a Release Please pull request;
- distinguish blocking correctness issues from optional improvements;
- verify claims against repository behavior and report exact paths and lines.

## Hard rules

- Never open an ordinary pull request without searching for relevant issues and including an issue section.
- Never open a pull request from a branch with uncommitted intended changes.
- Never include credentials, signing material, `.env` files, or tokens.
- Pull request titles, bodies, comments, commits, and release-note wording must describe the change and its validation, not the process used to produce it. Never include incidental execution metadata such as agent identity, handoff mechanics, remote hosts, machine names, tmux sessions, worktree paths, or “finishing work off.” Mention such infrastructure only when it is itself the subject of the change. Platform names are allowed only when materially relevant to behavior or testing evidence.
- Never force-push, merge, enable auto-merge, or publish a release unless the user explicitly asks.
- Never fabricate issue links, test results, screenshots, reviewers, or release-note claims.
- Never hide a failed or skipped check from the pull request body.

Attribution

shift-editorshift-editor
View sourceMore from shift-editor →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Screen Reader Testing

Practical guide to testing web applications with screen readers for comprehensive accessibility validation.

400051 votes

Tdd Workflow

在编写新功能、修复错误或重构代码时使用此技能。强制执行测试驱动开发,包含单元测试、集成测试和端到端测试,覆盖率超过80%。

2456590 votes

Python Testing

使用pytest、TDD方法、夹具、模拟、参数化和覆盖率要求的Python测试策略。

2456590 votes

Eval Harness

克劳德代码会话的正式评估框架,实施评估驱动开发(EDD)原则

2456590 votes

Golang Testing

Go测试模式包括表格驱动测试、子测试、基准测试、模糊测试和测试覆盖率。遵循TDD方法论,采用地道的Go实践。

2456590 votes
View all in testing →