Skip to content

chore: add a skill to open a pr - #3233

Open
AlbinaBlazhko17 wants to merge 2 commits into
mainfrom
chore/pr-skill
Open

AlbinaBlazhko17 wants to merge 2 commits into
mainfrom
chore/pr-skill

Conversation

@AlbinaBlazhko17

@AlbinaBlazhko17 AlbinaBlazhko17 commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

What/Why/How?

Pull requests opened with an AI assistant often break the repository conventions: a changed PR template, unrelated files in the commit, or a missing changeset.
This PR adds a /pr skill that opens a draft PR the way the contributing guide expects.

  • It starts a new branch from the latest main with --no-track, so a plain git push cannot target main.
  • It runs the checks, adds a changeset or the no changeset needed label, and stages each file by its path.
  • It copies the PR template and keeps every section and checkbox, including Screenshots (optional).
  • It keeps internal context out of the public title, body, and commits.

Reference

Testing

  • Opened this PR with the new /pr skill.
  • npm run lint: passes.
  • npx redocly recheck .claude/skills/pr/SKILL.md CLAUDE.md --config docs/redocly.yaml: no errors.

Screenshots (optional)

Check yourself

  • This PR follows the contributing guide
  • All new/updated code is covered by tests
  • Core code changed? - Tested with other Redocly products (internal contributions only)
  • New package installed? - Tested in different environments (browser/node)
  • Documentation update has been considered

Security

  • The security impact of the change has been considered
  • Code follows company security practices and guidelines

Note

Low Risk
Documentation and AI agent instructions only; no CLI, library, or runtime behavior changes.

Overview
Adds a new Claude Code skill at .claude/skills/pr/SKILL.md that walks an agent through opening a draft PR on Redocly CLI without touching product code (except optionally adding a changeset). The workflow covers understanding the diff, branching from latest main with --no-track, running compile/lint/typecheck/tests (or lighter checks for docs-only), changeset vs no changeset needed, path-by-path staging, Conventional Commits, filling the full PR template, and gh pr create --draft, plus guidance for updating an existing PR body.

CLAUDE.md now tells contributors to run /pr alongside the existing /deslop step before shipping.

Reviewed by Cursor Bugbot for commit 20d6649. Configure here.

@changeset-bot

changeset-bot Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 987ec2c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

Copy link
Copy Markdown
Contributor

📝 Recheck Summary

ℹ️ No Markdown files changed under docs/ or cookbook/.

@AlbinaBlazhko17 AlbinaBlazhko17 changed the title chore: add a skill to open a draft pull request chore: add a skill to open a pr Oct 12, 2026
@AlbinaBlazhko17 AlbinaBlazhko17 self-assigned this Oct 12, 2026
@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 83.16% (🎯 80%) 20421 / 24556
🔵 Statements 82.73% (🎯 80%) 22055 / 26658
🔵 Functions 84.39% (🎯 80%) 3846 / 4557
🔵 Branches 75.25% (🎯 75%) 14861 / 19748
File CoverageNo changed files found.
Generated in workflow #12500 for commit 987ec2c by the Vitest Coverage Report Action

@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Performance Benchmark (Lower is Faster)

CLI Version Bundle Lint Check Config
latest ▓░░░░░░░░░░ 1.00x ▓░░░░░░░░░░ 1.00x ± 0.01 ▓░░░░░░░░░░ 1.02x ± 0.03
next ▓░░░░░░░░░░ 1.01x ± 0.01 ▓░░░░░░░░░░ 1.00x ▓░░░░░░░░░░ 1.00x

@AlbinaBlazhko17
AlbinaBlazhko17 marked this pull request as ready for review October 12, 2026 08:16
@AlbinaBlazhko17
AlbinaBlazhko17 requested a review from a team as a code owner October 12, 2026 08:16

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 20d6649. Configure here.

Comment thread .claude/skills/pr/SKILL.md Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants