index-init

index-init is a skill for Claude Code from MacroMan5/macromanatlas. It costs 36 tokens per session (1,791 once invoked), scanned A, original, MIT.

A project-indexing skill that creates a map of a codebase and adds a README file for each module. It detects common project layouts, including monorepos, which are repositories containing several related packages or applications.

In plain words
What is it for?
Use it when starting work on a project or after restructuring it. It helps document modules in projects built with systems such as Cargo, Maven, Gradle, Python, Go, CMake, and JavaScript workspaces.
Why use it?
It helps an agent find the right part of a large or newly reorganized project without reading every file first. The generated documentation gives each module a clear entry point.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is | ModuleName | Short purpose | [tag1, tag2] | [README](../ModuleName/README.md) |.

Part of the macromanatlas plugin — 3 skills, 4 hooks shipped together

Good fit Use it when starting work on a project or after restructuring it. It helps document modules in projects built with systems such as Cargo, Maven, Gradle, Python, Go, CMake, and JavaScript workspaces.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/MacroMan5/macromanatlas
agentmods
npx agentmods add skills/macroman5/macromanatlas/index-init

Made for: Claude Code.

Or install macromanatlas, the plugin that ships this one along with the rest of its 3 skills, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for index-init

README.md
[![agentmods](https://agentmods.dev/badge/skills/macroman5/macromanatlas/index-init.svg)](https://agentmods.dev/skills/macroman5/macromanatlas/index-init)
Your own site
<a href="https://agentmods.dev/skills/macroman5/macromanatlas/index-init"><img src="https://agentmods.dev/badge/skills/macroman5/macromanatlas/index-init.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,791 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.01791
Opus 5 $0.00018 $0.00896
Sonnet 5 $0.00007 $0.00358
Haiku 4.5 $0.00004 $0.00179

Measured 8d ago against content hash 2671b5cb7bb0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

index-init scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/index-init/SKILL.md · 183 lines

How it starts

The opening of the file, as written. The whole thing — 183 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/index-init

Generate a complete project index with per-module README files.

Step 1: Announce

Say: "I'm using the index-init skill to generate a project index."

Step 2: Detect project type

Glob the root directory for these signals. Use first match wins priority:

Priority Signal Type Module detection
1 CMakeLists.txt containing add_subdirectory() cpp-cmake Each add_subdirectory() argument = module
2 Cargo.toml containing [workspace] rust-cargo Each members entry = crate
3 go.work or multiple go.mod go Each use directive or go.mod directory = module
4 package.json containing "workspaces" node-workspaces Each workspace pattern match = package
5 *.sln file dotnet Each .csproj referenced = project
6 pom.xml containing <modules> java-maven Each <module> = subproject
7 build.gradle or settings.gradle containing include java-gradle Each include(':...') = subproject
8 pyproject.toml or setup.py python Packages or top-level dirs with __init__.py
9 pubspec.yaml dart-flutter Top-level or packages/ dirs
10 Fallback generic Top-level dirs containing source files (.cpp, .py, .js, .ts, .rs, .go, .java, .cs, .dart)

For each detected type, extract:

  • Modules: from build/manifest files as described above
  • Purpose: from comments, description fields, docstrings, existing README content
  • Dependencies: from link directives (target_link_libraries), imports, manifest deps
  • Public API: from interface files (I*.h), exports, pub functions — names + method signatures only
  • Files: use git ls-files (respects .gitignore) to list source + config files per module. Fallback to Glob if not a git repo.

Never index: .env, .env.*, .git/, *.key, *.pem, .npmrc, .pypirc, .aws/, .ssh/, *credentials*, *secret*, *token*, binary blobs (images, compiled objects, archives).

Read the full file on GitHub · 183 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 183 lines · 36 tokens per session scan A 2671b5cb7bb0

Subscribe to this mod's changes

index-init is a skill published in the GitHub repository MacroMan5/macromanatlas (3 stars, last pushed 6mo ago), licensed MIT. It adds 36 tokens to every session and 1,791 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

delegate

Let Claude Architect route a versioned implementation spec through the trusted MCP runtime, independently review the Candidate Artifact, record a decision, and integrate only accepted bytes. Use for implementation delegation, Producer selection, or commitment-boundary review.

PyModel/claude-architect · 47 tokens

codex

Run the Codex CLI directly in the user's checkout for code analysis, refactoring, or automated editing without Claude Architect's verified delegation lifecycle.

PyModel/claude-architect · 31 tokens

commit

A guided process for committing code changes to Git. It checks the working tree, follows a conventional commit format, links a task when available, reviews the changes, and asks for approval.

restarter/lets-workflow · 90 tokens

design

Create a doc-as-code design package from a PRD or SPEC. Conditionally generates C4 diagrams (Context/Container/Component), sequence diagrams, ER diagram + Data Dictionary, OpenAPI 3.0, AsyncAPI 3.0, ADRs, domain glossary, state diagrams, and deployment view as Mermaid-rendered Markdown files. Use when PM mentions…

cryndoc/polisade-orchestrator · 162 tokens

explain

Use when user invokes /explain with a file path, directory path, function/class name, or natural language concept. Also triggers on "explain this", "how does X work", "walk me through". Produces a structured, layered explanation of what the code does, how it connects, and where to start if you need to change it. Do…

harnessprotocol/harness-kit · 95 tokens

spike

A time-limited research task for answering an open technical or product question before implementation begins.

cryndoc/polisade-orchestrator · 105 tokens