ingenious: Command for Claude Code

.claude/commands/viz/c4-templates.md

c4-templates is a command for Claude Code from Insight-Services-APAC/ingenious. It costs 0 tokens per session (2,186 once invoked), scanned A, original, MIT.

A shared collection of templates for creating and checking C4 architecture maps. C4 is a way to document software from the whole system down to its parts.

In plain words
What is it for?
It is for documenting systems, containers, components, code relationships, actors, and external systems with PlantUML diagrams and Markdown files.
Why use it?
It gives architecture commands a consistent structure for diagrams and written descriptions instead of making each map from scratch.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is Insight-Services-APAC/ingenious's own configuration. It tells Claude Code how to work on ingenious itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ingenious configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is | [Name] | [Tech] | [Desc] | [View](./containers/<id>/container.md) |.

Reuse

Borrowing it

Nothing to install: this file belongs to Insight-Services-APAC/ingenious. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Insight-Services-APAC/ingenious/main/.claude/commands/viz/c4-templates.md
Clone the repo
git clone --depth 1 https://github.com/Insight-Services-APAC/ingenious

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for c4-templates

README.md
[![agentmods](https://agentmods.dev/badge/commands/insight-services-apac/ingenious/c4-templates.svg)](https://agentmods.dev/commands/insight-services-apac/ingenious/c4-templates)
Your own site
<a href="https://agentmods.dev/commands/insight-services-apac/ingenious/c4-templates"><img src="https://agentmods.dev/badge/commands/insight-services-apac/ingenious/c4-templates.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,186 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.02186
Opus 5 $0.00000 $0.01093
Sonnet 5 $0.00000 $0.00437
Haiku 4.5 $0.00000 $0.00219

Measured yesterday against content hash c74c69181e1a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

c4-templates scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/viz/c4-templates.md · 398 lines

How it starts

The opening of the file, as written. The whole thing — 398 lines — stays where its author put it; the contents beside it link to each section on GitHub.

C4 Architecture Templates Reference

Shared templates and patterns for c4-map, c4-update, and c4-verify commands.


Output Structure

codemap/
├── README.md
├── VERIFICATION.md
└── <system-id>/
    ├── context.puml
    ├── context.png
    ├── context.md
    └── containers/
        └── <container-id>/
            ├── container.puml
            ├── container.png
            ├── container.md
            └── components/
                └── <component-id>/
                    ├── component.puml
                    ├── component.png
                    ├── component.md
                    └── code/
                        ├── classes.puml
                        ├── classes.png
                        └── classes.md

Markdown Templates

context.md

# System Context: [System Name]

<!-- Last updated: YYYY-MM-DD -->

[System description]

## Diagram

![System Context](./context.png)

## Actors

| Actor | Description |
|-------|-------------|
| [Name] | [Description] |

## External Systems

| System | Type | Description |
|--------|------|-------------|
| [Name] | [Type] | [Description] |

## Drill Down - Containers

| Container | Technology | Description | Details |
|-----------|------------|-------------|---------|
| [Name] | [Tech] | [Desc] | [View](./containers/<id>/container.md) |

container.md

# Container: [Container Name]

<!-- Last updated: YYYY-MM-DD -->

**Parent:** [System Context](../../context.md)

[Container description]

## Diagram

![Container](./container.png)

## Technology

| Aspect | Value |
|--------|-------|
| Framework | [Framework] |
| Runtime | [Runtime] |

## Dependencies

- External: [List external systems]
- Containers: [List container dependencies]

## Drill Down - Components

| Component | Responsibility | Details |
|-----------|----------------|---------|
| [Name] | [Desc] | [View](./components/<id>/component.md) |

component.md

# Component: [Component Name]

<!-- Last updated: YYYY-MM-DD -->

**Parent:** [Container Name](../../container.md)
**System:** [System Context](../../../../context.md)

[Component description]

## Diagram

![Component](./component.png)

## Responsibility

[Detailed responsibility]

## Dependencies

- Internal: [Same container dependencies]
- Cross-Container: [Other container dependencies]

## Drill Down - Code

| Class | Purpose | Details |
|-------|---------|---------|
| [Name] | [Desc] | [View](./code/classes.md) |

Read the full file on GitHub · 398 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 398 lines · 0 tokens per session scan A c74c69181e1a

Subscribe to this mod's changes

c4-templates is a command published in the GitHub repository Insight-Services-APAC/ingenious (24 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,186 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.