codebase-exploration

Trace execution paths and map architecture layers to identify key files.

Updated Apr 17, 2026
One-click install
npx skills add https://github.com/KingSharkG/ai-agents-workflow --skill codebase-exploration-kingsharkg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codebase-exploration
Source: https://github.com/KingSharkG/ai-agents-workflow/tree/main/skills/codebase-exploration
Command: npx skills add https://github.com/KingSharkG/ai-agents-workflow --skill codebase-exploration-kingsharkg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables teams to create a structured exploration record before drafting planning documents, reducing ambiguity and guiding subtask scoping.

Core Features & Use Cases

  • Identify entry points (route files, public exports) and call sites to understand impact.
  • Map architecture layers (presentation, orchestration, domain, data) and surface patterns across the codebase.
  • Surface 5–10 key files that the Executor and Lead's reasoning will depend on for the subtask.
  • Provide a reusable exploration template that can be appended to ai-work.md as <!-- section:exploration-notes -->.

Quick Start

Identify the subtask intent, locate entry points and call sites, trace one golden path, and append the exploration notes to ai-work.md.

Frequently Asked Questions about codebase-exploration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I map codepaths and identify essential files before planning a subtask?

To map codepaths for subtask planning, trace execution paths from entry points through architecture layers and surface 5–10 key files. This structured exploration reduces ambiguity and provides a reusable record appended to ai-work.md.

What is codebase discovery and how does it support upfront architecture mapping?

Codebase discovery is the process of locating entry points, mapping architecture layers, and tracing a golden path to understand impact. It supports architecture mapping by outlining patterns and surfacing essential files for reasoning.

How do I document codebase exploration notes for a lead guiding subtasks?

Document codebase exploration notes by outlining identified entry points, architecture layers, and key files into a reusable template. Append this structured exploration record to ai-work.md as a dedicated exploration-notes section.

Does codebase exploration work without external dependencies or components?

Yes, codebase exploration works without external dependencies or components. It relies on a structured template to trace execution paths and identify target files, requiring only an existing codebase to analyze.

What is the best way to trace execution paths and call sites for pattern discovery?

The best way to trace execution paths for pattern discovery is to locate public exports or route files, map call sites to understand impact, and trace one golden path through the architecture layers to surface essential files.

When should I not use a structured exploration template for codebase subtasks?

You should not use a structured exploration template for simple subtasks that require no architecture mapping or pattern discovery. It is designed for leads guiding complex subtasks that depend on identifying target files and tracing execution paths.