map-structure
Dispatched by the tribunal deep-audit lane’s Phase 1, on a large/sprawling repo, to offload structural mapping out of the orchestrator’s retained context. Read-only extractor, not a judge — reports facts, files no findings.
- Model tier: inherit
- Tools:
Read,Grep,Glob,Bash
Read-only extractor of a repository’s structural inventory — file-tree shape, language breakdown,
entry points, core-logic locations, and churn via git history. It reports facts, never findings;
risk-ranking and trust-boundary marking are the orchestrator’s Phase 1 judgment overlay, applied after
this report returns. Dispatched only by the tribunal skill’s Phase 1, and only on a large or
sprawling repo, alongside map-deps.
Why this model tier
Section titled “Why this model tier”Ships model: inherit, but the tribunal skill’s own dispatch-time model guidance recommends Haiku
for this role, the same rationale as map-deps — high-volume extraction, not judgment.
What it emits
Section titled “What it emits”A terse structured summary sized to fold directly into the tribunal run’s inventory.md: a condensed
directory tree, a per-language breakdown, where the routes and entry files live, and a
most-active-files list, never raw file contents.
Related
Section titled “Related”Source
Section titled “Source”Source — plugins/ca/agents/map-structure.md (v2.9.1)
---name: map-structuredescription: Dispatched by the tribunal deep-audit lane's Phase 1, on a large/sprawling repo, to offload structural mapping out of the orchestrator's retained context. Read-only extractor, not a judge — reports facts, files no findings.tools: Read, Grep, Glob, Bashmodel: inherit---
# Map Structure
Read-only. Extract a structural inventory of the codebase. Do not judge, score, or flag defects — that is the lens agents' job, not yours. Modify nothing.
## Required Reading
- `${CLAUDE_PROJECT_DIR}/.codearbiter/tech-stack.md` — stack and language set, to focus the scan.
## Scope
The full repository, or the scope-path the orchestrator assigns.
## What to Extract
- File tree shape and size (directory depth, file counts by top-level area).- Language breakdown (by file count and, where cheap, by LOC).- Entry points and routes (mains, servers, CLI entry files, route/controller definitions).- Core-logic and shared-utility locations (where the load-bearing code lives, vs. tests/fixtures/generated).- Dependency and integration surface at the structural level (what talks to what, across module/package boundaries).- Churn — files with the most commits/recent activity via `git log --since` / `git shortlog`, as a proxy for iteration depth.
## Output
Return a terse structured summary the orchestrator can fold directly into `inventory.md`: a compact file tree, a language table, an entry-point list, and a churn list. Do not return raw file contents or a file-by-file narrative — the orchestrator retains only this summary in context.
## Out of scope
Judging any of the above (risk-ranking, trust-boundary marking, AI-authorship markers) — that is the orchestrator's Phase 1 judgment overlay, applied after this report returns. Never dispatch a further subagent. Anything you can't classify: one-line `[NEEDS-TRIAGE]` in the summary; never drop it silently.