code-chunker

Analyze source file structure to generate navigable maps with sections and line ranges.

Updated Mar 11, 2026
One-click install
npx skills add https://github.com/robit-man/transcribe-cli --skill code-chunker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-chunker
Source: https://github.com/robit-man/transcribe-cli/tree/main/.claude/skills/code-chunker
Command: npx skills add https://github.com/robit-man/transcribe-cli --skill code-chunker

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the challenge of navigating large, complex source code files by providing a structured map of their contents, enabling agents to quickly locate and understand specific sections without reading the entire file.

Core Features & Use Cases

  • File Structure Analysis: Parses code files to identify top-level declarations, group them into logical sections, and determine line ranges.
  • Navigable Map Generation: Outputs a human-readable or structured map (JSON, tree) with section summaries and quick-reference commands.
  • Use Case: When an agent needs to refactor a large TypeScript file, it can use this skill to generate a map, then specifically request to read only the "ExtensionRegistry class" section (lines 47-320) for focused work.

Quick Start

Map the structure of the file located at src/extensions/registry.ts.

Frequently Asked Questions about code-chunker

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

FAQPage Schema
How do I map large source code files for agent navigation?

To map large source code files for agent navigation, parse the file structure to identify top-level declarations and group them into logical sections with line ranges and summaries. This generates a navigable map for efficient reference.

What is code structure analysis and when do I need it?

Code structure analysis parses source files to identify top-level declarations and group them into logical sections. You need it when navigating large, complex files to quickly locate specific sections without reading the entire file.

How do I generate a JSON map of top-level declarations from a source file?

Generate a JSON map of top-level declarations by analyzing the source file to detect its language and extract sections. The output includes logical sections, line ranges, dependencies, and summaries in a structured JSON format.

Can I analyze code structure for multiple programming languages?

Yes, you can analyze code structure for multiple programming languages because the tool detects the language automatically from the file extension. It then identifies top-level declarations based on the detected language syntax.

How do I configure depth levels for code mapping granularity?

Configure depth levels for code mapping granularity by adjusting the settings before generating the map. Different depth levels allow you to control the granularity of the structural breakdown, from high-level sections to detailed declarations.

What output formats are available for code file structure mapping?

Available output formats for code file structure mapping include human-readable map, structured JSON, and tree views. These formats provide section summaries, line ranges, and dependencies for efficient agent navigation.