container/.claude/skills/codebase-architecture-analysis/SKILL.md
Analyze a GitHub codebase to create comprehensive architecture documentation including ASCII diagrams, component relationships, data flow, hosting infrastructure, and file structure assessment.
npx skillsauth add thomasgauvin/claude-agent-sdk-in-cloudflare-containers codebase-architecture-analysisInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when you need to understand the high-level architecture and structure of a codebase. Specifically, use it when you need to:
This skill guides a specialized agent through a comprehensive analysis of a GitHub repository to produce detailed architecture documentation. The analysis includes ASCII diagrams, component maps, infrastructure details, and file-level assessments.
Input required:
owner/repo formatActions:
YOU MUST CLONE THE REPOSITORY AND INSPECT THE FILES USING BASH TOOLS AND GIT CLI RATHER THAN MCP.
Analyze the directory structure:
For each file, assess:
Create multiple ASCII diagrams:
System Architecture Diagram
Deployment Architecture
File Structure Diagram
Data Flow Diagram
Example ASCII diagram structure:
┌─────────────────────────────────────────────────┐
│ Client (React) │
├─────────────────────────────────────────────────┤
│ - Components │
│ - Pages │
│ - State Management │
└────────────────┬────────────────────────────────┘
│ HTTP/WebSocket
┌────────────────▼────────────────────────────────┐
│ Backend Server (Node.js) │
├─────────────────────────────────────────────────┤
│ - API Routes │
│ - Authentication │
│ - Business Logic │
└────────────────┬────────────────────────────────┘
│
┌────────────────▼────────────────────────────────┐
│ Database & External APIs │
├─────────────────────────────────────────────────┤
│ - PostgreSQL / MongoDB │
│ - Third-party Services │
└─────────────────────────────────────────────────┘
For each major component, document:
Document component categories:
Identify and document:
Assess the deployment architecture:
Create a comprehensive architecture document including:
Executive Summary
Architecture Diagrams (multiple views as described in Step 3)
Component Catalog
File Structure Overview
Data Flow Explanation
Technology Details
Deployment and Hosting
Dependencies and Integrations
Large Codebases:
Polyglot Repositories:
Complex Infrastructure:
The final architecture analysis should be delivered as:
The agent may use:
User Request: "Analyze the architecture of the user-management microservice in our platform"
Agent Process:
The analysis is complete when:
tools
Configure Git CLI with GitHub authentication using environment variables (GITHUB_EMAIL, GITHUB_NAME, GITHUB_PAT)
tools
Apply code changes to a GitHub repository and automatically create a pull request. Takes user feedback or fix requirements, clones the repo, makes localized changes, commits to a new branch, and opens a PR via GitHub MCP.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.