From omni
Extracts logical entities from reverse-engineered interfaces, fuses duplicates, generates entity docs, and builds entity-interface relationships. Triggers on reverse --target entities or all.
npx claudepluginhub zte-aicloud/co-omnispec --plugin omniThis skill uses the workspace's default tool permissions.
- **职责**:基于接口与功能等既有反构产物,抽取逻辑实体,完成:
Orchestrates full reverse engineering across 8 stages—logic architecture, interfaces, functions, entities, scenarios, requirements, external interfaces, rules—automatically when `reverse --target all`. Non-interactive with fixed outputs.
Extracts domain entities from requirements and user stories using DDD principles, defines attributes and constraints, models relationships with cardinality, and documents state machines.
Generates database schema docs with tables, constraints, indexes, retention policies, and migration notes from entities, PRDs, or existing schemas.
Share bugs, ideas, or general feedback.
document_generation.confirmed == true)reverse --target entities ... 或 --target all 触发{REPO_ROOT}/.cache/reverse/entities/
.cache-status.json{REPO_ROOT}/omni-doc/specs/entities/ENTITY-*.md{REPO_ROOT}/omni-doc/specs/entities/实体清单.mdomni-doc/specs/entities/relations/*.json本 Skill 继承原有阶段设计,仅改变为 Skill 形式;所有约束、依赖与 Token 管理保持不变。
reverse 命令的关系reverse 负责:
--interactive)。本 Skill 按以下阶段执行,阶段详细说明见本目录下 references/stages/:
{REPO_ROOT}/.cache/reverse/entities/.cache-status.json{REPO_ROOT}/.cache/reverse/interfaces/.cache-status.json 中 document_generation.confirmed == true)entity_extraction、entity_consolidation、entity_document_generation、entity_relationship_building)。本 Skill 内 references/stages/01-entity-extraction-from-interfaces.md{REPO_ROOT}/.cache/reverse/entities/entity-extraction/ENTITIES-{原接口文件名}.mdentities-index.json、extraction_stats.jsonlineage/*.json--yes:自动视为已确认抽取结果;--interactive:展示抽取统计与代表性实体,请用户确认后进入下一阶段。本 Skill 内 references/stages/02-entity-consolidation.md{REPO_ROOT}/.cache/reverse/entities/entity-consolidation/consolidated-entities.jsonentities_lineage.jsonconsolidation_stats.json本 Skill 内 references/stages/03-entity-document-generation.mdomni-doc/specs/entities/ENTITY-*.mdomni-doc/specs/entities/实体清单.md本 Skill 内 references/stages/04-entity-relationship-building.mdomni-doc/specs/entities/relations/interface-entity.jsonomni-doc/specs/entities/relations/entity-interface.jsonomni-doc/specs/entities/relations/function-entity.json(在功能反构已完成时)reverse-entities.md 与各阶段文档中的路径与字段约定。reverse 为 entities 初始化的 todo(主任务 + 0~4 阶段);本 Skill 的详细规范位于本目录下 references/:
执行本 Skill 时,AI Agent 应读取上述文档并严格按照其中描述的阶段与脚本调用方式执行。