describe-designResearch 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.
Install via ClawdBot CLI:
clawdbot install ziad-hsn/describe-designResearch 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:
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):
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:
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.
You're ready to draft when you can:
completion without gaps.
Signs you're not done:
Signs you've gone too far:
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.
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.
The following template provides a starting point. Adapt it to fit the feature being
documented — omit sections that don't apply, add sections for unique aspects, and
adjust the structure to best serve the target audience.
`
# [Feature/System Name] Architecture
## Overview
[1-2 paragraph summary of what this feature/system does and why it exists]
## Architecture Diagrammermaid
flowchart TD
A[Entry Point] --> B[Component]
B --> C[Data Store]
## Components
### [Component Name]
**Purpose**: [What it does]
**Location**: `path/to/file.ext`
**Key Functions**:
- `functionName()` - Brief description
- `anotherFunction()` - Brief description
**Interactions**:
- Receives input from: [Component]
- Sends output to: [Component]
## Data Flow
[Description of how data moves through the system, from input to output]
## Configuration
[How features are enabled, disabled, or configured. Include file paths and
environment variables.]
## Code References
| Component | File | Key Symbols |
|-----------|------|-------------|
| Auth | `src/auth/index.ts` | `authenticate()`, `AuthConfig` |
| Cache | `src/cache/redis.ts` | `CacheManager`, `invalidate()` |
## Glossary
| Term | Definition |
|------|------------|
| [Term] | [Project-specific definition] |`
Use stable references that survive refactoring:
src/auth/login.ts)path/to/file.ext with key symbols listed separatelyhandleAuth function in auth/)Avoid:
the document should be a guide that points readers to the source. Describe what
code does, then reference where to find it.
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.
need implementation details will read the actual source — which is always current.
Generated Mar 1, 2026
A financial services company is migrating a monolithic banking application to microservices. The Describe Design skill can analyze the existing codebase to document the current architecture, identify dependencies, and create a reference for developers to understand how legacy features work before refactoring. This ensures a smooth transition by providing clear documentation of interactions between old and new components.
A tech startup has rapid growth and needs to onboard multiple developers quickly. Using Describe Design, they can generate architectural overviews of key features like user authentication or payment processing, explaining code structure with Mermaid diagrams. This reduces ramp-up time and ensures consistent understanding across the team for efficient collaboration.
A healthcare software provider must document system designs for regulatory audits (e.g., HIPAA). Describe Design can research the codebase to create detailed architecture documents that trace data flows through components handling sensitive patient information. This helps demonstrate security measures and compliance with industry standards.
An open-source community maintains a large codebase with many contributors. Describe Design can be used to periodically update architectural documentation for new features or refactored modules, providing stable code references and diagrams. This keeps the project accessible to external developers and AI agents, fostering collaboration and knowledge transfer.
After a corporate acquisition, a company needs to integrate two disparate software systems. Describe Design can analyze both codebases to create comparative architecture documents, highlighting how features like APIs or databases interact. This aids in planning integration strategies and avoiding conflicts during the merger process.
Offer Describe Design as a cloud-based service where companies upload codebases to automatically generate architectural documentation. Charge subscription fees based on usage volume or number of projects. This model appeals to businesses needing regular updates without in-house expertise, providing recurring revenue through scalable automation.
Provide consulting services to help organizations implement Describe Design for specific projects, such as legacy system audits or compliance documentation. Offer training workshops on using the skill effectively. Revenue comes from one-time project fees and ongoing support contracts, leveraging expertise in code analysis and documentation best practices.
License Describe Design to large enterprises for internal use across multiple teams, such as in finance or healthcare sectors. Include customization options for industry-specific needs and integration with existing tools. Revenue is generated through annual licensing fees and premium support packages, ensuring long-term partnerships with high-value clients.
💬 Integration Tip
Integrate Describe Design into CI/CD pipelines to automatically update documentation with code changes, ensuring it stays current and reduces manual effort.
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
Provides a 7-step debugging protocol plus language-specific commands to systematically identify, verify, and fix software bugs across multiple environments.
A comprehensive skill for using the Cursor CLI agent for various software engineering tasks (updated for 2026 features, includes tmux automation guide).
Write, run, and manage unit, integration, and E2E tests across TypeScript, Python, and Swift using recommended frameworks.
Control and operate Opencode via slash commands. Use this skill to manage sessions, select models, switch agents (plan/build), and coordinate coding through Opencode.
Coding style memory that adapts to your preferences, conventions, and patterns for consistent coding.