Source Relation

•
1
•

Analyzes 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.

主な機能

01Supports import parsing for TypeScript/JavaScript, Python, Ruby, and Rust.
02Supports extensionless requires in Ruby.
03Handles tsconfig.json path aliases (e.g., `@/components/...`).
04Provides output in JSON format, displaying dependencies as relative paths from the `src` directory.
05Accommodates language-specific features like `__init__.py` in Python and `mod.rs` in Rust.

ユースケース

01Assist Claude in identifying relevant files based on project structure.
02Facilitate easier navigation and maintenance of large codebases.
03Quickly understand the architecture and dependencies of a software project.