Update cartography prompt - #88
Merged
Merged
Conversation
Contributor
Greptile OverviewGreptile SummaryThis PR updates the cartography skill documentation and generates comprehensive repository documentation (codemaps) for the entire codebase. The changes include:
The generated codemaps provide detailed architectural documentation covering agents, background task management, CLI installer, configuration system, hooks, MCP connectors, tools (AST-grep, ripgrep, LSP, quota), and utilities. Each codemap follows a consistent structure with Responsibility, Design, Flow, and Integration sections. Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant Orchestrator
participant CartographySkill
participant CartographerScript
participant Explorer
participant FileSystem
User->>Orchestrator: Request to map repository
Orchestrator->>CartographySkill: Activate cartography skill
CartographySkill->>FileSystem: Check for .slim/cartography.json
alt State file exists
CartographySkill->>CartographerScript: Run changes command
CartographerScript->>FileSystem: Read .slim/cartography.json
CartographerScript->>FileSystem: Compute current file hashes
CartographerScript-->>CartographySkill: Return changed files/folders
CartographySkill->>Explorer: Spawn explorers for affected folders
else State file does not exist
CartographySkill->>FileSystem: Analyze repository structure
CartographySkill->>CartographerScript: Run init command with patterns
CartographerScript->>FileSystem: Create .slim/cartography.json
CartographerScript->>FileSystem: Create empty codemap.md files
CartographerScript-->>CartographySkill: Initialization complete
CartographySkill->>Explorer: Spawn explorers for all folders
end
loop For each folder
Explorer->>FileSystem: Read source files
Explorer->>FileSystem: Write codemap.md with architecture details
Explorer-->>CartographySkill: Folder documentation complete
end
CartographySkill->>CartographerScript: Run update command
CartographerScript->>FileSystem: Update .slim/cartography.json hashes
CartographerScript-->>CartographySkill: State saved
CartographySkill->>Orchestrator: Create root codemap.md
Orchestrator->>FileSystem: Write repository atlas
Orchestrator-->>User: Repository mapping complete
|
| "metadata": { | ||
| "version": "1.0.0", | ||
| "last_run": "2026-01-25T21:23:31.047804Z", | ||
| "root": "/Users/xp/repos/oh-my-opencode-slim", |
Contributor
There was a problem hiding this comment.
Hardcoded absolute path /Users/xp/repos/oh-my-opencode-slim should use a relative path or be removed. This path is specific to the developer's machine and will break for other users.
Suggested change
| "root": "/Users/xp/repos/oh-my-opencode-slim", | |
| "root": "./", |
Prompt To Fix With AI
This is a comment left during a code review.
Path: .slim/cartography.json
Line: 5:5
Comment:
Hardcoded absolute path `/Users/xp/repos/oh-my-opencode-slim` should use a relative path or be removed. This path is specific to the developer's machine and will break for other users.
```suggestion
"root": "./",
```
How can I resolve this? If you propose a fix, please make it concise.
nghyane
pushed a commit
to nghyane/oh-my-opencode-slim
that referenced
this pull request
Jan 31, 2026
mhenke
pushed a commit
to mhenke/oh-my-opencode-slim
that referenced
this pull request
Jul 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes