Install
openclaw skills install code-doc-guidCodebase navigation and documentation assistant. Helps AI locate code definitions, understand dependencies, and maintain documentation consistency. BLOCKING...
openclaw skills install code-doc-guidThis skill provides a Codebase Knowledge Graph to help you navigate complex projects without reading thousands of files. It uses a local SQLite database to store file relationships, dependency layers, and symbol definitions.
STOP! READ THIS BEFORE PROCEEDING.
You MUST invoke this skill (code-doc-guid) as a BLOCKING STEP before performing any of the following actions. Failure to do so is a violation of protocol.
Trigger: You are about to:
Write, SearchReplace).RunCommand: mv/ren).DeleteFile).Action: You MUST run python ... codebase_manager.py inspect/search FIRST.
Reason: You cannot safely modify code without knowing who depends on it. "Guessing" is strictly prohibited.
Trigger: You have just finished a set of file modifications.
Action: You MUST run python ... codebase_manager.py update.
Reason: The knowledge graph must remain consistent with the disk state for the next turn.
All commands are run via python scripts/codebase_manager.py <command> [args].
(Note: If running manually, adjust the path to where you saved the script)
search - Find Symbols & ConceptsUse this to locate code by name or intent (docstring).
search <query>search "UserAuth"inspect - Analyze Dependencies & RiskUse this to understand the impact of a change.
inspect <filename_fragment>inspect "auth_service"risk_score: HIGH / MEDIUM / LOW.doc_file: Path to the detailed report (e.g., .trae/codeguiddoc.md).doc_file). It contains a Mermaid Graph and full dependency list.update - Refresh IndexUse this after ANY file modification.
updategraph - Export Visuals (Optional)Use this only when the user explicitly asks for an architecture overview.
graph.trae/architecture_layers.md (Human readable) and .trae/dependency_graph.json (Machine readable).To save tokens and time:
search -> Read(limit=20, offset=N).inspect to see the exact relationship graph.