Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Research a codebase and create architectural documentation describing how features or systems work. Use when the user asks to: (1) Document how a feature works, (2) Create an architecture overview, (3) Explain code structure for onboarding or knowledge transfer, (4) Research and describe a system's design. Produces markdown documents with Mermaid diagrams and stable code references suitable for humans and AI agents.
Research a codebase and create architectural documentation describing how features or systems work. Use when the user asks to: (1) Document how a feature works, (2) Create an architecture overview, (3) Explain code structure for onboarding or knowledge transfer, (4) Research and describe a system's design. Produces markdown documents with Mermaid diagrams and stable code references suitable for humans and AI agents.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
Research a codebase and produce an architectural document describing how features or systems work. The output is a markdown file organized for both human readers and future AI agents.
Understand what to document before exploring: Ask what feature, system, or component to document. Clarify the target audience (developers, AI agents, or both). Confirm the codebase location if not obvious from context.
Explore the codebase broadly to build a mental model. Use lightweight, fast exploration methods when available (in Claude Code, for example, use a Haiku Explore subagent): Scan directory structure and identify key entry points. Read README, config files, and existing documentation. Identify the main files and modules related to the feature. Build a mental model of codebase organization. Present a high-level outline to the user: ## Proposed Outline 1. [Component A] - Brief description 2. [Component B] - Brief description 3. [Component C] - Brief description * Have I correctly captured the scope of the research? Reply "yes" to continue. * Otherwise, please let me know what I've misunderstood. When the user confirms the scope, move on to deep research.
For each component in the approved outline: Trace code paths from entry points. Identify dependencies and interactions between components. Note configuration options and where they're defined. Find where data is stored or persisted. Build a code reference index (file paths + key function/class names). Try to rely on the initial code exploration for much of this information. Read additional files as needed. If the scope changed considerably in Stage 2, you can engage a second code exploration subagent. When to Stop Exploring You're ready to draft when you can: Trace the happy path โ Follow a typical request/action from entry point to completion without gaps. Name the boundaries โ Clearly state what's in scope and what's external. Draw the diagram โ Sketch the architecture without placeholder boxes. Answer "what talks to what?" โ For each component, you know its inputs and outputs. Signs you're not done: Uncertainty: "I think this connects to..." or "probably calls..." Unresolved references: Found imports/calls to modules you haven't examined. Missing edges: Can't explain how data gets from component A to B. Signs you've gone too far: Reading every file in a directory instead of representative samples. Tracing into external libraries or framework internals. Exploring implementation details that don't affect architecture.
Generate the document following the template below. Present the draft to the user for review and iterate based on feedback. If available, use the AskUserQuestion tool to request user input on key decisions.
Confirm the file location before writing. You may propose a path based on repository conventions (e.g., docs/architecture/, ARCHITECTURE.md), but NEVER write the file without explicit user confirmation of the location. If the user provided a path upfront, that counts as confirmation. Write the final document to the confirmed location.
Use stable references that survive refactoring: Paths: Use relative paths from repository root (src/auth/login.ts) Symbols: Reference function and class names, not line numbers Format: path/to/file.ext with key symbols listed separately Anchors: Use search patterns when helpful (handleAuth function in auth/) Avoid: Copying code: Never paste code into the document. Code goes stale immediately; the document should be a guide that points readers to the source. Describe what code does, then reference where to find it. Line numbers: They change with every edit. Absolute paths: Use repository-relative paths only.
Use Mermaid for architecture visualizations: Flowcharts for component relationships: flowchart TD A[Client] --> B[API Gateway] B --> C[Service] C --> D[(Database)] Sequence diagrams for request flows: sequenceDiagram Client->>API: Request API->>Service: Process Service-->>API: Response API-->>Client: Result Keep diagrams focused on the specific feature being documented. Avoid overcrowding with unrelated components.
Describe, never copy: Explain what code does and where to find it. Readers who need implementation details will read the actual source โ which is always current. Structure for scanning: Use headers, tables, and lists for quick navigation. Be specific: Include actual file paths, function names, and config keys. Serve two audiences: Write clearly for humans; use consistent structure for AI. Stay current: Note any assumptions about code state or version.
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.