You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Status: Research complete
Date: 2026-04-17
Goal: Adopt Taylor Pearson's nested CLAUDE.md pattern (18K views, Apr 16 2026) + steal from claudesidian (2.2k ★) and claudesidian-workbench (/wrap cascade) to formalize ZAO's context hierarchy across repos, research, and personal vault.
Key Decisions / Recommendations
Decision
Recommendation
Formalize nesting
ADOPT nested CLAUDE.md at 5 tiers — global (~/.claude/CLAUDE.md) → vault (personal Obsidian) → business (ZAO OS root) → project (ZAO OS packages/subprojects) → folder (research topic folder). Claude Code auto-walks the tree and pulls all parents into context.
Size discipline
KEEP every CLAUDE.md ≤ 150 lines — Taylor's tested cap. Confirmed by @DnuLkjkjh: "200 lines of vague rules is worse than 20 lines next to the code." Tight + local beats big + vague.
Max depth
CAP at 4 nested layers — Taylor hasn't seen degradation up to 4, context stops paying rent beyond.
Build /wrap skill
FORK /wrap from claudesidian-workbench — end-of-session cascade that updates the nearest CLAUDE.md + appends to workbench.md. Build as ZAO skill at ~/.claude/skills/wrap/.
Research folder CLAUDE.md
ADD a tiny research/CLAUDE.md describing: research numbering rule (next = 425), file name convention, banned phrases, folder map. Walks into context for any /zao-research invocation.
Per-topic CLAUDE.md
ADD research/<topic>/CLAUDE.md for the 5 hottest topics: agents/, wavewarz/, music/, events/, dev-workflows/. Tight scope, pointer to canonical docs.
Packages CLAUDE.md
KEEP existing 4 packages/*/CLAUDE.md — packages/{agents,config,db,publish}/CLAUDE.md already tight. Verify each is ≤ 150 lines.
DO NOT adopt the full claudesidian vault — ZAO already has research/ library + Notion. Don't fragment.
STEAL from claudesidian
TAKE 1) nested CLAUDE.md pattern, 2) /wrap cascade skill, 3) PARA structure idea for personal notes (not ZAO OS), 4) intelligent /upgrade merge pattern for skill updates.
Stable/volatile split
ADOPT "stable-above, volatile-below-divider" pattern from claudesidian-workbench — every CLAUDE.md has a stable top half (conventions, rules) + volatile bottom half (current sprint, open threads).
Workbench file
CREATE research/_workbench.md — session history + next-steps at top. Not CLAUDE.md — complementary scratchpad.
AutoCommit
ADOPT git-hook autocommit ONLY for research/ and _workbench.md — not for src/ (stay intentional). Installs via .git/hooks/post-commit.
The Pattern (from Taylor Pearson, @TaylorPearsonMe)
"Write a CLAUDE.md at every level of your file structure. Claude Code walks up the tree and pulls all of them into context automatically."
Example (Taylor's marketing stack)
~/CLAUDE.md ← global: how you like Claude to work
~/vault/CLAUDE.md ← vault: how files are organized
~/vault/business/CLAUDE.md ← business: clients, pricing, ops
~/vault/business/marketing/CLAUDE.md ← marketing: channels, brand voice
~/vault/business/marketing/project-x/CLAUDE.md ← project-specific
Open anything in project-x/ → Claude pulls all 5 into context. "Talking to someone who knows you, your business, your marketing history."
Rules from the thread
Rule
Source
≤ 150 lines per file
Taylor Pearson
4 layers max before degradation
Taylor Pearson
20 tight lines > 200 vague lines
@DnuLkjkjh
Scope to commands + tests for that subtree
@DnuLkjkjh
Keep current — run /wrap at session end
Taylor Pearson
Personal context never gets absorbed by base models — always a win
Total new CLAUDE.md to create: ~14. All ≤ 150 lines.
The /wrap Skill — ZAO Build Spec
Inspired by claudesidian-workbench. Build at ~/.claude/skills/wrap/SKILL.md.
Purpose: end-of-session cascade that captures learnings into the right CLAUDE.md + workbench.md.
Trigger: user types /wrap
Steps:
1. Detect working tree: git log --stat for this session.
2. Ask: "What changed this session? What decisions were made? What's open?"
3. Identify closest CLAUDE.md(s) up the tree. For each changed file, walk to nearest CLAUDE.md.
4. Propose atomic edits to that CLAUDE.md (append to volatile section below divider).
5. Append "Next Steps" block to the nearest workbench.md (or research/_workbench.md at research scope).
6. If cross-cutting decision: propose edit to higher-tier CLAUDE.md (business or global).
7. Never silently overwrite — every edit confirmed.
8. git add + commit each CLAUDE.md change in its own commit.
ZAO Ecosystem Integration
ZAO OS files
CLAUDE.md (root) — audit for 150-line cap; move long sections to research/