add-concept
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAdd Concept
添加概念
Always use the skill to retrieve the ***plain syntax rules — but only if you haven't done so yet.
load-plain-reference请务必使用skill 来获取plain语法规则——但仅在你尚未获取过的情况下执行此操作。
load-plain-referenceWorkflow
工作流程
- Identify the target file. If ambiguous, ask the user.
.plain - Read the file to understand existing definitions, imports, and concepts.
- Validate the concept name against the syntax rules below.
- Check for uniqueness — the concept name must not already exist in the file or its imports.
- Check referenced concepts — any used in the definition must already be defined above it (in this file or via
:ConceptName:/import). Concept references must not form cycles (e.g., A references B and B references A).requires - Check for circular references — if the new concept references , then
:B:must not reference the new concept (directly or indirectly). Example of a circular definition to avoid::B:Fix by removing the back-reference:plain- :Order: is placed by :Customer: and contains :OrderItem: entries. - :Customer: is a user who has placed at least one :Order:.plain- :Customer: is a user of the system. - :Order: is placed by :Customer: and contains :OrderItem: entries. - Insert the concept into the section, after any concepts it references.
***definitions*** - Read the file again to confirm correct placement and syntax.
- 确定目标文件。若存在歧义,请询问用户。
.plain - 读取文件,了解现有定义、导入内容和概念。
- 验证概念名称,确保符合下方的语法规则。
- 检查唯一性——概念名称不得已存在于文件或其导入内容中。
- 检查引用的概念——定义中使用的任何必须已在其上方定义(在当前文件中或通过
:ConceptName:/import导入)。概念引用不得形成循环(例如:A引用B,B引用A)。requires - 检查循环引用——如果新概念引用,则
:B:不得直接或间接引用该新概念。需避免的循环定义示例::B:修复方法:移除反向引用:plain- :Order: is placed by :Customer: and contains :OrderItem: entries. - :Customer: is a user who has placed at least one :Order:.plain- :Customer: is a user of the system. - :Order: is placed by :Customer: and contains :OrderItem: entries. - 插入概念到部分,放在它所引用的所有概念之后。
***definitions*** - 再次读取文件,确认放置位置和语法正确。
Concept Syntax Rules
概念语法规则
- Wrapped in colons:
:ConceptName: - CamelCase, starting with an uppercase letter
- Valid characters: letters, digits, ,
+,-,._ - Must be globally unique across the spec and all its imports
- Exported concepts from modules are not transitive — if a concept needs to be shared across multiple
requiresmodules, define it in a common import module insteadrequires
- 用冒号包裹:
:ConceptName: - 采用CamelCase格式,首字母大写
- 有效字符:字母、数字、、
+、-、._ - 在规范文件及其所有导入内容中必须全局唯一
- 从模块导出的概念不具有传递性——如果某个概念需要在多个
requires模块间共享,请在公共导入模块中定义它requires
Definition Format
定义格式
A concept definition is a bullet in that starts with the concept name:
***definitions***plain
***definitions***
- :ConceptName: is a description of what it represents.Attributes and constraints are nested sub-bullets:
plain
- :Task: describes an activity that needs to be done by :User:. :Task: has:
- Name - a short description (required)
- Notes - additional details (optional)
- Due Date - completion deadline (optional)概念定义是中的一个项目符号,以概念名称开头:
***definitions***plain
***definitions***
- :ConceptName: is a description of what it represents.属性和约束为嵌套的子项目符号:
plain
- :Task: describes an activity that needs to be done by :User:. :Task: has:
- Name - a short description (required)
- Notes - additional details (optional)
- Due Date - completion deadline (optional)Validation Checklist
验证检查清单
- Name uses notation
:CamelCase: - Name is globally unique (not defined elsewhere in the file or imports)
- Definition starts with the concept name
- All referenced concepts () are already defined above
:OtherConcept: - No circular references between concepts
- Description is clear, concise, and language-agnostic
- Placed inside a section
***definitions***
- 名称使用格式
:CamelCase: - 名称全局唯一(未在文件或导入内容的其他位置定义)
- 定义以概念名称开头
- 所有引用的概念()已在上方定义
:OtherConcept: - 概念间无循环引用
- 描述清晰、简洁且与语言无关
- 放置在部分内
***definitions***