@neikyun/ciel 6.11.3 → 6.13.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 (125) hide show
  1. package/assets/.claude/agents/ciel-critic.md +71 -12
  2. package/assets/.claude/agents/ciel-explorer.md +59 -18
  3. package/assets/.claude/agents/ciel-improver.md +6 -3
  4. package/assets/.claude/agents/ciel-researcher.md +85 -25
  5. package/assets/.claude/hooks/block-destructive.sh +2 -2
  6. package/assets/.claude/hooks/check-test-first.sh +2 -2
  7. package/assets/.claude/hooks/memory-bootstrap.sh +0 -0
  8. package/assets/.claude/hooks/memory-engine.py +82 -15
  9. package/assets/.claude/hooks/post-tool-write.sh +32 -0
  10. package/assets/.claude/hooks/pre-agent-gate.sh +11 -6
  11. package/assets/.claude/hooks/pre-compact.sh +18 -0
  12. package/assets/.claude/hooks/pre-tool-write.sh +56 -31
  13. package/assets/.claude/hooks/session-start.sh +22 -1
  14. package/assets/.claude/hooks/session-version-check.sh +1 -1
  15. package/assets/.claude/hooks/stop.sh +104 -0
  16. package/assets/.claude/hooks/subagent-stop.sh +54 -0
  17. package/assets/.claude/hooks/track-file.sh +2 -2
  18. package/assets/.claude/hooks/user-prompt-submit.sh +11 -15
  19. package/assets/.claude/settings.json +18 -4
  20. package/assets/AGENTS.md +1 -1
  21. package/assets/CLAUDE.md +103 -175
  22. package/assets/commands/ciel-audit.md +58 -399
  23. package/assets/commands/ciel-create-skill.md +24 -38
  24. package/assets/commands/ciel-eval.md +25 -37
  25. package/assets/commands/ciel-init.md +36 -126
  26. package/assets/commands/ciel-status.md +22 -19
  27. package/assets/commands/ciel-update.md +20 -39
  28. package/assets/platforms/opencode/.opencode/agents/ciel-researcher.md +71 -895
  29. package/assets/platforms/opencode/.opencode/commands/ciel-audit.md +58 -296
  30. package/assets/platforms/opencode/.opencode/commands/ciel-create-skill.md +24 -46
  31. package/assets/platforms/opencode/.opencode/commands/ciel-eval.md +25 -45
  32. package/assets/platforms/opencode/.opencode/commands/ciel-init.md +36 -131
  33. package/assets/platforms/opencode/.opencode/commands/ciel-status.md +22 -24
  34. package/assets/platforms/opencode/.opencode/commands/ciel-update.md +20 -40
  35. package/assets/platforms/opencode/AGENTS.md +4 -4
  36. package/assets/rules/security.md +30 -0
  37. package/assets/rules/testing.md +23 -0
  38. package/assets/skills/agile/SKILL.md +42 -0
  39. package/assets/skills/alerting/SKILL.md +55 -0
  40. package/assets/skills/api-design/SKILL.md +46 -0
  41. package/assets/skills/appsec/SKILL.md +43 -0
  42. package/assets/skills/architecture/SKILL.md +74 -0
  43. package/assets/skills/backend/SKILL.md +41 -0
  44. package/assets/skills/backup-recovery/SKILL.md +42 -0
  45. package/assets/skills/caching/SKILL.md +44 -0
  46. package/assets/skills/cdn/SKILL.md +42 -0
  47. package/assets/skills/chaos/SKILL.md +41 -0
  48. package/assets/skills/cicd-pipeline/SKILL.md +56 -0
  49. package/assets/skills/cloud/SKILL.md +42 -0
  50. package/assets/skills/code-quality/SKILL.md +42 -0
  51. package/assets/skills/code-review/SKILL.md +41 -0
  52. package/assets/skills/communication/SKILL.md +42 -0
  53. package/assets/skills/containers/SKILL.md +42 -0
  54. package/assets/skills/cqrs/SKILL.md +41 -0
  55. package/assets/skills/crypto/SKILL.md +46 -0
  56. package/assets/skills/data-engineering/SKILL.md +42 -0
  57. package/assets/skills/database-design/SKILL.md +46 -0
  58. package/assets/skills/ddd/SKILL.md +45 -0
  59. package/assets/skills/deployment-strategies/SKILL.md +51 -0
  60. package/assets/skills/desktop/SKILL.md +42 -0
  61. package/assets/skills/devsecops/SKILL.md +43 -0
  62. package/assets/skills/event-driven/SKILL.md +46 -0
  63. package/assets/skills/frontend/SKILL.md +41 -0
  64. package/assets/skills/functional/SKILL.md +42 -0
  65. package/assets/skills/high-availability/SKILL.md +42 -0
  66. package/assets/skills/iac/SKILL.md +46 -0
  67. package/assets/skills/logging/SKILL.md +46 -0
  68. package/assets/skills/meta/ciel-improve/SKILL.md +127 -0
  69. package/assets/skills/meta/learnings-capture/SKILL.md +105 -0
  70. package/assets/skills/meta/patch-spec/patch-spec.md +50 -0
  71. package/assets/skills/meta/skill-creator/SKILL.md +115 -0
  72. package/assets/skills/meta/skill-freshness-auditor/SKILL.md +164 -0
  73. package/assets/skills/meta/skill-variant-evaluator/SKILL.md +100 -0
  74. package/assets/skills/meta/skills-first-design-auditor/SKILL.md +192 -0
  75. package/assets/skills/ml-engineering/SKILL.md +42 -0
  76. package/assets/skills/mobile/SKILL.md +42 -0
  77. package/assets/skills/monitoring/SKILL.md +54 -0
  78. package/assets/skills/networking/SKILL.md +42 -0
  79. package/assets/skills/nosql/SKILL.md +41 -0
  80. package/assets/skills/oop-solid/SKILL.md +42 -0
  81. package/assets/skills/performance/SKILL.md +41 -0
  82. package/assets/skills/reactive/SKILL.md +42 -0
  83. package/assets/skills/release-management/SKILL.md +51 -0
  84. package/assets/skills/research/fact-check-claims/SKILL.md +98 -0
  85. package/assets/skills/research/research-forums/SKILL.md +103 -0
  86. package/assets/skills/research/research-github-issues/SKILL.md +103 -0
  87. package/assets/skills/research/research-web-sources/SKILL.md +108 -0
  88. package/assets/skills/research/synthesize-findings/SKILL.md +112 -0
  89. package/assets/skills/research/validate-source-credibility/SKILL.md +103 -0
  90. package/assets/skills/resilience/SKILL.md +41 -0
  91. package/assets/skills/serverless/SKILL.md +42 -0
  92. package/assets/skills/servers/SKILL.md +41 -0
  93. package/assets/skills/sql/SKILL.md +45 -0
  94. package/assets/skills/supply-chain/SKILL.md +41 -0
  95. package/assets/skills/system-design/SKILL.md +91 -0
  96. package/assets/skills/tech-leadership/SKILL.md +46 -0
  97. package/assets/skills/testing/SKILL.md +41 -0
  98. package/assets/skills/tracing/SKILL.md +36 -0
  99. package/assets/skills/utility/branch-cleaner/SKILL.md +195 -0
  100. package/assets/skills/utility/branch-setup/SKILL.md +144 -0
  101. package/assets/skills/utility/changelog-updater/SKILL.md +125 -0
  102. package/assets/skills/utility/commit-writer/SKILL.md +154 -0
  103. package/assets/skills/utility/issue-closer/SKILL.md +106 -0
  104. package/assets/skills/utility/issue-creator/SKILL.md +200 -0
  105. package/assets/skills/utility/pr-merger/SKILL.md +189 -0
  106. package/assets/skills/utility/pr-opener/SKILL.md +180 -0
  107. package/assets/skills/utility/release-publisher/SKILL.md +224 -0
  108. package/assets/skills/workflow/ciel-dev-process/SKILL.md +94 -0
  109. package/assets/skills/workflow/faire-gatekeeper/SKILL.md +3 -1
  110. package/assets/skills/workflow/prouver-verifier/SKILL.md +11 -2
  111. package/dist/cli/check.d.ts.map +1 -1
  112. package/dist/cli/check.js +11 -2
  113. package/dist/cli/check.js.map +1 -1
  114. package/dist/cli/claude.d.ts.map +1 -1
  115. package/dist/cli/claude.js +0 -2
  116. package/dist/cli/claude.js.map +1 -1
  117. package/dist/cli/init.d.ts.map +1 -1
  118. package/dist/cli/init.js +11 -2
  119. package/dist/cli/init.js.map +1 -1
  120. package/dist/cli/opencode.d.ts.map +1 -1
  121. package/dist/cli/opencode.js +2 -1
  122. package/dist/cli/opencode.js.map +1 -1
  123. package/package.json +1 -1
  124. package/assets/commands/ciel-migrate.md +0 -35
  125. package/assets/commands/ciel-refresh.md +0 -91
