@cleocode/cleo 2026.3.33 → 2026.3.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +8304 -7096
- package/dist/cli/index.js.map +4 -4
- package/dist/mcp/index.js +7518 -6326
- package/dist/mcp/index.js.map +4 -4
- package/package.json +1 -1
- package/packages/ct-skills/skills/ct-codebase-mapper/SKILL.md +82 -0
- package/packages/ct-skills/skills.json +16 -0
package/package.json
CHANGED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ct-codebase-mapper
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
description: Codebase analysis and mapping for autonomous agent understanding. Builds structured maps of project stack, architecture, conventions, testing, integrations, and concerns.
|
|
5
|
+
category: recommended
|
|
6
|
+
tier: 1
|
|
7
|
+
protocol: null
|
|
8
|
+
dependencies: []
|
|
9
|
+
compatibility:
|
|
10
|
+
- claude-code
|
|
11
|
+
- cursor
|
|
12
|
+
- windsurf
|
|
13
|
+
- gemini-cli
|
|
14
|
+
triggers:
|
|
15
|
+
- codebase map
|
|
16
|
+
- analyze codebase
|
|
17
|
+
- understand project
|
|
18
|
+
- brownfield analysis
|
|
19
|
+
- project structure
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
# Codebase Mapper
|
|
23
|
+
|
|
24
|
+
Structured codebase analysis for autonomous agent understanding.
|
|
25
|
+
|
|
26
|
+
## Quick Start
|
|
27
|
+
|
|
28
|
+
| Goal | Command | Cost |
|
|
29
|
+
|------|---------|------|
|
|
30
|
+
| Quick analysis | `query admin map` | ~500 tokens |
|
|
31
|
+
| Deep analysis + store | `mutate admin map` | ~800 tokens |
|
|
32
|
+
| Focus on one area | `query admin map {focus: "concerns"}` | ~300 tokens |
|
|
33
|
+
| CLI | `cleo map` / `cleo map --store` | — |
|
|
34
|
+
|
|
35
|
+
## Progressive Disclosure
|
|
36
|
+
|
|
37
|
+
### Tier 0: Quick Analysis
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
query admin map
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Returns structured `CodebaseMapResult` with stack, architecture, structure, conventions, testing, integrations, and concerns.
|
|
44
|
+
|
|
45
|
+
### Tier 1: Store to Brain
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
mutate admin map
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Same analysis, but stores patterns, learnings, and observations to brain.db. Tagged with `source: 'codebase-map'` for filtering.
|
|
52
|
+
|
|
53
|
+
### Tier 2: Focused Analysis
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
query admin map {focus: "concerns"}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Focus areas: `stack`, `architecture`, `structure`, `conventions`, `testing`, `integrations`, `concerns`.
|
|
60
|
+
|
|
61
|
+
## When to Use
|
|
62
|
+
|
|
63
|
+
- **New project onboarding**: Run `mutate admin map` to build brain.db context
|
|
64
|
+
- **Brownfield init**: `cleo init --map-codebase` runs analysis during initialization
|
|
65
|
+
- **Before epic planning**: Understand project structure before decomposing work
|
|
66
|
+
- **Tech debt assessment**: `query admin map {focus: "concerns"}` for TODOs and large files
|
|
67
|
+
|
|
68
|
+
## Output Structure
|
|
69
|
+
|
|
70
|
+
```typescript
|
|
71
|
+
{
|
|
72
|
+
projectContext: ProjectContext, // From detectProjectType()
|
|
73
|
+
stack: StackAnalysis, // Languages, frameworks, deps
|
|
74
|
+
architecture: ArchAnalysis, // Layers, entry points, patterns
|
|
75
|
+
structure: StructureAnalysis, // Directory tree with annotations
|
|
76
|
+
conventions: ConventionAnalysis,// Naming, linting, formatting
|
|
77
|
+
testing: TestingAnalysis, // Framework, patterns, coverage
|
|
78
|
+
integrations: IntegrationAnalysis, // APIs, DBs, CI/CD
|
|
79
|
+
concerns: ConcernAnalysis, // TODOs, large files, complexity
|
|
80
|
+
analyzedAt: string
|
|
81
|
+
}
|
|
82
|
+
```
|
|
@@ -242,6 +242,22 @@
|
|
|
242
242
|
"license": "MIT",
|
|
243
243
|
"metadata": {}
|
|
244
244
|
},
|
|
245
|
+
{
|
|
246
|
+
"name": "ct-codebase-mapper",
|
|
247
|
+
"description": "Codebase analysis and mapping for autonomous agent understanding. Builds structured maps of project stack, architecture, conventions, testing, integrations, and concerns.",
|
|
248
|
+
"version": "1.0.0",
|
|
249
|
+
"path": "skills/ct-codebase-mapper/SKILL.md",
|
|
250
|
+
"references": [],
|
|
251
|
+
"core": false,
|
|
252
|
+
"category": "recommended",
|
|
253
|
+
"tier": 1,
|
|
254
|
+
"protocol": null,
|
|
255
|
+
"dependencies": [],
|
|
256
|
+
"sharedResources": [],
|
|
257
|
+
"compatibility": ["claude-code", "cursor", "windsurf", "gemini-cli"],
|
|
258
|
+
"license": "MIT",
|
|
259
|
+
"metadata": {}
|
|
260
|
+
},
|
|
245
261
|
{
|
|
246
262
|
"name": "loom",
|
|
247
263
|
"description": "LOOM (Logical Order of Operations Methodology) - the systematic framework for how CLEO processes project threads through the RCASD-IVTR+C pipeline. LOOM encompasses the full lifecycle methodology that transforms raw ideas into delivered artifacts, from Research through Release with the Contribution protocol (+C) running across all stages. References docs/concepts/CLEO-VISION.md for the complete LOOM framework, neural hierarchy model, and brain metaphor mapping.",
|