ccs-align

Run hourly breathing cycles for the CCS Align worker Watch seat, pulling needle observations and managing exclude marks.

115k|10.0k|Updated Aug 31, 2025
Ready to run
npx skills add https://github.com/thedotmack/claude-mem --skill ccs-align-thedotmack
πŸ’¬ Prompt for ChatGPT / Claude Chatβ–Ό
Please help me install this Agent Skill.
Skill: ccs-align
Source: https://github.com/thedotmack/claude-mem/tree/main/plugin/skills/ccs-align
Command: npx skills add https://github.com/thedotmack/claude-mem --skill ccs-align-thedotmack

SYSTEM DOCUMENTATION & REQUIREMENTS

πŸ’‘ This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? CCS Align solves the problem of keeping a local claude-mem worker's cached observations fresh, deduplicated, and aligned with house rulesβ€”without restarting the worker or fabricating context. It maintains a seat-owned middle cache that reflects the authoritative diary but excludes marked observations and detects rule conflicts across house, project, and seat layers. ## Core Features & Use Cases - Hourly breathing cycle: Health check β†’ search β†’ timeline β†’ get_observations β†’ atomic append to middle.jsonl with deduplication. - Exclude marks (Phase 1): Mark observations as purged from the compiled cache while preserving diary history; unmark and rebuild to restore. - Rules alignment (Phase 2): Walk house β†’ project β†’ seat layers, detect conflicts (SHADOW_HOUSE, DENY_ALLOW, DRIFT, CLOCK_HEADER), emit append-only rules-report.md. - Use Case: A Worker Watch seat runs every hour on a house box. It talks to the local claude-mem worker, pulls decision/bugfix/security_alert observations, lands them in a viewer-specific middle.jsonl (deduplicated), filters out any marked ids, and every 6th hour walks the rules cascade to catch duplicates or contradictions between layers. ## Quick Start Run the ccs-align skill to execute one complete breathing cycle: resolve the worker port, check health, search for needle observations since the last run, pull them through timeline and get_observations, append new ones to the middle cache with exclude marks filtered out, and update the cursor for the next hour.

Frequently Asked Questions about ccs-align

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run the CCS Align breathing cycle hourly?β–Ό

Resolve WORKER_PORT using the snippet in SKILL.md, then run health check β†’ search β†’ timeline β†’ get_observations β†’ append to middle.jsonl β†’ update cursor.json every hour via cron or a house board scheduler. Every 6th hour, append a rules walk to rules-report.md.

What does exclude-marks.json do, and how do I use it?β–Ό

Exclude marks filter observations from the compiled middle.jsonl without deleting diary history. Add a mark with observationId and optional toolUseIds; the atomic cache rebuild skips marked ids. Remove the mark and rebuild to restore the observation on the next cycle.

Can I patch duplicate house rules from leaf files automatically?β–Ό

Only when CLAUDE_MEM_CCS_ALIGN_PATCH_SHADOWS=true: the rules walker detects SHADOW_HOUSE duplicates, reports them, and optionally removes duplicate lines from leaf files atomically. Patching never touches standing/always/never/profile.md or house files.

Why is the worker health check performed before every cycle?β–Ό

Health check proves the local worker is responsive before attempting to pull observations. If the worker is down, the cycle records a MISS and stops; it does not fabricate a cache or restart the worker.

What is the difference between exclude marks and DELETE /api/observation?β–Ό

Exclude marks filter the compiled middle.jsonl only; the diary and SQLite remain authoritative and fully rebuildable. DELETE /api/observation is forbidden because it tombstones the diary and breaks rebuild-from-history.

How does viewer isolation prevent context leakage?β–Ό

Each viewer has its own middle.jsonl and exclude-marks.json under ~/.claude-mem/ccs-align/<viewerId>/. Observations pulled for viewer A never appear in viewer B's compiled file, and marks on A do not affect B.