@@ -1,50 +1,42 @@
1
1
  ---
2
- description: Runs the binary eval dataset for one or all Ciel skills via claude --print headless, comparing variants.
2
+ description: Runs the binary eval dataset for a Ciel skill via headless Claude Code, comparing baseline scores and persisting results.
3
3
  ---
4
4
 
5
- # /ciel-eval — Run eval harness
5
+ # /ciel-eval — Run skill eval harness
6
6
 
7
- *Runs the binary eval dataset for one skill (or all skills) via `claude --print` headless mode, comparing variants and persisting scoreboards.*
7
+ Runs the binary eval dataset for a skill via headless Claude Code, persisting scoreboards to `~/.ciel/evals/results/`.
8
8
 
9
9
  Usage: `/ciel-eval [skill-name]`
10
10
 
11
- - No arg runs baseline eval for ALL skills that have a dataset
12
- - `skill-name` runs eval for that skill only (baseline + any variants in `variants/`)
11
+ - No arg runs baseline eval for ALL skills that have a dataset
12
+ - `skill-name` runs eval for that skill only
13
13
 
14
14
  ---
15
15
 
16
16
  ## What it does
17
17
 
18
- 1. Dispatches the `improver` agent in MODE=EVAL
19
- 2. The agent invokes `skill-variant-evaluator` skill
20
- 3. For each target skill:
18
+ 1. Dispatches `ciel-improver` agent in MODE=EVAL
19
+ 2. For each target skill:
21
20
  - Loads dataset from `evals/datasets/<skill-name>.jsonl`
