worclaude 2.1.0 → 2.2.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/package.json +1 -1
- package/templates/agents/universal/verify-app.md +3 -0
- package/templates/core/memory-md.md +9 -0
- package/templates/skills/universal/claude-md-maintenance.md +22 -0
- package/templates/skills/universal/context-management.md +23 -0
- package/templates/skills/universal/coordinator-mode.md +19 -0
package/package.json
CHANGED
|
@@ -112,6 +112,9 @@ You will feel the urge to skip checks. These are the excuses — recognize them:
|
|
|
112
112
|
- **Config/Infrastructure**: validate syntax → dry-run where possible → check env vars
|
|
113
113
|
- **Bug fixes**: reproduce original bug → verify fix → run regression tests
|
|
114
114
|
- **Refactoring**: existing test suite must pass unchanged → diff public API surface
|
|
115
|
+
- **Mobile (iOS/Android)**: clean build → install on simulator/emulator → dump accessibility/UI tree, tap by coords, re-dump to verify → check crash logs (logcat / device console)
|
|
116
|
+
- **Database migrations**: run migration up → verify schema matches intent → run migration down (reversibility) → test against existing data, not just empty DB
|
|
117
|
+
- **Data/ML pipeline**: run with sample input → verify output shape/schema/types → test empty input and NaN/null handling → check row counts in vs out for silent data loss
|
|
115
118
|
|
|
116
119
|
## Before Issuing PASS
|
|
117
120
|
|
|
@@ -59,3 +59,12 @@ Rule or fact.
|
|
|
59
59
|
- Debugging solutions — the fix is in the code, the context is in the commit message
|
|
60
60
|
- Anything already in CLAUDE.md
|
|
61
61
|
- Ephemeral task details — current conversation context, in-progress work
|
|
62
|
+
|
|
63
|
+
These exclusions apply even when explicitly asked to save. If asked to save a PR list or activity summary, ask what was *surprising* or *non-obvious* about it — that is the part worth keeping.
|
|
64
|
+
|
|
65
|
+
## Memory vs Plans vs Tasks
|
|
66
|
+
|
|
67
|
+
Memory is for information useful across conversations. Don't use it for:
|
|
68
|
+
- **Plans** — use a plan file or plan mode for implementation strategies within a session
|
|
69
|
+
- **Tasks** — use the task system for tracking work steps within a session
|
|
70
|
+
- **Session state** — current conversation context belongs in the conversation, not memory
|
|
@@ -100,6 +100,28 @@ The /update-claude-md command helps at session end:
|
|
|
100
100
|
Always review proposed changes before applying. Not every mistake needs a rule.
|
|
101
101
|
Only add rules for recurring problems.
|
|
102
102
|
|
|
103
|
+
## The @include Directive
|
|
104
|
+
|
|
105
|
+
When CLAUDE.md grows beyond the 50-line target, use `@include` to split content
|
|
106
|
+
into separate files while keeping it loadable:
|
|
107
|
+
|
|
108
|
+
```markdown
|
|
109
|
+
# CLAUDE.md
|
|
110
|
+
## Key Files
|
|
111
|
+
@./docs/conventions.md
|
|
112
|
+
@./docs/api-standards.md
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
- `@./relative` — relative to the file containing the directive
|
|
116
|
+
- `@~/path` — relative to home directory
|
|
117
|
+
- `@/absolute` — absolute path
|
|
118
|
+
- Works in CLAUDE.md, .claude/CLAUDE.md, .claude/rules/*.md, and CLAUDE.local.md
|
|
119
|
+
- Does NOT work inside code blocks (only in leaf text nodes)
|
|
120
|
+
- Non-existent files are silently ignored; circular references are prevented
|
|
121
|
+
|
|
122
|
+
This is the recommended alternative to cramming everything into CLAUDE.md.
|
|
123
|
+
Each included file still consumes context budget, so use judiciously.
|
|
124
|
+
|
|
103
125
|
## Gotchas
|
|
104
126
|
|
|
105
127
|
- CLAUDE.md is read as system context, not as a document. Write it as instructions,
|
|
@@ -118,6 +118,29 @@ WORCLAUDE_HOOK_PROFILE=strict claude
|
|
|
118
118
|
The default is `standard` if the variable is not set. You don't need to do
|
|
119
119
|
anything for normal development — the default just works.
|
|
120
120
|
|
|
121
|
+
## Token Budgets (Reference)
|
|
122
|
+
|
|
123
|
+
Approximate values from Claude Code v2.1.88 source (March 2026). These may change between releases.
|
|
124
|
+
|
|
125
|
+
| Resource | Budget |
|
|
126
|
+
|---|---|
|
|
127
|
+
| Context window (default) | 200,000 tokens |
|
|
128
|
+
| Context window (Opus 4.6 / Sonnet 4.6 with 1M) | 1,000,000 tokens |
|
|
129
|
+
| Max output tokens (Sonnet 4.6) | 32,000 default, 128,000 upper limit |
|
|
130
|
+
| Max output tokens (Opus 4.6) | 64,000 default, 128,000 upper limit |
|
|
131
|
+
| Tool presence overhead | ~500 tokens (added when any tools are enabled) |
|
|
132
|
+
| Post-compact file restore | 5 files max, 50,000 token budget, 5,000 per file |
|
|
133
|
+
| Post-compact skills restore | 25,000 token budget, 5,000 per skill |
|
|
134
|
+
| Compact summary output | 20,000 tokens max |
|
|
135
|
+
| CLAUDE.md total budget | ~40,000 characters across all loaded instruction files |
|
|
136
|
+
| MEMORY.md | 200 lines / 25,000 bytes |
|
|
137
|
+
|
|
138
|
+
Practical takeaways:
|
|
139
|
+
- After compaction, only 5 files are restored at 5k tokens each. Structure your work
|
|
140
|
+
so the most important files are recently read.
|
|
141
|
+
- Skills over 5k tokens get truncated after compaction. Keep skills focused.
|
|
142
|
+
- The 70% rule still applies — these numbers help you estimate when you'll hit it.
|
|
143
|
+
|
|
121
144
|
## Gotchas
|
|
122
145
|
|
|
123
146
|
- Compacting doesn't free as much context as you think. If you've read 20 large files,
|
|
@@ -21,6 +21,25 @@ Don't use coordinator patterns when:
|
|
|
21
21
|
- Steps are strictly sequential with no parallelism
|
|
22
22
|
- The overhead of coordination exceeds the work itself
|
|
23
23
|
|
|
24
|
+
## Phase-Based Workflow
|
|
25
|
+
|
|
26
|
+
Most coordinated tasks follow four phases:
|
|
27
|
+
|
|
28
|
+
| Phase | Who | Purpose |
|
|
29
|
+
|-------|-----|---------|
|
|
30
|
+
| Research | Workers (parallel) | Investigate codebase, find files, understand problem |
|
|
31
|
+
| Synthesis | **You** (coordinator) | Read findings, understand the problem, craft implementation specs |
|
|
32
|
+
| Implementation | Workers | Make targeted changes per spec, commit |
|
|
33
|
+
| Verification | Workers | Test changes work, try to break them |
|
|
34
|
+
|
|
35
|
+
The synthesis phase is the coordinator's most important job. When workers report
|
|
36
|
+
research findings, **you must understand them before directing follow-up work**.
|
|
37
|
+
Read the findings. Identify the approach. Then write a prompt that proves you
|
|
38
|
+
understood by including specific file paths, line numbers, and exactly what to change.
|
|
39
|
+
|
|
40
|
+
Never write "based on your findings" or "based on the research." These phrases
|
|
41
|
+
delegate understanding to the worker instead of doing it yourself.
|
|
42
|
+
|
|
24
43
|
## Worker Prompt Best Practices
|
|
25
44
|
|
|
26
45
|
Workers cannot see your conversation. Every prompt must be self-contained:
|