Source Relation
byowayo
0Analyzes source code dependencies within a specified directory to identify file relationships.
概要
Source Relation analyzes source code under a given directory's `src` folder to determine file dependencies. By parsing import statements across multiple languages, it identifies the relationships between files, allowing Claude to quickly understand project dependencies and locate related files.
主な機能
- Supports import parsing for TypeScript/JavaScript, Python, Ruby, and Rust.
- Supports extensionless requires in Ruby.
- Handles tsconfig.json path aliases (e.g., `@/components/...`).
- Provides output in JSON format, displaying dependencies as relative paths from the `src` directory.
- Accommodates language-specific features like `__init__.py` in Python and `mod.rs` in Rust.
ユースケース
- Assist Claude in identifying relevant files based on project structure.
- Facilitate easier navigation and maintenance of large codebases.
- Quickly understand the architecture and dependencies of a software project.