oh-my-customcode 0.169.0 → 0.170.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/README.md +2 -2
- package/dist/cli/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/templates/.claude/hooks/hooks.json +1 -1
- package/templates/.claude/rules/MUST-agent-design.md +2 -0
- package/templates/.claude/rules/MUST-enforcement-policy.md +2 -0
- package/templates/manifest.json +1 -1
package/README.md
CHANGED
|
@@ -213,7 +213,7 @@ All commands are invoked inside the Claude Code conversation.
|
|
|
213
213
|
| Priority | Count | Purpose |
|
|
214
214
|
|----------|-------|---------|
|
|
215
215
|
| **MUST** | 14 | Safety, permissions, agent design, identification, orchestration, verification, completion, enforcement |
|
|
216
|
-
| **SHOULD** |
|
|
216
|
+
| **SHOULD** | 8 | Interaction, error handling, memory, HUD, ecomode, ontology routing, wiki sync, verification ladder |
|
|
217
217
|
| **MAY** | 1 | Optimization |
|
|
218
218
|
|
|
219
219
|
Key rules: R010 (orchestrator never writes files), R009 (parallel execution mandatory), R017 (sauron verification before push), R020 (completion verification before declaring done), R021 (advisory-first enforcement model).
|
|
@@ -271,7 +271,7 @@ your-project/
|
|
|
271
271
|
├── .claude/
|
|
272
272
|
│ ├── agents/ # 49 agent definitions
|
|
273
273
|
│ ├── skills/ # 116 skill modules
|
|
274
|
-
│ ├── rules/ #
|
|
274
|
+
│ ├── rules/ # 23 governance rules (R000-R023)
|
|
275
275
|
│ ├── hooks/ # 15 lifecycle hook scripts
|
|
276
276
|
│ ├── schemas/ # Tool input validation schemas
|
|
277
277
|
│ ├── specs/ # Extracted canonical specs
|
package/dist/cli/index.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"command": "bash .claude/hooks/scripts/rtk-intercept.sh"
|
|
91
91
|
}
|
|
92
92
|
],
|
|
93
|
-
"description": "RTK auto-intercept — transparently rewrites CLI commands through RTK proxy when available (
|
|
93
|
+
"description": "RTK auto-intercept — transparently rewrites CLI commands through RTK proxy when available (R013 advisory)"
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
"matcher": "tool == \"Bash\" && tool_input.command matches \"git (reset|clean|checkout|restore|switch|rebase|merge)\"",
|
|
@@ -356,6 +356,8 @@ description: Brief desc # One-line summary
|
|
|
356
356
|
|
|
357
357
|
Key optional fields: `scope`, `context`, `version`, `effort`, `model`, `agent`, `hooks`, `paths`, `shell`, `allowed-tools`, `keep-coding-instructions`. Skill `effort` takes precedence over agent `effort` when both specified. See full optional fields via Read tool.
|
|
358
358
|
|
|
359
|
+
> **v2.1.163+**: In skill `command` bodies, use `\$` to emit a literal `$` before a number (e.g., `\$1`) — previously ambiguous with shell variable expansion. Relevant when authoring skills with `shell:` or inline command steps that include dollar signs not intended as variables.
|
|
360
|
+
|
|
359
361
|
<!-- DETAIL: Skill Optional Fields (full yaml block)
|
|
360
362
|
```yaml
|
|
361
363
|
scope: core # core | harness | package (default: core)
|
|
@@ -17,6 +17,8 @@ oh-my-customcode uses an **advisory-first enforcement model**. Most rules are en
|
|
|
17
17
|
| Advisory (proactive) | UserPromptSubmit hook | R007, R008 (`r007-r008-drift-advisor.sh`, #1229) | Reads last assistant turn; emits stderr advisory before next response if header/prefix absent. Complements retroactive Stop-hook (`session-reflection.sh`, #1190). |
|
|
18
18
|
| Prompt-based | CLAUDE.md + rules/ + PostCompact | All MUST rules | Behavioral guidance in context |
|
|
19
19
|
|
|
20
|
+
> **v2.1.163+**: Stop and SubagentStop hooks can return `hookSpecificOutput.additionalContext` (JSON) to feed structured feedback back into Claude's context without triggering a hook error label. This enables advisory-style enforcement via Stop/SubagentStop hooks (e.g., `session-reflection.sh`, omcustom-loop SubagentStop) to pass richer context — replacing plain stderr text — without disrupting the turn continuation behavior that advisory-first enforcement relies on.
|
|
21
|
+
|
|
20
22
|
## Why Advisory-First
|
|
21
23
|
|
|
22
24
|
1. **Agent flexibility**: Hard blocks can trap agents in unrecoverable states
|
package/templates/manifest.json
CHANGED