code-index-bootstrap

code-index-bootstrap is a skill for Claude Code, Codex from Bidiche49/claude-conf. It costs 72 tokens per session (3,125 once invoked), scanned A, original, MIT.

A code-index setup helper that creates an automatically regenerated map of a project's source code.

In plain words
What is it for?
Use it to detect a Dart, JavaScript or TypeScript, Go, Python, or Rust project, install or generate an indexer, add commit hooks, and validate the result.
Why use it?
It reduces the amount of source code an agent must read directly and validates the generated map against real files.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions Claude Code.

Good fit Use it to detect a Dart, JavaScript or TypeScript, Go, Python, or Rust project, install or generate an indexer, add commit hooks, and validate the result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bidiche49/claude-conf/code-index-bootstrap
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Bidiche49/claude-conf --skill code-index-bootstrap
Clone the repo
git clone --depth 1 https://github.com/Bidiche49/claude-conf

Made for: Claude Code, Codex.

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 code-index-bootstrap

README.md
[![agentmods](https://agentmods.dev/badge/skills/bidiche49/claude-conf/code-index-bootstrap/github.svg)](https://agentmods.dev/skills/bidiche49/claude-conf/code-index-bootstrap)
Your own site
<a href="https://agentmods.dev/skills/bidiche49/claude-conf/code-index-bootstrap"><img src="https://agentmods.dev/badge/skills/bidiche49/claude-conf/code-index-bootstrap/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for code-index-bootstrap

Your own site · 80×15
<a href="https://agentmods.dev/skills/bidiche49/claude-conf/code-index-bootstrap"><img src="https://agentmods.dev/badge/skills/bidiche49/claude-conf/code-index-bootstrap.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,125 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.00072 $0.03125
Opus 5.5 $0.00029 $0.01250
Sonnet 5.5 $0.00014 $0.00625
Haiku 4.5 $0.00007 $0.00313

Measured 1mo ago against content hash 68cf293ff569, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-index-bootstrap 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 1mo 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.

code-index/skills/code-index-bootstrap/SKILL.md · 269 lines

How it starts

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

/code-index-bootstrap

You are setting up code-index (claude-conf module) inside the user's current project. Your goal: install the right indexer + git hooks so docs/.code-map/ regenerates automatically on every commit, with measured token economy ≥ 50% vs reading the source directly.

Mission

  1. Detect the project stack by scanning marker files in the project root.
  2. If a native stack setup exists under ~/.claude/code-index/stacks/<stack>/_setup.sh → delegate to it (fast path).
  3. Otherwise → enter generation mode with the 4 non-negotiable guardrails defined below.
  4. Always end with auto-validation: parse 5 source samples, confirm format conformance, measure token economy.

Step 1 — Detect stack

Run ls -la in the project root and check, in this order:

Marker Stack
pubspec.yaml dart
package.json js (TypeScript inferred via tsconfig.json or .ts files)
go.mod go
Cargo.toml rust
pyproject.toml / requirements.txt / setup.py python

If multiple markers are present (e.g. monorepo with both Go and JS), ask the user which stack to index. Do not guess.

If none match, tell the user the project layout is unsupported and stop. Do not invent.

Step 2 — Dispatch or generate

Check if a native installer exists:

ls ~/.claude/code-index/stacks/<detected-stack>/_setup.sh

Case A — native installer present (Dart in v0.1)

Run it directly. Pass --source and --out only if the user requested non-default values.

bash ~/.claude/code-index/stacks/<stack>/_setup.sh

The script handles everything (copy indexer, install hooks, patch .gitignore, configure git core.hooksPath, run first index). Then jump to Step 4 (validation).

Case B — generation mode

Only enter this branch if no native installer exists for the detected stack. Then all 4 guardrails below are mandatory.

The 4 guardrails (non-negotiable in generation mode)

Read the full file on GitHub · 269 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. 1mo ago First seen · 269 lines · 72 tokens per session scan A 68cf293ff569

Subscribe to this mod's changes

code-index-bootstrap is a skill published in the GitHub repository Bidiche49/claude-conf (2 stars, last pushed 5mo ago), licensed MIT. It adds 72 tokens to every session and 3,125 once invoked, about $0.0003 per session on Opus 5.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.