skills/review-diff/SKILL.md
Review only git diff for impact, regression, correctness, compatibility, and side effects. Scope-only atomic skill; output is a findings list for aggregation.
npx skillsauth add nesnilnehc/ai-cortex review-diffInstall 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.
仅审查当前变更(git diff:暂存 + 未暂存 + 可选未跟踪文件)的 5 维:意图 / 影响、回归 / 正确性、breaking change / 兼容性、副作用 / 幂等性、可观测性。产出 scope-only findings list,作为 orchestrate-code-review 的 scope 步聚合输入。
不做架构 / 安全 / 语言 / 框架特定分析——这些归对应原子技能。
首要目标:仅针对 diff 范围(含未跟踪文件)产出 5 维 findings list。
成功标准(必须全部满足):
scope / severity / title / description / suggestionfile:line 或 @@ 块本技能负责:
本技能不负责:
review-codebaseorchestrate-code-review交接点:findings 输出后作为 orchestrate-code-review 的 scope 步聚合输入;或交给 orchestrate-repair-loop 做修复迭代。
review-codebase 二选一对每个变更文件,按以下维度产出 findings:
location / category=scope / severity / title / description / suggestion)不做(其他原子技能负责):
review-codebaseorchestrate-code-reviewreview-securityreview-architecturedevelopment
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.