Source Relation icon

Source Relation

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.

主要功能

  • 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.
Craft Better Prompts with AnyPrompt
Sponsored
Source Relation: Analyze Code Dependencies & File Relationships