cg-map

cg-map is a command for Claude Code from widnyana/eyay-toolkits. It costs 13 tokens per session (606 once invoked), scanned A, original, MIT.

A command that maps a software design vocabulary onto the conventions of a chosen programming language or framework. It explains how ideas such as failures, retries, fallbacks, dependencies, and trust boundaries are represented there.

In plain words
What is it for?
Use it to create a mapping table and a small worked example for a target language or framework.
Why use it?
It reduces the guesswork involved in translating an abstract design method into code that fits a particular technology stack.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the design-thinking plugin — 5 commands shipped together

Good fit Use it to create a mapping table and a small worked example for a target language or framework.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/widnyana/eyay-toolkits/cg-map
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/widnyana/eyay-toolkits

Made for: Claude Code.

Or install design-thinking, the plugin that ships this one along with the rest of its 5 commands.

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 cg-map

README.md
[![agentmods](https://agentmods.dev/badge/commands/widnyana/eyay-toolkits/cg-map.svg)](https://agentmods.dev/commands/widnyana/eyay-toolkits/cg-map)
Your own site
<a href="https://agentmods.dev/commands/widnyana/eyay-toolkits/cg-map"><img src="https://agentmods.dev/badge/commands/widnyana/eyay-toolkits/cg-map.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 606 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.00013 $0.00606
Opus 5 $0.00006 $0.00303
Sonnet 5 $0.00003 $0.00121
Haiku 4.5 $0.00001 $0.00061

Measured 7d ago against content hash e6b7eb06d911, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

cg-map 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 7d ago.

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.

plugins/design-thinking/commands/cg-map.md · 41 lines

How it starts

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

Map the Design Graph method onto: $ARGUMENTS

Produce a vocabulary mapping so the method's three channels (A, E, R) and its markers have concrete, idiomatic counterparts in the target stack. Output a mapping table followed by a small worked mini-graph in Graph Protocol format.

Mapping table (required rows)

Protocol concept Question to answer for the target stack
A — happy path Where does the straight-line happy path live? (main fn, do-block, generator pipeline, SQL CTE chain…)
E — failure carrying How are failures values vs control flow? (Result/Either, checked exceptions, error returns, panics+recover, throw at layer joins…)
⟳ retry Idiomatic retry: library, decorator, middleware, policy object?
↯ escape Idiomatic fallback: default value, cache read, alternative path?
☠ die What counts as a defect? (assert, panic, raise RuntimeError, process abort…)
R — dependencies How are deps declared and provided? (constructor injection, traits, typeclasses, DI container, closure capture, context.Context…)
🔒 boundary parse Where do unknown→trusted conversions live? (schema lib, DTO layer, parsing constructors, guards…)
(1) (N) (T) One-shot vs stream vs time-bounded: iterators, channels, observables, TTL caches…
⛈ behavior layers Middleware/decorator/aspect story of the stack
Scope RAII, defer, context managers, try-with-resources, drop…
A/E structural split How the stack separates happy path from failure join points (pipe, middleware stack, Result chain, try/catch at edges)
E layer scoping How each layer translates inner errors into its own error type before handing off

Rules

  • Be concrete: name actual libraries, patterns, and syntax idioms of the stack.
  • If the stack lacks a native counterpart for a concept, say so and name the closest convention (and its cost).
  • After the table, render a mini Design Graph (PROBLEM → header tree → GRAPH → VERDICT only) for a small example task in this stack, using the mapped vocabulary — proving the mapping works end to end.
  • This mapping is a companion artifact: once produced, refer to it in later /cg-plan and /cg-review runs in the same stack.

Read the full file on GitHub · 41 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. 7d ago First seen · 41 lines · 13 tokens per session scan A e6b7eb06d911

Subscribe to this mod's changes

cg-map is a command published in the GitHub repository widnyana/eyay-toolkits (7 stars, last pushed 4d ago), licensed MIT. It adds 13 tokens to every session and 606 once invoked, about $0.0001 per session on Opus 5. 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-08-31.