From omni
Orchestrates on-demand refactoring from business intent via reverse --target on-demand. Handles branch/feature prep, deep architecture identification, and simple/complex demand execution with analysis docs.
npx claudepluginhub zte-aicloud/co-omnispec --plugin omniThis skill uses the workspace's default tool permissions.
**SDD环境初始化**: 执行`bash ${CLAUDE_PLUGIN_ROOT}/scripts/bash/init_infra.sh ${CLAUDE_PLUGIN_ROOT} !`pwd` `
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.
SDD环境初始化: 执行bash ${CLAUDE_PLUGIN_ROOT}/scripts/bash/init_infra.sh ${CLAUDE_PLUGIN_ROOT} !pwd
根据返回值进行处理:
reverse --target on-demand ... 触发spec.md 存在,也不会创建/修改 changes/<feature>/spec.md{FEATURE_DIR}/on-demand/:按需反构中间产物/缓存{REPO_ROOT}/omni-doc/on-demand/on-demand-existing-function-analysis-{BRANCH_NAME}.md:主汇总文档{REPO_ROOT}/omni-doc/on-demand/functions/{function_key}.md:逐功能分析文档(简单/复杂流程共用目录){REPO_ROOT}/omni-doc/on-demand/interfaces/{interface_key}.md:逐接口分析文档(接口独立产物,功能文档通过引用关联)本 Skill 对应原
reverse-on-demand.md中的阶段化流程和子 Agent 调用约定,仅把入口改为 Skill。
reverse 命令的关系reverse 负责:
$ARGUMENTS,包括 --requirement、--intent、--demand-complexity 等;本 Skill 按以下阶段执行,阶段详细说明见本目录下 references/stages/:
create-branch(skills/create-branch/SKILL.md)FEATURE_DIR;REPO_ROOT:仓库根目录(绝对路径)BRANCH_NAME:特性分支名FEATURE_DIR:特性目录(绝对路径)SPEC_FILE:由 create-branch 返回(仅记录路径,不作为 on-demand 依赖)FEATURE_DIR 必须位于 {REPO_ROOT}/changes/ 目录下(形如 {REPO_ROOT}/changes/<short-name>)。FEATURE_DIR 不在 changes/ 下(例如落到 specs/、features/),必须立即报错终止,不得继续阶段2/阶段3。REPO_ROOT、BRANCH_NAME、FEATURE_DIR),不得重新推导目录或分支名。deep_architecture_result:通常为 {REPO_ROOT}/omni-doc/on-demand/logic_architecture.md$ARGUMENTS 中解析 --demand-complexity=<simple|complex>;simple。references/stages/03a-simple-on-demand-reverse.md(安装后路径可能为 {REPO_ROOT}/.claude/skills/reverse-on-demand/references/stages/03a-simple-on-demand-reverse.md,安装脚本会将 .claude/ 替换为实际的 agent 目录,例如 .claude/ 或 .cursor/);simple-on-demand-reverse-agent;FEATURE_DIR、REPO_ROOT、arguments、constitution_path(可选)、deep_architecture_result。{FEATURE_DIR}/on-demand/ 中的中间产物;references/stages/03b-complex-on-demand-reverse.md;complex-on-demand-function-analyzer,遍历波及功能清单;function-interface-map.json 逐接口生成并校验接口文档;gate_passed=false 时禁止进入步骤7);{REPO_ROOT}/scripts/bash/reverse/on-demand/build-stage3-todos.sh;{REPO_ROOT}/scripts/bash/reverse/on-demand/validate-stage3-gate.sh;{FEATURE_DIR}/on-demand/:阶段性产出与缓存(中间过程路径不可擅自更改);{REPO_ROOT}/omni-doc/on-demand/functions/:各波及功能独立文档;{REPO_ROOT}/omni-doc/on-demand/interfaces/:各波及接口独立文档;{REPO_ROOT}/omni-doc/on-demand/on-demand-existing-function-analysis-{BRANCH_NAME}.md:最终汇总文档(simple/complex 统一命名)。{FEATURE_DIR}/on-demand/stage3/function-interface-map.json 固化功能-接口关系。@startuml 和 @enduml执行复杂流程步骤5或简单流程步骤2.6中的波及检索时,除各 stage 文档既有要求外,必须同时遵守 references/stages/03b-complex-on-demand-reverse.md 中「波及功能分析强制补充步骤」:
ls(或递归列出)得到完整文件清单,不遗漏同目录成员。simple-on-demand-reverse-agentcomplex-on-demand-function-analyzer本 Skill 的详细规范位于本目录下 references/,分支管理由 Skill create-branch 提供:
create-branch执行本 Skill 时,AI Agent 必须读取上述文档并严格按照其中的说明与约束执行。