Skills

Oss PR

Use when creating a pull request, after committing changes, or when user invokes /oss-pr.

Install

npx skills add FerroxLabs/wayland --skill oss-pr -g -a claude-code -y
Repository
FerroxLabs/wayland616
Category
Git and review
Updated
4d ago
License
AGPL-3.0
Context cost
Lightabout 1,010 tokens
Runs scripts
No, instructions only

What it does

Use when creating a pull request, after committing changes, or when user invokes /oss-pr. Covers branch management, quality checks, commit, push, and PR creation.

OSS PR

Smart commit + PR workflow: branch management → quality checks → tests → commit → push → PR.

Announce at start: "Using oss-pr skill to commit and open a pull request."

Workflow

Step 0: Gather Info

git branch --show-current
git diff --name-only HEAD
git status --short
git config user.name

Branch rules:

  • If already on a feature branch: proceed directly
  • If on main or master: auto-generate a branch name, create and switch immediately - no confirmation needed

Auto-generating a branch name:

Analyze the changed files from git diff --name-only HEAD to infer:

  1. type - pick one: feat / fix / refactor / chore
    • feat: new user-facing functionality
    • fix: bug fix
    • refactor: restructuring without behavior change
    • chore: config, scripts, skills, docs, deps
  2. slug - 2, 3 lowercase words derived from the most relevant changed paths, joined by hyphens. Keep it short and specific.

Create branch {username}/{type}/{slug} directly and announce the name chosen.

Branch naming reference:

TypeExample
feat{prefix}/feat/dark-mode
fix{prefix}/fix/crash-on-open
refactor{prefix}/refactor/settings
chore{prefix}/chore/update-deps

Step 1: Quality Checks

CommandScopeSkip when
bun run format.ts/.tsx/.css/.json/.mdNever - always run
bun run lint.ts/.tsx onlyNo .ts/.tsx files changed
bunx tsc --noEmit.ts/.tsx onlyNo .ts/.tsx files changed

Run in this order: format → lint → tsc.

Read the whole SKILL.md on GitHub

More in Git and review