From omni
Identifies external dependency interfaces with call sites in the codebase across Python, JS/TS, Java, Go, C++; generates MD docs and JSON summary. Triggered by reverse --target external-interfaces.
npx claudepluginhub zte-aicloud/co-omnispec --plugin omniThis skill uses the workspace's default tool permissions.
- **职责**:识别代码库中来自**外部模块**且在本仓库中有调用示例的接口,并生成标准化文档。
Orchestrates reverse engineering of interface lists and detailed Markdown docs from codebases. Triggers on `reverse --target interfaces` or `all`; depends on prior logic architecture JSON.
Runs 7-phase analysis of TypeScript codebases using typegraph-mcp tools like ts_dependency_tree and ts_import_cycles, producing architectural report for onboarding or overviews.
Explores code dependency graphs using CocoSearch to trace file connections, analyze change impacts, identify hub files, and understand relationships.
Share bugs, ideas, or general feedback.
reverse --target external-interfaces ... 或 --target all 触发--path / --exclude 等参数确定扫描范围{REPO_ROOT}/.cache/reverse/external-interfaces/
import-list.json.cache-status.json 等{REPO_ROOT}/omni-doc/specs/external-interfaces/
EXTERNAL-API_{NNN}_{简短描述}.mdEXTERNAL-API_SUMMARY.json“外部”指:非系统标准库且非当前仓库自身代码的模块;仅当存在调用点时才生成一条外部接口记录。
reverse 命令的关系reverse 负责解析参数 (--target external-interfaces)、设置扫描范围与排除规则、准备缓存目录后,激活本 Skill。本 Skill 由两大阶段组成(对应原 reverse-external-interfaces.md 与 reverse.external-interfaces/stages/*):
支持自动化模式(默认)与对话模式(--interactive),并支持 --clear-cache 进行重录。
import-list.json:包含符号、来源模块、分类、文件位置等信息。import/from,Java import,C++ #include,Go import,JS/TS import/require 等);--path 与 --exclude 控制扫描范围,默认排除隐藏目录与 omni-doc/;EXTERNAL-API_{NNN}_{简短描述}.mdEXTERNAL-API_SUMMARY.json--non-interactive/--yes 模式下跳过上述对话,自动执行。{REPO_ROOT}/.cache/reverse/external-interfaces/.cache-status.jsonimport_scan、document_generation 等段落。--clear-cache):
omni-doc/specs/external-interfaces/ 下旧的 EXTERNAL-API_*.md 与 EXTERNAL-API_SUMMARY.json,再重新扫描与生成。references/ 中对 --path / --exclude 与默认排除目录的定义。--interactive;--interactive;--non-interactive 或 --yes 时,强制进入全自动模式。--path、--files:控制扫描范围;--exclude:多次传入以排除测试/构建等目录;--clear-cache:重录;reverse 保持一致。本 Skill 的详细规范位于本目录下 references/:
AI Agent 在执行本 Skill 时,应读取上述文档并严格遵循其中的规则与脚本调用方式。