22
- - If variants exist (`skills/<category>/<name>/variants/*.md`), evaluates each
23
- - Otherwise, baseline-only scoring
24
- 4. Persists results to `evals/results/<skill-name>-<timestamp>.json`
25
- 5. Returns a scoreboard
21
+ - Runs each entry via `claude --print` headless
22
+ - Scores against expected behaviors
23
+ 3. Persists results to `~/.ciel/evals/results/<skill-name>-<timestamp>.json`
24
+ 4. Returns a scoreboard
26
25
 
27
26
  ---
28
27
 
29
28
  ## Example output
30
29
 
31
30
  ```
32
- # Eval results — flux-narrator
31
+ # Eval results — api-design
33
32
 
34
- Dataset: evals/datasets/flux-narration.jsonl (8 entries)
35
- Variants evaluated: 3
33
+ Dataset: evals/datasets/api-design.jsonl (12 entries)
36
34
 
37
- | Variant | Score | Tokens | Duration |
38
- |---------|-------|--------|----------|
39
- | A (baseline) | 0.72 | 14.5k | 12.5s |
40
- | B (tightened) | 0.89 | 15.1k | 13.2s ← WINNER |
41
- | C (reduced) | 0.81 | 12.8k | 11.7s |
35
+ Score: 0.85 (25/28 criteria passed)
36
+ Tokens used: 18.2k
37
+ Duration: 15.3s
42
38
 
43
- Winner: **Variant B** (+0.17 over baseline)
44
-
45
- Recommendation: adopt Variant B via `/ciel-improve`
46
-
47
- Result persisted: evals/results/flux-narrator-2026-04-17-142345.json
39
+ Result persisted: ~/.ciel/evals/results/api-design-2026-05-23-142345.json
48
40
  ```
49
41
 
50
42
  ---
@@ -52,29 +44,25 @@ Result persisted: evals/results/flux-narrator-2026-04-17-142345.json
52
44
  ## Guardrails
53
45
 
54
46
  - **Max 20 eval entries per dataset** — prevents runaway costs
55
- - **Max 3 variants per skill** A/B/C, more is noise
56
- - **Cost estimation** displayed before starting; user can abort if > 500k tokens projected
57
- - **Read-only evals** `--disallowed-tools "Write Edit NotebookEdit"` to prevent side effects
58
- - **Graceful fallback** — if `claude --print` is unavailable, outputs manual eval prompts and waits for user input
47
+ - **Cost estimation** displayed before starting; abort if > 500k tokens projected
48
+ - **Read-only**: `--disallowed-tools "Write Edit NotebookEdit"` to prevent side effects
49
+ - **Graceful fallback**: if `claude --print` unavailable, outputs manual eval prompts
59
50
 
60
51
  ---
61
52
 
62
53
  ## When to run
63
54
 
64
- - Before and after every `/ciel-improve` pass (baseline vs improved)
65
- - On every CHANGELOG version bump — regression sanity check
66
- - When creating a new skill — establish baseline score
67
- - When adding new eval criteria — re-score existing skills
55
+ - Before and after `/ciel-improve` baseline vs improved
56
+ - On VERSION bump — regression sanity check
57
+ - When creating a new skill — establish baseline
68
58
 
69
59
  ---
70
60
 
71
61
  ## Eval dataset format
72
62
 
73
- One JSON object per line (JSONL). See `evals/datasets/depth-classification.jsonl` for examples. Required fields:
63
+ One JSON object per line (JSONL). Required fields:
74
64
 
75
65
  - `id` — unique in dataset
76
66
  - `input` — prompt / context passed to skill
77
- - `expected_behavior` — object mapping criterion name boolean
67
+ - `expected_behavior` — object mapping criterion name to boolean
78
68
  - `skill` — which skill this tests
79
-
80
- See `skills/meta/skill-variant-evaluator/reference.md` for the full schema and supported criterion evaluators.
@@ -1,22 +1,20 @@
1
1
  ---
2
- description: Bootstrap or repair Ciel wiring. Auto-detects platform (Claude Code, OpenCode, Cursor, etc.) and configures hooks. Preserves existing config, creates backups.
2
+ description: Bootstrap or repair Ciel v7 wiring. Auto-detects platform (Claude Code or OpenCode) and configures hooks, agents, and commands. Preserves existing config, creates backups.
3
3
  ---
4
4
 
5
5
  # /ciel-init — Wire Ciel into Current Project
6
6
 
7
- **Purpose:** Fix the #1 Ciel failure mode — hooks not firing because config is missing, has wrong paths, or platform not detected.
7
+ **Purpose:** Fix the #1 failure mode — hooks not firing because config is missing or has wrong paths.
8
8
 
9
- **Usage:** `/ciel-init [--check] [--user] [--platform=NAME]`
9
+ **Usage:** `/ciel-init [--check] [--user] [--platform=claude|opencode]`
10
10
 
11
11
  - `--check` — Dry-run: show what would change without writing
12
12
  - `--user` — Install to user scope (~/.claude/settings.json) instead of project
13
- - `--platform=NAME` — Force platform (claude, opencode, cursor, windsurf, codex, kilocode, ollama, lmstudio)
14
-
15
- ---
13
+ - `--platform=NAME` — Force platform (default: auto-detect)
16
14
 
17
15
  ## Instructions
18
16
 
