tilth Code Reading CLI
jahala/tilth
Replaces grep, cat, find and ls with the tilth CLI, which returns AST-aware outlines, definitions, usages and callers across many languages in one call.
Packs a local or remote repository into a single AI-friendly file with the Repomix CLI, then reads and searches that output to explain structure, find patterns or report metrics.
$ npx skills add yamadashy/repomix --skill repomix-explorer -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install yamadashy/repomix repomix-explorer --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/yamadashy/repomix.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/repomix-explorer .claude/skills/repomix-explorer && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "repomix-explorer" agent skill from https://github.com/yamadashy/repomix/tree/main/skills/repomix-explorer into .claude/skills/repomix-explorer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "repomix-explorer", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/yamadashy/repomix/tree/main/skills/repomix-explorerType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add yamadashy/repomix --skill repomix-explorer -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install yamadashy/repomix repomix-explorer --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yamadashy/repomix.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/repomix-explorer .agents/skills/repomix-explorer && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "repomix-explorer" agent skill from https://github.com/yamadashy/repomix/tree/main/skills/repomix-explorer into .agents/skills/repomix-explorer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "repomix-explorer", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add yamadashy/repomix --skill repomix-explorer -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install yamadashy/repomix repomix-explorer --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yamadashy/repomix.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/repomix-explorer .cursor/skills/repomix-explorer && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "repomix-explorer" agent skill from https://github.com/yamadashy/repomix/tree/main/skills/repomix-explorer into .cursor/skills/repomix-explorer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "repomix-explorer", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/yamadashy/repomix.git --path skills/repomix-explorer--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add yamadashy/repomix --skill repomix-explorer -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install yamadashy/repomix repomix-explorer --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yamadashy/repomix.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/repomix-explorer .gemini/skills/repomix-explorer && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "repomix-explorer" agent skill from https://github.com/yamadashy/repomix/tree/main/skills/repomix-explorer into .gemini/skills/repomix-explorer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "repomix-explorer", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install yamadashy/repomix repomix-explorerInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add yamadashy/repomix --skill repomix-explorer -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/yamadashy/repomix.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/repomix-explorer .github/skills/repomix-explorer && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "repomix-explorer" agent skill from https://github.com/yamadashy/repomix/tree/main/skills/repomix-explorer into .github/skills/repomix-explorer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "repomix-explorer", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add yamadashy/repomix --skill repomix-explorer -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install yamadashy/repomix repomix-explorer --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yamadashy/repomix.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/repomix-explorer .opencode/skills/repomix-explorer && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "repomix-explorer" agent skill from https://github.com/yamadashy/repomix/tree/main/skills/repomix-explorer into .opencode/skills/repomix-explorer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "repomix-explorer", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
repomix-explorerPacks a local or remote repository into a single AI-friendly file with the Repomix CLI, then reads and searches that output to explain structure, find patterns or report metrics.
For a high-level understanding of an unfamiliar or large repository, rather than a targeted edit, the skill runs npx repomix against either a remote GitHub URL or owner/repo string, writing to a temporary file to avoid polluting the current project, or against a local directory, writing its default output file. Output format defaults to XML, and --compress enables Tree-sitter compression for roughly a 70% token reduction on repositories over about 100k lines; --include and --ignore narrow the files packed.
After packing, the skill reads and pattern-searches the generated output to answer the user's actual question, whether that is an architectural overview, finding all the authentication code or API endpoint definitions across many files, or reporting metrics like file count, token count or the ratio of TypeScript to JavaScript. It explicitly steers away from editing or refactoring code, reading a single already-known local file, single-symbol lookups answerable with one grep, and git, test or build operations, which belong to other tools.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 8d64291. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
npxFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
github.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Repomix Codebase Explorer loads about 2.7k tokens when it runs. Until then it costs about 245 tokens; SKILL.md has 874 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from yamadashy/repomix at commit 8d64291, republished under its MIT licence (© yamadashy). 874 words, ~2,723 tokens.
.claude/skills/repomix-explorer/SKILL.md (or your agent's skills folder).You are an expert code analyst specializing in repository exploration using Repomix CLI. Your role is to help users understand codebases by running repomix commands, then reading and analyzing the generated output files.
The user might ask in various ways:
npx repomix@latest --remote <repo>npx repomix@latest [directory]For Remote Repositories:
npx repomix@latest --remote <repo> --output /tmp/<repo-name>-analysis.xmlIMPORTANT: Always output to /tmp for remote repositories to avoid polluting the user's current project directory.
For Local Directories:
npx repomix@latest [directory] [options]Common Options:
--style <format>: Output format (xml, markdown, json, plain) - xml is default and recommended--compress: Enable Tree-sitter compression (~70% token reduction) - use for large repos--include <patterns>: Include only matching patterns (e.g., "src//*.ts,/*.md")--ignore <patterns>: Additional ignore patterns--output <path>: Custom output path (default: repomix-output.xml)--remote-branch <name>: Specific branch, tag, or commit to use (for remote repos)Command Examples:
# Basic remote pack (always use /tmp)
npx repomix@latest --remote yamadashy/repomix --output /tmp/repomix-analysis.xml
# Basic local pack
npx repomix@latest
# Pack specific directory
npx repomix@latest ./src
# Large repo with compression (use /tmp)
npx repomix@latest --remote facebook/react --compress --output /tmp/react-analysis.xml
# Include only specific file types
npx repomix@latest --include "**/*.{ts,tsx,js,jsx}"The repomix command will display:
./repomix-output.xml)Always note the output file location for the next steps.
Start with structure overview:
Search for patterns:
# Pattern search (preferred for large files)
grep -iE "export.*function|export.*class" repomix-output.xml
# Search with context
grep -iE -A 5 -B 5 "authentication|auth" repomix-output.xmlRead specific sections: Read files with offset/limit for large outputs, or read entire file if small.
--compress for large repos (>100k lines)Recommendation: Stick with XML unless user requests otherwise.
Common useful patterns:
# Functions and classes
grep -iE "export.*function|export.*class|function |class " file.xml
# Imports and dependencies
grep -iE "import.*from|require\\(" file.xml
# Configuration
grep -iE "config|Config|configuration" file.xml
# Authentication/Authorization
grep -iE "auth|login|password|token|jwt" file.xml
# API endpoints
grep -iE "router|route|endpoint|api" file.xml
# Database/Models
grep -iE "model|schema|database|query" file.xml
# Error handling
grep -iE "error|exception|try.*catch" file.xml./repomix-output.xml--output flag for custom pathsrm repomix-output.xmlUser: "Analyze the yamadashy/repomix repository"
Your workflow:
1. Run: npx repomix@latest --remote yamadashy/repomix --output /tmp/repomix-analysis.xml
2. Note the metrics from command output (files, tokens)
3. Grep: grep -i "export" /tmp/repomix-analysis.xml (find main exports)
4. Read file tree section to understand structure
5. Summarize:
"This repository contains [number] files.
Main components include: [list].
Total tokens: approximately [number]."User: "Find authentication code in this repository"
Your workflow:
1. Run: npx repomix@latest (or --remote if specified)
2. Grep: grep -iE -A 5 -B 5 "auth|authentication|login|password" repomix-output.xml
3. Analyze matches and categorize by file
4. Read the file to get more context if needed
5. Report:
"Authentication-related code found in the following files:
- [file1]: [description]
- [file2]: [description]"User: "Explain the structure of this project"
Your workflow:
1. Run: npx repomix@latest ./
2. Read file tree from output (use limit if file is large)
3. Grep for main entry points: grep -iE "index|main|app" repomix-output.xml
4. Grep for exports: grep "export" repomix-output.xml | head -20
5. Provide structural overview with ASCII diagram if helpfulUser: "Analyze facebook/react - it's a large repository"
Your workflow:
1. Run: npx repomix@latest --remote facebook/react --compress --output /tmp/react-analysis.xml
2. Note compression reduced token count (~70% reduction)
3. Check metrics and file tree
4. Grep for main components
5. Report findings with note about compression usedUser: "I want to see only TypeScript files"
Your workflow:
1. Run: npx repomix@latest --include "**/*.{ts,tsx}"
2. Analyze TypeScript-specific patterns
3. Report findings focused on TS codeIf you encounter issues:
Command fails:
Large output file:
--compress flag--include to narrow scopePattern not found:
Network issues (for remote):
If you need more information:
npx repomix@latest --help to see all available options--compress for large repos to reduce token usageBefore completing your analysis:
Remember: Your goal is to make repository exploration intelligent and efficient. Run repomix strategically, search before reading, and provide actionable insights based on real code analysis.
© yamadashy, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/repomix-explorer of yamadashy/repomix.
Open the folder on GitHubat commit 8d64291
Repomix Codebase Explorer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Repomix Codebase Explorer this skillyamadashy/repomix | 29k | — | ~2.7k | Automated safety check: Pass | MIT | |
| tilth Code Reading CLIjahala/tilth | 352 | — | ~1.1k | Automated safety check: Pass | MIT | |
| trace-mcp Code Navigationnikolai-vysotskyi/trace-mcp | 188 | — | ~1.6k | Automated safety check: Notes | MIT | |
| Smart Explore Code Searchthedotmack/claude-mem | 99k | — | ~2.3k | Automated safety check: Pass | Apache-2.0 | |
| Basemind Code ContextGoldziher/basemind | 108 | — | ~2.6k | Automated safety check: Pass | MIT | |
| ccc Semantic Code Searchcocoindex-io/cocoindex-code | 2.8k | — | ~938 | Automated safety check: Pass | Apache-2.0 |
jahala/tilth
Replaces grep, cat, find and ls with the tilth CLI, which returns AST-aware outlines, definitions, usages and callers across many languages in one call.
nikolai-vysotskyi/trace-mcp
Routes code exploration through trace-mcp's indexed dependency graph, using symbol search, outlines, call graphs and change-impact tools instead of Read, Grep and Glob.
thedotmack/claude-mem
Explores code structure with tree-sitter AST search tools, getting a ranked symbol map and file outlines before reading full source, to save tokens.
Goldziher/basemind
Answers structural questions about a repository, such as where a symbol is defined, what calls it and what changed recently, through the basemind MCP server.
cocoindex-io/cocoindex-code
Semantic code search and index management with the ccc CLI: the agent initializes, indexes and queries the project by concept, filtering by language or path.
github/awesome-copilot
Maps an unfamiliar codebase into seven evidence-backed documents in docs/codebase/, using a scan script and templates, for onboarding or architecture write-ups.
yamadashy/repomix
Writes Conventional Commits whose bodies carry action lines recording the intent, decisions and constraints behind a change, not only what changed.
yamadashy/repomix
Saves and recalls markdown notes between agent sessions with the agent-carnet CLI, tracking which notes proved useful so stale ones expire and good ones stay.
yamadashy/repomix
Packs a local directory or remote GitHub repository into one AI-friendly file with Repomix, then searches it to explore structure, find patterns and count tokens.
yamadashy/repomix
Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content…
yamadashy/repomix
Guides edits to the Repomix documentation site's VitePress configuration, per-language content, and translation workflow across 14 languages.
Categories
Packs a local or remote repository into a single AI-friendly file with the Repomix CLI, then reads and searches that output to explain structure, find patterns or report metrics. For a high-level understanding of an unfamiliar or large repository, rather than a targeted edit, the skill runs npx repomix against either a remote GitHub URL or owner/repo string, writing to a temporary file to avoid polluting the current project, or against a local directory, writing its default output file. Output format defaults to XML, and --compress enables Tree-sitter compression for roughly a 70% token reduction on repositories over about 100k lines; --include and --ignore narrow the files packed.
Repomix Codebase Explorer fits situations like: getting an overview of an unfamiliar repository's structure; finding every instance of a pattern, like auth code or API routes, across a whole repo; reporting file, token or language-ratio metrics for a codebase.
Run `npx skills add yamadashy/repomix --skill repomix-explorer -a claude-code`. Or copy the skill folder (skills/repomix-explorer in yamadashy/repomix) into .claude/skills/repomix-explorer in your project. Claude Code loads it when a task matches its description.
Run `npx skills add yamadashy/repomix --skill repomix-explorer -a codex`. Or copy the skill folder (skills/repomix-explorer in yamadashy/repomix) into .agents/skills/repomix-explorer in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add yamadashy/repomix --skill repomix-explorer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/repomix-explorer, .gemini/skills/repomix-explorer, .github/skills/repomix-explorer and .opencode/skills/repomix-explorer in your project.
Going by SKILL.md and its folder, Repomix Codebase Explorer needs the command-line tools its instructions call (npx). Our summary lists: Node.js, to run npx repomix.
SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Repomix Codebase Explorer is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Repomix Codebase Explorer: tilth Code Reading CLI (jahala/tilth, 352 stars), trace-mcp Code Navigation (nikolai-vysotskyi/trace-mcp, 188 stars), Smart Explore Code Search (thedotmack/claude-mem, 99k stars) and Basemind Code Context (Goldziher/basemind, 108 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
yamadashy (a GitHub user) maintains it in yamadashy/repomix, which has 28,767 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 3, 2026.
Source: yamadashy/repomix on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.