arch-lens-repository-access

Map repository methods, entity relationships, and query patterns into a Mermaid diagram.

1|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/Trecek/useful-claude-skills --skill arch-lens-repository-access
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: arch-lens-repository-access
Source: https://github.com/Trecek/useful-claude-skills/tree/main/.claude/skills/arch-lens-repository-access
Command: npx skills add https://github.com/Trecek/useful-claude-skills --skill arch-lens-repository-access

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Understanding how data is accessed across a codebase is challenging. This lens documents repository patterns, entity relationships, and query flows to make data paths clear without touching business logic.

Core Features & Use Cases

  • Documents repository methods and their data flows (read vs write).
  • Shows entity relationships (1:N, N:N) and query patterns.
  • Generates a Mermaid diagram illustrating storage, adapters, and repositories.

Quick Start

Generate the arch-lens-repository-access diagram by invoking the lens tool with your codebase context.

Frequently Asked Questions about arch-lens-repository-access

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I visualize repository patterns and data access flows in my codebase?

You can visualize repository patterns by mapping repository methods, entity relationships, and query flows to a readable Mermaid diagram. This approach clarifies read and write data paths across callers, factories, repositories, adapters, and databases without altering business logic.

What is the best way to document entity relationships and query patterns for data access?

Documenting entity relationships and query patterns involves mapping 1:N and N:N associations alongside repository methods to outline data flows. This clarifies conversion boundaries and storage mappings, making complex data access architectures easier to understand.

Can I generate a Mermaid diagram for repository methods and storage mappings?

Yes, you can generate a Mermaid diagram specification that illustrates storage, adapters, and repositories. The diagram maps read and write directions and usage patterns across data access layers to visually document the architecture.

How do I map data access across adapters and databases without modifying business logic?

You can map data access by analyzing the codebase context to trace repository methods and conversion boundaries. This outlines how callers interact with factories and adapters down to databases, visualizing the architecture without touching underlying business logic.

Does this approach work for documenting read and write directions in data-centric architectures?

Yes, this approach works for data-centric architectures by explicitly outlining read and write directions for repository methods. It documents how data flows through query patterns and storage mappings, satisfying the need for clear data access visibility.

When do I need a repository access diagram for my software architecture?

You need a repository access diagram when understanding data access across a codebase becomes challenging. It maps query flows and entity relationships to make data paths clear, which is essential for maintaining complex data-centric software architectures.