project-analyzer
When to use
Use this skill when:
- Starting work on an unfamiliar project
- Onboarding to a new codebase
- Auditing the current state of agent docs, contexts, and features
- Creating a baseline understanding of the project for future work
- Generating comprehensive project documentation for knowledge transfer
Do NOT use when:
- Small, focused code changes
- Regular feature development
Procedure: Analyze a project
A project analysis is a systematic walkthrough of the entire codebase that:
- Detects — framework, language, tech stack, patterns, legacy vs. modern
- Inventories — modules, services, models, endpoints, tests
- Analyzes — business domains, data flows, API contracts, dependencies
- Documents — writes structured analysis files to
agents/evidence/analysis/
- Assesses — identifies gaps, technical debt, missing docs
It orchestrates other skills and commands to produce a comprehensive picture.
Analysis output
All analysis results are written to agents/evidence/analysis/ in a structured directory layout.
The goal: someone could rebuild the project from these documents alone.
Directory structure
agents/evidence/analysis/
├── overview.md ← Project profile, tech stack, architecture summary
├── architecture/
│ ├── database.md ← Schema, connections, multi-tenancy, migrations
│ ├── api.md ← Versioning, routes, middleware, auth flow
│ ├── infrastructure.md ← Docker, CI/CD, deployment, AWS, monitoring
│ └── patterns.md ← Design patterns used (Repository, Service, Pipeline, etc.)
├── domains/
│ ├── {domain}.md ← One file per business domain (see below)
│ └── ...
├── modules/
│ ├── {module}.md ← One file per module (see below)
│ └── ...
├── models/
│ ├── api-database.md ← All api_database models, relationships, key columns
│ └── customer-database.md ← All customer_database models, relationships, key columns
├── services/
│ └── service-map.md ← All services with purpose, dependencies, key methods
├── api/
│ ├── endpoints-v1.md ← All v1 endpoints: route, controller, request, resource
│ ├── endpoints-v2.md ← All v2 endpoints: route, controller, request, resource
│ └── contracts.md ← API contracts: request/response shapes, validation rules
└── testing/
└── test-map.md ← Test suites, coverage areas, test data strategy
Domain analysis files
Each business domain gets its own file in agents/evidence/analysis/domains/. A domain groups
related models, services, controllers, jobs, and events around a business concept:
| Domain |
What it covers |
projects.md |
Construction sites, positions, project status, geocoding |
planning.md |
Appointments, crew assignments, capacity planning |
users.md |
Employees, roles, permissions, authentication |
equipment.md |
Machines, vehicles, repairs, time registration |
working-times.md |
Time tracking, absences, wage types, logs |
reports.md |
Daily reports, images, measured quantities |
files.md |
File uploads, file links, storage |
customers.md |
Tenant management, customer config, modules |
webhooks.md |
Webhook dispatching, retry logic |
imports.md |
Client software imports (cross-reference with module) |
gps.md |
GPS tracking, geofencing |
notifications.md |
Email, push, private messages, Slack |
dashboard.md |
Dashboard widgets, statistics |
Not every project has all domains. Only create files for domains that actually exist.
Domain file template
Each domain file should contain:
# Domain: {Name}
## Purpose
{What this domain does in 2-3 sentences}
## Models
| Model | Table | Connection | Key Relationships |
|---|---|---|---|
## Services
| Service | Purpose | Key Methods |
|---|---|---|
## Controllers (API Endpoints)
| Endpoint | Controller | Request | Resource |
|---|---|---|---|
## Jobs & Events
| Class | Type | Trigger | What it does |
|---|---|---|---|
## Business Rules
- {Rule 1: e.g. "A project can only be deleted if it has no working times"}
- {Rule 2}
## Data Flow
{Describe how data moves through this domain — from input to storage to output}
## Dependencies
- Depends on: {other domains}
- Depended on by: {other domains}
Module analysis files
Each module gets its own file in agents/evidence/analysis/modules/. Format:
# Module: {Name}
## Purpose
{What this module does}
## Structure
{Directory tree with key files}
## Public API
{What other parts of the app use from this module: Services, Events, Models}
## Internal Components
{Controllers, Jobs, Commands, Listeners that are module-internal}
## Configuration
{Config files, .env variables, feature flags}
## Testing
{Test suites, test data, stubs}
Detection checklist
Framework & language (multi-stack)
| Check |
How to detect |
| PHP runtime + version |
composer.json → require.php |
| Laravel application |
artisan file at repo root + laravel/framework in composer.json |
| Symfony application |
bin/console + symfony/framework-bundle in composer.json |
| Composer package |
composer.json without artisan / bin/console |
| Node.js runtime |
package.json exists |
| TypeScript |
tsconfig.json exists |
| Frontend framework |
package.json → react, vue, svelte, solid, astro, @angular/core |
| Meta-framework |
package.json → next, nuxt, remix, sveltekit, astro |
| Python runtime |
pyproject.toml, requirements.txt, setup.py, or Pipfile |
| Python framework |
pyproject.toml / requirements.txt → django, fastapi, flask |
| Go module |
go.mod exists |
| Rust crate / workspace |
Cargo.toml exists |
| Ruby app |
Gemfile → rails, sinatra |
| .NET project |
*.csproj, *.fsproj, or global.json |
| Java / Kotlin |
pom.xml, build.gradle, or build.gradle.kts |
After detecting any match, record the stack in the analysis output and select the matching project-analysis-* sub-skill (Laravel, Symfony, Next.js, React, Node/Express, Zend/Laminas) — fall back to project-analysis-core if no framework-specific sub-skill applies.
Project type
| Signal |
Type |
artisan + laravel/framework |
Laravel application |
bin/console + symfony/framework-bundle |
Symfony application |
composer.json without artisan / bin/console |
Composer package or legacy PHP |
package.json with next / nuxt / remix / sveltekit / astro |
Meta-framework SSR/SSG app |
package.json with express / fastify / koa / hapi |
Node HTTP service |
package.json with @nestjs/core |
NestJS application |
pyproject.toml with django / fastapi / flask |
Python web app |
go.mod with gin-gonic/gin / labstack/echo / gofiber/fiber |
Go HTTP service |
Module system (app/Modules/, src/modules/, packages/*) |
Modular monolith / monorepo |
Multi-tenant signal (customer_database, tenant middleware, RLS) |
Multi-tenant SaaS |
apps/* + packages/* + turbo.json / nx.json / pnpm-workspace |
Monorepo |
Legacy indicators (stack-aware)
| Signal |
Meaning |
PHP: no declare(strict_types=1) in most files |
Pre-modern PHP style |
| PHP: no typed properties / return types |
Legacy PHP (< 7.4) |
PHP: no phpstan.neon / rector.php |
No static analysis |
TS: // @ts-ignore / // @ts-nocheck density; any widespread |
Untyped TypeScript |
TS: no tsconfig.json strict: true |
Loose TypeScript |
JS: no ESLint config or eslint.config.* |
No linting |
Python: no type hints in most signatures; no py.typed |
Untyped Python |
Python: no mypy.ini / pyrightconfig.json / ruff.toml |
No static analysis |
Go: no golangci.yml |
No lint pipeline |
Rust: no clippy.toml and warnings ignored |
No lint hygiene |
var_dump() / console.log() / print() / fmt.Println() left in code |
Legacy debugging patterns |
| No tests or very few tests |
Low test coverage |
| Mixed naming conventions across the same module |
Inconsistent standards |
Build & tooling (stack-agnostic)
| Check |
How to detect |
| Task runner |
Makefile, Taskfile.yml, justfile, package.json scripts, composer.json scripts |
| Docker |
docker-compose.yml, compose.yaml, Dockerfile |
| CI/CD |
.github/workflows/, .gitlab-ci.yml, .circleci/config.yml, azure-pipelines.yml |
| Quality tools |
PHP: phpstan.neon, ecs.php, rector.php. TS/JS: eslint.config.*, .prettierrc*, tsconfig.json. Python: ruff.toml, mypy.ini. Go: .golangci.yml. Rust: clippy.toml |
| Editor config |
.editorconfig |
| Code review |
CODEOWNERS, PR templates (.github/pull_request_template.md) |
| Dependencies |
Lockfile presence: composer.lock, package-lock.json, pnpm-lock.yaml, yarn.lock, poetry.lock, uv.lock, go.sum, Cargo.lock |
Analysis phases
Phase 1: Project overview
- Read
AGENTS.md, .github/copilot-instructions.md, README.md
- Detect framework, version, tech stack
- Identify build tools and quality tooling
- Classify: legacy vs. modern, monolith vs. modular
- Output:
agents/evidence/analysis/overview.md
Phase 2: Architecture
- Map directory structure (top 3 levels)
- Identify architectural patterns (MVC, modules, services, repositories)
- Detect multi-tenancy, queue system, caching
- Count: models, controllers, services, jobs, commands
- Output:
agents/evidence/analysis/architecture/*.md
Phase 3: Data layer
- List all models with their connections, tables, and key relationships
- Map database schema: tables, foreign keys, indexes
- Document multi-tenant split (which tables in which DB)
- Output:
agents/evidence/analysis/models/api-database.md, customer-database.md
Phase 4: Business domains
- Identify domains from models, services, routes, and directory structure
- For each domain: map models → services → controllers → jobs → events
- Document business rules and data flows
- Document inter-domain dependencies
- Output:
agents/evidence/analysis/domains/{domain}.md (one per domain)
Phase 5: API surface
- List all endpoints with controller, request, resource, OpenAPI attributes
- Document request/response contracts (field names, types, validation rules)
- Map version differences (v1 vs v2)
- Output:
agents/evidence/analysis/api/endpoints-v1.md, endpoints-v2.md, contracts.md
Phase 6: Service map
- List all services with purpose, key methods, and dependencies
- Map service → repository → model relationships
- Identify God services (too many responsibilities)
- Output:
agents/evidence/analysis/services/service-map.md
Phase 7: Module inventory (if modules exist)
- List all modules with purpose
- For each module: structure, public API, internal components, tests
- Check for module-level agent docs
- Output:
agents/evidence/analysis/modules/{module}.md (one per module)
Phase 8: Infrastructure & testing
- Docker setup, CI/CD pipelines, deployment
- Test suites, coverage areas, test data strategy
- Output:
agents/evidence/analysis/architecture/infrastructure.md, agents/evidence/analysis/testing/test-map.md
Phase 9: Agent docs audit
- List all existing docs in
agents/reference/docs/, agents/settings/contexts/, module agents/
- Check for outdated docs (reference deleted files/classes)
- Identify undocumented areas
- Check for stale roadmaps
Phase 10: Gap analysis & action plan
- Modules without context docs → offer
/context-create
- Complex services without docs → offer
/context-create
- Existing docs that reference deleted code → offer
/context-refactor
- Stale roadmaps (all steps done) → suggest archiving
Integration with other skills
| Skill |
How it's used |
project-docs |
Read existing docs before analyzing each area |
module-management |
Detect and inventory modules |
context-create |
Create/update context documents |
feature-planning |
Identify planned but undocumented features |
agent-docs-writing |
Audit and maintain agent documentation |
roadmap-management |
Review roadmap status |
api-endpoint |
Understand endpoint structure for API analysis |
database |
Understand schema and multi-tenancy for data layer analysis |
Workflow
- Ask scope: Full analysis or specific area (e.g. only domains, only API)?
- Run phases incrementally — show findings after each phase, ask before continuing.
- Write files after each phase — don't batch all writing to the end.
- Ask before creating each file with numbered options:
> 1. Create — {filename}
> 2. Skip
- Update existing files if re-running analysis — don't create duplicates.
Output format
- Structured analysis document in agents/evidence/analysis/
- Tech stack inventory with versions and dependencies
- Architecture diagram or module map
Gotcha
- Full project analysis can take several minutes — warn the user about the time investment.
- Don't analyze parts of the codebase that the user hasn't asked about — respect scope.
- Analysis documents go in
agents/evidence/analysis/, not in .augment/.
Do NOT
- Do NOT create analysis files without asking — always confirm each creation.
- Do NOT modify existing code — this is analysis only.
- Do NOT commit or push.
- Do NOT overwhelm the user — present findings incrementally, one phase at a time.
- Do NOT analyze third-party code in
vendor/ or node_modules/.
- Do NOT duplicate content that already exists in
agents/reference/docs/ or agents/settings/contexts/ —
reference it instead. Analysis files complement existing docs, they don't replace them.
1---2name: project-analyzer3description: Single-pass tech-stack detection with an agents/evidence/analysis/ write-up; explicit request only. Deep multi-pass audit → universal-project-analysis. Raw primitives → project-analysis-core.4---56# project-analyzer78## When to use910Use this skill when:1112- Starting work on an unfamiliar project13- Onboarding to a new codebase14- Auditing the current state of agent docs, contexts, and features15- Creating a baseline understanding of the project for future work16- Generating comprehensive project documentation for knowledge transfer171819Do NOT use when:20- Small, focused code changes21- Regular feature development2223## Procedure: Analyze a project2425A **project analysis** is a systematic walkthrough of the entire codebase that:26271. **Detects** — framework, language, tech stack, patterns, legacy vs. modern282. **Inventories** — modules, services, models, endpoints, tests293. **Analyzes** — business domains, data flows, API contracts, dependencies304. **Documents** — writes structured analysis files to `agents/evidence/analysis/`315. **Assesses** — identifies gaps, technical debt, missing docs3233It orchestrates other skills and commands to produce a comprehensive picture.3435## Analysis output3637All analysis results are written to `agents/evidence/analysis/` in a structured directory layout.38The goal: **someone could rebuild the project from these documents alone.**3940### Directory structure4142```43agents/evidence/analysis/44├── overview.md ← Project profile, tech stack, architecture summary45├── architecture/46│ ├── database.md ← Schema, connections, multi-tenancy, migrations47│ ├── api.md ← Versioning, routes, middleware, auth flow48│ ├── infrastructure.md ← Docker, CI/CD, deployment, AWS, monitoring49│ └── patterns.md ← Design patterns used (Repository, Service, Pipeline, etc.)50├── domains/51│ ├── {domain}.md ← One file per business domain (see below)52│ └── ...53├── modules/54│ ├── {module}.md ← One file per module (see below)55│ └── ...56├── models/57│ ├── api-database.md ← All api_database models, relationships, key columns58│ └── customer-database.md ← All customer_database models, relationships, key columns59├── services/60│ └── service-map.md ← All services with purpose, dependencies, key methods61├── api/62│ ├── endpoints-v1.md ← All v1 endpoints: route, controller, request, resource63│ ├── endpoints-v2.md ← All v2 endpoints: route, controller, request, resource64│ └── contracts.md ← API contracts: request/response shapes, validation rules65└── testing/66 └── test-map.md ← Test suites, coverage areas, test data strategy67```6869### Domain analysis files7071Each business domain gets its own file in `agents/evidence/analysis/domains/`. A domain groups72related models, services, controllers, jobs, and events around a business concept:7374| Domain | What it covers |75|--------------------|----------------------------------------------------------|76| `projects.md` | Construction sites, positions, project status, geocoding |77| `planning.md` | Appointments, crew assignments, capacity planning |78| `users.md` | Employees, roles, permissions, authentication |79| `equipment.md` | Machines, vehicles, repairs, time registration |80| `working-times.md` | Time tracking, absences, wage types, logs |81| `reports.md` | Daily reports, images, measured quantities |82| `files.md` | File uploads, file links, storage |83| `customers.md` | Tenant management, customer config, modules |84| `webhooks.md` | Webhook dispatching, retry logic |85| `imports.md` | Client software imports (cross-reference with module) |86| `gps.md` | GPS tracking, geofencing |87| `notifications.md` | Email, push, private messages, Slack |88| `dashboard.md` | Dashboard widgets, statistics |8990Not every project has all domains. Only create files for domains that actually exist.9192### Domain file template9394Each domain file should contain:9596```markdown97# Domain: {Name}9899## Purpose100101{What this domain does in 2-3 sentences}102103## Models104105| Model | Table | Connection | Key Relationships |106|---|---|---|---|107108## Services109110| Service | Purpose | Key Methods |111|---|---|---|112113## Controllers (API Endpoints)114115| Endpoint | Controller | Request | Resource |116|---|---|---|---|117118## Jobs & Events119120| Class | Type | Trigger | What it does |121|---|---|---|---|122123## Business Rules124125- {Rule 1: e.g. "A project can only be deleted if it has no working times"}126- {Rule 2}127128## Data Flow129130{Describe how data moves through this domain — from input to storage to output}131132## Dependencies133134- Depends on: {other domains}135- Depended on by: {other domains}136```137138### Module analysis files139140Each module gets its own file in `agents/evidence/analysis/modules/`. Format:141142```markdown143# Module: {Name}144145## Purpose146147{What this module does}148149## Structure150151{Directory tree with key files}152153## Public API154155{What other parts of the app use from this module: Services, Events, Models}156157## Internal Components158159{Controllers, Jobs, Commands, Listeners that are module-internal}160161## Configuration162163{Config files, .env variables, feature flags}164165## Testing166167{Test suites, test data, stubs}168```169170## Detection checklist171172### Framework & language (multi-stack)173174| Check | How to detect |175|------------------------|------------------------------------------------------------------------------|176| PHP runtime + version | `composer.json` → `require.php` |177| Laravel application | `artisan` file at repo root + `laravel/framework` in `composer.json` |178| Symfony application | `bin/console` + `symfony/framework-bundle` in `composer.json` |179| Composer package | `composer.json` without `artisan` / `bin/console` |180| Node.js runtime | `package.json` exists |181| TypeScript | `tsconfig.json` exists |182| Frontend framework | `package.json` → `react`, `vue`, `svelte`, `solid`, `astro`, `@angular/core` |183| Meta-framework | `package.json` → `next`, `nuxt`, `remix`, `sveltekit`, `astro` |184| Python runtime | `pyproject.toml`, `requirements.txt`, `setup.py`, or `Pipfile` |185| Python framework | `pyproject.toml` / `requirements.txt` → `django`, `fastapi`, `flask` |186| Go module | `go.mod` exists |187| Rust crate / workspace | `Cargo.toml` exists |188| Ruby app | `Gemfile` → `rails`, `sinatra` |189| .NET project | `*.csproj`, `*.fsproj`, or `global.json` |190| Java / Kotlin | `pom.xml`, `build.gradle`, or `build.gradle.kts` |191192After detecting **any** match, record the stack in the analysis output and select the matching `project-analysis-*` sub-skill (Laravel, Symfony, Next.js, React, Node/Express, Zend/Laminas) — fall back to `project-analysis-core` if no framework-specific sub-skill applies.193194### Project type195196| Signal | Type |197|-----------------------------------------------------------------------|---------------------------------------|198| `artisan` + `laravel/framework` | Laravel application |199| `bin/console` + `symfony/framework-bundle` | Symfony application |200| `composer.json` without `artisan` / `bin/console` | Composer package or legacy PHP |201| `package.json` with `next` / `nuxt` / `remix` / `sveltekit` / `astro` | Meta-framework SSR/SSG app |202| `package.json` with `express` / `fastify` / `koa` / `hapi` | Node HTTP service |203| `package.json` with `@nestjs/core` | NestJS application |204| `pyproject.toml` with `django` / `fastapi` / `flask` | Python web app |205| `go.mod` with `gin-gonic/gin` / `labstack/echo` / `gofiber/fiber` | Go HTTP service |206| Module system (`app/Modules/`, `src/modules/`, `packages/*`) | Modular monolith / monorepo |207| Multi-tenant signal (`customer_database`, tenant middleware, `RLS`) | Multi-tenant SaaS |208| `apps/*` + `packages/*` + `turbo.json` / `nx.json` / `pnpm-workspace` | Monorepo |209210### Legacy indicators (stack-aware)211212| Signal | Meaning |213|------------------------------------------------------------------------------|-------------------------------|214| PHP: no `declare(strict_types=1)` in most files | Pre-modern PHP style |215| PHP: no typed properties / return types | Legacy PHP (< 7.4) |216| PHP: no `phpstan.neon` / `rector.php` | No static analysis |217| TS: `// @ts-ignore` / `// @ts-nocheck` density; `any` widespread | Untyped TypeScript |218| TS: no `tsconfig.json` `strict: true` | Loose TypeScript |219| JS: no ESLint config or `eslint.config.*` | No linting |220| Python: no type hints in most signatures; no `py.typed` | Untyped Python |221| Python: no `mypy.ini` / `pyrightconfig.json` / `ruff.toml` | No static analysis |222| Go: no `golangci.yml` | No lint pipeline |223| Rust: no `clippy.toml` and warnings ignored | No lint hygiene |224| `var_dump()` / `console.log()` / `print()` / `fmt.Println()` left in code | Legacy debugging patterns |225| No tests or very few tests | Low test coverage |226| Mixed naming conventions across the same module | Inconsistent standards |227228### Build & tooling (stack-agnostic)229230| Check | How to detect |231|---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|232| Task runner | `Makefile`, `Taskfile.yml`, `justfile`, `package.json scripts`, `composer.json scripts` |233| Docker | `docker-compose.yml`, `compose.yaml`, `Dockerfile` |234| CI/CD | `.github/workflows/`, `.gitlab-ci.yml`, `.circleci/config.yml`, `azure-pipelines.yml` |235| Quality tools | PHP: `phpstan.neon`, `ecs.php`, `rector.php`. TS/JS: `eslint.config.*`, `.prettierrc*`, `tsconfig.json`. Python: `ruff.toml`, `mypy.ini`. Go: `.golangci.yml`. Rust: `clippy.toml` |236| Editor config | `.editorconfig` |237| Code review | `CODEOWNERS`, PR templates (`.github/pull_request_template.md`) |238| Dependencies | Lockfile presence: `composer.lock`, `package-lock.json`, `pnpm-lock.yaml`, `yarn.lock`, `poetry.lock`, `uv.lock`, `go.sum`, `Cargo.lock` |239240## Analysis phases241242### Phase 1: Project overview243244- Read `AGENTS.md`, `.github/copilot-instructions.md`, `README.md`245- Detect framework, version, tech stack246- Identify build tools and quality tooling247- Classify: legacy vs. modern, monolith vs. modular248- **Output:** `agents/evidence/analysis/overview.md`249250### Phase 2: Architecture251252- Map directory structure (top 3 levels)253- Identify architectural patterns (MVC, modules, services, repositories)254- Detect multi-tenancy, queue system, caching255- Count: models, controllers, services, jobs, commands256- **Output:** `agents/evidence/analysis/architecture/*.md`257258### Phase 3: Data layer259260- List all models with their connections, tables, and key relationships261- Map database schema: tables, foreign keys, indexes262- Document multi-tenant split (which tables in which DB)263- **Output:** `agents/evidence/analysis/models/api-database.md`, `customer-database.md`264265### Phase 4: Business domains266267- Identify domains from models, services, routes, and directory structure268- For each domain: map models → services → controllers → jobs → events269- Document business rules and data flows270- Document inter-domain dependencies271- **Output:** `agents/evidence/analysis/domains/{domain}.md` (one per domain)272273### Phase 5: API surface274275- List all endpoints with controller, request, resource, OpenAPI attributes276- Document request/response contracts (field names, types, validation rules)277- Map version differences (v1 vs v2)278- **Output:** `agents/evidence/analysis/api/endpoints-v1.md`, `endpoints-v2.md`, `contracts.md`279280### Phase 6: Service map281282- List all services with purpose, key methods, and dependencies283- Map service → repository → model relationships284- Identify God services (too many responsibilities)285- **Output:** `agents/evidence/analysis/services/service-map.md`286287### Phase 7: Module inventory (if modules exist)288289- List all modules with purpose290- For each module: structure, public API, internal components, tests291- Check for module-level agent docs292- **Output:** `agents/evidence/analysis/modules/{module}.md` (one per module)293294### Phase 8: Infrastructure & testing295296- Docker setup, CI/CD pipelines, deployment297- Test suites, coverage areas, test data strategy298- **Output:** `agents/evidence/analysis/architecture/infrastructure.md`, `agents/evidence/analysis/testing/test-map.md`299300### Phase 9: Agent docs audit301302- List all existing docs in `agents/reference/docs/`, `agents/settings/contexts/`, module `agents/`303- Check for outdated docs (reference deleted files/classes)304- Identify undocumented areas305- Check for stale roadmaps306307### Phase 10: Gap analysis & action plan308309- Modules without context docs → offer `/context-create`310- Complex services without docs → offer `/context-create`311- Existing docs that reference deleted code → offer `/context-refactor`312- Stale roadmaps (all steps done) → suggest archiving313314## Integration with other skills315316| Skill | How it's used |317|--------------------|-------------------------------------------------------------|318| `project-docs` | Read existing docs before analyzing each area |319| `module-management` | Detect and inventory modules |320| `context-create` | Create/update context documents |321| `feature-planning` | Identify planned but undocumented features |322| `agent-docs-writing` | Audit and maintain agent documentation |323| `roadmap-management` | Review roadmap status |324| `api-endpoint` | Understand endpoint structure for API analysis |325| `database` | Understand schema and multi-tenancy for data layer analysis |326327## Workflow3283291. **Ask scope**: Full analysis or specific area (e.g. only domains, only API)?3302. **Run phases incrementally** — show findings after each phase, ask before continuing.3313. **Write files after each phase** — don't batch all writing to the end.3324. **Ask before creating each file** with numbered options:333 ```334 > 1. Create — {filename}335 > 2. Skip336 ```3375. **Update existing files** if re-running analysis — don't create duplicates.338339340## Output format3413421. Structured analysis document in agents/evidence/analysis/3432. Tech stack inventory with versions and dependencies3443. Architecture diagram or module map345346## Gotcha347348- Full project analysis can take several minutes — warn the user about the time investment.349- Don't analyze parts of the codebase that the user hasn't asked about — respect scope.350- Analysis documents go in `agents/evidence/analysis/`, not in `.augment/`.351352## Do NOT353354- Do NOT create analysis files without asking — always confirm each creation.355- Do NOT modify existing code — this is analysis only.356- Do NOT commit or push.357- Do NOT overwhelm the user — present findings incrementally, one phase at a time.358- Do NOT analyze third-party code in `vendor/` or `node_modules/`.359- Do NOT duplicate content that already exists in `agents/reference/docs/` or `agents/settings/contexts/` —360 reference it instead. Analysis files complement existing docs, they don't replace them.