repomix-explorer

Pack repository data with Repomix to generate XML analysis outputs.

27.7k|1.5k|Updated Jul 13, 2024
One-click install
npx skills add https://github.com/yamadashy/repomix --skill repomix-explorer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: repomix-explorer
Source: https://github.com/yamadashy/repomix/tree/main/.claude/skills/repomix-explorer
Command: npx skills add https://github.com/yamadashy/repomix --skill repomix-explorer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers quickly analyze and map a codebase by packing repository data with the Repomix CLI, turning complex structures into searchable outputs.

Core Features & Use Cases

  • Codebase Packing: Package remote or local repositories into a structured, searchable representation.
  • Structure & Pattern Analysis: Inspect file trees, detect recurring patterns, and quantify tokens or lines.
  • Use Case: Quickly assess a project’s size and organization to plan refactoring or onboarding.

Quick Start

Use the repomix-explorer skill to scan a repository and generate an analysis file. For a remote repo: npx repomix@latest --remote <owner>/<repo> --output /tmp/<repo-name>-analysis.xml For a local directory: npx repomix@latest /path/to/repo --output /tmp/<repo-name>-analysis.xml Then read the resulting XML to review the file tree and metrics.

Frequently Asked Questions about repomix-explorer

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

FAQPage Schema
How do I analyze a codebase structure and get token metrics?

Analyze a codebase structure and token metrics using Repomix by running npx repomix@latest with your repository path or remote URL, then parsing the generated XML output to review the file tree and quantified metrics.

Can I use Repomix to explore both remote and local repositories?

Yes, Repomix supports both remote repositories via the --remote flag (owner/repo format) and local directories by specifying a file path, generating searchable analysis outputs for either source.

What does Repomix output and how do I interpret it?

Repomix packs repository data into a structured XML file containing the file tree, recurring patterns, token counts, and line metrics, enabling quick assessment of a project's size and organization.

Do I need Node.js and npm to use Repomix for codebase analysis?

Yes, Repomix requires a Node-enabled environment to execute the npx repomix CLI command and generate analysis outputs for your repository.

What are the limitations of Repomix when mapping large codebases?

Repomix token and size metrics reflect the packed output; extremely large repositories may generate large XML files. Processing time scales with repository complexity, and filtering options may be needed for massive projects.