Agent skill · research science · aradotso

claude-code-deep-dive

claude-code-deep-dive — an agent skill for coding agents.

Why this skill is useful

Provides a comprehensive reverse-engineering report with detailed insights into the Claude Code architecture, including executable scripts and system prompt assembly methods not found in public documentation.

What it needs

Requires git installed locally. About 8k tokens when loaded. Last updated 2026-07-09. 70 stars on the source repository.

What this skill does

bash Clone the repo git clone https://github.com/tvytlx/claude-code-deep-dive.git cd claude-code-deep-dive Top-level source layout ls extracted-source/src/ entrypoints/ constants/ tools/ services/ utils/ commands/ components/ coordinator/ memdir/ plugins/ hooks/ bootstrap/ tasks/ extracted-source/src/ ├── constants/ │ └── prompts.ts # ← THE main system prompt assembler ├── tools/ │ ├── AgentTool/ │ │ ├── AgentTool.tsx # Agent tool definition + UI │ │ ├── runAgent.ts # Agent execution loop │ │ └── prompt.ts # Agent-specific prompt fragments │ ├── SkillTool/ │ │ ├── SkillTool.tsx │ │ └── prompt.ts │ ├── FileRead.ts │ ├── FileEdit.ts │ ├── FileWrite.ts │ ├── Bash.ts │ ├── Glob.ts │ ├── Grep.ts │ └── TodoWrite.ts ├── services/ │ ├── tools/ │ │ ├── toolExecution.ts # Full tool execution pipeline │ │ └── toolHooks.ts # Pre/post hook integration │ └── mcp/ # MCP bridge ├── entrypoints/ │ ├── cli.tsx # Main CLI entry │ ├── init.ts │ ├── mcp.ts # MCP server mode │ └── sdk/ # SDK consumer entry └── commands.ts # All slash commands registered typescript // Conceptual reconstruction of getSystemPrompt() function getSystemPrompt(context: SessionContext): string { // STATIC PREFIX — suitable for prompt caching const staticSections = [ getSimpleIntroSection(), // Identity + CYBERRISKINSTRUCTION getSimpleSystemSection(), // Runtime rules (hooks, compression, tags) getSimpleDoingTasksSection(), // Engineering behavior constraints getActionsSection(), // Risk/destructive action rules getUsingYourToolsSection(), // Tool grammar (FileRead > cat, etc.) getSimpleToneAndStyleSection(), getOutputEfficiencySection(), ].join('\n'); // DYNAMIC SUFFIX — session-specific, NOT cached // Boundary: SYSTEMPROMPTDYNAMICBOUNDARY const dynamicSections = [ getSessionSpecificGuidanceSection(context), // Current tool set + feature gates getMemorySection(context), getEnvInfoSection(context), getLanguageSection(context), getOutputStyleSection(context), getMcpInstructionsSection(context), getScratchpadSecti …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aradotso/claude-code-deep-dive

View the source on GitHub

Browse the @skills marketplace