dt-usage

dt-usage is a skill for Claude Code from yacb2/domaintome. It costs 184 tokens per session (3,167 once invoked), scanned A, original, MIT.

A project knowledge graph for recording how business concepts, rules, events, modules, and decisions relate to each other. It stores this information in a local database and asks the agent to read it before answering questions or changing related code.

In plain words
What is it for?
Use it to record new or changed endpoints, commands, forms, validation rules, features, events, and relationships between modules, then consult that record during development.
Why use it?
It reduces the risk of making code changes without knowing the project's existing business rules or dependencies. It also keeps important decisions available as the project changes.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions subagents; mentions Claude Code.

Part of the dt plugin — 1 skill, 9 commands, 1 agent, 2 hooks, 1 MCP server shipped together

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.

agentmods
npx agentmods add skills/yacb2/domaintome/dt-usage
Any agent
npx skills add yacb2/domaintome --skill dt-usage
Clone the repo
git clone --depth 1 https://github.com/yacb2/domaintome

Made for: Claude Code.

Or install dt, the plugin that ships this one along with the rest of its 1 skill, 9 commands, 1 agent, 2 hooks, 1 MCP server.

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 dt-usage

README.md
[![agentmods](https://agentmods.dev/badge/skills/yacb2/domaintome/dt-usage.svg)](https://agentmods.dev/skills/yacb2/domaintome/dt-usage)
Your own site
<a href="https://agentmods.dev/skills/yacb2/domaintome/dt-usage"><img src="https://agentmods.dev/badge/skills/yacb2/domaintome/dt-usage.svg" alt="Measured on agentmods" height="20"></a>
Per session 184 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,167 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00184 $0.03167
Opus 5 $0.00092 $0.01584
Sonnet 5 $0.00037 $0.00633
Haiku 4.5 $0.00018 $0.00317

Measured 5d ago against content hash 894697e8bb0d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

dt-usage 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 5d 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/domaintome/skills/dt-usage/SKILL.md · 258 lines

How it starts

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

DomainTome — read-first, write-on-decision

This project ships with the DomainTome MCP server (dt_* tools) that stores business knowledge as a typed graph: modules, capabilities, flows, events, rules, forms, entities and decisions. Treat DomainTome as the project's living memory.

Scope: where does "the project" live?

DomainTome has no opinion about whether a project is a single repo or a workspace holding several repos/packages. The graph lives in .dt/graph.db relative to whatever directory Claude Code was launched from — that's the "root of analysis". Workspaces with multiple repos (split-repo setups, monorepos of independent packages, *_ws/ scaffolding) typically keep .dt/ at the workspace root so a single graph captures cross-repo relations. Single-repo projects keep it at the repo root. Both are valid; pick whichever matches the unit of knowledge you want to capture. The MCP server logs the resolved DB path on startup so you can always verify which one it is using.

Read before acting

Before answering "how does X work?" or writing non-trivial code that touches a known concept, consult the graph:

  1. dt_overview()call this first when landing on a project. One compact payload with node counts, top capabilities, recent decisions and recent changes. Cheaper than several exploratory calls.
  2. dt_query(text_or_id, depth=1)text_or_id is required. Exact id / title substring / tag.
  3. dt_list(type=..., include_body=False) — cheap summary scan; follow up with dt_get_node for detail. Returns {"items": [...]}.
  4. dt_get_node(id, include_edges=true) — full detail of a hit.
  5. dt_traverse(from_id, relations, max_depth) — blast radius.

"How many ways of doing X?" — use dt_query(text_or_id=<capability_id>, depth=1) and filter the returned edges for relation == "implements" with to_id == <capability_id>; the from_id of each matching edge is a flow variant.

If the graph has the answer, cite the node id(s). If it's silent, say so — don't fabricate.

Read the full file on GitHub · 258 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. 5d ago First seen · 258 lines · 184 tokens per session scan A 894697e8bb0d

Subscribe to this mod's changes

dt-usage is a skill published in the GitHub repository yacb2/domaintome (0 stars, last pushed 3mo ago), licensed MIT. It adds 184 tokens to every session and 3,167 once invoked, about $0.0009 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.

Related

Other skills, from other repositories

lemmalog

Externalize working memory and logical state into the lemmalog Datalog engine (MCP). Use for ANY multi-step task where state should outlive one context window or span agents: long investigations, debugging sessions, audits, multi-agent searches, systematic explorations, planning with many interdependent constraints…

JordyZomer/lemmalog · 105 tokens

memory-and-handoff

Two-mode skill: (1) session memory — load/persist durable workflow state under .cc10x/ (activeContext, patterns, progress) so context survives compaction; (2) handoff package — portable, secrets-redacted export for a coworker, different tool, or fresh non-cc10x session.

romiluz13/cc10x · 70 tokens

forget

Delete a Wenlan memory by exact id from Codex. Destructive and confirmation gated. Invoked as /forget .

7xuanlu/wenlan · 29 tokens

agent-common

Shared preamble loaded by all cc10x agents — memory protocol, contract format, output rules.

romiluz13/cc10x · 23 tokens

memesh

Use MeMesh to remember, recall, and manage AI knowledge across sessions, and to exchange task-focused messages with local agents. Triggers when the user asks to remember something, recall past decisions, forget outdated info, learn from mistakes, analyze work patterns, contact another agent, or handle a memeshmessage…

PCIRCLE-AI/memesh · 136 tokens

handoff

End a Codex work session. Stores durable captures, writes a narrative session log, and automatically applies typed item-level deltas to the current Space Brief. Invoked as /handoff.

7xuanlu/wenlan · 41 tokens