c4-code

Analyze code directories to generate C4 code-level documentation.

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/HCMUTE-RTIC/fit-hcmute --skill c4-code-hcmute-rtic
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: c4-code
Source: https://github.com/HCMUTE-RTIC/fit-hcmute/tree/main/.agent/skills/c4-code
Command: npx skills add https://github.com/HCMUTE-RTIC/fit-hcmute --skill c4-code-hcmute-rtic

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of detailed C4 Code-level documentation, transforming raw code directories into structured, understandable architectural blueprints.

Core Features & Use Cases

  • Code Analysis: Deeply analyzes directory structures, function signatures, classes, modules, and dependencies.
  • C4 Code-Level Documentation: Generates standardized documentation following C4 model principles, including relationships and technology details.
  • Use Case: When onboarding a new developer to a complex microservice, use this Skill to quickly generate a clear map of the code's internal structure, dependencies, and key functions, significantly reducing ramp-up time.

Quick Start

Analyze the '/src/utils' directory and generate C4 Code-level documentation.

Frequently Asked Questions about c4-code

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

FAQPage Schema
How do I generate C4 code-level documentation for a complex codebase?

C4 code-level documentation provides a structured architectural blueprint of individual code modules by detailing function signatures, dependencies, and relationships, which significantly reduces onboarding time for new developers.

Can I analyze a specific directory's code structure and dependencies for onboarding?

Yes, you can analyze a specific directory like '/src/utils' to generate a clear map of its internal code structure, function signatures, and dependencies, significantly reducing developer onboarding ramp-up time.

Does this C4 documentation tool require static code analysis tools to run?

Yes, generating C4 code-level documentation requires static code analysis tools to deeply analyze directory structures, function signatures, and dependencies while adhering to C4 model documentation standards.

What is the best way to document function signatures and module dependencies?

The best way to document function signatures and module dependencies is applying standardized C4 model principles, which automatically transforms raw code directories into structured, understandable architectural blueprints.

How does C4 code-level documentation serve as a foundation for higher-level diagrams?

C4 code-level documentation serves as a foundation for higher-level diagrams by documenting code at the lowest C4 level for individual directories and code modules, establishing the baseline architectural context.