codebase-documenterThis skill should be used when writing documentation for codebases, including README files, architecture documentation, code comments, and API documentation. Use this skill when users request help documenting their code, creating getting-started guides, explaining project structure, or making codebases more accessible to new developers. The skill provides templates, best practices, and structured approaches for creating clear, beginner-friendly documentation.
Install via ClawdBot CLI:
clawdbot install Veeramanikandanr48/codebase-documenterThis skill enables creating comprehensive, beginner-friendly documentation for codebases. It provides structured templates and best practices for writing READMEs, architecture guides, code comments, and API documentation that help new users quickly understand and contribute to projects.
When documenting code for new users, follow these fundamental principles:
When to create: For project root directories, major feature modules, or standalone components.
Structure to follow:
# Project Name
## What This Does
[1-2 sentence plain-English explanation]
## Quick Start
[Get users running the project in < 5 minutes]
## Project Structure
[Visual file tree with explanations]
## Key Concepts
[Core concepts users need to understand]
## Common Tasks
[Step-by-step guides for frequent operations]
## Troubleshooting
[Common issues and solutions]
Best practices:
When to create: For projects with multiple modules, complex data flows, or non-obvious design decisions.
Structure to follow:
# Architecture Overview
## System Design
[High-level diagram and explanation]
## Directory Structure
[Detailed breakdown with purpose of each directory]
## Data Flow
[How data moves through the system]
## Key Design Decisions
[Why certain architectural choices were made]
## Module Dependencies
[How different parts interact]
## Extension Points
[Where and how to add new features]
Best practices:
When to create: For complex logic, non-obvious algorithms, or code that requires context.
Annotation patterns:
Function/Method Documentation:
/**
* Calculates the prorated subscription cost for a partial billing period.
*
* Why this exists: Users can subscribe mid-month, so we need to charge
* them only for the days remaining in the current billing cycle.
*
* @param {number} fullPrice - The normal monthly subscription price
* @param {Date} startDate - When the user's subscription begins
* @param {Date} periodEnd - End of the current billing period
* @returns {number} The prorated amount to charge
*
* @example
* // User subscribes on Jan 15, period ends Jan 31
* calculateProratedCost(30, new Date('2024-01-15'), new Date('2024-01-31'))
* // Returns: 16.13 (17 days out of 31 days)
*/
Complex Logic Documentation:
# Why this check exists: The API returns null for deleted users,
# but empty string for users who never set a name. We need to
# distinguish between these cases for the audit log.
if user_name is None:
# User was deleted - log this as a security event
log_deletion_event(user_id)
elif user_name == "":
# User never completed onboarding - safe to skip
continue
Best practices:
When to create: For any HTTP endpoints, SDK methods, or public interfaces.
Structure to follow:
## Endpoint Name
### What It Does
[Plain-English explanation of the endpoint's purpose]
### Endpoint
`POST /api/v1/resource`
### Authentication
[What auth is required and how to provide it]
### Request Format
[JSON schema or example request]
### Response Format
[JSON schema or example response]
### Example Usage
[Concrete example with curl/code]
### Common Errors
[Error codes and what they mean]
### Related Endpoints
[Links to related operations]
Best practices:
Before writing documentation:
Based on user request and codebase analysis:
Use the templates from assets/templates/ as starting points:
assets/templates/README.template.md - For project READMEsassets/templates/ARCHITECTURE.template.md - For architecture docsassets/templates/API.template.md - For API documentationCustomize templates based on the specific codebase:
Before finalizing documentation:
This skill includes several templates in assets/templates/ that provide starting structures:
assets/templates/For detailed documentation best practices, style guidelines, and advanced patterns, refer to:
references/documentation_guidelines.md - Comprehensive style guide and best practicesreferences/visual_aids_guide.md - How to create effective diagrams and file treesLoad these references when:
File trees help new users understand project organization:
project-root/
βββ src/ # Source code
β βββ components/ # Reusable UI components
β βββ pages/ # Page-level components (routing)
β βββ services/ # Business logic and API calls
β βββ utils/ # Helper functions
β βββ types/ # TypeScript type definitions
βββ public/ # Static assets (images, fonts)
βββ tests/ # Test files mirroring src structure
βββ package.json # Dependencies and scripts
Use numbered steps with diagrams:
User Request Flow:
1. User submits form β 2. Validation β 3. API call β 4. Database β 5. Response
[1] components/UserForm.tsx
β validates input
[2] services/validation.ts
β sends to API
[3] services/api.ts
β queries database
[4] Database (PostgreSQL)
β returns data
[5] components/UserForm.tsx (updates UI)
Capture the "why" behind architectural choices:
## Why We Use Redux
**Decision:** State management with Redux instead of Context API
**Context:** Our app has 50+ components that need access to user
authentication state, shopping cart, and UI preferences.
**Reasoning:**
- Context API causes unnecessary re-renders with this many components
- Redux DevTools helps debug complex state changes
- Team has existing Redux expertise
**Trade-offs:**
- More boilerplate code
- Steeper learning curve for new developers
- Worth it for: performance, debugging, team familiarity
When generating documentation:
Command to generate README:
"Create a README file for this project that helps new developers get started"
Command to document architecture:
"Document the architecture of this codebase, explaining how the different modules interact"
Command to add code comments:
"Add explanatory comments to this file that help new developers understand the logic"
Command to document API:
"Create API documentation for all the endpoints in this file"
Generated Mar 1, 2026
A developer wants to contribute to an open source project but finds the codebase confusing. Using this skill, they can create a comprehensive README and architecture guide that explains the project's purpose, structure, and contribution workflow, making it easier for new contributors to get started.
A company is transitioning a legacy codebase to a new team. This skill helps document the architecture, key design decisions, and API endpoints, ensuring the new team understands the system's intricacies and can maintain it effectively without extensive hand-holding.
A SaaS startup needs to provide clear API documentation for external developers. The skill guides creating endpoint descriptions, authentication details, and usage examples, improving developer experience and reducing support requests.
An educational institution wants to create a codebase for teaching programming concepts. Using this skill, they can add detailed code comments, getting-started guides, and visual aids to help students understand complex algorithms and project structure.
Offer basic documentation templates and guides for free, with premium features like AI-assisted comment generation, advanced diagramming, and collaboration tools for teams. Revenue comes from subscription plans for enterprises and large projects.
Provide expert consulting to companies needing to document their codebases, including audits, template creation, and training workshops. Revenue is generated through hourly rates or project-based contracts for documentation overhauls.
Create a marketplace where developers can buy and sell specialized documentation templates for different frameworks and industries. Revenue comes from commissions on sales and featured listings for popular templates.
π¬ Integration Tip
Integrate this skill into existing development workflows by linking it to version control systems, enabling automatic documentation generation from code comments and commit messages.
Use the mcporter CLI to list, configure, auth, and call MCP servers/tools directly (HTTP or stdio), including ad-hoc servers, config edits, and CLI/type generation.
Connect to 100+ APIs (Google Workspace, Microsoft 365, GitHub, Notion, Slack, Airtable, HubSpot, etc.) with managed OAuth. Use this skill when users want to...
Build, debug, and deploy websites using HTML, CSS, JavaScript, and modern frameworks following production best practices.
YouTube Data API integration with managed OAuth. Search videos, manage playlists, access channel data, and interact with comments. Use this skill when users want to interact with YouTube. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).
Scaffold, test, document, and debug REST and GraphQL APIs. Use when the user needs to create API endpoints, write integration tests, generate OpenAPI specs, test with curl, mock APIs, or troubleshoot HTTP issues.
Search for jobs across LinkedIn, Indeed, Glassdoor, ZipRecruiter, Google Jobs, Bayt, Naukri, and BDJobs using the JobSpy MCP server.