19
- You are repairing Ciel wiring. This is deterministic — NO agent dispatch, NO research, NO pipeline.
17
+ This is deterministic — NO agent dispatch, NO research, NO pipeline.
20
18
 
21
19
  ### Step 1: Detect Platform
22
20
 
@@ -25,144 +23,56 @@ Run detection in order (pick FIRST match):
25
23
  1. **Project files:**
26
24
  - `./opencode.json` or `./.opencode/` → **opencode**
27
25
  - `./.claude/settings.json` or `./.claude/` → **claude**
28
- - `./.cursor/` → **cursor**
29
- - `./.windsurf/` → **windsurf**
30
- - `./.codex/` → **codex**
31
- - `./.kilocode/` or `./.kilo/` → **kilocode**
32
26
 
33
27
  2. **CLI availability:**
34
28
  - `command -v claude` → **claude**
35
29
  - `command -v opencode` → **opencode**
36
- - `command -v ollama` → **ollama**
37
30
 
38
31
  3. **If ambiguous:** Ask user to specify with `--platform=NAME`
39
32
 
40
- ### Step 2: Find Ciel Directory
33
+ ### Step 2: Find Ciel Source
41
34
 
42
35
  Check in order:
43
- 1. `$CLAUDE_PLUGIN_DIR/ciel` (if env var set)
44
- 2. `$HOME/.claude/plugins/ciel`
45
- 3. `$HOME/.ciel`
46
- 4. `find "$HOME" -maxdepth 5 -path '*/ciel/hooks/session-start.sh' 2>/dev/null | head -1`
47
-
48
- If not found → Tell user to run install first:
49
- ```bash
50
- bash <(curl -fsSL https://raw.githubusercontent.com/KaosKyun/Ciel/main/scripts/install.sh)
51
- ```
52
-
53
- ### Step 3: Verify Hooks Exist
54
-
55
- Check for 8 required hooks in `$CIEL_DIR/hooks/`:
56
- ```
57
- session-start.sh, user-prompt-submit.sh, pre-tool-write.sh, post-tool-write.sh,
58
- stop.sh, subagent-stop.sh, pre-compact.sh, pre-agent-gate.sh
59
- ```
60
-
61
- If missing → Copy from nearest Ciel source or tell user to reinstall.
62
-
63
- ### Step 4: Configure Platform
64
-
65
- #### Claude Code Branch
66
-
67
- **Config file:** `./.claude/settings.json` (project) or `$HOME/.claude/settings.json` (user)
68
-
69
- **Before writing:**
70
- 1. Check CWD sanity — warn if running Claude from different directory
71
- 2. Backup existing config: `cp file.json file.json.bak-TIMESTAMP`
72
-
73
- **Write config:**
74
- ```json
75
- {
76
- "hooks": {
77
- "SessionStart": { "command": "$CIEL_DIR/hooks/session-start.sh", "stdin": true },
78
- "UserPromptSubmit": { "command": "$CIEL_DIR/hooks/user-prompt-submit.sh", "stdin": true },
79
- "PreToolUse": { "command": "$CIEL_DIR/hooks/pre-tool-write.sh", "stdin": true, "matcher": "Write|Edit" },
80
- "PostToolUse": { "command": "$CIEL_DIR/hooks/post-tool-write.sh", "stdin": true, "matcher": "Write|Edit" },
81
- "PreCompact": { "command": "$CIEL_DIR/hooks/pre-compact.sh", "stdin": true },
82
- "Stop": { "command": "$CIEL_DIR/hooks/stop.sh", "stdin": true }
83
- }
84
- }
85
- ```
86
-
87
- #### OpenCode Branch
88
-
89
- **Config file:** `./opencode.json`
90
-
91
- **Before writing:**
92
- 1. Backup: `cp opencode.json opencode.json.bak-TIMESTAMP`
93
- 2. Merge existing config (preserve model, provider, mcp, keybinds)
94
-
95
- **Ensure:**
36
+ 1. `$CLAUDE_PROJECT_DIR/.claude/hooks/` project-scoped install (v7 default)
37
+ 2. `$HOME/.ciel/` — user-level sentinel
38
+ 3. If not found → tell user to install:
39
+ ```bash
40
+ bash <(curl -fsSL https://raw.githubusercontent.com/KaosKyun/Ciel/main/scripts/install.sh)
41
+ ```
42
+
43
+ ### Step 3: Configure Platform
44
+
45
+ **Claude Code** — Backup then write `.claude/settings.json` with hooks registered:
46
+ - SessionStart, UserPromptSubmit, PreToolUse (Edit|Write + Bash rm + Agent), PostToolUse (Edit|Write), SubagentStart (ciel-*), Stop, SubagentStop, PreCompact
47
+ - Copy agents from source to `.claude/agents/`
48
+ - Copy commands from source to `.claude/commands/`
49
+ - Copy skills from source to `.claude/skills/`
50
+ - Ensure `CLAUDE.md` references Ciel pipeline
51
+
52
+ **OpenCode** — Backup then ensure `opencode.json`:
96
53
  - `plugin` array contains `"./.opencode/plugins/ciel.ts"`
97
54
  - `instructions` array contains `"AGENTS.md"`
55
+ - Copy plugin, agents, commands to `.opencode/`
98
56
 
99
- **Copy files:**
100
- - `.opencode/plugins/ciel.ts`
101
- - `.opencode/agents/ciel-*.md` (6 files)
102
- - `.opencode/commands/ciel-*.md` (9 files)
103
-
104
- #### Other Platforms Branch
57
+ ### Step 4: Verify
105
58
 
106
- Install platform-specific artifacts:
107
- - **Cursor:** `.cursor/rules/ciel.mdc`
108
- - **Windsurf:** `.windsurf/rules/*.md`
109
- - **Codex:** `AGENTS.md`, `.codex/hooks.json`
110
- - **Kilocode:** `.kilocode/rules/ciel.md`, `.kilo/agents/*`
111
- - **Ollama:** `Modelfile` (user runs `ollama create`)
112
- - **LM Studio:** `ciel.preset.json`, `system-prompt.md`
59
+ 1. Config file exists at expected path
60
+ 2. Hooks are executable: `chmod +x .claude/hooks/*.sh`
61
+ 3. Agent definitions present (4 files)
62
+ 4. Report summary: platform, config path, hooks count, next steps
113
63
 
114
- ### Step 5: Verification
64
+ ## What's preserved
115
65
 
116
- After configuration, verify:
117
-
118
- 1. **Config file exists** at expected path
119
- 2. **Hooks are executable:** `chmod +x "$CIEL_DIR/hooks/"*.sh`
120
- 3. **Plugin file syntax valid** (for OpenCode: `npx tsc --noEmit`)
121
-
122
- ### Step 6: Report
123
-
124
- Output summary:
125
-
126
- ```
127
- ✓ /ciel-init completed
128
-
129
- Platform: Claude Code
130
- Config: /path/to/settings.json
131
- CIEL_DIR: /path/to/ciel
132
- Hooks: 8/8 present
133
-
134
- Next steps:
135
- 1. Restart Claude Code
136
- 2. Run a test prompt — should see depth hint
137
- 3. Make code changes — should see RELIRE reminder
138
- ```
139
-
140
- ---
66
+ - `ciel-overlay.md` — project-specific rules
67
+ - `.ciel/` — state directory (map.json, memory.json, parking.md)
68
+ - Existing `settings.json` merged non-destructively
69
+ - Existing `opencode.json` merged non-destructively
141
70
 
142
71
  ## Error Handling
143
72
 
144
73
  | Error | Action |
145
74
  |-------|--------|
146
- | Ciel directory not found | Tell user to run install script |
147
- | Hooks missing | Try to copy from source, else reinstall |
75
+ | Ciel source not found | Tell user to run install script |
148
76
  | Config write fails | Show manual instructions |
149
77
  | Platform ambiguous | Ask user to specify with --platform |
150
- | Permission denied | Suggest running with sudo or check file permissions |
151
-
152
- ---
153
-
154
- ## Examples
155
-
156
- ```bash
157
- # Auto-detect and install to project
158
- /ciel-init
159
-
160
- # Force Claude Code, user scope
161
- /ciel-init --platform=claude --user
162
-
163
- # Check what would change (dry-run)
164
- /ciel-init --check
165
-
166
- # Force OpenCode
167
- /ciel-init --platform=opencode
168
- ```
78
+ | Permission denied | Check file permissions |
@@ -1,40 +1,43 @@
1
1
  ---
2
- description: Displays the current Ciel environment status — active version, loaded skills, registered hooks, last session state, and configuration health. A diagnostic entry point for "is Ciel working?" questions.
2
+ description: Displays current Ciel environment status — version, platform, hooks, skills, agents, commands, memory health. Diagnostic entry point for "is Ciel working?" questions.
3
3
  ---
4
4
 
5
5
  # /ciel-status — Ciel Environment Health Check
6
6
 
7
- *Displays the current Ciel environment status: version, skills, hooks, and config.*
7
+ Displays the current Ciel environment status: version, platform, hooks, skills, agents, and config health.
8
8
 
9
9
  Usage: `/ciel-status [--check]`
10
10
 
11
- - `--check`run diagnostics (verify hooks fire, skills load, config is valid)
11
+ - No flag summary view
12
+ - `--check` — run full diagnostics (verify hooks fire, skills load, config valid)
12
13
 
13
- ## Output
14
+ ## Summary output
14
15
 
15
16
  ```
16
17
  ## CIEL STATUS
17
18
 
18
- Version: v6.11.3
19
+ Version: v4.0.1
19
20
  Platform: Claude Code
20
- Config: .claude/settings.json — OK (4 hooks registered)
21
- Skills directory: skills/ — 43 skills loaded
22
- Commands: 7 commands available
23
- Last session: 2026-05-06T11:20:00Z Skills library reorg
21
+ Config: .claude/settings.json — OK
22
+ Hooks: 12 registered
23
+ Skills: 48 domain skills in .claude/skills/
24
+ Agents: 4 sub-agents (researcher, explorer, critic, improver)
25
+ Commands: 7 available
26
+ Memory: .ciel/memory/ — N episodes
24
27
  ```
25
28
 
26
29
  ## Diagnostics (--check)
27
30
 
28
- - [ ] CLAUDE.md readable and includes Ciel pipeline
29
- - [ ] .claude/settings.json valid JSON, hooks registered
30
- - [ ] .ciel/map.json parseable and up-to-date
31
- - [ ] .ciel/memory.json parseable
32
- - [ ] Shell hooks executable (check-test-first, block-destructive, track-file, meta-critiquer)
33
- - [ ] Skills directory non-empty and accessible
34
- - [ ] Agent definitions present (.claude/agents/ or .opencode/agents/)
31
+ - CLAUDE.md readable and includes Ciel pipeline
32
+ - .claude/settings.json valid JSON, all hooks registered
33
+ - .ciel/map.json parseable
34
+ - .ciel/memory/index.json present
35
+ - Shell hooks executable and firing
36
+ - Skills directory non-empty
37
+ - Agent definitions present (4 files)
35
38
 
36
- ## When triggered
39
+ ## When to use
37
40
 
38
- - User asks "is Ciel working?" or "check Ciel health"
39
- - After ciel-init to verify installation
41
+ - After `/ciel-init` to verify installation
42
+ - When "is Ciel working?" is asked
40
43
  - Debugging hook failures or missing depth classification
@@ -1,62 +1,43 @@
1
1
  ---
2
- description: Check GitHub for newer Ciel release and re-install. Runs `scripts/install.sh --check-update` then `--update`.
2
+ description: Check GitHub for newer Ciel release and re-install. Preserves project config — ciel-overlay.md, .ciel/, settings.json.
3
3
  ---
4
4
 
5
5
  # /ciel-update — Update Ciel to the latest version
6
6
 
7
7
  Checks GitHub for a newer release and re-installs if available.
8
8
 
9
- ## Steps
10
-
11
- 1. **Check version**: `bash scripts/install.sh --check-update`
12
- - Fetches `VERSION` from GitHub, compares with local
13
- - Prints "up to date" or "update available"
14
-
15
- 2. **Apply update**: `bash scripts/install.sh --update -y`
16
- - Re-installs all Ciel files (plugins, agents, commands, hooks)
17
- - Preserves: `ciel-overlay.md`, `.ciel/`, existing configs
18
- - Non-destructive merge on `opencode.json`
9
+ Usage: `/ciel-update [--check]`
19
10
 
20
- 3. **npm update**: `npm update -g @neikyun/ciel`
21
- - Updates the Ciel CLI tool from npm
22
- - Skip if npm is not available or the package isn't installed globally
11
+ - No flag full update (check + apply)
12
+ - `--check` only check remote version, report, don't install
23
13
 
24
- ## Flags
25
-
26
- | Flag | Purpose |
27
- |------|---------|
28
- | `--check-update` | Check remote version, don't install |
29
- | `--update` / `-u` | Force reinstall all files |
30
- | `-y` | Skip confirmation (non-interactive) |
31
- | `-q` | Quiet mode (summary only) |
32
-
33
- ## One-liner
14
+ ## Steps
34
15
 
35
- ```bash
36
- bash <(curl -fsSL https://raw.githubusercontent.com/KaosKyun/Ciel/main/scripts/install.sh) --check-update
37
- bash <(curl -fsSL https://raw.githubusercontent.com/KaosKyun/Ciel/main/scripts/install.sh) --update -y
38
- ```
16
+ 1. **Check version**: fetch `VERSION` from GitHub, compare with `.ciel/version` or `VERSION`
17
+ 2. **Apply update**: re-install all Ciel files (hooks, agents, commands, skills, plugin)
18
+ 3. **Verify**: confirm hooks executable, agents present, config valid
39
19
 
40
20
  ## What's preserved
41
21
 
42
22
  - `ciel-overlay.md` — project-specific rules
43
- - `.ciel/map.json`, `.ciel/memory.json`, `.ciel/parking.md`
44
- - `opencode.json` — existing config merged non-destructively
45
- - `.claude/settings.json` — hook paths preserved
23
+ - `.ciel/` — state directory (map.json, memory/, parking.md)
24
+ - `.claude/settings.json` — merged non-destructively
25
+ - `.opencode/opencode.json` — merged non-destructively
46
26
 
47
27
  ## What's replaced
48
28
 
49
- - `.opencode/plugins/ciel.ts` — fresh plugin
50
- - `.opencode/agents/ciel-*.md` — agent definitions
51
- - `.opencode/commands/ciel-*.md` — command files
52
- - `.claude/agents/ciel-*.md` — Claude Code agents
53
29
  - `.claude/hooks/*.sh` — shell hooks
54
- - `CLAUDE.md` — root instruction
30
+ - `.claude/agents/ciel-*.md` — agent definitions
31
+ - `.claude/commands/ciel-*.md` — command files
32
+ - `.claude/skills/` — domain skills
33
+ - `.opencode/plugins/ciel.ts` — plugin
34
+ - `.opencode/agents/ciel-*.md` — OpenCode agents
35
+ - `.opencode/commands/ciel*.md` — OpenCode commands
55
36
 
56
37
  ## Troubleshooting
57
38
 
58
39
  | Symptom | Fix |
59
40
  |---------|-----|
60
- | `Could not fetch remote version` | Check internet or proxy: `https_proxy=... bash install.sh --check-update` |
61
- | Plugin not loaded after update | Restart OpenCode (plugin loaded at session start) |
62
- | `jq not found` warning | Install jq for automatic opencode.json patching |
41
+ | Could not fetch remote version | Check internet or proxy: `https_proxy=...` |
42
+ | Plugin not loaded after update | Restart editor (plugin loaded at session start) |
43
+ | Hook permissions after update | `chmod +x .claude/hooks/*.sh` |