Agent skill · research science · aradotso
ai-agent-deep-dive
ai-agent-deep-dive — an agent skill for coding agents.
Why this skill is useful
Provides in-depth architectural insights and patterns for building coding agents that the AI wouldn't reliably generate on its own.
What it needs
About 8k tokens when loaded. Last updated 2026-07-09. 70 stars on the source repository.
What this skill does
bash Clone the repository git clone https://github.com/tvytlx/ai-agent-deep-dive.git cd ai-agent-deep-dive Open the PDF report (primary artifact) open ai-agent-deep-dive-report.pdf or xdg-open ai-agent-deep-dive-report.pdf # Linux src/ ├── entrypoints/ # cli.tsx, init.ts, mcp.ts, sdk/ ├── constants/ # prompts.ts — system prompt assembly ├── tools/ # FileRead, FileEdit, Bash, Agent, Skill, MCP... ├── services/ # tools, mcp, analytics runtime services ├── commands/ # slash commands (/mcp, /hooks, /skills, /plan...) ├── coordinator/ # agent coordination layer ├── plugins/ # plugin ecosystem ├── hooks/ # hook system ├── tasks/ # local, remote, async agent tasks ├── memdir/ # memory/prompt injection └── bootstrap/ # state initialization typescript // Conceptual reconstruction of getSystemPrompt() architecture function getSystemPrompt(session: SessionContext): string { // --- STATIC PREFIX (cache-friendly) --- const staticSections = [ getSimpleIntroSection(), // identity + role getSimpleSystemSection(), // base rules getSimpleDoingTasksSection(), // task philosophy getActionsSection(), // allowed actions getUsingYourToolsSection(), // tool usage norms getSimpleToneAndStyleSection(), // communication style getOutputEfficiencySection(), // token hygiene ].join("\n\n"); // --- DYNAMIC SUFFIX (session-specific) --- const dynamicSections = [ session.guidance ? getSessionGuidance(session) : "", session.memory ? getMemoryPrompt(session) : "", getEnvInfoSection(session.env), session.language ? getLanguageSection(session) : "", session.outputStyle ? getOutputStyleSection(session) : "", session.mcpServers ? getMCPInstructions(session) : "", getScratchpadSection(), getFunctionResultClearingPrompt(), session.tokenBudget ? getTokenBudgetSection(session) : "", session.brief ? getBriefModeSection() : "", ].filter(Boolean).join("\n\n"); return [staticSections, dynamicSections].join("\n\n"); } typescript // Conceptual tool execution pipeline async function executeTool(toolCall: ToolCall, …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aradotso/ai-agent-deep-dive