Skip to content

oprogramadorreal/optimus-claude / skills/pr

Creates 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.

FileKindSize
README.mdmarkdown3.9 KB
SKILL.mdskill md10.7 KB
agents/openai.yamlconfig198 B
references/default-branch-detection.mdmarkdown709 B
references/platform-detection.mdmarkdown1.5 KB
references/pr-template.mdmarkdown2.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.
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall