co2arch

Generate architecture documentation from C/C++ source code with bidirectional call graphs.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/bboymimi/claude-skills --skill co2arch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: co2arch
Source: https://github.com/bboymimi/claude-skills/tree/main/co2arch
Command: npx skills add https://github.com/bboymimi/claude-skills --skill co2arch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and templates (resource) components.

What problem does it solve?

This Skill automates the generation of detailed architecture documentation directly from source code, including bidirectional call graphs, cross-boundary analysis, and educational Anki flashcards.

Core Features & Use Cases

  • Bidirectional Call Graph Analysis: Understand how functions call each other and who calls them.
  • Cross-Boundary Detection: Identify interactions between different subsystems, kernel/BPF, or user/kernel space.
  • Deep Code Insights: Analyzes code for architectural patterns and design rationale, not just function calls.
  • Anki Card Generation: Creates educational flashcards to aid learning and retention.
  • Diagram Generation: Supports ASCII, Mermaid, and JSON Canvas formats.
  • Use Case: Documenting a complex kernel subsystem by analyzing its call flows, identifying critical interactions, and generating study materials for developers.

Quick Start

Use the co2arch skill to analyze the function pick_next_task and generate an ASCII architecture document.

Frequently Asked Questions about co2arch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate architecture documentation from C or C++ source code?

Generating architecture documentation from source code requires analyzing bidirectional call graphs and extracting deep code insights. This skill automates that process for C/C++ codebases to map out structural patterns and interactions.

What is the best way to document kernel and BPF subsystem interactions?

Documenting kernel and BPF interactions requires cross-boundary detection to identify interactions between subsystems or user and kernel space. This skill automates cross-boundary analysis to pinpoint these critical architectural flows directly from the source.

Can I generate Mermaid or ASCII diagrams from a codebase call graph?

Yes, you can generate Mermaid and ASCII diagrams from a codebase call graph. This skill supports diagram generation in ASCII, Mermaid, JSON Canvas, and Gemini formats to visually map function calls and architectural patterns.

How do I create Anki flashcards from code analysis for developer education?

Creating Anki flashcards from code analysis involves extracting architectural patterns and design rationale from the source. This skill generates educational flashcards directly from the analyzed call graphs and deep code insights to aid learning.

Does bidirectional call graph analysis work for complex system-level software?

Yes, bidirectional call graph analysis works for complex system-level software. This skill is designed to analyze C/C++ codebases, handling deep code insights and cross-boundary interactions typical in kernel and system-level architectures.