Token导航 LogoToken导航

Agent Skill · 研究检索

domain-context(领域上下文)

domain-context 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

domain-context 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 17,754。

总安装 6,425周安装 276GitHub Stars 1下载 2,252核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:domain-context(领域上下文)
来源仓库:https://github.com/customware-ai/skills
仓库路径:skills/domain-context
安装命令:
npx skills add https://github.com/customware-ai/skills --skill domain-context
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/customware-ai/skills --skill domain-context

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

domain-context 渐进式构建业务领域的活知识库,支持跨会话累积学习。适用于任何商业应用,通过人类-AI 协作协议持续完善领域理解。读取 DOMAIN.md 文件作为会话起点,使用内部术语与实体名称。在操作过程中标记认知缺口,并提议结构化补充内容供人工审核。

建议初始阶段由熟悉业务的专家协助建立基础领域文档框架。

来源仓库内路径:skills/domain-context

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/customware-ai/skills --skill domain-context;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

domain-context 怎么安装?

在终端执行 npx skills add https://github.com/customware-ai/skills --skill domain-context。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

domain-context 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

domain-context 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

domain-context 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

domain-context 用的人多吗?

公开数据是累计安装 6,425 次,近一周安装 276 次,下载 2,252 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

domain-context 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
domain-context

领域上下文 · 本页

6,4251只读未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Progressive Domain Crystallization (PDC) Skill

What This Skill Does

This skill enables any AI assistant to build and use a living domain knowledge base for any business application — accumulated incrementally across sessions through a human-AI collaborative protocol.

The AI never "knows" the domain by default. But with this skill, it can:

  • Read a structured .tasks/domain.md file at the start of every session
  • Use internal terminology and entity names exactly as the business defines them
  • Flag gaps in domain understanding inline during work
  • Propose structured additions to the domain file for human review
  • Never corrupt the knowledge base — all updates are proposed, not auto-applied
  • Manage domain knowledge growth through progressive disclosure — loading only what's relevant to the current session

Core Protocol

At Session Start

  1. Look for.tasks/domain.md in the project root
  2. If found → check the file structure:

- Single file (under ~200 lines): Read it completely before doing any work. - Index + detail files (split structure): Read the root.tasks/domain.md index (Tier 1 — core context). Then determine which Tier 2 detail files are relevant to the current task and load only those. See § Progressive Disclosure.

  1. If not found → offer to initialize one using the template at .tasks/domain.md
  2. Confirm to the user: "I've loaded the domain context for [Project Name]. I'm familiar with [N] entities and [N] flows." If in split mode, also note: "I've loaded the core context. I'll pull in detail files as needed for what we're working on."

During Work

  • Use entity names, terminology, and abbreviations exactly as defined in.tasks/domain.md
  • When encountering an undefined term or entity, mark it inline: [UNKNOWN: <term>]
  • When a relationship between entities is unclear, mark it: [RELATIONSHIP UNCLEAR: <entity-a> → <entity-b>]
  • When a business rule seems to be implied but isn't documented: [RULE INFERRED: <description>]
  • Do not invent domain facts — use only what is documented or what the user confirms in session
  • When working on a specific entity or flow, load its Tier 2 detail file if one exists and hasn't been loaded yet

At Session End

Always generate a ## 📋 Proposed Domain Updates section at the bottom of your final response.

Format it as:

## 📋 Proposed Domain Updates

> Review these and copy any confirmed items into your .tasks/domain.md

### New Entities Discovered
- **[EntityName]**: [Definition as understood from this session]
  - Attributes: [list]
  - Related to: [other entities]

### Terminology Clarified
- `[term]` → [plain definition]

### Relationships Identified
- [Entity A] → [verb] → [Entity B]: [description]

### Business Rules Observed
- [Rule description]

### Open Questions
- [ ] [Question about something ambiguous or unresolved]

### Suggested .tasks/domain.md Sections to Add/Update
- [ ] [specific section or entry to update]

The human reviews this, edits as needed, and manually updates.tasks/domain.md. This keeps the human as domain authority.


Progressive Disclosure

Domain knowledge files grow over time. A single.tasks/domain.md that works well at 80 lines becomes unwieldy at 400. Progressive disclosure keeps the AI focused on what's relevant to the current session without losing access to the full knowledge base.

Three Tiers of Domain Knowledge

TierWhat It ContainsWhen It's LoadedTypical Size
Tier 1 — CoreProject overview, terminology glossary, entity names (one-liners only), business rules table, user roles tableAlways, at session start80–120 lines
Tier 2 — Working ContextFull entity descriptions (lifecycle, notes, edge cases), full flow step-by-steps, relationship map, integration pointsOn demand, when the session touches that entity or flow30–80 lines per file
Tier 3 — ArchiveChangelog, resolved open questions, data migration notes, vendor-specific detailsOn explicit request, or when reviewing project historyVariable

What Goes in Each Tier

Tier 1 — Core (root.tasks/domain.md, always loaded):

  • ## Project Overview — what it is, who uses it, business goal (5 lines)
  • ## Domain Boundaries — what's in scope, what's supporting, what's explicitly excluded. Prevents overbuilding.
  • ## Terminology Glossary — the shorthand table
  • ## Entity Registry — names and one-liner descriptions only (not full attribute lists, not lifecycle details, not notes). Think of this as a table of contents for the entities.
  • ## State Models — named enumerations and valid state transitions for entities with statuses or lifecycle stages. The AI must treat these as the only valid values.
  • ## Business Rules — the hard rules table (BR-001, BR-002, etc.). These are ground truth the AI must always know.
  • ## User Roles — the roles table
  • ## Stakeholder Map — named people, their relationship to the system, their key concerns, and when to involve them. Critical for adoption and buy-in.
  • ## Open Questions — current unresolved items
  • ## Detail Files — index of Tier 2 files with one-line summaries (see file layout below)

Tier 2 — Working Context (separate files, loaded by task):

  • Full entity specs — attributes, lifecycle, relationships, notes, edge cases (one file per major entity)
  • Full flow descriptions — step-by-step process walkthroughs (one file per flow)
  • Relationship map — the full entity-to-entity table
  • Integration points — external system details

Tier 3 — Archive (separate files, loaded on request):

  • Changelog — session-by-session history of what was learned
  • Resolved questions — historical record of closed open questions
  • Data migration notes — vendor catalog details, import procedures
  • Vendor-specific details — price sheet structures, portal access notes

When to Split: The ~200 Line Rule

A single.tasks/domain.md works well for early-stage projects. The trigger to split is simple:

When.tasks/domain.md exceeds ~200 lines, propose the split.

Say to the user: "The domain file is getting substantial — [N] lines with [N] entities and [N] flows. Want me to split it into an index file with detail files? This keeps sessions focused on what's relevant without losing anything."

If the user agrees, restructure into the tiered file layout (see below). If they prefer a single file, respect that — it's a preference, not a hard requirement.

How the AI Uses Tiers at Session Start

1. Read root .tasks/domain.md (Tier 1 — always)
      ↓
2. Understand the current task
      ↓
3. Determine which entities/flows are relevant
      ↓
4. Load only those Tier 2 files
      ↓
5. Work — loading additional Tier 2 files if the task expands
      ↓
6. Propose updates — specifying which file each update belongs to

Example: User says "I need to update the PM renewal flow." The AI:

  1. Reads root.tasks/domain.md (core context — knows all entity names, all business rules)
  2. Loads docs/domain/flows/pm-renewal.md (the relevant flow)
  3. Loads docs/domain/entities/pm-renewal.md (the relevant entity)
  4. Does NOT load docs/domain/flows/lead-distribution.md or docs/domain/entities/customer.md — not relevant to this task.

Proposing Updates in Split Mode

When the domain is split across files, the Proposed Domain Updates section should specify which file each update belongs to:

## 📋 Proposed Domain Updates

### Update: `.tasks/domain.md` (Tier 1 — core)
- Add to Business Rules: BR-013 — [rule description]

### Update: `docs/domain/entities/pm-renewal.md` (Tier 2)
- Add attribute: `priceAdjustmentPercent` — annual price increase applied on renewal

### New File: `docs/domain/flows/engineering-review.md` (Tier 2)
- [Full flow description to create]

### Update: `docs/domain/archive/changelog.md` (Tier 3)
- [Session summary entry]

Versioning

.tasks/domain.md includes a version header in its frontmatter. This is the human-readable version — it tells the AI and the team what state the domain knowledge is in.

Version format: MAJOR.MINOR

  • MAJOR increments when the fundamental scope changes (new business process, major entity restructure, domain boundary shift)
  • MINOR increments on every approved update (new entities, new rules, flow adjustments, stakeholder additions)

Who increments: The system auto-increments MINOR on each approved update. MAJOR is incremented manually when the team decides the domain has fundamentally expanded.

The version header lives in the.tasks/domain.md frontmatter:

> **Version:** 1.5
> **Last updated:** 2026-04-06 (Session 30)
> **Changes:** +Commission Report entity, +BR-013–015, updated Quote-to-Close flow

On every approved update, the AI must:

  1. Increment the version number (MINOR +1)
  2. Update the "Last updated" date and session reference
  3. Update the "Changes" line with a brief summary
  4. Append an entry to the Changelog section

If the system uses git, the commit message should mirror the Changes line. The version header and git history serve different audiences — the header is for the AI and the business user, git is for engineering.


.tasks/domain.md File Structure

See .tasks/domain.md for the full template.

Single-File Mode (under ~200 lines)

The file uses these top-level sections, all in one file:

