ddw-create-prlisted
Install: claude install-skill soydiloreto/dilux-development-workflow
# Skill: /ddw-create-pr
## Description
Opens a Pull Request with a standard format and AI attribution labels. If this repo cannot host a
PR, records why — so the closeout is never blocked by something outside the user's control.
## Inputs
- The current branch and the base branch.
- The branch's commits.
- `.ddw-state.json` for ticket, tier and gates.
- `.ddw/rules/commits.instructions.md` for the format.
## Step 0: Can this repo host a PR? (check FIRST)
Before writing anything, check the preconditions — in this order, stopping at the first that fails:
```bash
git remote # is there a remote at all?
git remote get-url origin # where does it point?
command -v gh # is the GitHub CLI installed?
gh auth status # is it authenticated?
```
**If they all pass** → continue with the normal protocol.
**If any fails**, do NOT invent an alternative and do NOT fail silently. Report exactly what is
missing and offer the options:
```
┌─────────────────────────────────────────────────────────┐
│ /ddw-create-pr — A PR is not possible here │
├─────────────────────────────────────────────────────────┤
│ │
│ Reason: [no remote configured / gh not installed / │
│ not authenticated / the remote is not GitHub] │
│ │
│ What do you want to do? │
│ 1. Push the b