skills/review-testing/SKILL.md
Review code for testing: test existence, coverage adequacy, test quality and structure, edge-case and error-path coverage, and test maintainability. Cognitive-only atomic skill; output is a findings list.
npx skillsauth add nesnilnehc/ai-cortex review-testingInstall 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.
仅审查 测试 问题的代码。不要定义范围(差异与代码库)或执行语言/框架/安全/架构分析;这些是单独的原子技能。以标准格式发出结果列表以进行聚合。重点关注测试的存在性和覆盖率、测试质量和结构、测试类型和分层、边缘情况和错误路径覆盖率以及测试可维护性。
首要目标:生成一个以测试为中心的结果列表,涵盖给定代码范围的测试存在性、覆盖充分性、测试质量/结构、测试类型/分层、边缘情况覆盖率和测试可维护性。
成功标准(必须满足所有要求):
验收测试:输出是否包含涵盖所有相关维度的测试结果列表,以及适合风险的严重性评级和提高测试覆盖率和质量的可行建议?
本技能负责:
本技能不负责:
转交点:发出所有测试结果后,将其移交给“审查代码”,以便在精心策划的审核中进行聚合。对于实际运行的测试,请重定向到“automate-tests”。
何时使用:当任务包括测试审核时。范围和代码范围由调用者或用户确定。
不要做这些(其他技能可以处理它们):
何时停止并交接:
输出是否包含涵盖所有相关维度的测试结果列表,以及适合风险的严重性评级和提高测试覆盖率和质量的可行建议?
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.