SectionTierPurpose
## Project Overview1What the app does, who uses it, primary goals
## Domain Boundaries1What's in scope, what's supporting, what's excluded
## Terminology Glossary1Internal jargon mapped to plain definitions
## Entity Registry1 (names) / 2 (details)Business objects with attributes and descriptions
## State Models1Valid statuses, types, and state transitions for entities
## Relationship Map2How entities connect to each other
## Flow Catalog2Named business processes with step-by-step info flow
## Business Rules1Constraints, validations, edge cases
## Integration Points2External systems, APIs, data sources
## User Roles1Who uses the system and what they can do
## Stakeholder Map1Named people, their relationship to the system, concerns, involvement timing
## Open Questions1Unresolved ambiguities — reviewed and cleared over time
## Changelog3What was learned and when

In single-file mode, all tiers are in one file. This is fine — the tier labels are just annotations that guide the future split.

Split-File Mode (over ~200 lines)

your-project/
├── .tasks/domain.md                   ← Tier 1: Core index (always loaded)
├── docs/
│   └── domain/
│       ├── entities/                  ← Tier 2: One file per major entity
│       │   ├── quote.md
│       │   ├── customer.md
│       │   ├── product.md
│       │   └── ...
│       ├── flows/                     ← Tier 2: One file per business process
│       │   ├── quote-to-close.md
│       │   ├── pm-renewal.md
│       │   └── ...
│       ├── relationships.md           ← Tier 2: Full relationship map
│       ├── integrations.md            ← Tier 2: External system details
│       └── archive/                   ← Tier 3: Historical records
│           ├── changelog.md
│           └── resolved-questions.md
└── ... (rest of your project)

The root.tasks/domain.md in split mode contains:

  • Tier 1 sections in full (Project Overview, Domain Boundaries, Glossary, Entity names table, State Models, Business Rules, User Roles, Stakeholder Map, Open Questions)
  • A ## Detail Files index pointing to each Tier 2 file with a one-line summary:
## Detail Files

| File | Contents |
|------|----------|
| `docs/domain/entities/quote.md` | Quote entity — lifecycle, attributes, status workflow |
| `docs/domain/entities/customer.md` | Customer/Account entity — parent-child, territory assignment |
| `docs/domain/flows/quote-to-close.md` | Full quote lifecycle from opportunity to installation |
| `docs/domain/flows/pm-renewal.md` | PM contract renewal process |
| `docs/domain/relationships.md` | Complete entity relationship map |
| `docs/domain/integrations.md` | Salesforce, Watertight, Procore, vendor portals |
| `docs/domain/archive/changelog.md` | Session-by-session learning history |

Initialization Workflow

If no.tasks/domain.md exists, the AI should:

  1. Ask the user 5 seed questions (see references/seed-questions.md)
  2. Use the answers to populate the template
  3. Write a draft.tasks/domain.md
  4. Present it for review before saving

The initial file will be well under 200 lines. Start in single-file mode. Split later when it grows.


Growing the Domain Over Time

Each session follows this cycle:

READ .tasks/domain.md (+ relevant Tier 2 files if split)
      ↓
DO WORK (flag unknowns inline)
      ↓
PROPOSE UPDATES (specify target file if split)
      ↓
HUMAN REVIEWS & APPROVES
      ↓
HUMAN UPDATES .tasks/domain.md (or detail files)
      ↓
(next session reads updated files)

Growth Lifecycle

Sessions 1–3:     Single .tasks/domain.md, ~60–80 lines      (Tier 1 only)
Sessions 4–10:    Single .tasks/domain.md, ~100–200 lines     (Tier 1 + 2 mixed)
Sessions 10+:     Split into index + detail files       (Tier 1 / 2 / 3 separated)
Mature project:   Full three-tier structure with archive

When the file crosses ~200 lines, the AI should proactively offer to split:

"The domain file is at [N] lines now — it covers [N] entities and [N] flows in detail. Want me to split it into a core index file with separate detail files? Each session would load just the parts relevant to what we're working on, and nothing is lost."

If the user agrees:

  1. Extract Tier 1 content into a slim root.tasks/domain.md (~80–120 lines)
  2. Move each entity's full description into docs/domain/entities/[name].md
  3. Move each flow's full description into docs/domain/flows/[name].md
  4. Move relationship map and integration points into their own Tier 2 files
  5. Move changelog into docs/domain/archive/changelog.md
  6. Add the ## Detail Files index to the root.tasks/domain.md
  7. Present the new structure for review before saving

Over time, the.tasks/domain.md becomes the single source of truth for:

  • New developers onboarding
  • Future AI sessions (any model, any tool)
  • Documentation and specs
  • Test case grounding

Reference Files

  • .tasks/domain.md — Blank template to initialize a new domain file
  • references/seed-questions.md — Questions to ask when bootstrapping a new domain
  • references/entity-template.md — Template for individual entity files (large projects)
  • references/anti-patterns.md — Common mistakes to avoid when building domain context

平台分布

Codex

36.88%
按下载量换算831

Claude

26.23%
按下载量换算591

Cursor

18.9%
按下载量换算426

Gemini CLI

8.14%
按下载量换算183

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills