oh-my-customcode 0.86.0 → 0.87.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.
- package/dist/cli/index.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +2 -2
- package/templates/.claude/hooks/hooks.json +10 -0
- package/templates/.claude/hooks/skill-count-reminder.sh +34 -0
- package/templates/.claude/rules/MUST-agent-design.md +12 -2
- package/templates/guides/git-worktree-workflow/README.md +4 -0
- package/templates/manifest.json +2 -2
package/dist/cli/index.js
CHANGED
|
@@ -2301,7 +2301,7 @@ var init_package = __esm(() => {
|
|
|
2301
2301
|
workspaces: [
|
|
2302
2302
|
"packages/*"
|
|
2303
2303
|
],
|
|
2304
|
-
version: "0.
|
|
2304
|
+
version: "0.87.0",
|
|
2305
2305
|
description: "Batteries-included agent harness for Claude Code",
|
|
2306
2306
|
type: "module",
|
|
2307
2307
|
bin: {
|
|
@@ -2349,7 +2349,7 @@ var init_package = __esm(() => {
|
|
|
2349
2349
|
yaml: "^2.8.2"
|
|
2350
2350
|
},
|
|
2351
2351
|
devDependencies: {
|
|
2352
|
-
"@anthropic-ai/sdk": "^0.
|
|
2352
|
+
"@anthropic-ai/sdk": "^0.88.0",
|
|
2353
2353
|
"@biomejs/biome": "^2.3.12",
|
|
2354
2354
|
"@types/bun": "^1.3.6",
|
|
2355
2355
|
"@types/js-yaml": "^4.0.9",
|
package/dist/index.js
CHANGED
|
@@ -1974,7 +1974,7 @@ var package_default = {
|
|
|
1974
1974
|
workspaces: [
|
|
1975
1975
|
"packages/*"
|
|
1976
1976
|
],
|
|
1977
|
-
version: "0.
|
|
1977
|
+
version: "0.87.0",
|
|
1978
1978
|
description: "Batteries-included agent harness for Claude Code",
|
|
1979
1979
|
type: "module",
|
|
1980
1980
|
bin: {
|
|
@@ -2022,7 +2022,7 @@ var package_default = {
|
|
|
2022
2022
|
yaml: "^2.8.2"
|
|
2023
2023
|
},
|
|
2024
2024
|
devDependencies: {
|
|
2025
|
-
"@anthropic-ai/sdk": "^0.
|
|
2025
|
+
"@anthropic-ai/sdk": "^0.88.0",
|
|
2026
2026
|
"@biomejs/biome": "^2.3.12",
|
|
2027
2027
|
"@types/bun": "^1.3.6",
|
|
2028
2028
|
"@types/js-yaml": "^4.0.9",
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"workspaces": [
|
|
4
4
|
"packages/*"
|
|
5
5
|
],
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.87.0",
|
|
7
7
|
"description": "Batteries-included agent harness for Claude Code",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"bin": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"yaml": "^2.8.2"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@anthropic-ai/sdk": "^0.
|
|
54
|
+
"@anthropic-ai/sdk": "^0.88.0",
|
|
55
55
|
"@biomejs/biome": "^2.3.12",
|
|
56
56
|
"@types/bun": "^1.3.6",
|
|
57
57
|
"@types/js-yaml": "^4.0.9",
|
|
@@ -453,6 +453,16 @@
|
|
|
453
453
|
}
|
|
454
454
|
],
|
|
455
455
|
"description": "Append-only audit log for state-changing tool operations"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"matcher": "tool == \"Write\" || tool == \"Edit\"",
|
|
459
|
+
"hooks": [
|
|
460
|
+
{
|
|
461
|
+
"type": "command",
|
|
462
|
+
"command": "bash .claude/hooks/skill-count-reminder.sh"
|
|
463
|
+
}
|
|
464
|
+
],
|
|
465
|
+
"description": "Advisory reminder to sync skill counts in 6 locations when a SKILL.md is created/modified (R021)"
|
|
456
466
|
}
|
|
457
467
|
],
|
|
458
468
|
"Stop": [
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# skill-count-reminder.sh — Advisory reminder when skills are created/modified
|
|
3
|
+
# Triggered by PostToolUse on Write/Edit targeting .claude/skills/*/SKILL.md
|
|
4
|
+
# R021: Advisory-only, never blocks (always exit 0)
|
|
5
|
+
|
|
6
|
+
set -euo pipefail
|
|
7
|
+
|
|
8
|
+
# Read tool input from stdin
|
|
9
|
+
INPUT=$(cat)
|
|
10
|
+
|
|
11
|
+
# Extract the file path from the tool input
|
|
12
|
+
FILE_PATH=$(echo "$INPUT" | jq -r '.tool_input.file_path // .tool_input.path // ""' 2>/dev/null)
|
|
13
|
+
|
|
14
|
+
# Only trigger for .claude/skills/ paths with SKILL.md
|
|
15
|
+
if [[ "$FILE_PATH" == *".claude/skills/"*"SKILL.md"* ]]; then
|
|
16
|
+
SKILL_NAME=$(echo "$FILE_PATH" | sed 's|.*\.claude/skills/||' | sed 's|/SKILL.md||')
|
|
17
|
+
ACTUAL_COUNT=$(find .claude/skills -name 'SKILL.md' 2>/dev/null | wc -l | tr -d ' ')
|
|
18
|
+
|
|
19
|
+
cat >&2 << EOF
|
|
20
|
+
─── [Skill Sync Reminder] New/modified skill: ${SKILL_NAME} ───
|
|
21
|
+
Current skill count: ${ACTUAL_COUNT}
|
|
22
|
+
|
|
23
|
+
Update these 6 locations before committing:
|
|
24
|
+
1. CLAUDE.md → 스킬 (${ACTUAL_COUNT} 디렉토리)
|
|
25
|
+
2. README.md line ~16 → ${ACTUAL_COUNT} skills
|
|
26
|
+
3. README.md line ~135 → ### Skills (${ACTUAL_COUNT})
|
|
27
|
+
4. README.md line ~275 → # ${ACTUAL_COUNT} skill modules
|
|
28
|
+
5. templates/CLAUDE.md → 스킬 (${ACTUAL_COUNT} 디렉토리)
|
|
29
|
+
6. templates/.claude/skills/${SKILL_NAME}/SKILL.md → copy file
|
|
30
|
+
───────────────────────────────────────────────────────
|
|
31
|
+
EOF
|
|
32
|
+
fi
|
|
33
|
+
|
|
34
|
+
exit 0
|
|
@@ -64,7 +64,7 @@ disableSkillShellExecution: true # Disable inline shell execution in skills (v2
|
|
|
64
64
|
|
|
65
65
|
> **Note**: When `disableSkillShellExecution` is enabled (v2.1.91+), skills that rely on inline shell execution (e.g., `codex-exec`, `gemini-exec`, `rtk-exec`) will have their shell blocks disabled. This is a security hardening option.
|
|
66
66
|
|
|
67
|
-
> **Note**: `isolation`, `background`, `maxTurns`, `maxTokens`, `mcpServers`, `hooks`, `permissionMode`, `disallowedTools`, `limitations` are supported in Claude Code v2.1.63+. Hook types `PostCompact`, `Elicitation`, `ElicitationResult` require v2.1.76+. `CwdChanged`, `FileChanged` hook events and `managed-settings.d/` drop-in directory require v2.1.83+. Conditional `if` field for hooks requires v2.1.85+. `PermissionDenied` hook event requires v2.1.88+. Monitor tool and subprocess sandboxing (`CLAUDE_CODE_SUBPROCESS_ENV_SCRUB`, `CLAUDE_CODE_SCRIPT_CAPS`) added in v2.1.98+. Settings resilience (unrecognized hook event names no longer cause settings.json to be ignored) improved in v2.1.101+.
|
|
67
|
+
> **Note**: `isolation`, `background`, `maxTurns`, `maxTokens`, `mcpServers`, `hooks`, `permissionMode`, `disallowedTools`, `limitations` are supported in Claude Code v2.1.63+. Hook types `PostCompact`, `Elicitation`, `ElicitationResult` require v2.1.76+. `CwdChanged`, `FileChanged` hook events and `managed-settings.d/` drop-in directory require v2.1.83+. Conditional `if` field for hooks requires v2.1.85+. `PermissionDenied` hook event requires v2.1.88+. Monitor tool and subprocess sandboxing (`CLAUDE_CODE_SUBPROCESS_ENV_SCRUB`, `CLAUDE_CODE_SCRIPT_CAPS`) added in v2.1.98+. Settings resilience (unrecognized hook event names no longer cause settings.json to be ignored) improved in v2.1.101+. PreCompact hook block support (exit 2 / `{"decision":"block"}`) added in v2.1.105+. Skill description listing cap raised from 250 to 1,536 characters in v2.1.105+. Plugin `monitors` manifest key for background monitors added in v2.1.105+.
|
|
68
68
|
|
|
69
69
|
## Hook Event Types
|
|
70
70
|
|
|
@@ -113,6 +113,16 @@ All supported hook event types in Claude Code. Agents and skills can reference t
|
|
|
113
113
|
|
|
114
114
|
The `defer` decision allows headless sessions to pause at a tool call for human review.
|
|
115
115
|
|
|
116
|
+
### PreCompact Hook Return Values
|
|
117
|
+
|
|
118
|
+
| Return | Behavior | CC Version |
|
|
119
|
+
|--------|----------|------------|
|
|
120
|
+
| `exit 0` | Allow compaction | All |
|
|
121
|
+
| `exit 2` + stderr | Block compaction with message | v2.1.105+ |
|
|
122
|
+
| `{"decision": "block"}` | Block compaction (JSON response) | v2.1.105+ |
|
|
123
|
+
|
|
124
|
+
PreCompact hooks can now prevent context compaction, useful for preserving critical context during multi-step workflows.
|
|
125
|
+
|
|
116
126
|
### Hook Matcher Syntax
|
|
117
127
|
|
|
118
128
|
```yaml
|
|
@@ -298,7 +308,7 @@ Default: `core` (when field is omitted)
|
|
|
298
308
|
|
|
299
309
|
### Context Fork Criteria
|
|
300
310
|
|
|
301
|
-
Use `context: fork` for multi-agent orchestration skills only. Cap: **12 total**. Current:
|
|
311
|
+
Use `context: fork` for multi-agent orchestration skills only. Cap: **12 total**. Current: 12/12 (secretary/dev-lead/de-lead/qa-lead-routing, dag-orchestration, task-decomposition, worker-reviewer-pipeline, pipeline-guards, deep-plan, professor-triage, evaluator-optimizer, sauron-watch).
|
|
302
312
|
|
|
303
313
|
<!-- DETAIL: Context Fork decision table
|
|
304
314
|
| Use context:fork | Do NOT use context:fork |
|
|
@@ -75,6 +75,10 @@ EnterWorktree(name: "feature-x")
|
|
|
75
75
|
# Creates .claude/worktrees/feature-x with a new branch based on HEAD
|
|
76
76
|
# Session working directory switches to the worktree
|
|
77
77
|
|
|
78
|
+
EnterWorktree(path: "/absolute/path/to/existing-worktree")
|
|
79
|
+
# Switches into an existing worktree of the current repository (v2.1.105+)
|
|
80
|
+
# No new branch is created — uses the worktree as-is
|
|
81
|
+
|
|
78
82
|
ExitWorktree()
|
|
79
83
|
# Returns to the main repository
|
|
80
84
|
# Prompts to keep or remove the worktree
|
package/templates/manifest.json
CHANGED