oprogramadorreal/optimus-claude / skills/pr
pr
VerifiedCreates or updates a pull request (GitHub) or merge request (GitLab) for the current branch in the Conventional PR format — intent, summary, changes, rationale, and test plan. Pushes the branch if needed (asks before any force-push) and captures the implementation conversation's intent into the PR description. Use when a feature branch is ready for review or to refresh an existing PR/MR description.
| File | Kind | Size |
|---|---|---|
| README.md | markdown | 3.9 KB |
| SKILL.md | skill md | 10.7 KB |
| agents/openai.yaml | config | 198 B |
| references/default-branch-detection.md | markdown | 709 B |
| references/platform-detection.md | markdown | 1.5 KB |
| references/pr-template.md | markdown | 2.6 KB |
references/platform-detection.md
View on GitHub# Platform Detection & CLI Management
Shared reference (also consumed by `/optimus:code-review`). Each consuming skill reads the sections it needs and applies its own policy (e.g., whether to offer CLI installation, whether to stop on failure).
## Platform Detection Algorithm
1. **`origin` remote URL** (`git remote get-url origin`) — URL identifies GitHub or GitLab → use that platform.
2. **Other remotes** (`git remote -v`) — if multiple remotes point to different platforms, ask the user which one to use.
3. **CI-file fallback** — `.gitlab-ci.yml` at the repo root → GitLab; `.github/` directory → GitHub.
4. **Still unknown** → detection failed; the consuming skill decides how to handle it (stop, skip, or ask).
### Signal Conflict Resolution
If signals conflict (e.g., GitHub remote URL but `.gitlab-ci.yml` exists), the **remote URL is authoritative** — note the discrepancy to the user.
## CLI Verification
- Installed: `gh --version` / `glab --version`
- Authenticated: `gh auth status` / `glab auth status` — if not, tell the user to run `gh auth login` / `glab auth login`. The consuming skill decides whether to stop or continue.
## CLI Installation
Install via the OS package manager — e.g. `brew install gh|glab`, `winget install GitHub.cli` / `winget install GLab.GLab`, or the `apt`/`dnf`/`pacman` equivalents. Afterwards re-run both verification checks; if the command still fails, report that the installation did not succeed and provide manual instructions.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |