explain-code

Trace execution flow and generate markdown explanations with file:line references.

5|Updated Feb 3, 2024
One-click install
npx skills add https://github.com/ahkohd/dotfiles --skill explain-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: explain-code
Source: https://github.com/ahkohd/dotfiles/tree/main/claude/.claude/skills/explain-code
Command: npx skills add https://github.com/ahkohd/dotfiles --skill explain-code

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill explains how a feature or codebase works by tracing execution flow, highlighting data movement and key decisions.

Core Features & Use Cases

  • Scope identification: Choose feature/file/function to explain.
  • Data flow map: Track input → transformations → output with key decisions.
  • Documentation-ready output: Clear sections detailing purpose, entry points, and dependencies.
  • Use Case: Understand a new API by following the request path and side effects.

Quick Start

Identify the feature or file to explain, then the Skill will generate a structured explanation including the data flow and key decisions.

Frequently Asked Questions about explain-code

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

FAQPage Schema
How do I understand how a feature works by tracing its execution flow?

Tracing execution flow maps how data moves through code from entry point to output, showing transformations and key decisions. This Skill traces that path for a feature, file, or function, then generates a structured explanation with file:line references for easy navigation.

When should I trace code data flow before modifying unfamiliar code?

Tracing data flow before modifying unfamiliar code identifies scope, entry points, and dependencies, reducing the risk of unintended side effects. This Skill documents that flow in markdown format saved to ~/Developer/explanations/ for reference.

Can I use data flow tracing to understand legacy code?

Yes. Tracing data flow through legacy code reveals how features work and their dependencies without requiring external documentation. This Skill maps execution paths and extracts key information into a formatted explanation for faster comprehension.

How do I document code execution paths for my team?

Data flow tracing extracts execution logic into documentation-ready markdown with file:line references. This Skill generates structured explanations of how requests, transformations, and outputs flow through your codebase, suitable for sharing and reference.

What's included in a data flow explanation?

A data flow explanation covers purpose, entry points, dependencies, and how inputs transform through key decisions to outputs. This Skill formats that information as markdown with file:line references for navigating back to source code.