d311c8fb3c684f2032776d65b6ff3fc6c16c14a7
- format.ts: Full parsePackageMap implementation with round-trip support
- llm-extract.ts: Heuristic-based extraction without LLM API (regex exports,
imports, purpose inference from filename patterns)
- ast-extract.ts: Tree-sitter integration for TypeScript/TSX with fallback
for other languages
- init.ts: Refactored to expose generateDirectoryMap helper, reinitPath
delegates to initProject
- patch.ts: Small packages now use generateDirectoryMap for full rewrite
- discover.ts: Cleaned up require('fs') to use proper ES import
- Tests: 8 tests covering format round-trip and LLM heuristics
- All TypeScript compiles clean, all tests pass
pi-project-map
Pi skill for hierarchical project analysis.
What it does
Generates .pi-map.md files throughout your project — one per directory — containing a dense, machine-readable summary of that directory's files, exports, dependencies, and architecture. This gives Pi agents instant project comprehension without reading every source file.
Quick Start
npm install -g pi-project-map
project-map init
Design
See design-doc.md for the full specification.
Implementation Plan
See implementation-plan.md for the engineering roadmap.
Description
Languages
TypeScript
97%
JavaScript
3%