job3: D1 deploy skill — ~/.claude paths for lib+templates
This commit is contained in:
@@ -211,7 +211,7 @@ Author a runbook, seed the incident ledger, commit both, then proceed to STEP 1.
|
|||||||
| Rollback note | "One-line rollback note (optional)?" | omit if blank |
|
| Rollback note | "One-line rollback note (optional)?" | omit if blank |
|
||||||
| Push deploy tags | "`push_deploy_tags`? (true / false)" | `false` |
|
| Push deploy tags | "`push_deploy_tags`? (true / false)" | `false` |
|
||||||
|
|
||||||
**Using** `templates/deploy/PROCEDURE.md` **as base, populate** fields from interview answers + detected artifacts:
|
**Using** `~/.claude/templates/deploy/PROCEDURE.md` **as base, populate** fields from interview answers + detected artifacts:
|
||||||
- Substitute `$DEPLOY_HOST` with the supplied host (keep literal `$DEPLOY_HOST` if none given).
|
- Substitute `$DEPLOY_HOST` with the supplied host (keep literal `$DEPLOY_HOST` if none given).
|
||||||
- Include only the annotated steps whose artifact was detected; keep all fixed steps.
|
- Include only the annotated steps whose artifact was detected; keep all fixed steps.
|
||||||
- Set `# @config push_deploy_tags=<answer>` in the header.
|
- Set `# @config push_deploy_tags=<answer>` in the header.
|
||||||
@@ -232,7 +232,7 @@ Present the full draft `PROCEDURE.md`.
|
|||||||
**On approve — write + seed + commit:**
|
**On approve — write + seed + commit:**
|
||||||
|
|
||||||
1. Write `.claude/deploy/PROCEDURE.md` (Write tool — the approved draft).
|
1. Write `.claude/deploy/PROCEDURE.md` (Write tool — the approved draft).
|
||||||
2. Seed `.claude/deploy/INCIDENTS.md` from `templates/deploy/INCIDENTS.md` (Write tool).
|
2. Seed `.claude/deploy/INCIDENTS.md` from `~/.claude/templates/deploy/INCIDENTS.md` (Write tool).
|
||||||
3. Ensure the target project's `.gitignore` contains
|
3. Ensure the target project's `.gitignore` contains
|
||||||
`.claude/deploy/PENDING.json` (append if missing — the transient bridge must
|
`.claude/deploy/PENDING.json` (append if missing — the transient bridge must
|
||||||
not be committed).
|
not be committed).
|
||||||
@@ -243,7 +243,7 @@ Present the full draft `PROCEDURE.md`.
|
|||||||
`.claude/` rule). Do NOT commit anything further.
|
`.claude/` rule). Do NOT commit anything further.
|
||||||
5. Commit via the allowlist helper:
|
5. Commit via the allowlist helper:
|
||||||
```bash
|
```bash
|
||||||
bash lib/deploy-commit.sh commit \
|
bash ~/.claude/lib/deploy-commit.sh commit \
|
||||||
"feat(deploy): bootstrap runbook" \
|
"feat(deploy): bootstrap runbook" \
|
||||||
.claude/deploy/PROCEDURE.md .claude/deploy/INCIDENTS.md
|
.claude/deploy/PROCEDURE.md .claude/deploy/INCIDENTS.md
|
||||||
```
|
```
|
||||||
@@ -350,7 +350,7 @@ changes a prod path).
|
|||||||
|
|
||||||
**On approve — one ATOMIC commit of both files:**
|
**On approve — one ATOMIC commit of both files:**
|
||||||
```bash
|
```bash
|
||||||
bash lib/deploy-commit.sh commit \
|
bash ~/.claude/lib/deploy-commit.sh commit \
|
||||||
"docs(deploy): patch <step> — recovered from <err>" \
|
"docs(deploy): patch <step> — recovered from <err>" \
|
||||||
.claude/deploy/PROCEDURE.md .claude/deploy/INCIDENTS.md
|
.claude/deploy/PROCEDURE.md .claude/deploy/INCIDENTS.md
|
||||||
```
|
```
|
||||||
@@ -395,7 +395,7 @@ The deploy succeeded. Lay the oracle and close out.
|
|||||||
bookmark; `STATE.json` is the oracle).
|
bookmark; `STATE.json` is the oracle).
|
||||||
5. Commit the oracle:
|
5. Commit the oracle:
|
||||||
```bash
|
```bash
|
||||||
bash lib/deploy-commit.sh commit "chore(deploy): mark <date> @ <short>" \
|
bash ~/.claude/lib/deploy-commit.sh commit "chore(deploy): mark <date> @ <short>" \
|
||||||
.claude/deploy/STATE.json
|
.claude/deploy/STATE.json
|
||||||
```
|
```
|
||||||
6. **Delete `.claude/deploy/PENDING.json`** — the deploy is no longer in
|
6. **Delete `.claude/deploy/PENDING.json`** — the deploy is no longer in
|
||||||
|
|||||||
Reference in New Issue
Block a user