Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

glossaryglossary 搜索

Agent Skill

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

总安装

190

周安装

8

GitHub Stars

公开资料未说明

下载量

67
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/tsipotu/glossary-skill --skill glossary

简介

glossary 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于需要根据关键词或任务场景进行信息检索的研究与查询任务。
  • 通过关键词输入和来源线索筛选,输出匹配的候选结果列表。
  • 安装命令:npx skills add https://github.com/tsipotu/glossary-skill --skill glossary。
  • 建议确认权限范围和维护状态,注意是否触发联网或文件读写操作。

SKILL.md

Glossary — Ubiquitous Language Manager

Manage a project's shared vocabulary as version-controlled YAML files. The glossary bridges the gap between what developers call things in code (cart_item), what users see in the UI ("Shopping Bag"), and what the team says in meetings ("basket"). It's the single source of truth for terminology — consumable by humans, AI tools, CI pipelines, and future web frontends alike.

Inspired by Domain-Driven Design's Ubiquitous Language and compatible with Contextive.

Glossary location and discovery

The glossary can live anywhere in the project. Users may choose a custom path (e.g. docs/terminology/, content/glossary/). Always resolve the glossary root before reading or writing.

Discovery order:

  1. Explicit pointer — Check project config for a stated glossary path:

- CLAUDE.md — section like "Glossary: path/to/glossary" or "Glossary lives in " - .cursorrules or AGENTS.md — terminology or glossary path - README.md — project structure or "Glossary" section

  1. Conventional locations (if no pointer found):

- glossary/glossary.config.yml (project root) - docs/glossary/glossary.config.yml - .claude/glossary/glossary.config.yml

  1. Search — Look for any glossary.config.yml in the project. If exactly one is found, use its directory as the glossary root. If multiple, list them and ask the user which to use.

If no glossary exists: Proceed to Scaffolding and create the glossary at the project root (glossary/) unless the user asks for a different location. If they specify a path, create it there and add a pointer in CLAUDE.md or.cursorrules so future discovery finds it.

All paths in this skill (e.g. "read the context file", "append to the correct glossary file") are relative to the resolved glossary root (the directory containing glossary.config.yml).

Modes

The skill operates in three modes based on what the user asks.

Explore (default)

When the user wants to look something up. Resolve the glossary root (see Glossary location and discovery), then read the relevant glossary files under that root and answer the question.

  • "What does Order mean?" — look up the term, show its definition, context, code_name, ui_label, and relationships. If it appears in multiple contexts, show both definitions and explain how they differ.
  • "What terms are in checkout?" — read the checkout context file, list all terms with brief definitions.
  • "How does Cart relate to Checkout Session?" — trace the relationship chain through related fields and explain the path. Include any when conditions.
  • "Show me stale terms" — scan all glossary files for terms with status: deprecated or status: proposed.
  • "What do we call X in the frontend?" — look up the term's ui_label. Or reverse: given a UI label, find the code_name.

For the full term schema and field reference, read references/term-schema.md.

Add

When the user wants to add or update terms. Walk through it conversationally — the user shouldn't need to write YAML.

Step 1: Find the glossary. Resolve the glossary root using Glossary location and discovery above. If no glossary exists, switch to Scaffolding (see below).

Step 2: Understand the term. Ask the user:

  • What's the term?
  • What does it mean? (in plain language)
  • What do developers call it in code? (code_name)
  • What do users see in the UI? (ui_label)
  • Which context does it belong to?

Don't ask all questions at once — infer what you can from context. If the user says "add Cart to the checkout glossary," you already know the name and context. Just ask for the definition and the fields you can't infer.

Step 3: Check for conflicts. Before adding:

  • Does this term already exist in this context? → Offer to update instead
  • Does it exist in a different context? → Flag as cross-context term, ask if intentional
  • Is it an alias of an existing term? → Suggest adding to that term's aliases instead
  • Does the code_name or ui_label conflict with another term? → Flag the collision

Step 4: Suggest relationships. Based on existing terms in the glossary:

  • "I see Cart already exists. Does Cart contain this new term?"
  • "Checkout Session is in the same context. How does this term relate to it?"

Only suggest relationships that make sense. Don't force the user to define relationships for every term — orphan terms are fine, especially early on.

Step 5: Write the YAML. Generate the term entry with the separator comment, append it to the correct context file under the resolved glossary root, and regenerate relationships.md in that root if any relationships were defined.

Show the user the generated YAML before writing it. Let them adjust.

Maintain

When the user wants to check the health of the glossary. Resolve the glossary root (see Glossary location and discovery), then load all glossary files under that root and run checks:

  • Orphan detection — terms with no relationships (no related and not referenced by any other term). List them. Not necessarily a problem, but worth reviewing.
  • Stale term review — terms with status: deprecated. Ask if they should be removed or if the replacement term needs updating.
  • Consistency check — scan the codebase for identifiers that match or resemble code_name values. Report:

- Code identifiers not in the glossary (potential missing terms) - Glossary code_name values that don't appear in the code (potentially stale)

  • Cross-context conflict report — terms with the same name in multiple context files. Show how their definitions differ. Ask if the divergence is intentional.
  • Relationship integrity — check that every term referenced in a related field actually exists in the glossary. Flag broken references.
  • Relationship diagram — regenerate relationships.md with Mermaid diagrams.

Present findings as a report with suggested actions. Don't auto-fix anything — let the user decide.

Scaffolding

When the skill is invoked in a project with no glossary, bootstrap the structure.

Step 1: Ask about the project. "What's this project about? What are the main domain areas?"

Step 2: Propose bounded contexts. Based on the answer, suggest 2-4 initial contexts. Always include core for terms shared across the whole project. Present as a checklist:

I'd suggest starting with these contexts: - core — terms shared across the whole project (User, Permission, Notification) - auth — authentication and authorization - billing — payments, subscriptions, invoicing Want to adjust these?

Step 3: Scaffold the directory. Create the glossary directory at the project root as glossary/ (unless the user asked for a different path). That directory must contain:

  • glossary.config.yml with project name, description, and context entries
  • One .glossary.yml file per context, each with the context header and empty terms: []
  • An empty relationships.md

Step 4: Seed from the codebase. Scan for likely domain terms:

  • Model/entity names from source code (class names, type definitions)
  • Component names from frontend code
  • Terms from existing .feature files
  • Domain language from README and docs

Present findings as suggestions — never add terms automatically:

I found these terms in your codebase that aren't in the glossary yet: - User (appears in 34 files) - Session (appears in 12 files) - CartItem (appears in 8 files — likely "Cart Item") Want to add definitions for any of these?

Step 5: Update project configuration. If the project has any of these files, add a glossary pointer so discovery finds the glossary next time:

  • CLAUDE.md — add a Glossary section with the path (e.g. Glossary: glossary/ or the custom path used)
  • .cursorrules — add a terminology note with the glossary path
  • README.md — add a mention in the project structure section

If you scaffolded at a custom path (user requested), always add or update a pointer. Only touch files that already exist. Don't create new config files for tools the project doesn't use.

How Other Skills Use the Glossary

The glossary is plain YAML; its root is resolved the same way as in this skill. Any skill or tool can read it — no special API needed. The file format is the API.

When another skill (e.g. gherkin) needs terminology:

  1. Resolve the glossary root using the same Glossary location and discovery (pointer → conventional locations → search).
  2. Read glossary.config.yml in that root to find context files.
  3. Read the relevant context file(s) based on scope (paths relative to the glossary root).
  4. Use terms in its output (ui_label for user-facing text, code_name for technical text).

The glossary skill doesn't need to be invoked for this — other skills read the files directly once the root is known.

Integration examples

ToolHow it uses the glossary
Gherkin skillReads ui_label for Then/When steps, code_name for Given setup. when conditions map to scenario Given steps.
Code reviewFlags variable names that don't match code_name entries
TestingValidates test names use consistent terminology
CI lintingScript validates code identifiers against code_name entries
Web frontendServes YAML files as JSON via API

Loading Strategy

Don't load the entire glossary into context. Use tiered loading:

TierWhatWhen
PointerGlossary path from CLAUDE.md /.cursorrules / discoveryEvery session (negligible) — yields the glossary root
ScopedRelevant context file(s) + core (under that root)When this skill or another skill needs terminology
FullAll glossary files under the resolved rootMaintain mode only

Use the scope field in glossary.config.yml to determine which context files are relevant. If working in src/checkout/, load checkout.glossary.yml + core.glossary.yml from the glossary root. If scope is ambiguous, ask: "Which context are you working in?"

Compatibility

The YAML format is compatible with Contextive. Contextive's VS Code extension can read these files and show hover definitions in the editor — it picks up name and definition, ignoring extra fields like code_name and related.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.12%
按下载量换算24

Claude

31.69%
按下载量换算21

Cursor

19.48%
按下载量换算13

Gemini CLI

8.87%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills