@lifeaitools/rdc-skills 0.25.5 → 0.25.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +1550 -1550
- package/.github/workflows/self-test.yml +34 -34
- package/CHANGELOG.md +319 -319
- package/MANIFEST.md +224 -224
- package/README.md +367 -367
- package/commands/build.md +181 -181
- package/commands/collab.md +180 -180
- package/commands/deploy.md +148 -148
- package/commands/fixit.md +150 -150
- package/commands/handoff.md +173 -173
- package/commands/overnight.md +220 -220
- package/commands/plan.md +158 -158
- package/commands/preplan.md +131 -131
- package/commands/prototype.md +145 -145
- package/commands/report.md +99 -99
- package/commands/review.md +120 -120
- package/commands/status.md +86 -86
- package/commands/workitems.md +127 -127
- package/git-sha.json +1 -1
- package/guides/agent-bootstrap.md +195 -195
- package/guides/agents/backend.md +102 -102
- package/guides/agents/content.md +94 -94
- package/guides/agents/cs2.md +56 -56
- package/guides/agents/data.md +86 -86
- package/guides/agents/design.md +77 -77
- package/guides/agents/frontend.md +91 -91
- package/guides/agents/infrastructure.md +81 -81
- package/guides/agents/setup.md +272 -272
- package/guides/agents/verify.md +119 -119
- package/guides/agents/viz.md +106 -106
- package/hooks/check-rdc-environment.js +318 -164
- package/hooks/lib/box-lock.js +186 -0
- package/package.json +1 -1
- package/scripts/install-rdc-skills.js +1474 -1400
- package/scripts/local-install-with-stop.sh +41 -0
- package/scripts/probe-box-lock.mjs +179 -0
- package/scripts/probe-installed-hooks.mjs +60 -0
- package/scripts/probe-lock-holders.mjs +36 -0
- package/scripts/self-test.mjs +1459 -1459
- package/scripts/validate-publish-manifests.js +502 -502
- package/skills/build/SKILL.md +578 -578
- package/skills/channel-formatter/SKILL.md +538 -538
- package/skills/collab/SKILL.md +239 -239
- package/skills/convert/SKILL.md +138 -138
- package/skills/deploy/SKILL.md +541 -541
- package/skills/design/SKILL.md +205 -205
- package/skills/env/SKILL.md +139 -139
- package/skills/fixit/SKILL.md +203 -203
- package/skills/handoff/SKILL.md +236 -236
- package/skills/housekeeping/SKILL.md +189 -189
- package/skills/onramp/SKILL.md +1459 -1459
- package/skills/overnight/SKILL.md +251 -251
- package/skills/plan/SKILL.md +345 -345
- package/skills/preplan/SKILL.md +90 -90
- package/skills/prototype/SKILL.md +150 -150
- package/skills/regen-media/SKILL.md +94 -94
- package/skills/release/SKILL.md +140 -140
- package/skills/report/SKILL.md +100 -100
- package/skills/review/SKILL.md +151 -151
- package/skills/self-test/SKILL.md +108 -108
- package/skills/status/SKILL.md +99 -99
- package/skills/tests/MATRIX.md +55 -55
- package/skills/tests/onramp.test.json +87 -87
- package/skills/tests/rdc-regen-media.test.json +29 -29
- package/skills/watch/SKILL.md +84 -84
- package/skills/workitems/SKILL.md +151 -151
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: rdc:regen-media
|
|
3
|
-
description: "Usage `rdc:regen-media <generate|edit|upscale|upload> <brief-or-path>` - Primary image-generation and Regen Media asset workflow. Use for image generation, image editing/upscaling, GPT Image/gpt-image-2 requests, Codex built-in image_gen, and uploading finished images to regen-media/R2. The default path is keyless local Codex gpt-image-2 via the built-in image_gen tool; server-side regen-media MCP/API generation is fallback only."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
> **⚠️ OUTPUT CONTRACT (READ FIRST):** `guides/output-contract.md`
|
|
7
|
-
> Checklist-only output. No tool-call narration. No raw MCP/JSON/log dumps.
|
|
8
|
-
> One checklist upfront, updated in place, shown again at end with a 1-line verdict.
|
|
9
|
-
|
|
10
|
-
> **Sandbox contract:** This skill honors `RDC_TEST=1`. Under `RDC_TEST=1`, do not call Codex image generation, OpenAI, regen-media APIs, upload endpoints, clauth credentials, or external services. Print the planned command and output paths only.
|
|
11
|
-
|
|
12
|
-
# rdc:regen-media
|
|
13
|
-
|
|
14
|
-
Primary image-generation and asset-ingest workflow for Regen Media.
|
|
15
|
-
|
|
16
|
-
## Default Decision
|
|
17
|
-
|
|
18
|
-
Use local Codex built-in `image_gen` with `gpt-image-2` first when all are true:
|
|
19
|
-
|
|
20
|
-
- The caller is local Codex with `codex` CLI available.
|
|
21
|
-
- `codex login status` reports ChatGPT login.
|
|
22
|
-
- `codex features list` includes stable `image_generation`.
|
|
23
|
-
- The task is generation, editing, re-rendering, or upscaling an image.
|
|
24
|
-
|
|
25
|
-
Use regen-media MCP/API generation only when the local keyless Codex path is unavailable, when running in a remote/cloud session, or when the user explicitly asks for server-side generation.
|
|
26
|
-
|
|
27
|
-
Use regen-media upload/registration after the image file exists and should become a managed media asset.
|
|
28
|
-
|
|
29
|
-
## Local Keyless gpt-image-2
|
|
30
|
-
|
|
31
|
-
Preflight:
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
codex login status
|
|
35
|
-
codex features list
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
Requirements for size to apply:
|
|
39
|
-
|
|
40
|
-
1. Use `--enable image_generation`.
|
|
41
|
-
2. Use `-c model=gpt-5.5`.
|
|
42
|
-
3. Instruct Codex: `use the built-in image_gen tool DIRECTLY; do not write API keys, scripts, or MCP`.
|
|
43
|
-
4. Name the target size in the instruction, such as `2048x1152`, `2048x2048`, or `3840x2160`.
|
|
44
|
-
|
|
45
|
-
Text to image:
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
echo "Use the built-in image_gen tool DIRECTLY at size 3840x2160 (4K). No API keys/scripts/MCP. Copy the PNG to output/imagegen/<name>.png and reply with only that path + pixel dims. Prompt: <dense art-directed prompt>." | codex exec --enable image_generation --dangerously-bypass-approvals-and-sandbox --cd "$PWD" -c model=gpt-5.5
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
Image edit, re-render, or upscale:
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
echo "Use the built-in image_gen tool DIRECTLY to re-render the ATTACHED image at size 3840x2160 (4K), preserving its composition, subject, palette, and lighting. No API keys/scripts/MCP. Save to output/imagegen/<name>-4k.png and reply with only the path + dims." | codex exec -i "input/source.png" --enable image_generation --dangerously-bypass-approvals-and-sandbox --cd "$PWD" -c model=gpt-5.5
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
Notes:
|
|
58
|
-
|
|
59
|
-
- The keyless path uses the local ChatGPT Pro OAuth in the Codex install, not `OPENAI_API_KEY`.
|
|
60
|
-
- Output may land both in the requested path and under `~/.codex/generated_images/<session-id>/ig_*.png`.
|
|
61
|
-
- Use a long timeout or background session; generation commonly takes 2-5 minutes.
|
|
62
|
-
- Valid `gpt-image-2` sizes include `1024x1024`, `1536x1024`, `1024x1536`, `2048x2048`, `2048x1152`, `3840x2160`, `2160x3840`, and `auto`, subject to model constraints.
|
|
63
|
-
|
|
64
|
-
## Upload to Regen Media
|
|
65
|
-
|
|
66
|
-
After generation, upload finished images through the project uploader when available:
|
|
67
|
-
|
|
68
|
-
```powershell
|
|
69
|
-
powershell.exe -ExecutionPolicy Bypass -File "{PROJECT_ROOT}/scripts/upload-to-media.ps1" "output/imagegen/<name>.png"
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
The uploader obtains `regen-media-api` from clauth and posts to Regen Media. Never print credential values. If upload is not required, return the local artifact path and dimensions.
|
|
73
|
-
|
|
74
|
-
## Server-Side Fallback
|
|
75
|
-
|
|
76
|
-
Use the deployed regen-media MCP/API generation path only when the local Codex image tool is unavailable or inappropriate. This path is credentialed, server-side, and may require an OpenAI/API key configured for the service. Treat it as fallback for generation, not the default.
|
|
77
|
-
|
|
78
|
-
## Procedure
|
|
79
|
-
|
|
80
|
-
1. Classify the task: `generate`, `edit`, `upscale`, or `upload`.
|
|
81
|
-
2. If `RDC_TEST=1`, print the selected path and planned commands without executing external calls.
|
|
82
|
-
3. For generation/edit/upscale, attempt the local keyless Codex preflight.
|
|
83
|
-
4. Build the Codex `exec` command with the requested size and explicit built-in `image_gen` instruction.
|
|
84
|
-
5. Save to `output/imagegen/` or a caller-provided path.
|
|
85
|
-
6. Verify the file exists and record pixel dimensions.
|
|
86
|
-
7. If the artifact should be managed, upload it to Regen Media and return the media URL/slug plus local path.
|
|
87
|
-
8. If local Codex is unavailable, use the server-side regen-media generation fallback and clearly say that it is the fallback path.
|
|
88
|
-
|
|
89
|
-
## Boundaries
|
|
90
|
-
|
|
91
|
-
- Do not write or expose API keys.
|
|
92
|
-
- Do not silently downgrade from local keyless `gpt-image-2` to server-side MCP/API generation.
|
|
93
|
-
- Do not use prompt-only size hints; always set the Codex command and instruction shape above.
|
|
94
|
-
- Do not run generation or upload in test mode.
|
|
1
|
+
---
|
|
2
|
+
name: rdc:regen-media
|
|
3
|
+
description: "Usage `rdc:regen-media <generate|edit|upscale|upload> <brief-or-path>` - Primary image-generation and Regen Media asset workflow. Use for image generation, image editing/upscaling, GPT Image/gpt-image-2 requests, Codex built-in image_gen, and uploading finished images to regen-media/R2. The default path is keyless local Codex gpt-image-2 via the built-in image_gen tool; server-side regen-media MCP/API generation is fallback only."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
> **⚠️ OUTPUT CONTRACT (READ FIRST):** `guides/output-contract.md`
|
|
7
|
+
> Checklist-only output. No tool-call narration. No raw MCP/JSON/log dumps.
|
|
8
|
+
> One checklist upfront, updated in place, shown again at end with a 1-line verdict.
|
|
9
|
+
|
|
10
|
+
> **Sandbox contract:** This skill honors `RDC_TEST=1`. Under `RDC_TEST=1`, do not call Codex image generation, OpenAI, regen-media APIs, upload endpoints, clauth credentials, or external services. Print the planned command and output paths only.
|
|
11
|
+
|
|
12
|
+
# rdc:regen-media
|
|
13
|
+
|
|
14
|
+
Primary image-generation and asset-ingest workflow for Regen Media.
|
|
15
|
+
|
|
16
|
+
## Default Decision
|
|
17
|
+
|
|
18
|
+
Use local Codex built-in `image_gen` with `gpt-image-2` first when all are true:
|
|
19
|
+
|
|
20
|
+
- The caller is local Codex with `codex` CLI available.
|
|
21
|
+
- `codex login status` reports ChatGPT login.
|
|
22
|
+
- `codex features list` includes stable `image_generation`.
|
|
23
|
+
- The task is generation, editing, re-rendering, or upscaling an image.
|
|
24
|
+
|
|
25
|
+
Use regen-media MCP/API generation only when the local keyless Codex path is unavailable, when running in a remote/cloud session, or when the user explicitly asks for server-side generation.
|
|
26
|
+
|
|
27
|
+
Use regen-media upload/registration after the image file exists and should become a managed media asset.
|
|
28
|
+
|
|
29
|
+
## Local Keyless gpt-image-2
|
|
30
|
+
|
|
31
|
+
Preflight:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
codex login status
|
|
35
|
+
codex features list
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Requirements for size to apply:
|
|
39
|
+
|
|
40
|
+
1. Use `--enable image_generation`.
|
|
41
|
+
2. Use `-c model=gpt-5.5`.
|
|
42
|
+
3. Instruct Codex: `use the built-in image_gen tool DIRECTLY; do not write API keys, scripts, or MCP`.
|
|
43
|
+
4. Name the target size in the instruction, such as `2048x1152`, `2048x2048`, or `3840x2160`.
|
|
44
|
+
|
|
45
|
+
Text to image:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
echo "Use the built-in image_gen tool DIRECTLY at size 3840x2160 (4K). No API keys/scripts/MCP. Copy the PNG to output/imagegen/<name>.png and reply with only that path + pixel dims. Prompt: <dense art-directed prompt>." | codex exec --enable image_generation --dangerously-bypass-approvals-and-sandbox --cd "$PWD" -c model=gpt-5.5
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Image edit, re-render, or upscale:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
echo "Use the built-in image_gen tool DIRECTLY to re-render the ATTACHED image at size 3840x2160 (4K), preserving its composition, subject, palette, and lighting. No API keys/scripts/MCP. Save to output/imagegen/<name>-4k.png and reply with only the path + dims." | codex exec -i "input/source.png" --enable image_generation --dangerously-bypass-approvals-and-sandbox --cd "$PWD" -c model=gpt-5.5
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Notes:
|
|
58
|
+
|
|
59
|
+
- The keyless path uses the local ChatGPT Pro OAuth in the Codex install, not `OPENAI_API_KEY`.
|
|
60
|
+
- Output may land both in the requested path and under `~/.codex/generated_images/<session-id>/ig_*.png`.
|
|
61
|
+
- Use a long timeout or background session; generation commonly takes 2-5 minutes.
|
|
62
|
+
- Valid `gpt-image-2` sizes include `1024x1024`, `1536x1024`, `1024x1536`, `2048x2048`, `2048x1152`, `3840x2160`, `2160x3840`, and `auto`, subject to model constraints.
|
|
63
|
+
|
|
64
|
+
## Upload to Regen Media
|
|
65
|
+
|
|
66
|
+
After generation, upload finished images through the project uploader when available:
|
|
67
|
+
|
|
68
|
+
```powershell
|
|
69
|
+
powershell.exe -ExecutionPolicy Bypass -File "{PROJECT_ROOT}/scripts/upload-to-media.ps1" "output/imagegen/<name>.png"
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
The uploader obtains `regen-media-api` from clauth and posts to Regen Media. Never print credential values. If upload is not required, return the local artifact path and dimensions.
|
|
73
|
+
|
|
74
|
+
## Server-Side Fallback
|
|
75
|
+
|
|
76
|
+
Use the deployed regen-media MCP/API generation path only when the local Codex image tool is unavailable or inappropriate. This path is credentialed, server-side, and may require an OpenAI/API key configured for the service. Treat it as fallback for generation, not the default.
|
|
77
|
+
|
|
78
|
+
## Procedure
|
|
79
|
+
|
|
80
|
+
1. Classify the task: `generate`, `edit`, `upscale`, or `upload`.
|
|
81
|
+
2. If `RDC_TEST=1`, print the selected path and planned commands without executing external calls.
|
|
82
|
+
3. For generation/edit/upscale, attempt the local keyless Codex preflight.
|
|
83
|
+
4. Build the Codex `exec` command with the requested size and explicit built-in `image_gen` instruction.
|
|
84
|
+
5. Save to `output/imagegen/` or a caller-provided path.
|
|
85
|
+
6. Verify the file exists and record pixel dimensions.
|
|
86
|
+
7. If the artifact should be managed, upload it to Regen Media and return the media URL/slug plus local path.
|
|
87
|
+
8. If local Codex is unavailable, use the server-side regen-media generation fallback and clearly say that it is the fallback path.
|
|
88
|
+
|
|
89
|
+
## Boundaries
|
|
90
|
+
|
|
91
|
+
- Do not write or expose API keys.
|
|
92
|
+
- Do not silently downgrade from local keyless `gpt-image-2` to server-side MCP/API generation.
|
|
93
|
+
- Do not use prompt-only size hints; always set the Codex command and instruction shape above.
|
|
94
|
+
- Do not run generation or upload in test mode.
|
package/skills/release/SKILL.md
CHANGED
|
@@ -1,140 +1,140 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: rdc:release
|
|
3
|
-
description: "Usage `rdc:release <repo> [version|--patch|--minor|--major|--dry-run]` — bump, commit, tag, push, wait for CI/publish, install, and verify a package or project using repo-local release metadata."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
> **⚠️ OUTPUT CONTRACT (READ FIRST):** `guides/output-contract.md`
|
|
7
|
-
> Checklist-only output. No tool-call narration. No raw git/npm/CI dumps.
|
|
8
|
-
> One checklist upfront, updated in place, shown again at end with 1-line verdict.
|
|
9
|
-
|
|
10
|
-
> **Sandbox contract:** This skill honors `RDC_TEST=1` per `guides/agent-bootstrap.md` § RDC_TEST Sandbox Contract. Destructive external calls short-circuit under the flag.
|
|
11
|
-
|
|
12
|
-
# rdc:release — Generic Release
|
|
13
|
-
|
|
14
|
-
## When to Use
|
|
15
|
-
|
|
16
|
-
- The user explicitly asks to release, publish, promote, ship, tag, or bump a repo.
|
|
17
|
-
- A package or app needs versioning plus verification.
|
|
18
|
-
- A repo provides release metadata in `package.json`, `.rdc/release.json`, README release instructions, or CI config.
|
|
19
|
-
|
|
20
|
-
Never release without explicit user authorization.
|
|
21
|
-
|
|
22
|
-
## Inputs
|
|
23
|
-
|
|
24
|
-
- `rdc:release <repo>` — patch release by default.
|
|
25
|
-
- `rdc:release <repo> <version>` — explicit version.
|
|
26
|
-
- `rdc:release <repo> --patch|--minor|--major`
|
|
27
|
-
- `rdc:release <repo> --dry-run`
|
|
28
|
-
|
|
29
|
-
If `<repo>` is not resolvable from the current workspace, ask for its local path or GitHub slug.
|
|
30
|
-
|
|
31
|
-
## Checklist
|
|
32
|
-
|
|
33
|
-
```
|
|
34
|
-
rdc:release: <repo> vX.Y.Z -> vA.B.C
|
|
35
|
-
[ ] PUBLISH.md status gate: status=active AND prod in environments (block if not)
|
|
36
|
-
[ ] Source path resolved
|
|
37
|
-
[ ] Release metadata read
|
|
38
|
-
[ ] Working tree clean or user-approved dirty scope identified
|
|
39
|
-
[ ] Current version detected
|
|
40
|
-
[ ] New version computed
|
|
41
|
-
[ ] Dry-run gate handled
|
|
42
|
-
[ ] Version files updated
|
|
43
|
-
[ ] Tests/self-test passed
|
|
44
|
-
[ ] Mandatory release code-review (pr-review-toolkit:code-reviewer on `git diff <last-released-tag>..HEAD`). Block release on `critical`/`high` findings; record `medium`/`low` in the release notes and proceed.
|
|
45
|
-
[ ] Commit created
|
|
46
|
-
[ ] Tag created
|
|
47
|
-
[ ] Branch and tag pushed
|
|
48
|
-
[ ] CI/publish status verified
|
|
49
|
-
[ ] Registry/package/deploy target shows vA.B.C, if applicable
|
|
50
|
-
[ ] Local install/update executed, if applicable
|
|
51
|
-
[ ] Installed/runtime version verified
|
|
52
|
-
[ ] Smoke test passed
|
|
53
|
-
✅ rdc:release <repo>: vA.B.C live and verified
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
## PUBLISH.md Status Gate (Step 0 — before any production-touching step)
|
|
57
|
-
|
|
58
|
-
Before touching any production system, read `PUBLISH.md` from the app root and validate promotion eligibility.
|
|
59
|
-
|
|
60
|
-
```bash
|
|
61
|
-
PUBLISH_MD="<monorepo_path>/PUBLISH.md"
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
**Block promotion if ANY of the following are true:**
|
|
65
|
-
|
|
66
|
-
1. **PUBLISH.md is missing AND the app has a row in `app_deployments`** — emit warn and continue (during rollout period); becomes a hard block after Option A rollout is complete.
|
|
67
|
-
2. **PUBLISH.md exists AND `status` field is NOT `active`** — hard block regardless of rollout status.
|
|
68
|
-
- `status: draft` → `BLOCKED: PUBLISH.md status=draft for <slug> — promote requires status=active`
|
|
69
|
-
- `status: deprecated` → `BLOCKED: PUBLISH.md status=deprecated for <slug> — promote requires status=active`
|
|
70
|
-
3. **PUBLISH.md exists AND `environments` array does not include `prod`** → `BLOCKED: PUBLISH.md environments=[dev] for <slug> — prod must be declared before promotion`
|
|
71
|
-
4. **Any required surface field is missing** (`source_dir` or `path` absent on any surface) → `BLOCKED: PUBLISH.md surface <id> missing required field for <slug>`
|
|
72
|
-
|
|
73
|
-
If blocked, abort immediately with the message above. Do NOT proceed to the version bump, commit, or any Coolify call.
|
|
74
|
-
|
|
75
|
-
If PUBLISH.md is absent and app has no `app_deployments` row (library/package), skip this gate.
|
|
76
|
-
|
|
77
|
-
## Resolution Order
|
|
78
|
-
|
|
79
|
-
1. Current repo if `<repo>` is `.` or omitted and the user clearly refers to the current workspace.
|
|
80
|
-
2. Sibling directory matching `<repo>`.
|
|
81
|
-
3. GitHub slug `<owner>/<repo>`.
|
|
82
|
-
4. Repo-local `.rdc/release.json` if present.
|
|
83
|
-
5. Ask for the missing path or release mechanism.
|
|
84
|
-
|
|
85
|
-
## Generic Commands
|
|
86
|
-
|
|
87
|
-
Use repo-local package tooling when available. Examples:
|
|
88
|
-
|
|
89
|
-
```bash
|
|
90
|
-
npm version patch --no-git-tag-version
|
|
91
|
-
npm test
|
|
92
|
-
git add package.json package-lock.json
|
|
93
|
-
git commit -m "chore(release): vA.B.C"
|
|
94
|
-
git tag vA.B.C
|
|
95
|
-
git push origin HEAD
|
|
96
|
-
git push origin vA.B.C
|
|
97
|
-
npm view <package-name> version
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
Never use `--force` or bypass hooks. If a hook fails, fix the cause.
|
|
101
|
-
|
|
102
|
-
## ⛔ Standalone-repo staging guard (no `git add -A`)
|
|
103
|
-
|
|
104
|
-
Standalone repos (`rdc-skills`, `clauth`, `build-corpus`) have NO pre-commit
|
|
105
|
-
doc-sync/scope guard to catch contamination. In them:
|
|
106
|
-
|
|
107
|
-
- **REFUSE `git add -A` / `git add .`.** Stage explicit declared paths only
|
|
108
|
-
(`git add skills/<name>/SKILL.md package.json ...`).
|
|
109
|
-
- Run `git status --porcelain` FIRST. If untracked files exist that are not part
|
|
110
|
-
of the declared change, STOP — list or stash them; do not sweep them in.
|
|
111
|
-
- **Pre-tag guard: refuse to tag if `git diff --cached --name-only` includes any
|
|
112
|
-
path outside the declared change set.** A broad add swept 4 pre-existing
|
|
113
|
-
untracked skill files into a tagged release that CI published before anyone
|
|
114
|
-
noticed (lesson 2026-06-08-release-git-add-all-swept-untracked-wip). Same
|
|
115
|
-
dirty-tree contamination class as a lockfile generated against a dirty tree.
|
|
116
|
-
|
|
117
|
-
## ⛔ Cross-platform prepack + verify the PUBLISHED tarball
|
|
118
|
-
|
|
119
|
-
- **Prepack must be OS-agnostic.** A bash-style `prepack` chain (`node A || true && node B || true && node stamp`) short-circuits under Windows **cmd.exe** (npm runs lifecycle scripts via cmd, not bash; `true` is not a cmd builtin and `||`/`&&` evaluate differently), so an appended step silently never runs (lesson 2026-06-13-release-windows-cmd-prepack-shortcircuit). When a prepack step must run cross-platform, use a node wrapper / `shx` / `cross-env` — never rely on `|| true` shell semantics that differ between cmd and bash.
|
|
120
|
-
- **Validate the PUBLISHED artifact, not a local Windows `npm pack`.** A local Windows `npm pack` is NOT a faithful rehearsal of the CI (ubuntu/bash) publish. After publish, verify the real tarball:
|
|
121
|
-
```bash
|
|
122
|
-
npm pack <pkg>@<version> # downloads the PUBLISHED tarball
|
|
123
|
-
tar -xzOf <pkg>-<version>.tgz package/<file> # inspect the shipped file
|
|
124
|
-
```
|
|
125
|
-
Confirm the published artifact carries what CI's prepack was supposed to stamp (e.g. `git_sha == tag commit`).
|
|
126
|
-
|
|
127
|
-
## RDC Skills Package
|
|
128
|
-
|
|
129
|
-
For this package, prefer the npm installer binary after publish:
|
|
130
|
-
|
|
131
|
-
```bash
|
|
132
|
-
npm install -g @lifeaitools/rdc-skills@latest
|
|
133
|
-
rdc-skills-install --profile core
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
Use `--profile lifeai` only on a workstation that intentionally has the LIFEAI project layout and services.
|
|
137
|
-
|
|
138
|
-
## Capture lessons (exit step)
|
|
139
|
-
|
|
140
|
-
Before the final verdict line, follow `.rdc/guides/lessons-learned-spec.md` § Capture procedure. If this run taught something non-obvious — a first root-cause theory that turned out wrong, the documented/standard path not working, a missing gate or check that cost a round, or a surprising tool/infra behavior — write one `.rdc/lessons/<YYYY-MM-DD>-release-<short-slug>.md` per lesson using the schema in that spec. Set `scope` (`simple` | `architectural`) and `status` (`open`, or `applied` if you shipped the fix in this same run, with the commit linked). Commit the lesson file(s) on `develop` alongside the run's other commits, and note "N lessons captured" in your verdict/summary. A run that taught nothing writes nothing — absence is the default.
|
|
1
|
+
---
|
|
2
|
+
name: rdc:release
|
|
3
|
+
description: "Usage `rdc:release <repo> [version|--patch|--minor|--major|--dry-run]` — bump, commit, tag, push, wait for CI/publish, install, and verify a package or project using repo-local release metadata."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
> **⚠️ OUTPUT CONTRACT (READ FIRST):** `guides/output-contract.md`
|
|
7
|
+
> Checklist-only output. No tool-call narration. No raw git/npm/CI dumps.
|
|
8
|
+
> One checklist upfront, updated in place, shown again at end with 1-line verdict.
|
|
9
|
+
|
|
10
|
+
> **Sandbox contract:** This skill honors `RDC_TEST=1` per `guides/agent-bootstrap.md` § RDC_TEST Sandbox Contract. Destructive external calls short-circuit under the flag.
|
|
11
|
+
|
|
12
|
+
# rdc:release — Generic Release
|
|
13
|
+
|
|
14
|
+
## When to Use
|
|
15
|
+
|
|
16
|
+
- The user explicitly asks to release, publish, promote, ship, tag, or bump a repo.
|
|
17
|
+
- A package or app needs versioning plus verification.
|
|
18
|
+
- A repo provides release metadata in `package.json`, `.rdc/release.json`, README release instructions, or CI config.
|
|
19
|
+
|
|
20
|
+
Never release without explicit user authorization.
|
|
21
|
+
|
|
22
|
+
## Inputs
|
|
23
|
+
|
|
24
|
+
- `rdc:release <repo>` — patch release by default.
|
|
25
|
+
- `rdc:release <repo> <version>` — explicit version.
|
|
26
|
+
- `rdc:release <repo> --patch|--minor|--major`
|
|
27
|
+
- `rdc:release <repo> --dry-run`
|
|
28
|
+
|
|
29
|
+
If `<repo>` is not resolvable from the current workspace, ask for its local path or GitHub slug.
|
|
30
|
+
|
|
31
|
+
## Checklist
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
rdc:release: <repo> vX.Y.Z -> vA.B.C
|
|
35
|
+
[ ] PUBLISH.md status gate: status=active AND prod in environments (block if not)
|
|
36
|
+
[ ] Source path resolved
|
|
37
|
+
[ ] Release metadata read
|
|
38
|
+
[ ] Working tree clean or user-approved dirty scope identified
|
|
39
|
+
[ ] Current version detected
|
|
40
|
+
[ ] New version computed
|
|
41
|
+
[ ] Dry-run gate handled
|
|
42
|
+
[ ] Version files updated
|
|
43
|
+
[ ] Tests/self-test passed
|
|
44
|
+
[ ] Mandatory release code-review (pr-review-toolkit:code-reviewer on `git diff <last-released-tag>..HEAD`). Block release on `critical`/`high` findings; record `medium`/`low` in the release notes and proceed.
|
|
45
|
+
[ ] Commit created
|
|
46
|
+
[ ] Tag created
|
|
47
|
+
[ ] Branch and tag pushed
|
|
48
|
+
[ ] CI/publish status verified
|
|
49
|
+
[ ] Registry/package/deploy target shows vA.B.C, if applicable
|
|
50
|
+
[ ] Local install/update executed, if applicable
|
|
51
|
+
[ ] Installed/runtime version verified
|
|
52
|
+
[ ] Smoke test passed
|
|
53
|
+
✅ rdc:release <repo>: vA.B.C live and verified
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## PUBLISH.md Status Gate (Step 0 — before any production-touching step)
|
|
57
|
+
|
|
58
|
+
Before touching any production system, read `PUBLISH.md` from the app root and validate promotion eligibility.
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
PUBLISH_MD="<monorepo_path>/PUBLISH.md"
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
**Block promotion if ANY of the following are true:**
|
|
65
|
+
|
|
66
|
+
1. **PUBLISH.md is missing AND the app has a row in `app_deployments`** — emit warn and continue (during rollout period); becomes a hard block after Option A rollout is complete.
|
|
67
|
+
2. **PUBLISH.md exists AND `status` field is NOT `active`** — hard block regardless of rollout status.
|
|
68
|
+
- `status: draft` → `BLOCKED: PUBLISH.md status=draft for <slug> — promote requires status=active`
|
|
69
|
+
- `status: deprecated` → `BLOCKED: PUBLISH.md status=deprecated for <slug> — promote requires status=active`
|
|
70
|
+
3. **PUBLISH.md exists AND `environments` array does not include `prod`** → `BLOCKED: PUBLISH.md environments=[dev] for <slug> — prod must be declared before promotion`
|
|
71
|
+
4. **Any required surface field is missing** (`source_dir` or `path` absent on any surface) → `BLOCKED: PUBLISH.md surface <id> missing required field for <slug>`
|
|
72
|
+
|
|
73
|
+
If blocked, abort immediately with the message above. Do NOT proceed to the version bump, commit, or any Coolify call.
|
|
74
|
+
|
|
75
|
+
If PUBLISH.md is absent and app has no `app_deployments` row (library/package), skip this gate.
|
|
76
|
+
|
|
77
|
+
## Resolution Order
|
|
78
|
+
|
|
79
|
+
1. Current repo if `<repo>` is `.` or omitted and the user clearly refers to the current workspace.
|
|
80
|
+
2. Sibling directory matching `<repo>`.
|
|
81
|
+
3. GitHub slug `<owner>/<repo>`.
|
|
82
|
+
4. Repo-local `.rdc/release.json` if present.
|
|
83
|
+
5. Ask for the missing path or release mechanism.
|
|
84
|
+
|
|
85
|
+
## Generic Commands
|
|
86
|
+
|
|
87
|
+
Use repo-local package tooling when available. Examples:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
npm version patch --no-git-tag-version
|
|
91
|
+
npm test
|
|
92
|
+
git add package.json package-lock.json
|
|
93
|
+
git commit -m "chore(release): vA.B.C"
|
|
94
|
+
git tag vA.B.C
|
|
95
|
+
git push origin HEAD
|
|
96
|
+
git push origin vA.B.C
|
|
97
|
+
npm view <package-name> version
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Never use `--force` or bypass hooks. If a hook fails, fix the cause.
|
|
101
|
+
|
|
102
|
+
## ⛔ Standalone-repo staging guard (no `git add -A`)
|
|
103
|
+
|
|
104
|
+
Standalone repos (`rdc-skills`, `clauth`, `build-corpus`) have NO pre-commit
|
|
105
|
+
doc-sync/scope guard to catch contamination. In them:
|
|
106
|
+
|
|
107
|
+
- **REFUSE `git add -A` / `git add .`.** Stage explicit declared paths only
|
|
108
|
+
(`git add skills/<name>/SKILL.md package.json ...`).
|
|
109
|
+
- Run `git status --porcelain` FIRST. If untracked files exist that are not part
|
|
110
|
+
of the declared change, STOP — list or stash them; do not sweep them in.
|
|
111
|
+
- **Pre-tag guard: refuse to tag if `git diff --cached --name-only` includes any
|
|
112
|
+
path outside the declared change set.** A broad add swept 4 pre-existing
|
|
113
|
+
untracked skill files into a tagged release that CI published before anyone
|
|
114
|
+
noticed (lesson 2026-06-08-release-git-add-all-swept-untracked-wip). Same
|
|
115
|
+
dirty-tree contamination class as a lockfile generated against a dirty tree.
|
|
116
|
+
|
|
117
|
+
## ⛔ Cross-platform prepack + verify the PUBLISHED tarball
|
|
118
|
+
|
|
119
|
+
- **Prepack must be OS-agnostic.** A bash-style `prepack` chain (`node A || true && node B || true && node stamp`) short-circuits under Windows **cmd.exe** (npm runs lifecycle scripts via cmd, not bash; `true` is not a cmd builtin and `||`/`&&` evaluate differently), so an appended step silently never runs (lesson 2026-06-13-release-windows-cmd-prepack-shortcircuit). When a prepack step must run cross-platform, use a node wrapper / `shx` / `cross-env` — never rely on `|| true` shell semantics that differ between cmd and bash.
|
|
120
|
+
- **Validate the PUBLISHED artifact, not a local Windows `npm pack`.** A local Windows `npm pack` is NOT a faithful rehearsal of the CI (ubuntu/bash) publish. After publish, verify the real tarball:
|
|
121
|
+
```bash
|
|
122
|
+
npm pack <pkg>@<version> # downloads the PUBLISHED tarball
|
|
123
|
+
tar -xzOf <pkg>-<version>.tgz package/<file> # inspect the shipped file
|
|
124
|
+
```
|
|
125
|
+
Confirm the published artifact carries what CI's prepack was supposed to stamp (e.g. `git_sha == tag commit`).
|
|
126
|
+
|
|
127
|
+
## RDC Skills Package
|
|
128
|
+
|
|
129
|
+
For this package, prefer the npm installer binary after publish:
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
npm install -g @lifeaitools/rdc-skills@latest
|
|
133
|
+
rdc-skills-install --profile core
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
Use `--profile lifeai` only on a workstation that intentionally has the LIFEAI project layout and services.
|
|
137
|
+
|
|
138
|
+
## Capture lessons (exit step)
|
|
139
|
+
|
|
140
|
+
Before the final verdict line, follow `.rdc/guides/lessons-learned-spec.md` § Capture procedure. If this run taught something non-obvious — a first root-cause theory that turned out wrong, the documented/standard path not working, a missing gate or check that cost a round, or a surprising tool/infra behavior — write one `.rdc/lessons/<YYYY-MM-DD>-release-<short-slug>.md` per lesson using the schema in that spec. Set `scope` (`simple` | `architectural`) and `status` (`open`, or `applied` if you shipped the fix in this same run, with the commit linked). Commit the lesson file(s) on `develop` alongside the run's other commits, and note "N lessons captured" in your verdict/summary. A run that taught nothing writes nothing — absence is the default.
|