Skip to content
Back to skills

Adt Open Github Pr

ASecurity

Create a GitHub pull request with gh CLI against the repository's base branch, template resolution, mandatory title/body confirmation, and mandatory auto-merge ask. Use whenever the user wants a PR opened — including /adt-open-github-pr, open PR, create pull request, abrir PR, criar PR, abrir o PR, faça o PR, fazer o PR, open the PR, open a pull request, fluxo completo (when PR is in scope), commit+push+PR, push and open PR, release PR, or any handoff from /adt-commit or /adt-push that implie...

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 27, 2026
ai-agentsrailscode-reviewgit

Works with

  • cli

Security analysis

A100/100

Pro scans all 11 files and shows the line behind each finding

Scanned November 27, 2026

npx -y skills add tibursocampos/agent-dev-toolkit --skill adt-open-github-pr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Adt Open Github Pr?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Adt Open Github Pr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tibursocampos-adt-open-github-pr/badge)](https://www.skillsdirectory.com/skills/tibursocampos-adt-open-github-pr)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: adt-open-github-pr
description: >
  Create a GitHub pull request with gh CLI against the repository's base branch,
  template resolution, mandatory title/body confirmation, and mandatory auto-merge ask.
  Use whenever the user wants a PR opened — including /adt-open-github-pr, open PR, create pull request,
  abrir PR, criar PR, abrir o PR, faça o PR, fazer o PR, open the PR, open a pull request,
  fluxo completo (when PR is in scope), commit+push+PR, push and open PR, release PR,
  or any handoff from /adt-commit or /adt-push that implies opening a pull request.
  Never create a PR with ad-hoc gh commands outside this skill; follow this SKILL.md end-to-end.
---

## STOP - Read before ANY tool call

Read `_shared/skill-boilerplate.md` first. It holds the guardrails read, the session gate rule, the user `sim` rule, the one-step rule, the gate check, and the user chat language rule. The steps below are skill-specific only.

---

# Skill: adt-open-github-pr

## Trigger
**Negative signal:** applies as defined in `_shared/skill-boilerplate.md`; the skill-specific signals are listed below.

Invoke when **any** of these apply (slash, English, or pt-BR — including bundled “full flow” requests):

| Kind | Examples |
|------|----------|
| Slash | `/adt-open-github-pr` |
| Explicit EN | `open PR`, `open the PR`, `create pull request`, `create a PR`, `open a pull request`, `make a PR` |
| Explicit pt-BR | `abrir PR`, `abrir o PR`, `criar PR`, `criar o PR`, `faça o PR`, `fazer o PR`, `abre o PR`, `abra o PR` |
| Bundled flow | `fluxo completo`, `faça o fluxo completo`, `commit push e PR`, `commit + push + PR`, `depois abra o PR`, `push and open PR` — after `/adt-commit`/`/adt-push` finish, **this** skill owns the PR step |
| Handoff | User answers `confirm` to `/adt-push`’s “Abrir pull request com /adt-open-github-pr?” prompt; or `/adt-commit`/`/adt-code-review` hand off for PR |

### Agent routing (mandatory)

1. **Before** any `gh pr create`, `gh pr merge`, or web Compare & pull request steps: **Read this entire `SKILL.md`** and follow Steps -1 → 8 in order.
2. Do **not** invent a shortcut PR (raw `gh pr create` from `/adt-commit`, `/adt-push`, or ad-hoc chat). Those skills only **hand off** here.
3. If the user already said they want a PR in the same message as commit/adt-push (“fluxo completo”, “abra o PR”, etc.): after push succeeds, **enter this skill immediately** (do not skip confirmation or the auto-merge question).
4. Step 6 is **never optional**: always present title/base/head/body **and** ask auto-merge (`confirm` / `decline`), including when `allow_auto_merge` is false (then report unavailable after create if they answered `confirm`).

## Outcome

One GitHub pull request created via `gh pr create` against the repository's base branch, using the resolved template, after user confirmation. Optional `gh pr merge --auto` when allowed and approved, with the merge method the repository requires (see `references/confirm-and-create.md`). No PR without content confirmation **and** an explicit auto-merge answer.

## Lazy-load (only when needed)

| When | Path (after syncing the active adapter) |
|------|----------------------------------------|
| Branch rules | `{{TOOLKIT_ROOT}}/rules/branch-validation.mdc` |
| Commit / PR flow | `{{TOOLKIT_ROOT}}/skills/_shared/developer-common/step-4-commits-pr.md` |
| Feature body fallback | `{{TOOLKIT_ROOT}}/skills/adt-open-github-pr/templates/feature-pr.md` |
| Reference index (routing only) | `{{TOOLKIT_ROOT}}/skills/adt-open-github-pr/reference.md` |
| Process step detail (lazy) | `{{TOOLKIT_ROOT}}/skills/adt-open-github-pr/references/<section>.md` |

**Never by default:** do not preload all templates or all `references/*.md`. Load **one** section per Process step (`SKILL-REFERENCE-RETRIEVAL.md`). Never load `CAVEMAN.md` for this skill.

## Reference routing

| Situation | Path |
|-----------|------|
| Guards / mode | `references/guards-and-mode.md` |
| Validate branch | `references/validate-branch.md` |
| Preflight (gh) | `references/preflight.md` |
| Ensure pushed | `references/ensure-pushed.md` |
| Resolve template | `references/resolve-template.md` |
| Draft title/body | `references/draft-title-body.md` |
| Confirm and create | `references/confirm-and-create.md` |
| Must not (full) | `references/must-not.md` |
## Process

Read `references/<section>.md` for procedural detail — **not** full `reference.md`. Do not skip gates.

### -1 / 0. Guards and mode
Follow `references/guards-and-mode.md` (Caveman **NEVER**; re-check guardrails; resolve the base and the head).

### 1. Validate branch for the selected mode (blocker)
Follow `references/validate-branch.md`. Feature PRs require a work-branch head. Release PRs use the repository's documented release source and destination; in the standard `develop` → `master`/`main` flow, `develop` is the valid head. Do not apply the feature-branch restriction to release mode.

### 2. Preflight - GitHub CLI
Follow `references/preflight.md`. Prefer authenticated `gh`; STOP with install help if unavailable.

### 3. Ensure branch is pushed
Follow `references/ensure-pushed.md`. Feature mode checks the current work branch; release mode checks the documented remote release head. Hand off to `/adt-push` only when the requested head contains local commits that need publishing. Never force-push protected branches.

### 4. Resolve PR body template
Follow `references/resolve-template.md`.

### 5. Draft title and body
Follow `references/draft-title-body.md`.

### 6–8. Confirm, create, report
Follow `references/confirm-and-create.md`. Step 6 confirmation **and** auto-merge ask are **mandatory** every time. Gate ids and render rule: `core/skills/_shared/agents/QUESTIONS.md`. Always ask the content gate and the auto-merge gate in the user's chat language, including after **fluxo completo**. The auto-merge question asks whether to enable auto-merge after the PR is created, with the `confirm` (enable) and `decline` (do not enable) choices.
## Must not

Enforce the full list in `references/must-not.md`. Critical always-on: no PR without gate + content `confirm` + auto-merge ask; no invalid branch; no force-push; no Caveman compression of title/body; no skipping this `SKILL.md` for ad-hoc `gh pr create`.
## Handoff

| Situation | Next |
|-----------|------|
| Branch not pushed | `/adt-push` then re-invoke `/adt-open-github-pr` |
| Review after PR (optional) | `/adt-code-review` |
| Continue SDD step | New session → `/adt-sdd-develop - <full-plan-path> - Step N` |
| Future unified orchestrator | `/open-pr` — **out of scope** for this skill |

Files in this skill

  • SKILL.md6.5 KB
  • reference.md749 B
  • references/confirm-and-create.md2.1 KB
  • references/draft-title-body.md453 B
  • references/ensure-pushed.md877 B
  • references/guards-and-mode.md1.9 KB
  • references/must-not.md1001 B
  • references/preflight.md1.3 KB
  • references/resolve-template.md514 B
  • references/validate-branch.md1.5 KB
  • templates/feature-pr.md632 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.