doc-indexer

doc-indexer is a skill for Claude Code from bodangren/git-workflow. It costs 46 tokens per session (1,272 once invoked), scanned A, original, MIT.

A documentation indexer that scans Markdown files in a project's docs/ folder and reads their YAML frontmatter, the metadata block at the top of a document. It returns a compact map of available specifications, plans, retrospectives, and other documents without loading their full text.

In plain words
What is it for?
Use it at the start of a session, before planning work, or when starting an issue to discover which documentation and specifications are available.
Why use it?
It helps an AI agent find relevant project context quickly while avoiding unnecessary document content in its working context.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it at the start of a session, before planning work, or when starting an issue to discover which documentation and specifications are available.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bodangren/git-workflow/doc-indexer
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 bodangren/git-workflow --skill doc-indexer
Clone the repo
git clone --depth 1 https://github.com/bodangren/git-workflow

Made for: Claude Code.

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 doc-indexer

README.md
[![agentmods](https://agentmods.dev/badge/skills/bodangren/git-workflow/doc-indexer/github.svg)](https://agentmods.dev/skills/bodangren/git-workflow/doc-indexer)
Your own site
<a href="https://agentmods.dev/skills/bodangren/git-workflow/doc-indexer"><img src="https://agentmods.dev/badge/skills/bodangren/git-workflow/doc-indexer/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 doc-indexer

Your own site · 80×15
<a href="https://agentmods.dev/skills/bodangren/git-workflow/doc-indexer"><img src="https://agentmods.dev/badge/skills/bodangren/git-workflow/doc-indexer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,272 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.00046 $0.01272
Opus 5.5 $0.00018 $0.00509
Sonnet 5.5 $0.00009 $0.00254
Haiku 4.5 $0.00005 $0.00127

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

Security

Grade A, and why

doc-indexer 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 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/scan-docs.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.claude/skills/doc-indexer/SKILL.md · 186 lines

How it starts

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

Document Indexer Skill

Purpose

Provide just-in-time context about available project documentation without loading full file content into the context window. The doc-indexer scans all markdown files in the docs/ directory, extracts their YAML frontmatter metadata, and returns a structured map of available documentation. This enables efficient discovery of specs, plans, retrospectives, and other documentation while minimizing token usage.

When to Use

Use this skill in the following situations:

  • At the beginning of any work session to understand the current state of documentation
  • When starting work on a new issue to identify relevant specs and context
  • Before proposing changes to understand existing specifications
  • When planning a sprint to review available approved specs
  • Anytime you need an overview of project documentation without reading full files

Prerequisites

  • The project must have a docs/ directory
  • Documentation files should follow the convention of including YAML frontmatter
  • The jq tool is NOT required (script works without it)

Workflow

Step 1: Run the Documentation Scanner

Execute the helper script to scan all markdown files in the docs/ directory:

bash scripts/scan-docs.sh

This will output a human-readable summary showing each document's frontmatter metadata.

For machine-readable JSON output (useful for programmatic processing):

bash scripts/scan-docs.sh -j

Step 2: Review the Documentation Map

The scanner returns information about all markdown files found in docs/, including:

  • File path: Location of the documentation file
  • Frontmatter metadata: Key-value pairs from YAML frontmatter (title, status, type, etc.)
  • Compliance warnings: Files missing YAML frontmatter are flagged

Example human-readable output:

---
file: docs/specs/001-synthesis-flow.md
title: AgenticDev Methodology
status: approved
type: spec
---
file: docs/changes/my-feature/proposal.md
title: My Feature Proposal
status: in-review
type: proposal
[WARNING] Non-compliant file (no frontmatter): docs/README.md

Read the full file on GitHub · 186 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 186 lines · 46 tokens per session scan A c644f16429f2

Subscribe to this mod's changes

doc-indexer is a skill published in the GitHub repository bodangren/git-workflow (11 stars, last pushed 10mo ago), licensed MIT. It adds 46 tokens to every session and 1,272 once invoked, about $0.0002 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-30.