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
Context engineering middleware for Claude Code. Builds intelligent, token-efficient context for every user query by indexing the codebase locally and maintaining session state as MD files.
Skills Tree (Start Here)
Agents: Read SKILLS-TREE.md first — it's the master index (~2.5K tokens) with all 23 skills, 6 categories, tags, dependencies, and token estimates. Only drill into skills/<name>/SKILL.md for the specific skill you need.
ops/sessions/** — Session records are immutable once written by session-capture.sh. A completed session is a permanent record. Never edit, overwrite, truncate, or delete session JSON files.
.claude/skills/ccs-*/** — Installed skill plugin files. Never modify in-place. To update, reinstall from source.
hooks/scripts/** and hooks/hooks.json — Hook scripts and manifest. Never modify as part of a build, refactor, or "cleanup" task.
NEVER bulk-refactor these paths:
references/** — System documentation. Individual file edits are allowed. No bulk rename, mass delete, or wholesale replacement. Scoped read/write/modify only — one file at a time.
skills/** — Skill definitions. Targeted single-skill edits only. Never refactor all skills at once.
agents/** — Agent definitions. Same rule as skills.
When you see these paths, stop and scope your action:
If asked to "refactor the skill plugin" or "clean up references" — refuse. Ask for a specific scoped change instead.
If asked to delete sessions — refuse unconditionally.
If a task would touch references/ as a side-effect — only modify the specific file relevant to the task.
These rules are enforced by hooks/scripts/path-guard.sh (PreToolUse hook) which will block violations at runtime. The CLAUDE.md rules apply in addition to the runtime guard.
Principles
Never explore unnecessarily — index first, read only what matters
Local tools first — Glob + Grep + Read before any API calls
Everything persists locally — MD files maintain context across the session
Token guardrails — smaller models for scanning, larger for thinking
Commit-style tracking — every change logged like a git commit locally
Session rhythm — Orient → Work → Persist cycle prevents context loss
Processing pipeline — Capture → Process → Connect → Verify for knowledge work
Graph compounds quality — well-connected notes are worth more than many orphaned ones
Complexity at pain points — activate features only when friction proves they're needed
Hooks System (hooks/)
Automated lifecycle hooks for session management:
Hook
Trigger
What It Does
path-guard.sh
PreToolUse (Write/Edit/MultiEdit/Bash)
Blocks writes to immutable paths (ops/sessions/, installed skills, hook scripts). Warns on guarded paths (references/, skills/, agents/).