Create or update Pull Requests with AI-generated descriptions, mermaid diagrams, and file walkthroughs. Integrates with SDD specs. Use --update flag to modify existing PRs.
Generate and create/update a comprehensive PR using the shared body template.
Parse $ARGUMENTS:
--update or -u followed by a number → Update Mode on that PR.main).git log origin/${BASE:-main}..HEAD --oneline
git diff origin/${BASE:-main}...HEAD --stat
git diff origin/${BASE:-main}...HEAD
Changed paths → change type:
| Path pattern | Change type |
|---|---|
| infrastructure/base/crossplane/configuration-aws/configuration-packages.yaml (composition package pin) | composition |
| opentofu/**/*.tf, terramate.tm.hcl | infrastructure |
| *networkpolicy*, *rbac*, openbao/**, *cilium*policy* | security |
| Multiple top-level dirs + HelmRelease/Kustomization | platform |
Find the design document behind these changes, if one exists. Non-trivial work goes through the
Superpowers flow (see CLAUDE.md → Development Workflow), which commits a design and a plan on
the branch:
git diff origin/${BASE:-main}...HEAD --name-only \
| grep -oE 'docs/superpowers/(specs|plans)/[0-9]{4}-[0-9]{2}-[0-9]{2}-[a-z0-9-]+\.md' \
| sort -u
When a design is detected, include the Design block:
## 📋 Design
Design: [`<date>-<topic>-design.md`](../blob/main/docs/superpowers/specs/<date>-<topic>-design.md)
Plan: [`<date>-<topic>-plan.md`](../blob/main/docs/superpowers/plans/<date>-<topic>-plan.md)
<one line: which part of the plan this PR delivers>
If the design doc itself changed materially in a PR that also implements it, say so in the summary — a design moving during implementation usually signals scope creep worth calling out.
If the changes look substantial (a new composition, a new OpenTofu stack, a security-model change) and no design doc is present, include the Design Recommendation warning block from the template.
Fill the template in templates/pr-body.md. Apply the mermaid styling from references/mermaid-styles.md. Keep title < 70 chars. Drop sections that do not apply (no empty stubs).
git push -u origin "$(git branch --show-current)"
gh pr create --base "${BASE:-main}" --title "<title>" --body "$BODY"
Return only the PR URL.
gh pr view "$PR_NUMBER" --json number,title,files,additions,deletions,baseRefName,body
gh pr diff "$PR_NUMBER"
Generate a fresh body using the same template. Update:
gh pr edit "$PR_NUMBER" --body "$BODY"
Return Updated PR #<N>: <url>.
feat(crossplane): ...), under 70 chars.docs/superpowers/specs/*-design.md in the diff. Preserve existing references on update.superpowers:brainstorming — produces the design this PR references/commit — commit with pre-commit validation before creating PR/improve-pr <number> — security + quality review after PR existstemplates/pr-body.md — full body template with both design-present and design-recommendation variantsreferences/mermaid-styles.md — color classes and best practices for flow diagramsSearch for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer