Source Relation icon

Source Relation

Createdowayo

Analyzes source code dependencies within a specified directory to identify file relationships.

About

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.

Key Features

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

Use Cases

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