Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Code-level C4 documentation v1.0.0

Use this resource to document a code directory at C4 code level: signatures, dependencies and structure

New

  • 80 downloads
  • 10 likes
  • 127 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install c4-code-docs-subagent

First time: connect the CLI with

npx --yes palatekit@latest login

The subagent records function and method signatures, classes and interfaces, imports and dependencies, then produces C4 code-level documentation, the base for higher levels. The main agent calls it to document a module in detail.

Mostly picked by

Updated November 2, 2026

Card for “Code-level C4 documentation”

Details

Install guides
Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • The subagent file (original English version): code analysis method and C4 documentation model
  • Documentation of each module, with signatures and dependencies
  • A base reusable by the component, container and context levels

Good fit for

  • A legacy module whose signatures nobody remembers
  • A team preparing architecture documentation from the code

Not for

    Tags

    • c4
    • documentation
    • code
    • architecture

    About

    You say

    “Document the src/billing folder at C4 code level: functions, parameters and dependencies.”

    Card for “Code-level C4 documentation”

    Subagent published by wshobson under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Copy the file into .claude/agents/ (project) or ~/.claude/agents/ (all your projects)
    2. Ask your agent to document a code directory at C4 code level: signatures, dependencies and structure, or call the subagent by name
    3. Review its work

    Content preview

    Files

    • c4-code-docs-subagent.md12.9 KB
    • LICENSE1.1 KB
    • NOTICE-PALATEKIT.md0.5 KB

    Origin and licence

    Listed unmodified

    Author
    wshobson
    Source
    github.com/wshobson/agents/blob/0874a27b17a22e2b7c2e2bcd725768e0803cad06/plugins/c4-architecture/agents/c4-code.md
    Licence
    MIT

    Notice

    « c4-code » (wshobson, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.