Skip to content

refactor(agents): remove git-pr command in favor of the pr skill#9966

Open
saltas888 wants to merge 2 commits into
stablefrom
chore/remove-git-pr-command
Open

refactor(agents): remove git-pr command in favor of the pr skill#9966
saltas888 wants to merge 2 commits into
stablefrom
chore/remove-git-pr-command

Conversation

@saltas888

@saltas888 saltas888 commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Why

git-pr duplicated the PR-creation flow the pr skill already owns (push, description, gh pr create). Two commands doing the same job is a maintenance trap and a source of drift.

Goal: a single canonical PR path. Non-goal: changing how PRs get opened — the behaviour is preserved through the pr skill.

What changed

  • Removed the /git-pr slash command.
  • Rewired its only consumer, the feature-flow skill (Phase 6c), to delegate PR opening to /pr — mirroring how it already delegates committing to /git-commit, in line with feature-flow's own "reuse, don't reimplement" principle.

No product code touched — this is .agents/ tooling and a dev-skill doc only.

How to review

  • .agents/commands/git-pr.md — deleted.
  • dev/skills/feature-flow/SKILL.md — Phase 6c now invokes /pr; the intro reuse-list swaps /git-pr/pr.

How to test

git grep git-pr   # → no matches in tracked files

Summary by cubic

Removed the /git-pr command and routed all PR creation through /pr. feature-flow now enforces the old safety checks so behavior matches the previous flow.

  • Refactors

    • Deleted .agents/commands/git-pr.md.
    • Updated dev/skills/feature-flow/SKILL.md Phase 6c to delegate to /pr and enforce: hard-stop on a dirty tree, push branch before calling, and for dependent split PRs retarget base after opening and add a Depends on #<parent-PR> line.
  • Migration

    • Replace any /git-pr usage with /pr.

Written for commit 798dcf8. Summary will update on new commits.

Review in cubic

@saltas888 saltas888 added type/housekeeping Maintenance task ci/skip-changelog Don't include this PR in the changelog labels Jul 19, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 2 files

Confidence score: 5/5

  • Safe to merge after the addressed issues were fixed.

Shadow auto-approve: would not auto-approve because issues were found.

Re-trigger cubic

Comment thread dev/skills/feature-flow/SKILL.md Outdated
Comment thread dev/skills/feature-flow/SKILL.md Outdated
Comment thread dev/skills/feature-flow/SKILL.md Outdated

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 1 file (changes from recent commits).

Shadow auto-approve: would not auto-approve because issues were found.

Re-trigger cubic

Comment thread dev/skills/feature-flow/SKILL.md
Comment thread dev/skills/feature-flow/SKILL.md
saltas888 and others added 2 commits July 20, 2026 10:30
The `/git-pr` command duplicated the PR-creation flow the `pr` skill already
owns (push, description, gh pr create). Remove it and rewire its only consumer,
the feature-flow skill, to delegate PR opening to `/pr` — mirroring how
feature-flow already delegates committing to `/git-commit`.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…tion

Address review feedback on the git-pr → /pr rewire. `/pr` (without `commit`)
does not push, only warns on a dirty tree, and cannot force a base branch —
guards the old `/git-pr` provided. Restore them in the orchestrator without
reimplementing PR creation:

- STOP on a dirty working tree before invoking /pr (was: warn-and-continue).
- Publish the branch (git push -u) before /pr, so gh pr create can't stall.
- For dependent split PRs, retarget the base with gh pr edit and verify the
  diff, since /pr selects the repo default base itself.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@saltas888
saltas888 force-pushed the chore/remove-git-pr-command branch from cdcf34d to 798dcf8 Compare July 20, 2026 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/skip-changelog Don't include this PR in the changelog type/housekeeping Maintenance task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant