architecture-research
Research the architecture of a codebase or system. Reads source code, finds external context, explains design decisions, and produces ELK diagrams. Use when asked to understand, explain, or diagram how a repo/system is built.
Why use this skill?
Automate codebase analysis and architecture documentation with the OpenClaw architecture-research skill. Generate diagrams and design insights effortlessly.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/brennerspear/architecture-researchWhat This Skill Does
The architecture-research skill is a sophisticated analysis tool designed for OpenClaw agents to deep-dive into complex software projects. Unlike simple code search utilities, this skill enforces a structured research methodology: reading source code to understand implementation, cross-referencing external documentation for context, and synthesizing findings into visual architecture diagrams. It effectively translates abstract codebases into structured documentation, helping users understand why a system was built a certain way, how its components interact, and what design trade-offs were made during its development.
Installation
To integrate this skill into your OpenClaw environment, use the following command in your terminal:
clawhub install openclaw/skills/skills/brennerspear/architecture-research
Ensure that you also have the diagrams skill installed to enable the automated rendering of ELK JSON graphs into SVG assets, as this is a core dependency for the visual output of the research process.
Use Cases
- Onboarding: Rapidly understand a legacy or unfamiliar codebase by generating high-level system maps and data flow diagrams.
- Technical Due Diligence: Evaluate the architectural quality and dependency patterns of a project during a review process.
- Documentation Generation: Create visual aids for internal design docs or architectural decision records (ADRs) when existing documentation is outdated or missing.
- Refactoring Strategy: Identify module boundaries and coupling points before planning major code migrations or updates.
Example Prompts
- "Analyze the repository in the current directory and explain the dependency injection pattern used. Please generate an ELK diagram showing the service layer interactions."
- "Research the architecture of this project. Identify the primary data store, how it handles incoming requests, and document the key design decisions for its API layer."
- "Provide a high-level architectural overview of the
authmodule, including its integration with external services, and create a flowchart showing the authentication sequence."
Tips & Limitations
- Depth over Breadth: Focus on critical paths. If a repo is massive, instruct the agent to focus on specific sub-directories to maintain clarity in the generated diagrams.
- Verifiable Rationale: Always check for linked ADRs. If the agent infers a design decision, confirm it against actual commits or commit messages when possible.
- Diagram Complexity: ELK diagrams can become cluttered if too many nodes are added. Break complex systems down into multiple diagrams (e.g., 'Core Components' vs 'Data Flow') rather than one giant master diagram.
- Context Awareness: Ensure the agent has read access to the relevant directories, as the quality of the research is directly dependent on the breadth of the source files read.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-brennerspear-architecture-research": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write, code-execution
Related Skills
amazon
Buy and return items on Amazon using browser automation. Use for purchasing, reordering, checking order history, and processing returns.
flights
Search flights via Google Flights. Find nonstop/connecting flights, filter by time and cabin class, get booking links. Supports city names (NYC, London, Tokyo) with automatic multi-airport search. No API key required.
gog-safety
Build and deploy safety-profiled gogcli binaries with compile-time command removal. Use when setting up gog for an AI agent with restricted permissions — choosing between L1 (draft only), L2 (collaborate), or L3 (standard write). Covers building from PR
dev-serve
Start and manage tmux-backed dev servers exposed through Caddy at wildcard subdomains.
commit
Create a git commit with a contextual message based on current changes, then push the branch.