Code Atlas

    by Shaheen Z

    1

    Map codebase architecture, trace use-case execution paths, and audit security/performance through direct source inspection.

    Free

    1 use4.0 (1 review)

    Works with the AI Agents you already use

    code-atlas

    Example session with this skill installed

    Walk me through the architecture of the provided Express/TypeScript API repository. Use Excalidraw for the diagram.

    • Read your context and instructions
    • Compiled the code-atlas

    I have inspected the repository at the current path. The project is a TypeScript-based REST API for a task management system using Express, TypeORM, and inversify for dependency injection.

    Architecture and Components

    ComponentResponsibilitySource evidence
    TaskControllerHandles HTTP routing and request validationsrc/controllers/TaskController.ts
    TaskServiceEncapsulates business logic and domain rulessrc/services/TaskService.ts
    TaskRepositoryManages persistence via TypeORMsrc/repositories/TaskRepository.ts
    AuthMiddlewareValidates JWTs and populates request identitysrc/middleware/auth.ts

    Design Patterns

    Pattern | Meaning | Implementation and source | Purpose here | Tradeoff
    Dependency Injection | Decoupling creation from use | inversify in src/ioc.ts | Decouples services for testing | Higher boilerplate overhead.
    Repository Pattern | Abstraction of data access | TaskRepository | Isolates SQL logic from domain | Adds a layer between service and DB.

    [Diagram: Architecture map generated as task-api-map.excalidraw]

    Glossary

    Symbol and sourceKindPlain-language meaningKey fields
    ITaskInterfaceThe core task entityid, title, status
    CreateTaskDtoDTOInput for task creationtitle, userId

    Use Case: Create Task (Success)

    • Trigger: POST /tasks with { "title": "Review PR" }
    • Result: 201 Created with the new task object.
    • Flow:
      1. AuthMiddleware extracts sub from JWT.
      2. TaskController.create receives CreateTaskDto.
      3. TaskService.addTask(dto, userId) is called.
      // src/services/TaskService.ts
      async addTask(data: CreateTaskDto, userId: string): Promise<Task> {
        const task = this.repo.create({ ...data, ownerId: userId });
        return this.repo.save(task);
      }
      

    Security Audit

    AreaObserved design/controlEvidenceGap or uncertainty
    AuthnBearer JWT validationsrc/middleware/auth.tsExpiry check is not explicitly enforced in source.
    AuthzOwnership check in Servicesrc/services/TaskService.tsNo RBAC found for admin overrides.

    Next steps

    1. Review the task-api-map.excalidraw file for a visual flow.
    2. Examine src/middleware/auth.ts to confirm JWT secret handling.
    3. Answer these questions: Which component owns the database connection? How is a user's identity passed from the middleware to the service?

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Onboarding a developer to a legacy repository or a complex new codebase is a notorious time sink. This skill maps the architecture and traces execution paths through real source code to get you productive without the manual detective work.

    What it does

    • Architectural mapping identifies high-level components and their responsibilities with direct links to source symbols.
    • Pattern identification surfaces implemented design patterns like Dependency Injection or Observability with project-specific tradeoffs.
    • Visual diagrams generates editable Excalidraw maps or Mermaid diagrams to visualize system flow.
    • Use-case walkthroughs traces at least three end-to-end flows, including failure paths, with exact code snippets and parameter mappings.
    • Security and performance audits reviews authentication, authorization, and optimization strategies based on evidenced code.

    How it works

    1. Source inspection resolves the local path or repository URL to inventory manifests, routing, and dependency wiring.
    2. Structural analysis builds a component table and design pattern glossary anchored in the implementation.
    3. Execution tracing follows specific triggers from entry points to side effects, showing request/response payloads or event schemas.
    4. Validation concludes with three comprehension questions to verify architectural understanding.

    Frameworks & tools

    Works with any language or framework accessible via standard repository search tools like rg. Optimized for monorepos, microservices, and libraries using common patterns like REST, GraphQL, or event-driven workers.

    Why this beats prompting it yourself

    Generic prompts often hallucinate architecture based on folder names or library defaults. This skill enforces a strict evidence-based workflow that requires finding the call site and symbol signature before asserting a relationship.

    Use cases

    • Developer onboarding to rapidly understand a new project's mental model and file structure.
    • Security reviews to locate authentication enforcement points and identify authorization gaps.
    • Refactoring prep to visualize how data flows through a vertical slice before making changes.
    • Bug investigation by tracing failure paths and permission-denial scenarios through the source.

    Known limitations

    Does not install dependencies or run untrusted scripts. Analysis is limited to the provided source scope and cannot verify external cloud-provider controls not defined in the repository.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    4.0
    1 review
    5
    0
    4
    1
    3
    0
    2
    0
    1
    0

    This skill has been used 1 time.

    Trust & safety

    Security scan

    Security scan passed 14 days ago

    • Free with an Agensi account

    Permissions

    Read Files
    Listed14 days ago

    What's inside

    Creator

    Shaheen Z

    Shaheen Z

    Frequently Asked Questions

    Unlike generic AI prompts that guess based on file names, this skill uses a strict 'evidence-first' workflow that identifies actual call sites, symbol signatures, and data schemas directly from your repository.

    The skill is language-agnostic and works with any repository accessible via standard search tools; it is particularly effective at navigating complex monorepos, microservices, and event-driven architectures.

    You will receive the complete AI skill package including the architectural mapping logic, diagram generation templates (Excalidraw/Mermaid), and the automated audit workflows.

    The skill performs a static analysis of the source code provided in its environment; it does not require an active internet connection to external cloud providers or the execution of your application.

    Simply point the agent to your local directory or repository URL; the skill will automatically begin its inventory of manifests, routing, and dependency wiring without manual configuration.

    This skill is designed for any AI agent with file-system or repository access (using tools like `ripgrep`) and the ability to render markdown or diagram syntax.

    New in Agents & Orchestration

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.

    Free