pialechini

Trailmap.Nvim — Design skill for Claude Code

Design community

🗺️ Ask your codebase a question, get the answering code as a diffview-style map.

How to install Trailmap.Nvim

This entry records only its repository, not the path inside it, so there is no exact command to give. Open pialechini/trailmap.nvim and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Trailmap.Nvim does

🗺️ Ask your codebase a question, get the answering code as a diffview-style map. Neovim + Claude Code / Codex.

Alternatives in Design

  • Site — Crawl a whole site and synthesize ONE canonical design system across all pages — unified tokens, coverage map 3.6k ★
  • Af Ship From Tech Design — If $ARGUMENTS is empty, stop and ask 187 ★
  • Codebase Design — PHẢI dùng khi: Tech Lead hoặc Senior Developer cần mô tả cấu trúc code một cách chính xác — khi nói về refacto 90 ★

README

🗺️ trailmap.nvim

**Ask your codebase a question. Get back the code that answers it.**

You've been there. The project started small, you knew every file. Then it grew: new features, new teammates, a few rewrites, a `utils/` folder nobody wants to open. Now it's a black box. Somebody asks *"what actually happens when a user clicks Checkout?"* and you spend half an hour grepping, jumping to definitions, and keeping twelve buffers in your head.

What if you could just **ask**, and see the answer the way you already review code: as a diff-style file tree, with exactly the lines that matter highlighted?

:Trailmap how does the app choose between Prisma, ClickHouse and Kafka when running a query?

![trailmap.nvim demo: asking a question about umami and walking the highlighted ranges](https://raw.githubusercontent.com/pialechini/trailmap.nvim/assets/demo.gif)

✨ What you get

  • Answers, not search results. An AI agent (Claude Code or Codex) follows the flow end to end, from UI trigger to hook to server action to API call, and hands back only the ranges that matter.
  • A view you already know. A diffview-style file tree on the left, your real source buffers in the middle. LSP, treesitter, and your keymaps all keep working, because it is your code, not a copy.
  • Every line explained. Each range is highlighted, gets a sign, and carries a short note on why it's there.
  • A conversation, not one shot. The agent runs in an interactive terminal on the right. Ask "and what about refunds?" and the map redraws in place.
  • Walk it like a story. to the next file, ]s to the next range, gq to dump the whole trail into quickfix.
  • Faster with CodeGraph. When the repo is indexed, the agent uses the symbol graph to find things in one hop. No index? It falls bac