AI Summaryrsmap enables AI assistants to efficiently search and understand Rust codebases through multi-layered LLM-friendly indexes, eliminating the need to scan source files directly. Developers working with large Rust projects benefit from faster code exploration and architectural understanding.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to install the "rsmap" skill in my project. Please run this command in my terminal: # Install skill into the correct directory mkdir -p .claude/skills/rsmap && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/rsmap/SKILL.md "https://raw.githubusercontent.com/zfedoran/rsmap/main/SKILL.md" Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.
Description
Search and explore Rust codebases using rsmap indexes
Index Files
• overview.md — Layer 0: Crate metadata, module tree with descriptions • api-surface.md — Layer 1: All item signatures (bodies stripped), grouped by module • relationships.md — Layer 2: Trait impls, error chains, module deps, type hotspots • index.json — Layer 3: Fully-qualified path → file:line lookup table • annotations.toml — LLM-facing descriptions (note/stale/removed per item) • cache.json — BLAKE3 hashes for incremental rebuilds
Searching the Index
This is the core workflow. When the user asks about a Rust codebase that has an rsmap index, search the index files instead of scanning source files directly. Find where something lives: Search overview.md for crate and module names to orient yourself. Find types, functions, traits, signatures: Search api-surface.md. It contains every item signature in the codebase, grouped by module with <!-- file: ... --> comments. Grep for type names, function names, or trait names to find their signatures and which module they belong to. Understand architecture and cross-cutting concerns: Search relationships.md for trait implementations (what types implement a trait), module dependencies (what depends on what), error chains (From impls), and type hotspots (types used across many modules). Jump to source: Search index.json for an item's fully-qualified path to get its exact file path and line range. Then read the actual source when the signature alone isn't enough. General approach: • Search the index to find what you need • Only read source files when the index doesn't have enough detail • Use index.json to go from item name → file:line → source
Generating an Index
` rsmap generate --path <RUST_PROJECT> --output <OUTPUT_DIR> ` Use --no-cache to force a full rebuild.
Annotation Workflow
When asked to annotate a codebase: • Run rsmap annotate export to get unannotated/stale items • Read the exported TOML, fill in note fields with concise descriptions • Run rsmap annotate import <FILE> to merge annotations back • Re-run generate to update the index with new annotations
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster