c4-code
Skill by rmyndharis
Documents individual code directories at the C4 code level. It covers function signatures, dependencies and code structure, with Mermaid diagrams for complex modules. Built for developers who need code-level architecture docs for specific folders.
Install c4-code
Built from the published package, never by AI.
git clone --depth 1 https://github.com/rmyndharis/antigravity-skills /tmp/antigravity-skills && mkdir -p ~/.claude/skills && cp -r /tmp/antigravity-skills/skills/c4-code ~/.claude/skills/c4-codeRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/rmyndharis/antigravity-skills /tmp/antigravity-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/antigravity-skills/skills/c4-code ~/.gemini/antigravity-cli/skills/c4-codeAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
c4-code is an agent skill that documents individual code directories at the lowest level of the C4 model. It guides an assistant to analyze a directory and produce a structured C4 code-level document. The template covers function and method signatures, arguments, return types, descriptions, source locations, dependencies, and class or module details.
The skill offers Mermaid diagram options chosen by programming style. Object-oriented code can use classDiagram, while functional or procedural code can use module diagrams, data flow flowcharts, or function dependency graphs. It is aimed at developers who need code-level documentation for a specific directory or module. The source also names C4-Component, C4-Container and C4-Context agents as related skills for other levels.
Written from the project's SKILL.md and checked against it.
What it can do
- Function signature docsLists function and method signatures with parameters, return types and source locations.
- Class and module docsDescribes classes or modules, their methods and what they depend on.
- Dependency mappingLists internal and external dependencies for a code directory.
- Class diagramsDraws classDiagram views for object-oriented code and interfaces.
- Data pipeline diagramsShows function pipelines and data transformations as flowcharts.
- Function dependency graphsShows which functions call which other functions in a module.
Try asking
- Analyze the src/api directory and create C4 code-level documentation
- Document all functions in the authentication module with their signatures
- Create a data pipeline diagram for the ETL transformers in src/pipeline
Good to know
- The source says code diagrams are typically only needed for complex components.
- The source notes that most teams find system context and container diagrams sufficient.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/c4-code/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB
Alternatives to c4-code
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
c4-code: common questions
What does the c4-code skill document?
It documents individual code directories and modules at the lowest C4 level, including function signatures, arguments, dependencies and code structure.
Which diagram types does it use?
It uses classDiagram for object-oriented code. For functional or procedural code it can use module diagrams, flowcharts, or function dependency graphs.
How does it differ from the other C4 agents?
The source says it focuses on individual code elements, while C4-Component groups files into components, C4-Container maps deployment units, and C4-Context gives high-level system diagrams.
How do I install c4-code?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is c4-code free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is c4-code safe to use?
It scores 84 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to c4-code?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
