What problem does it solve?
Contributing to the Claude Code CLI repository requires navigating a complex TypeScript codebase with strict architectural patterns, extensive tooling systems, and multi-layered state management without a centralized reference.
Core Features & Use Cases
- Architecture Overview: Maps the 7-layer structure from CLI core to AI platform, including the 7-stage cognitive loop, service registry, and knowledge graph layers.
- Pattern Library: Documents conventions for tool definitions, command structures, React/Ink components, permission systems, and feature flags.
- Use Case: A developer adding a new agent tool can reference the buildTool pattern, permission check requirements, and UI rendering conventions to ensure consistency with the existing 40+ tools.
Quick Start
Use the claude-code-skill guide to review the QueryEngine architecture and implement a new tool by following the buildTool pattern with proper permission checks and UI renderers.