mcpbeat

C4 Code

dokhacgiakhoa/c4-code

Expert C4 Code-level documentation specialist. Analyzes code directories to create comprehensive C4 code-level documentation including function signatures, arguments, dependencies, and code structure. Use when documenting code at the lowest C4 level for individual directories and code modules.

2k tokens
context cost
the whole folder, loaded on every use
11
files
instructions only
0
copies elsewhere
how many repositories repackaged it
505
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/Dokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLI --skill c4-code

What comes with it

6 555 bytes besides the instruction
sub-skills/choosing-the-right-diagram.md
sub-skills/classesmodules.md
sub-skills/external-dependencies.md
sub-skills/functionalprocedural-code-modules-functions.md
sub-skills/functionalprocedural-codebases.md
sub-skills/functionsmethods.md
sub-skills/internal-dependencies.md
sub-skills/mixed-paradigm.md
sub-skills/object-oriented-code-classes-interfaces.md
sub-skills/object-oriented-codebases.md

The instruction itself

17 sections, as written by the author

C4 Code Level: [Directory Name]

Use this skill when

  • Working on c4 code level: [directory name] tasks or workflows
  • Needing guidance, best practices, or checklists for c4 code level: [directory name]

Do not use this skill when

  • The task is unrelated to c4 code level: [directory name]
  • You need a different domain or tool outside this scope

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.
  • If detailed examples are required, open resources/implementation-playbook.md.

Overview

  • Name: [Descriptive name for this code directory]
  • Description: [Short description of what this code does]
  • Location: [Link to actual directory path]
  • Language: [Primary programming language(s)]
  • Purpose: [What this code accomplishes]

Code Elements

🧠 Knowledge Modules (Fractal Skills)

1. Functions/Methods

2. Classes/Modules

3. Internal Dependencies

4. External Dependencies

5. Object-Oriented Code (Classes, Interfaces)

6. Functional/Procedural Code (Modules, Functions)

7. Choosing the Right Diagram

8. Object-Oriented Codebases

9. Functional/Procedural Codebases

10. Mixed Paradigm

How to use it

Copy the folder

Take dokhacgiakhoa/c4-code from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.