cartographer-team
Skill2 starsChanged 7 months agoMITView on GitHub
Multi-agent wrapper around the conditional cartographer plugin (native map fallback, never an abort) producing CODEBASE_MAP.md under the tier-3 map-convergence gate -- 3 codebase-map-reviewer agents via ct6-converge, labelled CODEBASE MAP COMPLETE. Output path caller-configurable (Phase 0b frontend-read-only).
In this repository64 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-exploreSkill
- openspec-proposeSkill
- api-design-from-frontendSkill
- architect-team-pipelineSkill
- bug-fix-pipelineSkill
- claude-design-importSkill
- claude-md-efficiencySkill
- closeoutSkill
- common-pipeline-conventionsSkill
- contract-first-parallelismSkill
- coverage-mappingSkill
- ct6-agent-coreSkill
- data-annotationsSkill
- data-dictionarySkill
- data-engineering-explorationSkill
- data-eng-pipelineSkill
- data-lineage-mappingSkill
- delivery-manifestSkill
- design-fidelity-mappingSkill
- dev-api-integration-testingSkill
- diagnostic-research-teamSkill
- documentation-currencySkill
- domain-research-teamSkill
- dynamic-value-discoverySkill
- editability-completenessSkill
- email-testingSkill
- endpoint-trace-mappingSkill
- expensive-verification-debuggingSkill
- frontend-route-mappingSkill
- helpdeskSkill
- intake-and-mappingSkill
- interaction-completenessSkill
- interaction-intuitionSkill
- interactive-mockup-discoverySkill
- intuition-map-lifecycleSkill
- mcp-output-contract-designSkill
- mempalace-integrationSkill
- mini-architect-team-pipelineSkill
- page-publishingSkill
- phenotype-absorptionSkill
- phenotypesSkill
- playwright-suite-builderSkill
- playwright-user-flowsSkill
- project-homepageSkill
- project-principlesSkill
- proposal-refinerSkill
- readme-stylingSkill
- reuse-first-designSkill
- root-cause-test-failuresSkill
- structure-optimizationSkill
- team-spawning-and-review-gatesSkill
- test-prod-safety-classifierSkill
- test-run-monitorSkill
- token-compressionSkill
- ux-test-builderSkill
- verification-planningSkill
- verified-agent-outputSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 3 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 38
When freshness_check: true, the skill first reads the existing map's last_mapped frontmatter and compares against git log -1 --format=%cI …
- Very specific: line 42
If freshness_check: true AND a map already exists at output_path:
- Very specific: line 44
Read the map's last_mapped frontmatter.
- Very specific: line 45
Run git -C <codebase_path> log -1 --format=%cI to get the latest commit timestamp.
- Very specific: line 46
If last_mapped >= latest-commit AND intake-state.json::map_invalidated does NOT include this codebase_path → return the existing map (a …
- Very specific: line 56
When frontend_read_only: true, after the cartographer plugin returns:
- Very specific: line 61
When the classification is frontend or fullstack AND produce_route_map: true, additionally dispatch the existing route-mapper agent (and …
- Very specific: line 104
When frontend_read_only: false, mine the final CODEBASE_MAP.md (and ROUTE_MAP.md / DESIGN_MAP.md when produced) to MemPalace per …
- Very specific: line 110
When frontend_read_only: true, SKIP the MemPalace mining — the reference maps are run-scoped, not project-history.
- Very specific: line 131
NO file under codebase_path may be created, modified, or deleted (except for the temporary cartographer-plugin output that the orchestrator …
- Very specific: line 132
ALL final analysis output (CODEBASE_MAP.md / ROUTE_MAP.md / DESIGN_MAP.md if applicable) lands at the caller-configured paths, which the …
- Distinctive: line 147
Not a code generator. It produces structural maps, not code.
- Distinctive: line 148
Not the cartographer plugin itself.
- Distinctive: line 149
Not a fix loop. A deficiency the reviewers cannot close because an input only the owner holds is missing becomes a caller-side escalation …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cartographer Team
You are the Cartographer Team orchestrator. Drive one cartographer-plugin run (or the native map when the conditional plugin is absent) + the tier-3 map-convergence gate — 3× codebase-map-reviewer agents in parallel — aggregate their deficiencies, re-trigger targeted updates, and loop until the recorded convergence says all 3 reviewers returned ok. Caller-configurable output path.
When this skill runs
Three callers as of v3.4.0:
intake-and-mappingstep B — produces<codebase>/docs/CODEBASE_MAP.mdper codebase in scope. The block that was inline (cartographer + 3 reviewers + targeted re-trigger) now delegates to this skill.architect-team-pipelinePhase 0b (greenfield + frontend reference branch) — produces a referenceCODEBASE_MAP.md(+ROUTE_MAP.mdfor frontends) at<workspace>/.architect-team/frontend-reference/<codebase-slug>/withfrontend_read_only: true. The frontend codebase is read as evidence; no file under the frontend codebase is modified.bug-fix-pipelinePhase B−1 — same as caller (1); the bug-fix pipeline reusesintake-and-mappingverbatim.
Inputs
The caller passes a structured inputs object:
{
"codebase_path": "<absolute-path>",
"classification": "frontend" | "backend" | "fullstack" | "library" | "infra" | "data-pipeline",
"output_path": "<absolute-path-to-CODEBASE_MAP.md>",
"produce_route_map": true | false,
"route_map_output_path": "<absolute-path-or-null>",
"frontend_read_only": true | false,
"freshness_check": true | false,
"completion_promise": "CODEBASE MAP COMPLETE"
}When freshness_check: true, the skill first reads the existing map's last_mapped frontmatter and compares against git log -1 --format=%cI of the codebase root. If the map is newer AND no map_invalidated flag is set in intake-state.json, the skill short-circuits and returns the existing map verbatim.
Phase C1 — Freshness pre-check (when requested)
If freshness_check: true AND a map already exists at output_path:
- Read the map's
last_mappedfrontmatter. - Run
git -C <codebase_path> log -1 --format=%cIto get the latest commit timestamp. - If
last_mapped >= latest-commitANDintake-state.json::map_invalidateddoes NOT include thiscodebase_path→ return the existing map (a freshness short-circuit: no convergence gate is declared, and the verdict recordsfreshness_short_circuited: true); exit.
Else proceed to C2.
Phase C2 — Run cartographer
Trigger the external cartographer plugin's own flow against codebase_path (per intake-and-mapping/SKILL.md step 2). The plugin produces a draft CODEBASE_MAP.md at the codebase's standard location.
When the plugin is absent (CONDITIONAL since v4.0.0 — CONDITIONAL_PLUGINS in scripts/setup/setup.py, never gating): the orchestrator does not abort. It reports the gap with the install remediation, produces the draft map natively per the codebase-mapping section of skills/common-pipeline-conventions/references/native-methodology.md — the house shape from a read of the tree, frontmatter source: native — and C3 reviews it exactly as it reviews a plugin-produced map. The source: native field keeps the record honest about where the map came from.
When frontend_read_only: true, after the cartographer plugin returns:
- Move the produced
CODEBASE_MAP.mdfrom<codebase>/docs/CODEBASE_MAP.mdto the caller-configuredoutput_path(which will be under<workspace>/.architect-team/frontend-reference/<codebase-slug>/). - Delete the temporary file at
<codebase>/docs/CODEBASE_MAP.mdso the frontend codebase's working tree is left untouched.
When the classification is frontend or fullstack AND produce_route_map: true, additionally dispatch the existing route-mapper agent (and the existing design-fidelity-mapping skill when design inputs are present) to produce ROUTE_MAP.md at the caller-configured route_map_output_path. Same read-only treatment applies in frontend_read_only mode.
Phase C3 — 3-reviewer convergence (tier 3: declare → ct6-converge workflow → record)
Map convergence is a tier-3 gate (skills/team-spawning-and-review-gates/references/review-tiers.md): three independent reviewers, run as the ct6-converge workflow with completion promise "CODEBASE MAP COMPLETE" (the codebase-map preset) under the declare → run → record protocol of skills/common-pipeline-conventions/references/converge-workflows.md:
python "${CLAUDE_PLUGIN_ROOT}/scripts/converge/record.py" declare --workspace <ws> --kind codebase-map --promise "CODEBASE MAP COMPLETE" --reviewers 3
# Workflow({ name: "ct6-converge", args: { kind: "codebase-map", promise: "CODEBASE MAP COMPLETE", reviewers: 3, reviewerAgent: "architect-team:codebase-map-reviewer", fixerAgent: "architect-team:route-mapper", artifacts: ["<output_path>", "<route_map_output_path>"] } })
python "${CLAUDE_PLUGIN_ROOT}/scripts/converge/record.py" record --workspace <ws> --kind codebase-map --result '<the workflow JSON>'The promise is the declared gate's label; the record — converged: true with all 3 reviewers ok in the final round — is what satisfies it. No iteration cap (per common-pipeline-conventions ## Unbounded solving discipline); a human-set maxRounds pauses the gate, it never passes it. Inside the workflow each round is:
- The orchestrator dispatches 3
codebase-map-revieweragents in parallel via a single Agent-tool batch (subagents mode) OR creates 3 reviewer tasks in the shared list (teams mode). Each reviewer receives:- The current
CODEBASE_MAP.md(andROUTE_MAP.mdwhen applicable) fromoutput_path - The
codebase_pathfor cross-checking against the actual code - The
classification
- The current
Each reviewer returns:
{ "reviewer_id": "<N>", "status": "ok" | "deficient", "deficiencies": [ { "kind": "missing-module" | "missing-route" | "missing-api-entry" | "stale-entry" | "incorrect-classification", "evidence": "<file:line | route definition | etc.>", "remediation_hint": "<one-line suggestion for the cartographer>" } ] }- All 3 ok → the workflow returns
converged: true; the orchestrator records it (record.py record), which satisfies the declared gate labelledCODEBASE MAP COMPLETE. Nothing exits on a typed string. - Any deficient → aggregate the deficiencies; re-trigger the cartographer plugin in update mode (or
route-mapperfor route-specific deficiencies) naming the deficient sections; loop.
The frontend_read_only flag continues to apply during every iteration — re-triggered cartographer runs MUST output to the alternate path, and any auto-generated file in <codebase>/docs/ MUST be moved + deleted.
Phase C4 — Mine to MemPalace (when not in read-only mode)
When frontend_read_only: false, mine the final CODEBASE_MAP.md (and ROUTE_MAP.md / DESIGN_MAP.md when produced) to MemPalace per mempalace-integration:
mempalace --palace <palace> mine "<output_path>" --wing <wing>When frontend_read_only: true, SKIP the MemPalace mining — the reference maps are run-scoped, not project-history. The orchestrator can choose to mine them under a dedicated reference wing if it wants cross-run persistence, but the default is don't-mine.
Phase C5 — Return verdict
Return to the caller:
{
"codebase_path": "<...>",
"output_path": "<CODEBASE_MAP.md path>",
"route_map_output_path": "<ROUTE_MAP.md path or null>",
"freshness_short_circuited": true | false,
"reviewer_iterations": N,
"final_status": "complete"
}Frontend-read-only enforcement (hard rule)
When frontend_read_only: true:
- NO file under
codebase_pathmay be created, modified, or deleted (except for the temporary cartographer-plugin output that the orchestrator moves + cleans). - ALL final analysis output (CODEBASE_MAP.md / ROUTE_MAP.md / DESIGN_MAP.md if applicable) lands at the caller-configured paths, which the caller is responsible for setting to a location outside the frontend codebase.
- The v3.0.0 PreToolUse guardrail's
.architect-team/allow-prefix already covers the canonical alternate paths under.architect-team/frontend-reference/. The skill body cannot bypass that guardrail; the orchestrator at every dispatch is also responsible.
A violation (write inside the frontend codebase during frontend_read_only: true mode) is a verdict-failure condition the caller should treat as a pipeline-bypassed-needs-rerun SR.
Disciplines this skill respects
- v3.0.0 unilateral-override — the cartographer cannot decide to skip the 3-reviewer convergence.
- v1.6.0 teammate-git-discipline — no destructive git ops; teammates use
git diff <BASELINE_SHA>for verification only. - v0.9.19 3-reviewer convergence, tiered in v4.0.0 — map convergence stays tier 3 (three reviewers) and runs as declare →
ct6-convergeworkflow → record (skills/common-pipeline-conventions/references/converge-workflows.md). - v4.0.0 conditional plugins — an absent
cartographeris reported and remediated, never an abort; the native map stands in and says so (source: native). - v3.3.0 test-run monitor — N/A (this is an analysis skill, not a test runner).
What this skill is NOT
- Not a code generator. It produces structural maps, not code.
- Not the cartographer plugin itself. It WRAPS the external cartographer plugin call — or, when that conditional plugin is absent, the native map — with CT6's tier-3 audit pattern.
- Not a fix loop. A deficiency the reviewers cannot close because an input only the owner holds is missing becomes a caller-side escalation naming that input (never an iteration count); this skill does not file SRs itself.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

