Claude Code Runtime Instruction Layer Modular Capability & Dependency Layers Enforcement & Learning Loop executes loads skills resolves deps applies provides tools logs updates instructions RUNTIME CLAUDE.MD.TMPL DOT_CLAUDE/SKILLS/ DOT_APM/APM.YML TASK EXECUTION + AST-GREP RETROSPECTIVE.MD Core agent loop handling context and tool execution. Project-specific prompt templates defining agent behavior. Modular, reusable MCP servers and custom analytical scripts. Dependency manifests for reproducible environments. Runs tasks and enforces rules via ast-grep pattern matching. Structured logs of agent actions used for continuous learning.