Checks code changes against project conventions. Invoked after code changes.
When assembling all generated context documents into a CLAUDE.md update proposal
Detects stale specs, proposes updates, discovers new patterns, and prunes dead context documents.
When analyzing a codebase for repeated patterns to generate convention documents
When generating initial drafts of decisions, issues, and project.md from git history, code comments, and documentation
Use when creating a custom domain agent. Triggers: 'cai-add-agent', 'agent 추가', 'domain agent', 'add agent', '에이전트 추가', '에이전트 생성'
Use when recording an architecture decision as an ADR. Triggers: 'cai-add-decision', 'decision 기록', 'ADR 추가', 'add decision', '결정 기록', '아키텍처 결정'
Use when recording a future plan or direction. Triggers: 'cai-add-roadmap', 'roadmap 추가', '계획 기록', 'add roadmap', '로드맵 추가', '미래 계획'
Use when creating or updating a spec document. Triggers: 'cai-add-spec', 'spec 생성', 'spec 추가', 'spec 업데이트', 'add spec', 'update spec'
Use when capturing knowledge from current session. Triggers: 'cai-capture-lesson', 'lesson 기록', '교훈 캡처', '배운 것 기록', 'capture lesson', '세션 회고', '레슨 캡처'
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Persistent, structured memory for AI coding agents that scales from 10K to 1M+ lines of code.
AI coding agents lose memory between sessions. Every new conversation starts from scratch -- conventions forgotten, past decisions ignored, known issues repeated. A single CLAUDE.md works for small projects, but breaks down at scale.
CAI solves this by treating project documentation as infrastructure -- living, machine-readable artifacts that AI agents depend on to produce correct, convention-adherent code. Architecture decisions, module specs, coding conventions, known failure modes, and future plans are captured in plain markdown and loaded automatically.
CAI builds on the research by Aristidis Vasilopoulos (arXiv:2602.20478), which presents a three-component codified context infrastructure developed during construction of a 108,000-line C# distributed system across 283 development sessions:
The paper demonstrated four distinct mechanisms by which codified context improves development outcomes: specifications as inter-session coordination documents (74 sessions of consistent behavior), captured experience preventing repeated trial-and-error (10+ subsequent sessions), documentation as an investment converting one-time effort into persistent velocity, and embedded domain knowledge enabling collaborative debugging of subtle cross-cutting bugs.
A key finding: over 50% of effective agent specifications are domain knowledge (code patterns, failure modes, architectural constraints), not behavioral instructions.
The paper's architecture was validated on a single developer, single project (C# game), and single tool (Claude Code). CAI generalizes it along every axis:
| Dimension | Paper | CAI |
|---|---|---|
| Language | C# | Any |
| Scale | 108K LOC | 10K -- 1M+ LOC |
| Team size | 1 | 1 -- 10+ |
| Tool | Claude Code | Claude Code + Codex |
| Domain | Game dev | Any |
The core insight remains the same: as projects grow in complexity, agents lose coherence and developers are pulled back into resolving routine errors. Persistent, machine-readable specifications keep agents producing correct output even as the codebase scales.
CAI implements a 3-layer architecture where each layer provides a different guarantee:
┌─────────────────────┐
│ AI Session │
└────┬───────────┬─────┘
│ │
always loaded │ │ on file edit
▼ ▼
┌────────────────┐ ┌────────────────┐
│ Layer 1 │ │ Layer 2 │
│ Rules File │ │ Hook │
│ (engine) │ │ (safety net) │
└───────┬────────┘ └────────────────┘
│
│ when approved
▼
┌────────────────┐
│ Layer 3 │
│ Skills │
│ (escape hatch)│
└────────────────┘
.claude/rules/cai.md is loaded automatically every session. It defines all AI behaviors:
The rules file is the heart of the system. The AI reads it, follows it, and the developer never has to invoke commands manually.
npx claudepluginhub workingdanny911/cai --plugin caiSprint management with kanban-style backlog for multi-agent collaboration
Sprint management with kanban-style backlog for multi-agent collaboration
Analyze famous open-source codebases and generate technical biography books that teach software engineering through real code
Access thousands of AI prompts and skills directly in your AI coding assistant. Search prompts, discover skills, save your own, and improve prompts with AI.
Complete developer toolkit for Claude Code
Intelligent draw.io diagramming plugin with AI-powered diagram generation, multi-platform embedding (GitHub, Confluence, Azure DevOps, Notion, Teams, Harness), conditional formatting, live data binding, and MCP server integration for programmatic diagram creation and management.
Feature development with code-architect/explorer/reviewer agents, CLAUDE.md audit and session learnings, and Agent Skills creation with eval benchmarking from Anthropic.
Orchestrate multi-agent teams for parallel code review, hypothesis-driven debugging, and coordinated feature development using Claude Code's Agent Teams
Production-grade engineering skills for AI coding agents — covering the full software development lifecycle from spec to ship.