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.
curl -O https://raw.githubusercontent.com/Insight-Services-APAC/ingenious/main/.claude/commands/viz/c4-templates.mdgit clone --depth 1 https://github.com/Insight-Services-APAC/ingeniousWrote 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.
[](https://agentmods.dev/commands/insight-services-apac/ingenious/c4-templates)<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>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.
| Model | Per session | Once 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 |
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.
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

## 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

## 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

## 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) |
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.
- yesterday First seen · 398 lines · 0 tokens per session scan A c74c69181e1a
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.
Other commands, from other repositories
okf
A command that exports a private knowledge wiki into an OKF-compatible bundle. OKF is a format for packaging knowledge, with a separate guarded mode for preparing material to share externally.
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.