Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Perform codebase analysis and architecture mapping as the first phase of a security assessment. Explores the tech stack, frameworks, entry points, data flows, and trust boundaries. Outputs sast/architecture.md. Run this before any vulnerability detection skill. Use when asked to analyze a codebase for security or when sast/architecture.md does not yet exist.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-17 | ✗→✓ | ▲ Improved | 210% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 54% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 113% | 0% |
| case-11 | ✓→✗ | ▼ Worse | -55% | 0% |
| case-05 | ✓→✗ | ▼ Worse | 57% | 0% |
You are performing the first phase of a security assessment. Your goal is to deeply understand the codebase. You are NOT looking for specific vulnerabilities yet. This is pure reconnaissance.
Create a sast/ folder in the project root (if it doesn't already exist). This phase produces one output file inside it:
sast/architecture.md — technology stack, architecture, entry points, data flows
Explore the codebase and identify:
Start by reading dependency manifests, project configs, and directory structure. Then drill into source code to confirm findings.
Based on Phase 1, build a mental model of:
Write the results of Phase 1 and Phase 2 to sast/architecture.md. Use this format:
markdown# Architecture: [Project Name] ## Technology Stack | Category | Details | |---|---| | Languages | ... | | Frameworks | ... | | Databases | ... | | Auth mechanism | ... | | Infrastructure | ... | | External services | ... | ## Architecture Overview [Describe the architecture: monolith vs microservices, how components interact, main modules and their responsibilities] ## Data Flow [Trace how user input enters the system, gets processed, stored, and returned. Cover the primary flows (e.g., registration, login, core business actions).] ## Entry Points | Entry Point | Type | Auth Required | Description | |---|---|---|---| | ... | HTTP/GraphQL/WS/etc. | Yes/No | ... | ## Trust Boundaries [List each trust boundary and what crosses it] ## Sensitive Data Inventory | Data Type | Where Stored | How Accessed | Protection | |---|---|---|---| | ... | ... | ... | ... |
Other measured skills in the registry, with their headline benchmark lift.