ct-adr-recorder
Records Architecture Decision Records from accepted consensus verdicts. Use when promoting a consensus outcome to a formal ADR:…
Orient in an unfamiliar or large codebase with CLEO's code-intelligence graph (cleo nexus) and project map (cleo map). Use before planning or editing unfamiliar code, for brownfield onboarding, to find what a change would break, or to map a project's structure, communities and
$ npx -y skills add kryptobaseddev/cleo --skill ct-codebase-mapper --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/ct-codebase-mapperContext preview
The summary Claude sees to decide when to auto-load this skill.
Orient in an unfamiliar or large codebase with CLEO's code-intelligence graph (cleo nexus) and project map (cleo map). Use before planning or editing unfamiliar code, for brownfield onboarding, to find what a change would break, or to map a project's structure, communities and
name: ct-codebase-mapper
version: 2.3.5
description: Orient in an unfamiliar or large codebase with CLEO's code-intelligence graph (cleo nexus) and project map (cleo map). Use before planning or editing unfamiliar code, for brownfield onboarding, to find what a change would break, or to map a project's structure, communities and execution flows. Triggers on "map the codebase", "understand this project", "what calls X", "what would break", "brownfield analysis", "project structure".
protocol: null
dependencies: []
compatibility:
- claude-code
- cursor
- windsurf
- gemini-cli
triggers:
- codebase map
- analyze codebase
- understand project
- brownfield analysis
- project structure
- blast radius
metadata:
version: 2.3.5
tier: on-demand
install: harness
covers:
- packages/cleo/src/cli/commands/nexus.ts
- packages/cleo/src/cli/commands/map.ts
lastReviewed: 2026-10-24
stability: stableTwo instruments, used together:
communities and execution flows, parsed from source. Use it for any question about how code connects.
conventions, testing, integrations and concerns. Use it for the one-page overview, and `--store` to keep the findings in BRAIN.
cleo nexus status
Read `nodeCount`, `lastIndexedAt` and `staleFileCount` against `fileCount`, and `freshness.commitsBehind` (commits on `freshness.baseRef` the index has not seen) with `freshness.ageDays`. Queries refresh a stale index inline when the last run's cost, scaled to the repository and the stale set, fits `nexus.autoRefresh.budgetMs`; otherwise they warn `W_NEXUS_INDEX_STALE`. `freshness.changedFilesSinceIndex` is a quick git-diff count of tracked files changed since the indexed revision. Refresh with `cleo nexus analyze` (incremental; `--full` rebuilds). An empty or stale index gives confident-looking but incomplete answers — say which you relied on.
`registry` counts the registered projects by recorded health. When `registry.unreachable` is above zero, `registry.cleanCommand` is the dry run (`cleo nexus projects clean --orphans --dry-run`) that shows which rows are really gone; report it, and leave removal to the owner. `registry.otherHost` counts rows whose project lives on another machine sharing the store (a live location on another device); `projects clean` never removes those and lists them under `otherHost`. A legacy row with no location record is judged only by its path root, so a same-username path from another machine stays removable: read the dry run before removing.
`assessment.referenceCount` is how many static references the graph could not resolve, so known callers are incomplete. Inspect them a page at a time:
cleo nexus status --references # per-kind counts + first 20 cleo nexus status --references --reference-kind unresolved --references-limit 500 cleo nexus status --references --references-offset <referencesPage.nextOffset>
`referencesByKind` counts the whole list; `referencesPage` holds one page (max 5000). The full list is never returned in one call; it is named in `_withheld.references` with its size.
Project-scoped queries use the declared portable project id. `--project-id` may name that id or a recorded, unambiguous legacy alias; an alias warns `W_NEXUS_LEGACY_PROJECT_ID`. A foreign or colliding id is refused: run the query from the intended checkout. Moving a checkout retains its id and graph; never derive a replacement id from the new path or re-analyze solely for a move.
cleo map # full survey
cleo map --focus concerns # one area: stack | architecture | structure |
# conventions | testing | integrations | concerns
cleo map --store # same survey, findings stored to BRAIN
# (tagged source: 'codebase-map')
cleo map --brief # one line per folder of exported names (nexus graph,
# else git-tracked walk), --budget N chars (default 2000)cleo nexus clusters # detected communities (modules that change together) cleo nexus flows # detected execution flows (entry point → callees) cleo nexus search-code "<text>" # locate a symbol by name, file pattern or keyword
cleo nexus impact <symbol> # blast radius: direct, indirect, transitive callers cleo nexus context <symbol> # callers, callees, community, flows cleo nexus full-context <symbol> # plus BRAIN memories, tasks and conduit threads
`HIGH`/`CRITICAL` impact means review the affected callers before editing. `UNKNOWN` means the assessment is incomplete, and `NONE` means nothing was detected in the assessed graph — static analysis cannot prove every runtime caller, so an empty footprint alone never establishes that a change is safe. When a symbol name is ambiguous, pass the qualified candidate the command returns and confirm against the source.
On a stale index, `impact` and `context` refresh it inline when the size-scaled cost estimate fits the budget: one refresh at a time per project, a larger one only when `cleo run` admits it, and none for 30 minutes after one fails or is aborted (`freshness.refreshCooldownUntil`; the next `cleo nexus analyze` ends the pause). An aborted refresh keeps its parse work for the next run. Otherwise they answer from the stale index and say so. `--no-refresh` (or `CLEO_NEXUS_AUTO_REFRESH=false`) always answers from the index as it stands.
Every graph answer carries `data.freshness` (`indexedRevision`, `baseRef`, `commitsBehind` to the base branch, `commitsBehindHead`, `ageDays`). When the index is more than `nexu
Every developer who has ever returned to a project after weeks away and found only ruins knows the wound CLEO was built to heal. The agents are powerful. But power without memory is chaos. Brilliance without continuity is waste.
Records Architecture Decision Records from accepted consensus verdicts. Use when promoting a consensus outcome to a formal ADR:…
Builds and publishes artifacts to registries (npm, PyPI, cargo, docker, GitHub releases, generic tarballs) following the…
CLEO task management protocol - session, task, and workflow guidance. Use when managing tasks, sessions, or multi-agent workflows…
Runs structured multi-agent voting for decision tasks with confidence scores, conflict detection, and HITL escalation when the…
Guided workflow for multi-agent consensus contributions. Use when user says "/contribution", "contribution protocol", "submit…
Convene "The Council" — a 5-advisor, shuffled gate-based peer-review, chairman-synthesis workflow for reviewing a plan, decision,…