index-knowledge
Skill by cloudflare
Generates a hierarchical set of AGENTS.md files for a codebase, with a root file and subdirectory files for complex areas. Useful for developers who want AI assistants to understand project structure and conventions.
Install index-knowledge
Built from the published package, never by AI.
git clone --depth 1 https://github.com/cloudflare/kumo /tmp/kumo && mkdir -p ~/.claude/skills && cp -r /tmp/kumo/.agents/skills/index-knowledge ~/.claude/skills/index-knowledgeRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/cloudflare/kumo /tmp/kumo && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/kumo/.agents/skills/index-knowledge ~/.gemini/antigravity-cli/skills/index-knowledgeAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
index-knowledge is an agent skill that generates hierarchical AGENTS.md files for a codebase. It creates a root AGENTS.md and subdirectory files for directories that score high on complexity. Each generated file can cover an overview, structure, where to look, conventions, anti-patterns, and commands.
The skill runs discovery in parallel, using several explore subagents, bash analysis, and optional LSP symbol queries. It scores directories by file count, subdirectory count, code ratio, symbol density, and references, then generates the files and reviews them for duplicates. It defaults to updating existing files, and the --create-new flag regenerates them from scratch. It suits developers who want AI coding assistants to get project context from AGENTS.md files.
Written from the project's SKILL.md and checked against it.
What it can do
- Root AGENTS.md generationCreates a root AGENTS.md with overview, structure, conventions, and commands.
- Subdirectory scoringScores directories by complexity to decide where extra AGENTS.md files are warranted.
- Parallel discovery agentsLaunches several explore subagents, with more added based on project size.
- LSP codemapUses LSP symbol queries for a code map when a language server is available.
- Update or create-new modeUpdates existing files by default, or removes and regenerates them with --create-new.
- Depth limitLimits directory depth with --max-depth, with a default of 5.
What you need
- An AI assistant that supports Task subagents and TodoWrite
- Optional LSP support for the code map
Try asking
- Generate AGENTS.md files for this repository
- Regenerate all AGENTS.md files from scratch with --create-new
- Create AGENTS.md files up to depth 2 using --max-depth=2
Good to know
- Default maximum directory depth is 5.
- --create-new removes all existing AGENTS.md files before regenerating.
- Root files are 50-150 lines and subdirectory files 30-80 lines.
- Without LSP, the skill relies on explore agents and AST-grep.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/index-knowledge/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md10 KB
Alternatives to index-knowledge
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
index-knowledge: common questions
What does --create-new do in index-knowledge?
It reads existing AGENTS.md files first, removes all of them, and then regenerates from scratch.
How deep does index-knowledge scan a project?
The default maximum directory depth is 5. The --max-depth flag sets a different limit.
Does index-knowledge require LSP?
No. LSP is optional. If it is unavailable, the skill relies on explore agents and AST-grep.
How do I install index-knowledge?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is index-knowledge free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is index-knowledge safe to use?
It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to index-knowledge?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
