- Home
- Skills
- Agents & Orchestration
- code-atlas
Code Atlas
by Shaheen Z
Map codebase architecture, trace use-case execution paths, and audit security/performance through direct source inspection.
Free
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
| Component | Responsibility | Source evidence |
|---|---|---|
TaskController | Handles HTTP routing and request validation | src/controllers/TaskController.ts |
TaskService | Encapsulates business logic and domain rules | src/services/TaskService.ts |
TaskRepository | Manages persistence via TypeORM | src/repositories/TaskRepository.ts |
AuthMiddleware | Validates JWTs and populates request identity | src/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 source | Kind | Plain-language meaning | Key fields |
|---|---|---|---|
ITask | Interface | The core task entity | id, title, status |
CreateTaskDto | DTO | Input for task creation | title, userId |
Use Case: Create Task (Success)
- Trigger:
POST /taskswith{ "title": "Review PR" } - Result:
201 Createdwith the new task object. - Flow:
AuthMiddlewareextractssubfrom JWT.TaskController.createreceivesCreateTaskDto.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
| Area | Observed design/control | Evidence | Gap or uncertainty |
|---|---|---|---|
| Authn | Bearer JWT validation | src/middleware/auth.ts | Expiry check is not explicitly enforced in source. |
| Authz | Ownership check in Service | src/services/TaskService.ts | No RBAC found for admin overrides. |
Next steps
- Review the
task-api-map.excalidrawfile for a visual flow. - Examine
src/middleware/auth.tsto confirm JWT secret handling. - 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
- Source inspection resolves the local path or repository URL to inventory manifests, routing, and dependency wiring.
- Structural analysis builds a component table and design pattern glossary anchored in the implementation.
- Execution tracing follows specific triggers from entry points to side effects, showing request/response payloads or event schemas.
- 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
This skill has been used 1 time.
Trust & safety
Security scan
Security scan passed 14 days ago
- Free with an Agensi account
Permissions
What's inside
Creator
Shaheen Z
Frequently Asked Questions
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.