hf-domain-modeling

hf-domain-modeling is a skill for Claude Code, Codex from hujianbest/harness-flow. It costs 42 tokens per session (855 once invoked), scanned A, original, MIT.

A guide for defining and maintaining the important concepts and shared language of a software project. It uses scenarios and the code itself to check that those concepts are accurate.

In plain words
What is it for?
Use it to clarify terms, test domain relationships against edge cases, record architecture decisions, and maintain project vocabulary in files such as CONTEXT.md.
Why use it?
It reduces confusion when the same word can mean different things or when the documented model disagrees with how the code works.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the harness-flow plugin — 14 skills shipped together

Good fit Use it to clarify terms, test domain relationships against edge cases, record architecture decisions, and maintain project vocabulary in files such as CONTEXT.md.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hujianbest/harness-flow/hf-domain-modeling
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.

Any agent
npx skills add hujianbest/harness-flow --skill hf-domain-modeling
Clone the repo
git clone --depth 1 https://github.com/hujianbest/harness-flow

Made for: Claude Code, Codex.

Or install harness-flow, the plugin that ships this one along with the rest of its 14 skills.

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 hf-domain-modeling

README.md
[![agentmods](https://agentmods.dev/badge/skills/hujianbest/harness-flow/hf-domain-modeling/github.svg)](https://agentmods.dev/skills/hujianbest/harness-flow/hf-domain-modeling)
Your own site
<a href="https://agentmods.dev/skills/hujianbest/harness-flow/hf-domain-modeling"><img src="https://agentmods.dev/badge/skills/hujianbest/harness-flow/hf-domain-modeling/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hf-domain-modeling

Your own site · 80×15
<a href="https://agentmods.dev/skills/hujianbest/harness-flow/hf-domain-modeling"><img src="https://agentmods.dev/badge/skills/hujianbest/harness-flow/hf-domain-modeling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 855 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00042 $0.00855
Opus 5 $0.00021 $0.00428
Sonnet 5 $0.00008 $0.00171
Haiku 4.5 $0.00004 $0.00085

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

Security

Grade A, and why

hf-domain-modeling 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 12d 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.

skills/hf-domain-modeling/SKILL.md · 75 lines

What it actually says

领域建模

在设计过程中主动构建并打磨项目的领域模型。这是一种主动的实践——质疑术语、构造边界情况,并在术语表和决策一经明确时立即将其写下。(仅仅通过读取 CONTEXT.md 获取词汇不属于本技能——那是任何技能都能做到的一行式习惯。本技能用于你正在改变模型时,而不只是使用模型时。)

文件结构

大多数仓库只有一个上下文:

/
├── CONTEXT.md
├── docs/
│   └── adr/
│       ├── 0001-event-sourced-orders.md
│       └── 0002-postgres-for-write-model.md
└── src/

如果根目录中存在 CONTEXT-MAP.md,仓库就有多个上下文。该映射会指出每个上下文所在的位置:

/
├── CONTEXT-MAP.md
├── docs/
│   └── adr/                          ← 系统级决策
├── src/
│   ├── ordering/
│   │   ├── CONTEXT.md
│   │   └── docs/adr/                 ← 特定上下文的决策
│   └── billing/
│       ├── CONTEXT.md
│       └── docs/adr/

延迟创建文件——只在有内容需要写入时创建。如果不存在 CONTEXT.md,就在第一个术语确定时创建。如果不存在 docs/adr/,就在需要第一份 ADR 时创建。

会话期间

根据术语表提出质疑

当用户使用的术语与 CONTEXT.md 中的现有语言冲突时,立即指出:“你的术语表将‘取消’定义为 X,但你似乎想表达 Y——究竟是哪一个?”

打磨模糊语言

当用户使用含糊或含义过载的术语时,提出一个精确的规范术语:“你说的是‘账户’——你指的是客户还是用户?它们是不同的概念。”

讨论具体场景

讨论领域关系时,用具体场景对其进行压力测试。构造能够探查边界情况的场景,促使用户精确说明概念之间的边界。

与代码交叉核对

当用户说明某事如何运作时,检查代码是否与之相符。如果发现矛盾,就明确指出:“你的代码会取消整个订单,但你刚才说可以部分取消——哪一个才是正确的?”

就地更新 CONTEXT.md

术语一旦确定,就立即在原处更新 CONTEXT.md。不要批量积攒——发生时就记录。使用 CONTEXT-FORMAT.md 中的格式。

CONTEXT.md 应当完全不包含实现细节。不要把 CONTEXT.md 当作规格、草稿区或实现决策的存储库。它只是术语表,不作他用。

谨慎建议使用 ADR

只有以下三个条件全部满足时,才建议创建 ADR:

  1. 难以逆转——日后改变主意会付出实质性成本
  2. 脱离上下文会令人意外——未来的读者会疑惑“他们为什么要这样做?”
  3. 真实权衡的结果——确实存在其他可选方案,而你出于特定原因选择了其中一个

只要缺少其中任何一个条件,就不要创建 ADR。使用 ADR-FORMAT.md 中的格式。

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 75 lines · 42 tokens per session scan A c2e3ee9b9fa1

Subscribe to this mod's changes

hf-domain-modeling is a skill published in the GitHub repository hujianbest/harness-flow (53 stars, last pushed 11d ago), licensed MIT. It adds 42 tokens to every session and 855 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens