开发与测试
opcore
Use for repository code intelligence and introduced-change validation in Zeroshot.
the-open-engine · 已有 AI 审核记录
安装与使用
运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。
npx skills add the-open-engine/zeroshot --skill opcore技能说明
name: opcore description: Use for repository code intelligence and introduced-change validation in Zeroshot.
Opcore
Opcore is Zeroshot's packaged, repository-local constraints gate. It supplements rather than replaces the repository's lint, type, test, CI, and review guardrails.
- Run
npm run opcore:statusbefore broad work. If the persistent graph is stale, runnpm run opcore:graph:build; after source changes, refresh it withnpm run opcore:graph:update. - Use
opcore graph search,impact, andreview-context, plusopcore inspect definition,references,signature, andimplementations, when graph-backed evidence will reduce uncertainty. - Use
opcore validate hypotheticalor the installed pre-write hook before a proposed write when the harness does not invoke the hook automatically. - Run
npm run opcore:checkbefore finalizing source edits. This gate reports only diagnostics introduced relative to the Git base; existing repository debt is not a blocking result. - Run
npm run opcore:scanandnpm run opcore:measurefor named repository metrics and deltas, not as opaque ratings. - Treat unsupported stacks, unavailable tools, stale graphs, and indeterminate results honestly; never report them as clean coverage.
- Preserve all existing repository guardrails. A full-tree
opcore check allis an audit command, not a blocking commit, CI, or agent gate.