LogSentinel AI Kit — CLAUDE.md Router & Protected-Zone Rulebooks for Claude Code
Claude Code is only as disciplined as the instructions you give it. The moment aproject has more than one "danger zone" — a hot path that can't block, an externalAPI call that must never leak data, a UI that can't afford extra renders — plainprose in a CLAUDE.md stops working. Claude reads it once, forgets the nuance, andquietly reintroduces the bug three sessions later.This kit is a complete, working example of the fix: a ROUTER file plus per-zoneRULEBOOKS that Claude is instructed to re-read before touching sensitive code —every session, no exceptions.WHAT'S INSIDE • CLAUDE.md — the router. Product overview, monorepo map, non-negotiables, build/run/test commands, and a "HALT AND READ" routing table that tells Claude exactly which rulebook to load before editing a given path. • .claude/rules/log-ingestion.md — enforces a non-blocking, backpressure-safe ingestion pipeline: bounded queues, dedicated executors, JDBC batch writes, partition-aware queries, and a ban list (unbounded queues, saveAll() on hot paths, per-record logging). • .claude/rules/ai-analysis.md — a full playbook for wiring an LLM into a product safely: fixed pipeline order, Resilience4j (rate limiter + bulkhead + circuit breaker + time limiter) on the one approved call site, a PII/secret sanitizer catalog with 11 pattern types, prompt-injection defenses, and a strict JSON output contract with schema validation + repair-then-fail states. • .claude/rules/dashboard-ui.md — real-time React/TypeScript rules for surviving 10,000+ live rows and hundreds of events/sec: virtualized lists, a single WebSocket manager with jittered backoff + heartbeat + gap replay, a 250ms batched-flush render budget, and fixed chart theming/downsampling. • .claude/skills/add-alert-channel/ — a custom Claude Code skill scaffold showing how to turn a recurring feature request into a repeatable, guided workflow.WHO THIS IS FOR Developers running Claude Code on any project with real constraints — privacy boundaries, throughput limits, render budgets, schema discipline — who are tired of re-explaining the same rules every session or discovering a regression after the fact. Use it as-is for a log-monitoring project, or as a template: swap the domain, keep the pattern.WHAT YOU'RE NOT BUYING This is the planning/rules layer, not a finished, running application — there's no server or web source code bundled. It's the scaffold that makes Claude Code behave like a disciplined engineer on your codebase, not someone else's app.FORMAT Plain Markdown files (.md), zipped, ready to drop into any repo's root and .claude/ directory. No build step, no dependencies.
Get it → thanhkreator7.gumroad.com