create-egregore 0.19.32 → 0.20.0

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.
Files changed (173) hide show
  1. package/assets/egregore-launcher.js +118 -13
  2. package/bin/cli.js +48 -3
  3. package/lib/connect-runtime.js +4 -2
  4. package/lib/local.js +15 -1
  5. package/lib/prime-runtime.js +208 -0
  6. package/lib/setup.js +45 -3
  7. package/package.json +5 -4
  8. package/runtime/codex/.codex/skills/ingest-notion/SKILL.md +29 -0
  9. package/runtime/codex/.codex/skills/notion-connect/SKILL.md +29 -0
  10. package/runtime/codex/.codex/skills/teams-connect/SKILL.md +29 -0
  11. package/runtime/codex/.codex/spec-manifest.json +3 -3
  12. package/runtime/codex/AGENTS.md +11 -4
  13. package/runtime/codex/bin/activity-data.sh +4 -8
  14. package/runtime/codex/bin/attendant.sh +13 -0
  15. package/runtime/codex/bin/autosave.sh +27 -1
  16. package/runtime/codex/bin/codex-render-spec.mjs +6 -0
  17. package/runtime/codex/bin/codex-session-start.sh +8 -1
  18. package/runtime/codex/bin/connect-refresh.sh +33 -0
  19. package/runtime/codex/bin/graph-batch.sh +25 -6
  20. package/runtime/codex/bin/graph-op.sh +5 -4
  21. package/runtime/codex/bin/graph.sh +31 -5
  22. package/runtime/codex/bin/ingest.py +81 -5
  23. package/runtime/codex/bin/lib/context.sh +26 -1
  24. package/runtime/codex/bin/lib/greeting.sh +4 -1
  25. package/runtime/codex/bin/lib/worktree-links.sh +25 -0
  26. package/runtime/codex/manifest.json +8 -1
  27. package/runtime/pi/.codex/skills/ingest-notion/SKILL.md +29 -0
  28. package/runtime/pi/.codex/skills/notion-connect/SKILL.md +29 -0
  29. package/runtime/pi/.codex/skills/teams-connect/SKILL.md +29 -0
  30. package/runtime/pi/.codex/spec-manifest.json +3 -3
  31. package/runtime/pi/.pi/APPEND_SYSTEM.md +3 -2
  32. package/runtime/pi/.pi/extensions/egregore.ts +17 -6
  33. package/runtime/pi/.pi/spec-manifest.json +2 -2
  34. package/runtime/pi/AGENTS.md +11 -4
  35. package/runtime/pi/bin/activity-data.sh +4 -8
  36. package/runtime/pi/bin/attendant.sh +13 -0
  37. package/runtime/pi/bin/autosave.sh +27 -1
  38. package/runtime/pi/bin/codex-render-spec.mjs +6 -0
  39. package/runtime/pi/bin/codex-session-start.sh +8 -1
  40. package/runtime/pi/bin/connect-refresh.sh +33 -0
  41. package/runtime/pi/bin/graph-batch.sh +25 -6
  42. package/runtime/pi/bin/graph-op.sh +5 -4
  43. package/runtime/pi/bin/graph.sh +31 -5
  44. package/runtime/pi/bin/ingest.py +81 -5
  45. package/runtime/pi/bin/lib/context.sh +26 -1
  46. package/runtime/pi/bin/lib/greeting.sh +4 -1
  47. package/runtime/pi/bin/lib/worktree-links.sh +25 -0
  48. package/runtime/pi/bin/pi-branch-policy.mjs +138 -1
  49. package/runtime/pi/bin/pi-product-workflows.mjs +35 -7
  50. package/runtime/pi/manifest.json +8 -1
  51. package/runtime/prime/.claude/context/notification-consent.md +66 -0
  52. package/runtime/prime/.codex/config.toml +17 -0
  53. package/runtime/prime/.codex/hooks/branch-guard.js +461 -0
  54. package/runtime/prime/.codex/hooks/search-hint.js +67 -0
  55. package/runtime/prime/.codex/hooks.json +30 -0
  56. package/runtime/prime/.codex/skills/activity/SKILL.md +82 -0
  57. package/runtime/prime/.codex/skills/announce/SKILL.md +67 -0
  58. package/runtime/prime/.codex/skills/archive/SKILL.md +45 -0
  59. package/runtime/prime/.codex/skills/branch/SKILL.md +29 -0
  60. package/runtime/prime/.codex/skills/checkup/SKILL.md +45 -0
  61. package/runtime/prime/.codex/skills/commit/SKILL.md +29 -0
  62. package/runtime/prime/.codex/skills/contribute/SKILL.md +29 -0
  63. package/runtime/prime/.codex/skills/create-skill/SKILL.md +29 -0
  64. package/runtime/prime/.codex/skills/dark-mode/SKILL.md +29 -0
  65. package/runtime/prime/.codex/skills/dashboard/SKILL.md +59 -0
  66. package/runtime/prime/.codex/skills/deep-reflect/SKILL.md +109 -0
  67. package/runtime/prime/.codex/skills/delete-user/SKILL.md +29 -0
  68. package/runtime/prime/.codex/skills/emissary/SKILL.md +45 -0
  69. package/runtime/prime/.codex/skills/handoff/SKILL.md +166 -0
  70. package/runtime/prime/.codex/skills/harvest/QUESTION_PALETTE.md +76 -0
  71. package/runtime/prime/.codex/skills/harvest/SKILL.md +131 -0
  72. package/runtime/prime/.codex/skills/ingest/SKILL.md +29 -0
  73. package/runtime/prime/.codex/skills/ingest-notion/SKILL.md +29 -0
  74. package/runtime/prime/.codex/skills/ingest-user-interview/SKILL.md +45 -0
  75. package/runtime/prime/.codex/skills/invite/SKILL.md +44 -0
  76. package/runtime/prime/.codex/skills/issue/SKILL.md +45 -0
  77. package/runtime/prime/.codex/skills/me/SKILL.md +29 -0
  78. package/runtime/prime/.codex/skills/meeting/SKILL.md +45 -0
  79. package/runtime/prime/.codex/skills/note/SKILL.md +29 -0
  80. package/runtime/prime/.codex/skills/notion-connect/SKILL.md +29 -0
  81. package/runtime/prime/.codex/skills/onboarding/SKILL.md +45 -0
  82. package/runtime/prime/.codex/skills/pr/SKILL.md +29 -0
  83. package/runtime/prime/.codex/skills/pull/SKILL.md +29 -0
  84. package/runtime/prime/.codex/skills/push/SKILL.md +29 -0
  85. package/runtime/prime/.codex/skills/quest/SKILL.md +80 -0
  86. package/runtime/prime/.codex/skills/reflect/SKILL.md +45 -0
  87. package/runtime/prime/.codex/skills/review-pr/SKILL.md +45 -0
  88. package/runtime/prime/.codex/skills/save/SKILL.md +125 -0
  89. package/runtime/prime/.codex/skills/slack-connect/SKILL.md +29 -0
  90. package/runtime/prime/.codex/skills/summon/SKILL.md +45 -0
  91. package/runtime/prime/.codex/skills/sync-repos/SKILL.md +29 -0
  92. package/runtime/prime/.codex/skills/teams-connect/SKILL.md +29 -0
  93. package/runtime/prime/.codex/skills/telegram-connect/SKILL.md +29 -0
  94. package/runtime/prime/.codex/skills/telemetry/SKILL.md +29 -0
  95. package/runtime/prime/.codex/skills/test/SKILL.md +45 -0
  96. package/runtime/prime/.codex/skills/the-spiral/SKILL.md +84 -0
  97. package/runtime/prime/.codex/skills/tui-design/SKILL.md +45 -0
  98. package/runtime/prime/.codex/skills/tutorial/SKILL.md +45 -0
  99. package/runtime/prime/.codex/skills/update/SKILL.md +29 -0
  100. package/runtime/prime/.codex/skills/view/SKILL.md +156 -0
  101. package/runtime/prime/.codex/skills/view/agents/openai.yaml +4 -0
  102. package/runtime/prime/.codex/skills/view/assets/compose-scaffold.html +221 -0
  103. package/runtime/prime/.codex/skills/visual-explain/SKILL.md +45 -0
  104. package/runtime/prime/.codex/skills/wrap/SKILL.md +58 -0
  105. package/runtime/prime/.codex/spec-manifest.json +132 -0
  106. package/runtime/prime/.prime/agent/APPEND_SYSTEM.md +393 -0
  107. package/runtime/prime/.prime/agent/extensions/egregore.ts +460 -0
  108. package/runtime/prime/.prime/agent/settings.json +4 -0
  109. package/runtime/prime/.prime/agent/skills/egregore/SKILL.md +34 -0
  110. package/runtime/prime/.prime/agent/skills/egregore/pyproject.toml +13 -0
  111. package/runtime/prime/.prime/agent/skills/egregore/src/egregore/__init__.py +156 -0
  112. package/runtime/prime/.prime/agent/spec-manifest.json +12 -0
  113. package/runtime/prime/AGENTS.md +489 -0
  114. package/runtime/prime/bin/activity-data.sh +238 -0
  115. package/runtime/prime/bin/agent.sh +775 -0
  116. package/runtime/prime/bin/attendant.sh +707 -0
  117. package/runtime/prime/bin/autosave.sh +112 -0
  118. package/runtime/prime/bin/capture-reconcile.sh +69 -0
  119. package/runtime/prime/bin/capture-run.sh +341 -0
  120. package/runtime/prime/bin/codex-install-skills.sh +78 -0
  121. package/runtime/prime/bin/codex-render-spec.mjs +440 -0
  122. package/runtime/prime/bin/codex-session-start.sh +265 -0
  123. package/runtime/prime/bin/codex-skill-render.mjs +347 -0
  124. package/runtime/prime/bin/codex-sync-skills.sh +232 -0
  125. package/runtime/prime/bin/connect-refresh.sh +33 -0
  126. package/runtime/prime/bin/dashboard-data.sh +178 -0
  127. package/runtime/prime/bin/graph-batch.sh +79 -0
  128. package/runtime/prime/bin/graph-op.sh +1102 -0
  129. package/runtime/prime/bin/graph-wal.sh +229 -0
  130. package/runtime/prime/bin/graph.sh +223 -0
  131. package/runtime/prime/bin/handoff-pr-backfill.sh +86 -0
  132. package/runtime/prime/bin/handoff-run.sh +671 -0
  133. package/runtime/prime/bin/handoff-save-egregore.sh +212 -0
  134. package/runtime/prime/bin/index-handoff.sh +322 -0
  135. package/runtime/prime/bin/ingest-graph.sh +80 -0
  136. package/runtime/prime/bin/ingest-surface.html +495 -0
  137. package/runtime/prime/bin/ingest.py +756 -0
  138. package/runtime/prime/bin/ingest.sh +279 -0
  139. package/runtime/prime/bin/ingest_graph.py +856 -0
  140. package/runtime/prime/bin/ingest_surface.py +544 -0
  141. package/runtime/prime/bin/lib/artifact-id.sh +46 -0
  142. package/runtime/prime/bin/lib/config.sh +116 -0
  143. package/runtime/prime/bin/lib/context.sh +621 -0
  144. package/runtime/prime/bin/lib/dashboard-artifact.sh +242 -0
  145. package/runtime/prime/bin/lib/ensure-develop.sh +183 -0
  146. package/runtime/prime/bin/lib/git-sync.sh +406 -0
  147. package/runtime/prime/bin/lib/greeting.sh +519 -0
  148. package/runtime/prime/bin/lib/hash.sh +13 -0
  149. package/runtime/prime/bin/lib/identity.sh +213 -0
  150. package/runtime/prime/bin/lib/metrics.sh +374 -0
  151. package/runtime/prime/bin/lib/noncode.sh +31 -0
  152. package/runtime/prime/bin/lib/permissions.sh +106 -0
  153. package/runtime/prime/bin/lib/time.sh +56 -0
  154. package/runtime/prime/bin/lib/worktree-links.sh +79 -0
  155. package/runtime/prime/bin/notify.sh +636 -0
  156. package/runtime/prime/bin/person.py +630 -0
  157. package/runtime/prime/bin/person.sh +448 -0
  158. package/runtime/prime/bin/pi-branch-policy.mjs +312 -0
  159. package/runtime/prime/bin/pi-product-workflows.mjs +394 -0
  160. package/runtime/prime/bin/prime-render-spec.mjs +123 -0
  161. package/runtime/prime/bin/prime-session-start.sh +24 -0
  162. package/runtime/prime/bin/publish-artifact.sh +271 -0
  163. package/runtime/prime/bin/publish-references.sh +144 -0
  164. package/runtime/prime/bin/repo-state.sh +96 -0
  165. package/runtime/prime/bin/search.sh +240 -0
  166. package/runtime/prime/bin/session-autosave.sh +209 -0
  167. package/runtime/prime/bin/session-log.sh +199 -0
  168. package/runtime/prime/bin/settings.sh +304 -0
  169. package/runtime/prime/bin/telemetry.sh +391 -0
  170. package/runtime/prime/bin/worktree-create.sh +128 -0
  171. package/runtime/prime/bin/worktree-remove.sh +50 -0
  172. package/runtime/prime/bin/worktree.sh +198 -0
  173. package/runtime/prime/manifest.json +178 -0
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: sync-repos
3
+ description: 'Fallback Codex adapter for the Egregore sync-repos workflow.'
4
+ ---
5
+
6
+ <!-- generated-by: bin/codex-sync-skills.sh -->
7
+
8
+ # Egregore sync-repos Adapter
9
+
10
+ This is fallback coverage for a long-tail Egregore workflow that has not been
11
+ ported to a hand-written Codex-native skill yet.
12
+
13
+ Use the project shell and filesystem directly. Do not invoke Claude Code
14
+ commands. Translate interactive choices to structured Codex question tooling
15
+ when it is available; otherwise render compact numbered choices with an
16
+ `Other:` option and wait for the user.
17
+
18
+ 1. Read `.claude/skills/sync-repos/SKILL.md` for the workflow details.
19
+ 2. Run the referenced `bin/` scripts directly from Codex.
20
+ 3. Treat graph and publish steps as best-effort unless that workflow explicitly
21
+ says they are required.
22
+ 4. For every external notification, follow
23
+ `.claude/context/notification-consent.md`: plan without sending, then show
24
+ a separate exact Send / Edit / Cancel checkpoint. Never infer notification
25
+ consent from the workflow request or a batch approval.
26
+ 5. Keep local-mode behavior filesystem-first and avoid graph or notification
27
+ calls when `egregore.json` declares `"mode": "local"`.
28
+ 6. Never call the deprecated `egregore-handoff` CLI for Egregore project
29
+ handoffs.
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: teams-connect
3
+ description: 'Fallback Codex adapter for the Egregore teams-connect workflow.'
4
+ ---
5
+
6
+ <!-- generated-by: bin/codex-sync-skills.sh -->
7
+
8
+ # Egregore teams-connect Adapter
9
+
10
+ This is fallback coverage for a long-tail Egregore workflow that has not been
11
+ ported to a hand-written Codex-native skill yet.
12
+
13
+ Use the project shell and filesystem directly. Do not invoke Claude Code
14
+ commands. Translate interactive choices to structured Codex question tooling
15
+ when it is available; otherwise render compact numbered choices with an
16
+ `Other:` option and wait for the user.
17
+
18
+ 1. Read `.claude/skills/teams-connect/SKILL.md` for the workflow details.
19
+ 2. Run the referenced `bin/` scripts directly from Codex.
20
+ 3. Treat graph and publish steps as best-effort unless that workflow explicitly
21
+ says they are required.
22
+ 4. For every external notification, follow
23
+ `.claude/context/notification-consent.md`: plan without sending, then show
24
+ a separate exact Send / Edit / Cancel checkpoint. Never infer notification
25
+ consent from the workflow request or a batch approval.
26
+ 5. Keep local-mode behavior filesystem-first and avoid graph or notification
27
+ calls when `egregore.json` declares `"mode": "local"`.
28
+ 6. Never call the deprecated `egregore-handoff` CLI for Egregore project
29
+ handoffs.
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: telegram-connect
3
+ description: 'Fallback Codex adapter for the Egregore telegram-connect workflow.'
4
+ ---
5
+
6
+ <!-- generated-by: bin/codex-sync-skills.sh -->
7
+
8
+ # Egregore telegram-connect Adapter
9
+
10
+ This is fallback coverage for a long-tail Egregore workflow that has not been
11
+ ported to a hand-written Codex-native skill yet.
12
+
13
+ Use the project shell and filesystem directly. Do not invoke Claude Code
14
+ commands. Translate interactive choices to structured Codex question tooling
15
+ when it is available; otherwise render compact numbered choices with an
16
+ `Other:` option and wait for the user.
17
+
18
+ 1. Read `.claude/skills/telegram-connect/SKILL.md` for the workflow details.
19
+ 2. Run the referenced `bin/` scripts directly from Codex.
20
+ 3. Treat graph and publish steps as best-effort unless that workflow explicitly
21
+ says they are required.
22
+ 4. For every external notification, follow
23
+ `.claude/context/notification-consent.md`: plan without sending, then show
24
+ a separate exact Send / Edit / Cancel checkpoint. Never infer notification
25
+ consent from the workflow request or a batch approval.
26
+ 5. Keep local-mode behavior filesystem-first and avoid graph or notification
27
+ calls when `egregore.json` declares `"mode": "local"`.
28
+ 6. Never call the deprecated `egregore-handoff` CLI for Egregore project
29
+ handoffs.
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: telemetry
3
+ description: 'Fallback Codex adapter for the Egregore telemetry workflow.'
4
+ ---
5
+
6
+ <!-- generated-by: bin/codex-sync-skills.sh -->
7
+
8
+ # Egregore telemetry Adapter
9
+
10
+ This is fallback coverage for a long-tail Egregore workflow that has not been
11
+ ported to a hand-written Codex-native skill yet.
12
+
13
+ Use the project shell and filesystem directly. Do not invoke Claude Code
14
+ commands. Translate interactive choices to structured Codex question tooling
15
+ when it is available; otherwise render compact numbered choices with an
16
+ `Other:` option and wait for the user.
17
+
18
+ 1. Read `.claude/skills/telemetry/SKILL.md` for the workflow details.
19
+ 2. Run the referenced `bin/` scripts directly from Codex.
20
+ 3. Treat graph and publish steps as best-effort unless that workflow explicitly
21
+ says they are required.
22
+ 4. For every external notification, follow
23
+ `.claude/context/notification-consent.md`: plan without sending, then show
24
+ a separate exact Send / Edit / Cancel checkpoint. Never infer notification
25
+ consent from the workflow request or a batch approval.
26
+ 5. Keep local-mode behavior filesystem-first and avoid graph or notification
27
+ calls when `egregore.json` declares `"mode": "local"`.
28
+ 6. Never call the deprecated `egregore-handoff` CLI for Egregore project
29
+ handoffs.
@@ -0,0 +1,45 @@
1
+ ---
2
+ name: test
3
+ description: 'Fallback Codex adapter for the Egregore test workflow.'
4
+ ---
5
+
6
+ <!-- generated-by: bin/codex-sync-skills.sh -->
7
+
8
+ # Egregore test Adapter
9
+
10
+ This is fallback coverage for a long-tail Egregore workflow that has not been
11
+ ported to a hand-written Codex-native skill yet.
12
+
13
+ Use the project shell and filesystem directly. Do not invoke Claude Code
14
+ commands. Translate interactive choices to structured Codex question tooling
15
+ when it is available; otherwise render compact numbered choices with an
16
+ `Other:` option and wait for the user.
17
+
18
+ ## Structured UX parity
19
+
20
+ This workflow has a Claude skill with user-visible structured output. After
21
+ reading `.claude/skills/test/SKILL.md`, reproduce the same visible UX in Codex:
22
+
23
+ - Preserve TUI boxes, markdown tables, rich cards, browser artifact rendering,
24
+ exact confirmation blocks, and "no preamble" rules from the source skill.
25
+ - Use the source skill's frame width, section order, labels, status footer,
26
+ and examples as the contract for the final response.
27
+ - Never replace a required box/table/card/artifact view with a prose summary
28
+ unless the user explicitly asks for a summary.
29
+ - When the source says to output a TUI box directly, paste that box as the
30
+ visible response, preferably in a `text` fenced block.
31
+ - Never show raw JSON, raw command output, or unformatted script output when
32
+ the source skill requires formatted status or rendered output.
33
+
34
+ 1. Read `.claude/skills/test/SKILL.md` for the workflow details.
35
+ 2. Run the referenced `bin/` scripts directly from Codex.
36
+ 3. Treat graph and publish steps as best-effort unless that workflow explicitly
37
+ says they are required.
38
+ 4. For every external notification, follow
39
+ `.claude/context/notification-consent.md`: plan without sending, then show
40
+ a separate exact Send / Edit / Cancel checkpoint. Never infer notification
41
+ consent from the workflow request or a batch approval.
42
+ 5. Keep local-mode behavior filesystem-first and avoid graph or notification
43
+ calls when `egregore.json` declares `"mode": "local"`.
44
+ 6. Never call the deprecated `egregore-handoff` CLI for Egregore project
45
+ handoffs.
@@ -0,0 +1,84 @@
1
+ ---
2
+ name: the-spiral
3
+ description: Run a Codex-native structured Socratic dialogue when the user invokes /the-spiral or $the-spiral to turn an intuition into rigorous, communicable output.
4
+ ---
5
+
6
+ # The Spiral
7
+
8
+ Native Codex Egregore skill. The Spiral is a stateful Socratic process for
9
+ developing, pressure-testing, and compressing a complex thesis.
10
+
11
+ ## Setup
12
+
13
+ Gather three inputs, using structured Codex question tooling when available and
14
+ plain one-at-a-time questions otherwise:
15
+
16
+ 1. Domain: what are we spiraling on?
17
+ 2. Purpose: what should the process produce?
18
+ 3. Known areas: what domains must be covered, if any?
19
+
20
+ Create state files:
21
+
22
+ ```text
23
+ spiral_state.json
24
+ spiral_artifacts/ring1
25
+ spiral_artifacts/ring2
26
+ spiral_artifacts/ring3
27
+ spiral_artifacts/ring4
28
+ spiral_artifacts/ring5
29
+ ```
30
+
31
+ State includes domain, purpose, addressable space, current ring, current loop,
32
+ artifacts, emerged domains, parked threads, descents, and ring history.
33
+
34
+ ## Rings
35
+
36
+ 1. Seed: find the irreducible claim. Artifact:
37
+ `spiral_artifacts/ring1/seed.md`.
38
+ 2. Territory: map implications, tensions, contradictions, and open questions.
39
+ Artifact: `spiral_artifacts/ring2/territory.md`.
40
+ 3. Encounter: ground claims in reality. Research facts when needed and write
41
+ domain artifacts under `spiral_artifacts/ring3/`.
42
+ 4. Crucible: test objections and disconfirming evidence. Artifact:
43
+ `spiral_artifacts/ring4/crucible.md`.
44
+ 5. Compression: produce the final deliverables under
45
+ `spiral_artifacts/ring5/`.
46
+
47
+ Ask one question at a time. After each alignment check, update
48
+ `spiral_state.json`. Render a compact text progress view only at setup,
49
+ alignment checks, ring transitions, descents, resume, and completion.
50
+
51
+ ## TUI Rendering
52
+
53
+ Structured UX parity is required. The Spiral must present state as a structured
54
+ terminal view at phase boundaries, not as loose paragraphs:
55
+
56
+ - Show rings 1-5 with current/completed/parked status.
57
+ - Show current thesis, emerged domains, parked threads, descents, and next
58
+ question or alignment check.
59
+ - Render only at setup, alignment checks, ring transitions, descents, resume,
60
+ and completion.
61
+ - On completion, render a final structured view with rings completed, loop
62
+ count, deliverable paths, emerged domains, and parked threads.
63
+ - Do not render mid-flow while asking a Socratic question.
64
+
65
+ ## Flow Rules
66
+
67
+ - If the user gives a marketing-like answer in Ring 1, push toward the real
68
+ conviction.
69
+ - If an objection breaks an earlier assumption, offer a descent to the right
70
+ ring and record the reason.
71
+ - Research is active only when factual claims need grounding or pressure.
72
+ - Never force a domain that has not emerged from the user's answers.
73
+ - If the user is tired or wants to pause, crystallize the current state and
74
+ stop at an alignment boundary.
75
+
76
+ ## Resume
77
+
78
+ If `spiral_state.json` exists, summarize domain, ring, loop, and current
79
+ artifacts, then ask whether to continue or start fresh.
80
+
81
+ ## Completion
82
+
83
+ The process ends when Ring 5 deliverables satisfy the user. Report artifact
84
+ paths, rings completed, loop count, emerged domains, and any parked threads.
@@ -0,0 +1,45 @@
1
+ ---
2
+ name: tui-design
3
+ description: 'TUI Design System for Egregore slash commands. Use when designing or modifying any command''s terminal output to ensure visual consistency. Triggers on: TUI, terminal output, box drawing, command output formatting, sigils, section markers. Do NOT use for browser rendering (use dark-mode) or external prose (use egregore-voice).'
4
+ ---
5
+
6
+ <!-- generated-by: bin/codex-sync-skills.sh -->
7
+
8
+ # Egregore tui-design Adapter
9
+
10
+ This is fallback coverage for a long-tail Egregore workflow that has not been
11
+ ported to a hand-written Codex-native skill yet.
12
+
13
+ Use the project shell and filesystem directly. Do not invoke Claude Code
14
+ commands. Translate interactive choices to structured Codex question tooling
15
+ when it is available; otherwise render compact numbered choices with an
16
+ `Other:` option and wait for the user.
17
+
18
+ ## Structured UX parity
19
+
20
+ This workflow has a Claude skill with user-visible structured output. After
21
+ reading `.claude/skills/tui-design/SKILL.md`, reproduce the same visible UX in Codex:
22
+
23
+ - Preserve TUI boxes, markdown tables, rich cards, browser artifact rendering,
24
+ exact confirmation blocks, and "no preamble" rules from the source skill.
25
+ - Use the source skill's frame width, section order, labels, status footer,
26
+ and examples as the contract for the final response.
27
+ - Never replace a required box/table/card/artifact view with a prose summary
28
+ unless the user explicitly asks for a summary.
29
+ - When the source says to output a TUI box directly, paste that box as the
30
+ visible response, preferably in a `text` fenced block.
31
+ - Never show raw JSON, raw command output, or unformatted script output when
32
+ the source skill requires formatted status or rendered output.
33
+
34
+ 1. Read `.claude/skills/tui-design/SKILL.md` for the workflow details.
35
+ 2. Run the referenced `bin/` scripts directly from Codex.
36
+ 3. Treat graph and publish steps as best-effort unless that workflow explicitly
37
+ says they are required.
38
+ 4. For every external notification, follow
39
+ `.claude/context/notification-consent.md`: plan without sending, then show
40
+ a separate exact Send / Edit / Cancel checkpoint. Never infer notification
41
+ consent from the workflow request or a batch approval.
42
+ 5. Keep local-mode behavior filesystem-first and avoid graph or notification
43
+ calls when `egregore.json` declares `"mode": "local"`.
44
+ 6. Never call the deprecated `egregore-handoff` CLI for Egregore project
45
+ handoffs.
@@ -0,0 +1,45 @@
1
+ ---
2
+ name: tutorial
3
+ description: 'Fallback Codex adapter for the Egregore tutorial workflow.'
4
+ ---
5
+
6
+ <!-- generated-by: bin/codex-sync-skills.sh -->
7
+
8
+ # Egregore tutorial Adapter
9
+
10
+ This is fallback coverage for a long-tail Egregore workflow that has not been
11
+ ported to a hand-written Codex-native skill yet.
12
+
13
+ Use the project shell and filesystem directly. Do not invoke Claude Code
14
+ commands. Translate interactive choices to structured Codex question tooling
15
+ when it is available; otherwise render compact numbered choices with an
16
+ `Other:` option and wait for the user.
17
+
18
+ ## Structured UX parity
19
+
20
+ This workflow has a Claude skill with user-visible structured output. After
21
+ reading `.claude/skills/tutorial/SKILL.md`, reproduce the same visible UX in Codex:
22
+
23
+ - Preserve TUI boxes, markdown tables, rich cards, browser artifact rendering,
24
+ exact confirmation blocks, and "no preamble" rules from the source skill.
25
+ - Use the source skill's frame width, section order, labels, status footer,
26
+ and examples as the contract for the final response.
27
+ - Never replace a required box/table/card/artifact view with a prose summary
28
+ unless the user explicitly asks for a summary.
29
+ - When the source says to output a TUI box directly, paste that box as the
30
+ visible response, preferably in a `text` fenced block.
31
+ - Never show raw JSON, raw command output, or unformatted script output when
32
+ the source skill requires formatted status or rendered output.
33
+
34
+ 1. Read `.claude/skills/tutorial/SKILL.md` for the workflow details.
35
+ 2. Run the referenced `bin/` scripts directly from Codex.
36
+ 3. Treat graph and publish steps as best-effort unless that workflow explicitly
37
+ says they are required.
38
+ 4. For every external notification, follow
39
+ `.claude/context/notification-consent.md`: plan without sending, then show
40
+ a separate exact Send / Edit / Cancel checkpoint. Never infer notification
41
+ consent from the workflow request or a batch approval.
42
+ 5. Keep local-mode behavior filesystem-first and avoid graph or notification
43
+ calls when `egregore.json` declares `"mode": "local"`.
44
+ 6. Never call the deprecated `egregore-handoff` CLI for Egregore project
45
+ handoffs.
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: update
3
+ description: 'Fallback Codex adapter for the Egregore update workflow.'
4
+ ---
5
+
6
+ <!-- generated-by: bin/codex-sync-skills.sh -->
7
+
8
+ # Egregore update Adapter
9
+
10
+ This is fallback coverage for a long-tail Egregore workflow that has not been
11
+ ported to a hand-written Codex-native skill yet.
12
+
13
+ Use the project shell and filesystem directly. Do not invoke Claude Code
14
+ commands. Translate interactive choices to structured Codex question tooling
15
+ when it is available; otherwise render compact numbered choices with an
16
+ `Other:` option and wait for the user.
17
+
18
+ 1. Read `.claude/skills/update/SKILL.md` for the workflow details.
19
+ 2. Run the referenced `bin/` scripts directly from Codex.
20
+ 3. Treat graph and publish steps as best-effort unless that workflow explicitly
21
+ says they are required.
22
+ 4. For every external notification, follow
23
+ `.claude/context/notification-consent.md`: plan without sending, then show
24
+ a separate exact Send / Edit / Cancel checkpoint. Never infer notification
25
+ consent from the workflow request or a batch approval.
26
+ 5. Keep local-mode behavior filesystem-first and avoid graph or notification
27
+ calls when `egregore.json` declares `"mode": "local"`.
28
+ 6. Never call the deprecated `egregore-handoff` CLI for Egregore project
29
+ handoffs.
@@ -0,0 +1,156 @@
1
+ ---
2
+ name: view
3
+ description: 'Render Egregore data and documents as branded browser artifacts. Use when the user invokes /view or $view, asks to show something visually, open it in a browser, make a document readable or presentable, render a quest/handoff/activity/board/network, or synthesize a visual artifact from a topic.'
4
+ ---
5
+
6
+ # Egregore View
7
+
8
+ Native Codex Egregore skill. Use only inside an Egregore checkout.
9
+
10
+ Resolve a file or live Egregore surface, render it with the in-repo artifact
11
+ tooling, open it, and report the concrete output path. Run the workflow inline;
12
+ do not invoke Claude Code commands or delegate through Loom.
13
+
14
+ ## Structured UX parity
15
+
16
+ The visible result is the browser artifact and a compact receipt. Preserve the
17
+ typed artifact templates, designed document composition, exact file path, and
18
+ stable board URL when available. Do not replace the artifact with a prose
19
+ summary or expose raw renderer output.
20
+
21
+ ## Resolve the request
22
+
23
+ 1. Verify `bin/agent.sh` exists. If not, say this is not an Egregore checkout.
24
+ 2. Parse an optional type followed by a name:
25
+ - `quest` from `memory/quests/`
26
+ - `handoff` from `memory/handoffs/` recursively
27
+ - `activity`, `board`, or `network` with no source file
28
+ - `document` for any markdown file
29
+ 3. Treat an argument containing `/` or ending in `.md` as a direct path. Use it
30
+ if it exists and infer the type from its directory.
31
+ 4. With no explicit type, search in this order: quests, handoffs, knowledge.
32
+ Prefer exact basename matches, then case-insensitive partial matches. For
33
+ handoffs, prefer the newest matching dated path.
34
+ 5. If several files match, use structured Codex question tooling when
35
+ available; otherwise ask one concise plain-text question listing the paths.
36
+ 6. If no file matches and the input is a topic or question, synthesize a
37
+ temporary markdown document from relevant memory, repository files, and
38
+ conversation context at
39
+ `/tmp/egregore-artifacts/synthesized-<slug>.md`. If the input clearly names
40
+ a missing file, report it as missing instead of inventing a document.
41
+
42
+ ## Select the renderer
43
+
44
+ Prefer the checked-out package so local changes are exercised and no package
45
+ download is needed:
46
+
47
+ ```bash
48
+ RENDER="npx egregore-artifacts@latest"
49
+ if [ -f packages/egregore-artifacts/bin/cli.js ] && \
50
+ [ -d packages/egregore-artifacts/node_modules/react ]; then
51
+ RENDER="node packages/egregore-artifacts/bin/cli.js"
52
+ fi
53
+ ```
54
+
55
+ If the local package exists without dependencies, install its dependencies or
56
+ use the `npx` fallback. Do not block a render on optional connected services.
57
+
58
+ ## Render typed artifacts
59
+
60
+ Run the matching command:
61
+
62
+ ```bash
63
+ $RENDER quest <quest-file>
64
+ $RENDER handoff <handoff-file>
65
+ $RENDER activity
66
+ $RENDER board
67
+ $RENDER network
68
+ $RENDER document <markdown-file>
69
+ ```
70
+
71
+ Use the renderer's reported HTML path rather than guessing it.
72
+
73
+ For documents, walk the generative-UI synthesis graph in
74
+ `packages/design-system/generative-ui/skill/SKILL.md`: select one id each for
75
+ objective, audience, register, palette, and grammar from the document's
76
+ substance, record one line of judgment for each, resolve the brief, and pass it
77
+ with `--brief`. If that layer is unavailable, render without the brief.
78
+
79
+ ## Compose flagship documents
80
+
81
+ Composition is the default for a multi-section strategy, briefing, explainer,
82
+ analysis, decision document, or anything explicitly requested as composed,
83
+ presentable, client-facing, designed, or `--compose`. Use the fast renderer for
84
+ typed artifacts, short utility documents, `--fast`, or `--floor`.
85
+
86
+ For composition:
87
+
88
+ 1. Read the source document in full.
89
+ 2. Copy `.codex/skills/view/assets/compose-scaffold.html` to
90
+ `/tmp/egregore-artifacts/composed-<slug>.html`.
91
+ 3. Fill every placeholder and walk the generative-UI graph for the manifest's
92
+ register, palette, grammar, and trail.
93
+ 4. Transform rather than mirror the markdown:
94
+ - write a two-tone claim-led hero and italic standfirst;
95
+ - make section headings state findings, not repeat source headings;
96
+ - choose components by meaning: ledger for Q/A, claims for numbers, panels
97
+ for options, steps for sequences, feature rows for capability/status,
98
+ threads for decisions, gap cards for negatives, and a readout for the
99
+ honest bottom line;
100
+ - create one anchored navigation item per composed section.
101
+ 5. Keep every theme-sensitive color as `var(--token)`. Never emit inline hex
102
+ colors in composed content. Preserve the scaffold's no-flash theme restore,
103
+ `<html data-theme>`, and light/auto/dark behavior.
104
+ 6. Verify no placeholders remain, open the HTML with the platform browser
105
+ opener, and report `Renderer: composed (band 5, inline)`.
106
+
107
+ ## Publish the stable board
108
+
109
+ After `$RENDER board`, publish best-effort only when `egregore.json` declares a
110
+ connected configuration:
111
+
112
+ ```bash
113
+ _API_URL=$(jq -r '.api_url // empty' egregore.json 2>/dev/null)
114
+ _MODE=$(jq -r '.mode // empty' egregore.json 2>/dev/null)
115
+ if [ -n "$_API_URL" ] && [ "$_MODE" != "local" ]; then
116
+ ORG_NAME=$(jq -r '.org_name // .slug' egregore.json)
117
+ bash bin/publish-artifact.sh board memory/board/board.json \
118
+ --id board \
119
+ --title "Project Board — $ORG_NAME" \
120
+ --author "$ORG_NAME" \
121
+ --description "Latest board for $ORG_NAME" 2>/dev/null &
122
+ fi
123
+ ```
124
+
125
+ The local artifact remains the successful result if publishing fails. In local
126
+ mode, do not call graph or notification services.
127
+
128
+ ## Report
129
+
130
+ Return only the useful receipt after the browser opens:
131
+
132
+ ```text
133
+ ✓ Artifact opened in browser
134
+ File: /tmp/egregore-artifacts/<rendered-file>.html
135
+ ```
136
+
137
+ For a connected board, append:
138
+
139
+ ```text
140
+ ◆ https://egregore.xyz/view/<org-slug>/board (stable — refresh for latest)
141
+ ```
142
+
143
+ Emit telemetry best-effort after completion:
144
+
145
+ ```bash
146
+ bash bin/telemetry.sh emit "command" '{"command":"view"}' 2>/dev/null &
147
+ ```
148
+
149
+ ## Rules
150
+
151
+ - Keep filesystem resolution sufficient in local mode; the graph is optional.
152
+ - Preserve auto-linked backtick references handled by
153
+ `bin/publish-references.sh` when publishing markdown.
154
+ - Never install a global renderer package as the first choice.
155
+ - Never call the deprecated `egregore-handoff` CLI.
156
+ - Never claim publishing succeeded unless a URL was actually returned.
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "Egregore View"
3
+ short_description: "Render Egregore artifacts in the browser"
4
+ default_prompt: "Use $view to render this as a branded browser artifact."