@lifeaitools/rdc-skills 0.9.29 → 0.9.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifeaitools/rdc-skills",
3
- "version": "0.9.29",
3
+ "version": "0.9.30",
4
4
  "description": "RDC typed-agent dispatch skill suite for Claude Code — plan, build, review, overnight builds",
5
5
  "keywords": [
6
6
  "claude-code",
@@ -0,0 +1,217 @@
1
+ ---
2
+ name: terminal-config
3
+ description: "Read and safely modify Windows Terminal settings and cell startup sequencing. Contains the canonical file locations, profile GUIDs, keybinding map, and what NEVER to change."
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
+ # terminal-config — Windows Terminal & Cell Startup Reference
11
+
12
+ ## When to Use
13
+ - Before modifying any terminal setting, profile, or keybinding
14
+ - When setting up a new profile (Claude, Codex, cell cells)
15
+ - When cell startup is broken (wrong `--append-system-prompt`, wrong cwd, wrong CELL_ROLE)
16
+ - When keybindings conflict or are missing
17
+
18
+ ## ⛔ ABSOLUTE RULES — READ BEFORE TOUCHING ANYTHING
19
+
20
+ 1. **NEVER change profile GUIDs** — Windows Terminal uses these as identity. Changing a GUID orphans all pinned shortcuts and window layouts.
21
+ 2. **NEVER remove `"id": null` keybinding entries** — these intentionally UNBIND enter/shift-enter/ctrl-enter so Claude Code's interactive prompt works without the terminal swallowing keystrokes.
22
+ 3. **NEVER change `firstWindowPreference`** — it's `persistedWindowLayout`, which restores Dave's exact pane/tab layout on restart.
23
+ 4. **NEVER change `defaultProfile`** — it's `{574e775e-...}` (PowerShell Core). Changing it breaks new-tab behavior.
24
+ 5. **ALWAYS read the file before editing** — never write from memory.
25
+ 6. **ALWAYS validate JSON** before saving — a syntax error silently resets all settings on next Terminal launch (no error shown, settings wiped).
26
+
27
+ ---
28
+
29
+ ## File Locations
30
+
31
+ | File | Path | Purpose |
32
+ |------|------|---------|
33
+ | **Terminal settings** | `C:\Users\DaveLadouceur\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json` | Main config — profiles, keybindings, color schemes |
34
+ | **Cell init script** | `C:\Dev\regen-root\scripts\cell-init.cmd` | Launched by each cell profile. Sets CELL_ROLE, prints banner, runs `claude --append-system-prompt` |
35
+ | **Cell state dir** | `C:\Dev\regen-root\.cell-state\` | PID lockfiles per cell (`sv.lock`, `cell-portal.lock`, etc.) |
36
+ | **Claude keybindings** | `C:\Users\DaveLadouceur\.claude\keybindings.json` | Claude Code keybindings (separate from Terminal) |
37
+ | **Claude settings** | `C:\Dev\regen-root\.claude\settings.json` | Project-level Claude Code settings, hooks, permissions |
38
+ | **Claude user settings** | `C:\Users\DaveLadouceur\.claude\settings.json` | User-level Claude Code settings |
39
+
40
+ ---
41
+
42
+ ## Profile Inventory
43
+
44
+ Every profile has a fixed GUID. Do not change them.
45
+
46
+ | GUID | Name | Tab Color | Purpose |
47
+ |------|------|-----------|---------|
48
+ | `{574e775e-4f2a-5b96-ac1e-a2962a402336}` | PowerShell | — | **Default profile** — PowerShell 7 Core |
49
+ | `{e7c1128b-e51f-4eba-bcdb-85f550c31b97}` | SV | `#1A6B3C` (green) | Supervisor cell — full repo access, runs `cell-init.cmd sv` |
50
+ | `{190a2f39-f6ad-4638-8fef-e4c7aa58c349}` | Claude | `#B91C1C` (red) | Claude conversation cell, runs `cell-init.cmd sv` |
51
+ | `{2d0248ef-7bb7-4b9e-b381-c4aa1f570f49}` | Codex | `#0F766E` (teal) | Codex AI cell — runs `powershell -NoLogo -NoExit -Command codex` |
52
+ | `{767642b0-606c-468c-89a0-4573df6fcdaf}` | VS Code | `#2D5986` (blue) | Launches `code-safe C:\Dev\regen-root` |
53
+ | `{6cbd327a-5b5e-4e83-96f6-041615382d36}` | PowerShell (Admin) | `#1E3A5F` (dark blue) | Elevated PowerShell — uses `LIFEAI Slate` color scheme |
54
+ | `{0caa0dad-35be-5f56-a8ff-afceeeaa6101}` | Command Prompt | — | Legacy CMD — visible but rarely used |
55
+ | `{574e775e...}` and others | `hidden: true` | — | Windows PowerShell, Azure Shell, VS DevTools — all hidden |
56
+
57
+ ### Profile commandlines
58
+
59
+ ```
60
+ SV / Claude: cmd.exe /k "C:\Dev\regen-root\scripts\cell-init.cmd" sv
61
+ Codex: powershell.exe -NoLogo -NoExit -Command codex
62
+ VS Code: cmd.exe /c start "" code-safe C:\Dev\regen-root
63
+ Admin PS: powershell.exe -NoLogo (+ elevate: true)
64
+ ```
65
+
66
+ All cell profiles set `"startingDirectory": "C:\\Dev\\regen-root"`.
67
+
68
+ ---
69
+
70
+ ## Keybinding Map
71
+
72
+ ### Critical: intentionally unbound keys (never restore these)
73
+
74
+ ```json
75
+ { "id": null, "keys": "shift+enter" }
76
+ { "id": null, "keys": "ctrl+enter" }
77
+ { "id": null, "keys": "enter" }
78
+ ```
79
+
80
+ **Why:** Without these null bindings, Windows Terminal intercepts Enter/Shift-Enter/Ctrl-Enter before Claude Code's interactive prompt sees them. Sessions break silently.
81
+
82
+ ### Pane navigation (safe to change)
83
+
84
+ | Keys | Action |
85
+ |------|--------|
86
+ | `ctrl+alt+v` | Split pane right (duplicate) |
87
+ | `ctrl+alt+h` | Split pane down (duplicate) |
88
+ | `ctrl+alt+left/right/up/down` | Move focus between panes |
89
+ | `ctrl+alt+shift+left/right` | Resize pane |
90
+ | `ctrl+shift+z` | Toggle pane zoom |
91
+ | `ctrl+shift+w` | Close pane |
92
+ | `alt+shift+d` | Split pane auto (duplicate) |
93
+
94
+ ### Standard overrides
95
+
96
+ | Keys | Action |
97
+ |------|--------|
98
+ | `ctrl+c` | Copy (singleLine: false) |
99
+ | `ctrl+v` | Paste |
100
+ | `ctrl+shift+f` | Find |
101
+
102
+ ---
103
+
104
+ ## Color Schemes
105
+
106
+ Four custom schemes live in the `schemes` array. Do not rename them — profiles reference by name.
107
+
108
+ | Name | Background | Used by |
109
+ |------|-----------|---------|
110
+ | `Dimidium` | `#282A36` (dark purple) | Default for all cell profiles |
111
+ | `LIFEAI Claude` | `#1A0F0A` (dark brown) | Available, not currently assigned |
112
+ | `LIFEAI Dark` | `#0D1F17` (dark green) | Available, not currently assigned |
113
+ | `LIFEAI Slate` | `#0F1923` (dark blue) | PowerShell Admin profile |
114
+ | `Dracula` | `#282A36` | Available, not currently assigned |
115
+
116
+ ---
117
+
118
+ ## Global Settings (safe reference)
119
+
120
+ ```json
121
+ "copyOnSelect": true // highlight = copied. Don't change — muscle memory.
122
+ "copyFormatting": "all" // preserves ANSI colors on copy
123
+ "firstWindowPreference": "persistedWindowLayout" // restores last layout on open. NEVER CHANGE.
124
+ "defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}" // PowerShell Core. NEVER CHANGE.
125
+ "theme": "dark"
126
+ "showTabsFullscreen": true
127
+ "initialRows": 40
128
+ ```
129
+
130
+ Font defaults (in `profiles.defaults`):
131
+ ```json
132
+ "face": "Consolas"
133
+ "size": 12
134
+ "cellHeight": "1.2"
135
+ "cellWidth": "0.6"
136
+ "weight": "normal"
137
+ ```
138
+
139
+ ---
140
+
141
+ ## Cell Startup Sequencing
142
+
143
+ `cell-init.cmd` is the startup script for all cell profiles. It:
144
+
145
+ 1. Accepts `ROLE` arg (`sv`, `cell-portal`, `cell-data`, `cell-cs2`, `cell-mktg`, `cell-infra`, `specialist`)
146
+ 2. Looks up `LABEL`, `COLOR`, `SCOPE`, `PATHS`, `PROMPT_SCOPE` from a role table
147
+ 3. Prints a colored banner
148
+ 4. Writes a PID lockfile to `.cell-state\<role>.lock`
149
+ 5. Runs `git log` filtered to that cell's path scope
150
+ 6. Opens VS Code for the project
151
+ 7. Launches: `claude --append-system-prompt "<PROMPT_SCOPE>"`
152
+
153
+ ### Cell role → prompt scope mapping
154
+
155
+ | Role arg | Claude system prompt |
156
+ |----------|---------------------|
157
+ | `sv` | "You are the SUPERVISOR cell. You have full repo access. Coordinate across all packages and apps." |
158
+ | `cell-portal` | Portal cell — frontend apps only (apps/prt, apps/rdc, packages/ui, models/) |
159
+ | `cell-data` | Data cell — packages/supabase, virtue-engine, pal, hail, daf-intelligence |
160
+ | `cell-cs2` | CS2 cell — packages/cs2, quad-pixel, planetary-ontology, models/ |
161
+ | `cell-mktg` | Marketing cell — rdc-marketing-engine, canvas, sites/, email-templates |
162
+ | `cell-infra` | Infra cell — Coolify, CI/CD, root config, scripts/ |
163
+ | `specialist` | Specialist cell — repo-wide reviews, cleanup, docs, audits |
164
+
165
+ ---
166
+
167
+ ## Safe Edit Procedure
168
+
169
+ ### When adding or modifying a profile
170
+
171
+ 1. Read the current file first (never edit from memory)
172
+ 2. Generate a new GUID with: `[System.Guid]::NewGuid().ToString('B')` (PowerShell) — wrap in `{}`
173
+ 3. Copy the SV profile as a template
174
+ 4. Set `commandline`, `startingDirectory`, `environment`, `tabColor`, `icon`, `name`
175
+ 5. Do NOT set `guid` to an existing value
176
+ 6. Validate JSON: `Get-Content settings.json | ConvertFrom-Json` (errors = syntax problem)
177
+ 7. Save and reopen Terminal to verify
178
+
179
+ ### When adding a keybinding
180
+
181
+ 1. Add to the `keybindings` array
182
+ 2. Check for conflicts with the null-bound keys (`enter`, `shift+enter`, `ctrl+enter`) — NEVER override them
183
+ 3. Validate JSON before saving
184
+
185
+ ### When editing cell startup
186
+
187
+ Edit `C:\Dev\regen-root\scripts\cell-init.cmd` — it's in the repo, so changes are tracked.
188
+ - Adding a new role: add a new `if "%ROLE%"=="..."` block with all five vars
189
+ - Changing scope: update `PATHS` and `PROMPT_SCOPE` only — don't touch banner/lockfile/git logic
190
+
191
+ ---
192
+
193
+ ## Validation Commands
194
+
195
+ ```powershell
196
+ # Validate JSON syntax before saving
197
+ Get-Content "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" | ConvertFrom-Json
198
+
199
+ # Check cell lockfiles
200
+ Get-Content C:\Dev\regen-root\.cell-state\sv.lock
201
+
202
+ # Generate a new GUID for a profile
203
+ "{$([System.Guid]::NewGuid().ToString())}"
204
+ ```
205
+
206
+ ---
207
+
208
+ ## WezTerm Alternative
209
+
210
+ If Windows Terminal settings keep getting corrupted or misedited, **WezTerm** is the recommended migration:
211
+ - Config is a Lua file (`~/.wezterm.lua` or `C:\Users\<user>\.config\wezterm\wezterm.lua`)
212
+ - Committed to git — every change is a reviewable diff, not an opaque JSON blob
213
+ - Startup layouts (tabs, panes, commands) are defined programmatically
214
+ - Equivalent to current setup: `wezterm.mux.spawn_window()` per cell with `args` set to `cmd.exe /k cell-init.cmd <role>`
215
+ - Download: https://wezfurlong.org/wezterm/installation.html
216
+
217
+ Migration path: copy existing color schemes as `wezterm.color.get_default_colors()` override tables, map keybindings to `config.keys` array, define tab bar with cell roles.