skills/orchestrate-code-review/SKILL.md
Orchestrator skill — sequence atomic review-* skills (scope → language → framework → library → cognitive) and aggregate findings into a unified report.
npx skillsauth add nesnilnehc/ai-cortex orchestrate-code-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
按固定顺序串联原子 review-* 技能并聚合 findings。本技能仅做编排,不执行代码分析。单维度审查请直接调用对应原子技能(如仅查 diff 用 review-diff、仅查安全用 review-security)。
按命名规范,编排技能只做 4 件事:
严禁:在本技能内执行代码分析、内嵌 lint 规则、为单一原子 skill 重复实现其逻辑。
| 步骤 | 类型 | 候选原子技能 | 选择规则 |
|---|---|---|---|
| 1 | scope | review-diff 或 review-codebase | 二选一,按用户意图(diff = 当前变更;codebase = 给定路径) |
| 2 | language | review-typescript / review-python / review-go / review-java / review-php / review-powershell / review-dotnet / review-sql | 0 或 1 个,按范围内主语言推断 |
| 3 | framework | review-react / review-vue | 0 或 1 个,按范围内框架推断 |
| 4 | library | review-orm-usage | 0 或 1 个,按范围内 ORM 使用情况推断 |
| 5 | cognitive | review-security → review-performance → review-architecture → review-testing | 全部按顺序执行 |
无匹配的步骤跳过;最终报告标注哪些步骤跳过及原因。
diff / codebase 间二选一按上表顺序依次调用原子技能,每步收集 findings(标准格式:location / category / severity / title / description / suggestion)。
任一原子技能失败 → 停止后续,输出已收集 findings + 失败说明。
location + title 跨步骤合并,保留最高 severity,在 description 标注其他命中步骤[]单一聚合报告:
risk_signals 列表(每条含 signal_name + 可选 confidence ∈ [0, 1])orchestrate-repair-loop)编排技能内不做(应由原子子技能或下游技能承接):
orchestrate-repair-loop 或开发流程review-diff → review-dotnet → review-security → review-performance → review-architecture → review-testingsrc/frontend,项目使用 Vue 3 + ORMreview-codebase → review-typescript → review-vue → review-orm-usage → review-security → review-performance → review-architecture → review-testingreview-codebase → 跳过 language / framework / library → cognitive 全部执行development
Generate an LLM agent test suite (golden cases, mock-LLM unit tests, evaluator harness) from an agent implementation and its agent-test contract. Use when an agent has no tests, or a contract exists but the test code is missing.
development
After code changes, auto-detect the project's build system and local deployment method for a given directory, then build the project and restart its locally-deployed environment (Docker Compose / systemd / process manager). Never assumes — asks only when detection is ambiguous. Caches detected commands per project in .cortex/redeploy-local.yaml; re-invocations on the same project skip re-scanning until signal files change, the cache expires (30 days), or the skill version bumps.
tools
Publish a NATS message conforming to a cross-team contract, using NATS MCP tools. Authors the contract on first use if missing. Reads project-level cache (.cortex/nats.yaml) to avoid re-prompting basics across sessions.
tools
Drain pending NATS messages from a producer contract via NATS MCP tools (default batch / drain-style). Applies Tolerant Reader semantics and per-message ack/nak/term, returning aggregated stats. Reads project-level cache (.cortex/nats.yaml) to avoid re-prompting.