Foundry.Context.SpecKitIndexBuilder (foundry v0.1.1)

Copy Markdown

Builds the spec-kit index by scanning ADRs, runbooks, findings, regulations, and other documentation files. Extracts summaries, tags, and token counts.

Token estimation uses a conservative approximation: byte_size / 3. English prose + Elixir identifiers average ~3.5 chars/token; dividing by 3 slightly overestimates (correct for warning thresholds).

Summary

Functions

build(project_root)

@spec build(String.t()) :: map()