From omni
Orchestrates reverse engineering of codebases into function lists, trees, and detailed Markdown docs via project entry, scenario identification, and partitioning. Triggers on `reverse --target functions` or `all`.
npx claudepluginhub zte-aicloud/co-omnispec --plugin omniThis skill uses the workspace's default tool permissions.
- **职责**:基于项目入口与场景信息,完成:
Orchestrates reverse engineering of codebases to extract interfaces, logic architecture, functions, scenarios, constraints into standardized Markdown documents. Supports full pipeline or on-demand targets.
Reverse-engineers existing codebases into V-Model artifacts: plan-context.md, ADRs, arc42 snapshot, FEATURE inventory, backlog seed, evidence-based BA draft. Use for brownfield projects or when V-Model artifacts are missing.
Generates PRD and Design Docs from existing codebases via discovery, generation, verification, and review workflow. Configurable for target path, depth, reference architecture, fullstack, and human review.
Share bugs, ideas, or general feedback.
reverse --target functions ... 或 --target all 触发--path / --files 等参数确定扫描范围{REPO_ROOT}/.cache/reverse/functions/
project-entries.jsonscenarios.jsonfunction-list.json、function-tree.json.cache-status.json{REPO_ROOT}/omni-doc/specs/functions/
FUNC-XXX-功能名称.md本 Skill 对应原
reverse-functions的“快捷命令 + 详细步骤”,现在以 Skill 形式承载该编排逻辑。
reverse 命令的关系reverse 负责:
--target 固定为 functions(或在 all 流水线中进入功能阶段);--interactive / --non-interactive / --yes);本 Skill 按以下阶段执行,阶段详细说明见本目录下 references/stages/:
{REPO_ROOT}/.cache/reverse/functions/.cache-status.jsonproject_entry_identification、scenario_identification、function_partitioning、function_document_generation 四个段落confirmed == true 且对应输出存在,可在后续执行中跳过该阶段。project-entries.json(支持批次与索引)--interactive 模式下可让用户确认入口识别结果。scenarios.json(支持批次与索引)function-list.json(批次+索引)function-tree.json--interactive 模式下展示功能划分结果并等待确认。{REPO_ROOT}/omni-doc/specs/functions/FUNC-XXX-功能名称.mdfunction-list.json 为输入,分批处理功能;.infra/metamodel/5.function-template.md 的结构和字段生成文档(frontmatter、章节、PlantUML 部分等必须保持一致);--interactive:在每个阶段结束后暂停,使用中文询问用户是否继续;--non-interactive / --yes:强制全自动。{REPO_ROOT}/.cache/reverse/functions/.cache-status.jsonreverse 为功能反构创建主任务与 4 个阶段 todo;本 Skill 的详细规范位于本目录下 references/:
执行本 Skill 时,AI Agent 应读取上述文档并严格按照其中描述的步骤和数据结构进行操作。