pr
Pushes committed changes to the remote and creates or updates a PR.
- License 许可
- MIT
- 所属仓库
- ozzy-labs/skills
- 最近更新
- 2026-07-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- pr
- description
- Pushes committed changes to the remote and creates or updates a PR.
02 资源文件 1
- 参考文档SKILL.claude-code.md527 B
03 SKILL.md 正文
pr - Push & PR creation
Pushes committed changes to the remote and creates or updates a PR.
Prerequisites
- Do not push directly to the main branch
- If there are uncommitted changes, commit them first
- If there are no commits to push, stop
Steps
1. Check state
- Check the current branch with
git branch --show-current - Check uncommitted changes with
git status - Check unpushed commits with
git log --oneline origin/<branch>..HEAD 2>/dev/null || git log --oneline -5
2. Push & create PR
- Push to the remote with
git push -u origin <branch> - Create the PR:
- Check for an existing PR with
gh pr view - If no existing PR: create the PR with
gh pr create --title "<title>" --body "<body>". Use the first line of the most recent commit message as the title - If an existing PR exists: just push (the PR updates automatically)
- Check for an existing PR with
PR body format:
## Summary
- <bulleted list of changes>
Closes #N <!-- only when originating from an Issue -->
3. Completion report
完了:
ブランチ: <branch-name>
PR: <PR URL>
04 同仓库更多 Skills
verify
An integrated skill that runs the combined validation of build / typecheck / test / lint in one shot. The `verify.mjs` engine auto-discovers validation commands via a discovery chain (AGENTS.md's 「検証」 section → package.json scripts → justfile/Makefile/lefthook → language heuristics), executes them serially with their source attached, and returns a result summary. If a higher-priority stage produces a hit, only that stage is executed (no crossing stages).
usage-guard
Monitors Claude Code's Usage Limit (5-hour = Current / weekly = Weekly), pauses work when it exceeds 95%, and automatically resumes once the reset restores headroom. Bundles an engine form that a caller such as drive Reads at a checkpoint, and a standalone form, `/usage-guard "<continuation command>"`, that guards arbitrary work. Claude-only (depends on the OAuth usage-rate endpoint + ScheduleWakeup).
topics
Selects GitHub topic candidates by having the `topics.mjs` engine perform constraint validation, popularity measurement, broad+narrow / singular-plural comparison, and hardcoded ozzy-labs conventions, then applies them via `gh repo edit --add-topic` following the policy's `externally-visible` gate (default batch-confirm). Scope is limited to use within ozzy-labs.
skill-observability
Defines the skill observability event contract (event.schema.json) and emit substrate (obs-emit.mjs). The SSOT for the measurement layer of the skill improvement loop. Referenced by other skills and hooks.
skill-metrics
Aggregates the local observability event log (~/.agents/observability/events.jsonl) and presents, read-only, per-skill invocation counts and notable events (fallback / HITL rejection / loop cap reached / abort). Fires on "show me the skill metrics," "aggregate the observability results," "which skills get used the most?" Does not send anything.
ship
Runs verification, commit, and PR creation all at once. An integrated pipeline that runs verify (build + type + test + lint) → commit → PR creation in sequence against the changes.