create-egregore 0.19.5 → 0.19.7
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/assets/egregore-launcher.js +411 -25
- package/bin/cli.js +34 -20
- package/lib/local.js +21 -5
- package/lib/pi-runtime.js +186 -0
- package/lib/setup.js +56 -11
- package/lib/ui.js +1 -1
- package/package.json +7 -5
- package/runtime/codex/.codex/spec-manifest.json +1 -1
- package/runtime/codex/AGENTS.md +7 -2
- package/runtime/codex/bin/codex-render-spec.mjs +6 -1
- package/runtime/codex/bin/codex-session-start.sh +5 -59
- package/runtime/codex/bin/codex-skill-render.mjs +7 -5
- package/runtime/codex/bin/lib/context.sh +8 -1
- package/runtime/codex/bin/lib/greeting.sh +12 -108
- package/runtime/codex/bin/lib/metrics.sh +374 -0
- package/runtime/codex/bin/publish-artifact.sh +14 -0
- package/runtime/codex/bin/settings.sh +274 -0
- package/runtime/codex/manifest.json +2 -0
- package/runtime/pi/.codex/config.toml +15 -0
- package/runtime/pi/.codex/hooks/branch-guard.js +242 -0
- package/runtime/pi/.codex/hooks/search-hint.js +65 -0
- package/runtime/pi/.codex/hooks.json +30 -0
- package/runtime/pi/.codex/skills/activity/SKILL.md +70 -0
- package/runtime/pi/.codex/skills/add/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/announce/SKILL.md +54 -0
- package/runtime/pi/.codex/skills/answer/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/archive/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/ask/SKILL.md +59 -0
- package/runtime/pi/.codex/skills/branch/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/checkup/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/commit/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/contribute/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/dark-mode/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/dashboard/SKILL.md +59 -0
- package/runtime/pi/.codex/skills/deep-reflect/SKILL.md +74 -0
- package/runtime/pi/.codex/skills/delete-user/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/egregore-voice/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/emissary/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/env/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/handoff/SKILL.md +67 -0
- package/runtime/pi/.codex/skills/harvest/SKILL.md +107 -0
- package/runtime/pi/.codex/skills/ingest/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/ingest-google/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/ingest-user-interview/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/invite/SKILL.md +40 -0
- package/runtime/pi/.codex/skills/issue/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/me/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/meeting/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/minion/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/note/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/onboarding/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/pr/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/project/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/pull/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/push/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/quest/SKILL.md +77 -0
- package/runtime/pi/.codex/skills/quest-suggest/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/reflect/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/review-pr/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/save/SKILL.md +62 -0
- package/runtime/pi/.codex/skills/scroll/SKILL.md +168 -0
- package/runtime/pi/.codex/skills/scroll/agents/openai.yaml +4 -0
- package/runtime/pi/.codex/skills/scroll/assets/shell.html +542 -0
- package/runtime/pi/.codex/skills/search/SKILL.md +56 -0
- package/runtime/pi/.codex/skills/session-view/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/setup/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/summon/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/sync-repos/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/telegram-connect/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/telemetry/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/test/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/the-spiral/SKILL.md +84 -0
- package/runtime/pi/.codex/skills/thread/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/todo/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/tui-design/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/tutorial/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/update/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/view/SKILL.md +156 -0
- package/runtime/pi/.codex/skills/view/agents/openai.yaml +4 -0
- package/runtime/pi/.codex/skills/view/assets/compose-scaffold.html +221 -0
- package/runtime/pi/.codex/skills/visual-explain/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/wrap/SKILL.md +55 -0
- package/runtime/pi/.codex/spec-manifest.json +114 -0
- package/runtime/pi/.pi/APPEND_SYSTEM.md +255 -0
- package/runtime/pi/.pi/extensions/egregore.ts +324 -0
- package/runtime/pi/.pi/settings.json +6 -0
- package/runtime/pi/.pi/spec-manifest.json +12 -0
- package/runtime/pi/AGENTS.md +350 -0
- package/runtime/pi/bin/activity-data.sh +242 -0
- package/runtime/pi/bin/agent.sh +677 -0
- package/runtime/pi/bin/codex-install-skills.sh +78 -0
- package/runtime/pi/bin/codex-render-spec.mjs +394 -0
- package/runtime/pi/bin/codex-session-start.sh +188 -0
- package/runtime/pi/bin/codex-skill-render.mjs +323 -0
- package/runtime/pi/bin/codex-sync-skills.sh +227 -0
- package/runtime/pi/bin/dashboard-data.sh +178 -0
- package/runtime/pi/bin/graph-batch.sh +60 -0
- package/runtime/pi/bin/graph-op.sh +431 -0
- package/runtime/pi/bin/graph-wal.sh +228 -0
- package/runtime/pi/bin/graph.sh +177 -0
- package/runtime/pi/bin/handoff-pr-backfill.sh +86 -0
- package/runtime/pi/bin/handoff-run.sh +581 -0
- package/runtime/pi/bin/handoff-save-egregore.sh +136 -0
- package/runtime/pi/bin/index-handoff.sh +312 -0
- package/runtime/pi/bin/lib/artifact-id.sh +46 -0
- package/runtime/pi/bin/lib/config.sh +71 -0
- package/runtime/pi/bin/lib/context.sh +542 -0
- package/runtime/pi/bin/lib/dashboard-artifact.sh +142 -0
- package/runtime/pi/bin/lib/ensure-develop.sh +183 -0
- package/runtime/pi/bin/lib/git-sync.sh +288 -0
- package/runtime/pi/bin/lib/greeting.sh +340 -0
- package/runtime/pi/bin/lib/hash.sh +13 -0
- package/runtime/pi/bin/lib/identity.sh +174 -0
- package/runtime/pi/bin/lib/metrics.sh +374 -0
- package/runtime/pi/bin/lib/permissions.sh +106 -0
- package/runtime/pi/bin/lib/time.sh +56 -0
- package/runtime/pi/bin/lib/worktree-links.sh +54 -0
- package/runtime/pi/bin/notify.sh +207 -0
- package/runtime/pi/bin/pi-branch-policy.mjs +15 -0
- package/runtime/pi/bin/pi-product-workflows.mjs +324 -0
- package/runtime/pi/bin/pi-render-spec.mjs +114 -0
- package/runtime/pi/bin/pi-session-start.sh +24 -0
- package/runtime/pi/bin/publish-artifact.sh +201 -0
- package/runtime/pi/bin/publish-references.sh +144 -0
- package/runtime/pi/bin/repo-state.sh +99 -0
- package/runtime/pi/bin/telemetry.sh +391 -0
- package/runtime/pi/bin/worktree-create.sh +118 -0
- package/runtime/pi/bin/worktree-remove.sh +50 -0
- package/runtime/pi/bin/worktree.sh +198 -0
- package/runtime/pi/manifest.json +176 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: summon
|
|
3
|
+
description: 'Fallback Codex adapter for the Egregore summon workflow.'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<!-- generated-by: bin/codex-sync-skills.sh -->
|
|
7
|
+
|
|
8
|
+
# Egregore summon 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/summon/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/summon/SKILL.md` for the workflow details.
|
|
35
|
+
2. Run the referenced `bin/` scripts directly from Codex.
|
|
36
|
+
3. Treat graph, publish, and notify steps as best-effort unless that workflow
|
|
37
|
+
explicitly says they are required.
|
|
38
|
+
4. Keep local-mode behavior filesystem-first and avoid graph or notification
|
|
39
|
+
calls when `egregore.json` declares `"mode": "local"`.
|
|
40
|
+
5. Never call the deprecated `egregore-handoff` CLI for Egregore project
|
|
41
|
+
handoffs.
|
|
@@ -0,0 +1,25 @@
|
|
|
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, publish, and notify steps as best-effort unless that workflow
|
|
21
|
+
explicitly says they are required.
|
|
22
|
+
4. Keep local-mode behavior filesystem-first and avoid graph or notification
|
|
23
|
+
calls when `egregore.json` declares `"mode": "local"`.
|
|
24
|
+
5. Never call the deprecated `egregore-handoff` CLI for Egregore project
|
|
25
|
+
handoffs.
|
|
@@ -0,0 +1,25 @@
|
|
|
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, publish, and notify steps as best-effort unless that workflow
|
|
21
|
+
explicitly says they are required.
|
|
22
|
+
4. Keep local-mode behavior filesystem-first and avoid graph or notification
|
|
23
|
+
calls when `egregore.json` declares `"mode": "local"`.
|
|
24
|
+
5. Never call the deprecated `egregore-handoff` CLI for Egregore project
|
|
25
|
+
handoffs.
|
|
@@ -0,0 +1,25 @@
|
|
|
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, publish, and notify steps as best-effort unless that workflow
|
|
21
|
+
explicitly says they are required.
|
|
22
|
+
4. Keep local-mode behavior filesystem-first and avoid graph or notification
|
|
23
|
+
calls when `egregore.json` declares `"mode": "local"`.
|
|
24
|
+
5. Never call the deprecated `egregore-handoff` CLI for Egregore project
|
|
25
|
+
handoffs.
|
|
@@ -0,0 +1,41 @@
|
|
|
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, publish, and notify steps as best-effort unless that workflow
|
|
37
|
+
explicitly says they are required.
|
|
38
|
+
4. Keep local-mode behavior filesystem-first and avoid graph or notification
|
|
39
|
+
calls when `egregore.json` declares `"mode": "local"`.
|
|
40
|
+
5. Never call the deprecated `egregore-handoff` CLI for Egregore project
|
|
41
|
+
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,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: thread
|
|
3
|
+
description: 'Threads — directed work-stream primitive: store the intent, project the state. Use for /thread new|view|dash|fold|review — creating a thread, viewing one, regenerating the heat-ring dashboard, folding a confirmed decision into stored intent, or running the iteration review. Also triggers when a #thread-<slug>-foldin:v1 block is pasted.'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<!-- generated-by: bin/codex-sync-skills.sh -->
|
|
7
|
+
|
|
8
|
+
# Egregore thread 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/thread/SKILL.md` for the workflow details.
|
|
19
|
+
2. Run the referenced `bin/` scripts directly from Codex.
|
|
20
|
+
3. Treat graph, publish, and notify steps as best-effort unless that workflow
|
|
21
|
+
explicitly says they are required.
|
|
22
|
+
4. Keep local-mode behavior filesystem-first and avoid graph or notification
|
|
23
|
+
calls when `egregore.json` declares `"mode": "local"`.
|
|
24
|
+
5. Never call the deprecated `egregore-handoff` CLI for Egregore project
|
|
25
|
+
handoffs.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: todo
|
|
3
|
+
description: 'Fallback Codex adapter for the Egregore todo workflow.'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<!-- generated-by: bin/codex-sync-skills.sh -->
|
|
7
|
+
|
|
8
|
+
# Egregore todo 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/todo/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/todo/SKILL.md` for the workflow details.
|
|
35
|
+
2. Run the referenced `bin/` scripts directly from Codex.
|
|
36
|
+
3. Treat graph, publish, and notify steps as best-effort unless that workflow
|
|
37
|
+
explicitly says they are required.
|
|
38
|
+
4. Keep local-mode behavior filesystem-first and avoid graph or notification
|
|
39
|
+
calls when `egregore.json` declares `"mode": "local"`.
|
|
40
|
+
5. Never call the deprecated `egregore-handoff` CLI for Egregore project
|
|
41
|
+
handoffs.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tui-design
|
|
3
|
+
description: 'Fallback Codex adapter for the Egregore tui-design workflow.'
|
|
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, publish, and notify steps as best-effort unless that workflow
|
|
37
|
+
explicitly says they are required.
|
|
38
|
+
4. Keep local-mode behavior filesystem-first and avoid graph or notification
|
|
39
|
+
calls when `egregore.json` declares `"mode": "local"`.
|
|
40
|
+
5. Never call the deprecated `egregore-handoff` CLI for Egregore project
|
|
41
|
+
handoffs.
|
|
@@ -0,0 +1,41 @@
|
|
|
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, publish, and notify steps as best-effort unless that workflow
|
|
37
|
+
explicitly says they are required.
|
|
38
|
+
4. Keep local-mode behavior filesystem-first and avoid graph or notification
|
|
39
|
+
calls when `egregore.json` declares `"mode": "local"`.
|
|
40
|
+
5. Never call the deprecated `egregore-handoff` CLI for Egregore project
|
|
41
|
+
handoffs.
|
|
@@ -0,0 +1,25 @@
|
|
|
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, publish, and notify steps as best-effort unless that workflow
|
|
21
|
+
explicitly says they are required.
|
|
22
|
+
4. Keep local-mode behavior filesystem-first and avoid graph or notification
|
|
23
|
+
calls when `egregore.json` declares `"mode": "local"`.
|
|
24
|
+
5. Never call the deprecated `egregore-handoff` CLI for Egregore project
|
|
25
|
+
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.
|