跳到正文
cccskills
免费在 GitHub 公开

con-artist

Audit whether tests detect broken behavior by tracing assertions and running narrow controlled mutations in an isolated workspace; use for test-quality reviews, not routine test execution.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(12)

  • SKILL.md5.6 KB
  • agents/openai.yaml205 B
  • assets/unittest_startup.py2.0 KB
  • references/existing-tests.md6.3 KB
  • references/native-unittest-batch.md7.1 KB
  • references/python-audit-advanced.md8.8 KB
  • references/python-audit-batch.md5.0 KB
  • references/python-audit-probes.md5.7 KB
  • references/python-audit.md8.9 KB
  • references/python-context.md8.8 KB
  • scripts/audit.py38.2 KB
  • scripts/context.py17.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Con Artist

Your mock is very impressed with itself.

Check what the test actually buys

Trace the requested assertions far enough to establish the actual exercised effect and select a reachable fault. Follow unresolved bindings, mocks and relevant setup; reading every intermediate wrapper is not itself evidence. Reuse known instructions, runner and source context. Keep discovery inside the permitted project root; a broad suite need not become a reading list of unrelated tests.

Use the evidenced runner and configuration; reuse a valid correct-code baseline. Choose one meaningful fault at the requested boundary, such as acknowledging without persisting. Preserve originals and compilation/binding context through project isolation, disposable module/package copies or a valid substitution; restore substitutions in reused processes. A wrong binding, rewritten simulation, syntax error or equivalent mutation cannot establish test sensitivity.

Before adding an assertion, identify the required observable contract. Object identity (including exception or traceback identity) needs an explicit identity requirement; propagation or unwinding alone does not imply it. Reuse existing neighboring controls when they cover the required boundary. Check the proposed assertion on correct code before interpreting its failure on faulty code.

Inspect each phase's actual assertion and exit, not just a green baseline or a nonzero mutant status. Runner errors/warnings can indicate broken assertion plumbing, not a detected production fault. Establish provenance through copied imports, traced bindings and defect-specific observations. Add instrumentation for required or unresolved dispatch, not duplicate evidence; a separate import-only process does not prove what the test process loads.

Use support only where it helps

  • Nearby known files: read relevant source/configuration directly. For scattered Python context, the collector locates definitions, ancestor instructions and fixtures. Select known bodies directly; indexes are navigation, not reviewed bodies or execution. Don't recollect equivalent context.
  • Existing Python test improvements: consider the complete four-check recipe when they remove custom copy/run/cleanup plumbing. One recipe checks original and proposed tests against correct/faulty code with the native runner and fixtures; Native python -B -m unittest uses the same single recipe with "invocation": "module"; one fault’s original/stronger phases do not need the batch guide. Localized changes can use an exact edit instead of a complete replacement file. Applying the verified edit remains separate. No helper is needed for a simpler native workflow or an already-completed audit.
  • Several independent Python faults or required test selections: choose the matching runner. For pytest, use the common CLI contract with batch fields, "runner": "pytest" and the default bootstrap invocation; "invocation": "module" is unittest-only. For required python -B -m unittest, the native unittest batch recipe provides actual python -B -m unittest execution, same-process binding prechecks, copy cleanup and reusable correct observations without writing your own startup script. Consider it when those facilities remove needed orchestration. One fault's correct/mutant and stronger-assertion phases do not alone need a batch: the single-audit contract supports them, as well as pytest and inline probes. Prefer existing project support or a simpler native check when sufficient; don't restart a completed audit to adopt a helper. It checks selected files by default; enable guard_project for required, authorized whole-project inventories. Inspect implementation for a concrete trust/adaptation question.
  • Unexpected Python runner errors/warnings: diagnostics covers false-pass assertion helpers and incomplete checks. It is not routine setup.

If tests survive, distinguish demonstrating the gap from verifying a repair. For a proposal-only review, give a concrete assertion and label it unexecuted unless checked; demonstrating the requested fault still requires execution. For requested test improvements or a claim that an assertion closes the gap, verify it on correct and faulty code: pass the former, fail the latter for the intended effect, not merely success or container size. If killed, identify the detecting assertion or warning policy; this protects that fault, not every lifecycle path.

Deliver and stop

Give decisive commands/results and the gap/proposed assertion or detecting check. Distinguish executions from comparisons: one correct run used against several faults is reused evidence even in a custom harness. Label that reuse and count the run once, not once per comparison. Keep a harness/report only for requested reuse or delivery. Without isolated execution, label the concern static. Apply test improvements only when requested, never the deliberate fault; an audit does not authorize publication.

Stop when the scoped claim and requested improvements are verified. Add faults only for distinct material boundaries, not to fish for survivors, chase a global mutation score or remove every mock. Preserve user changes and explicit requirements.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

exorcist

免费

Diagnose an uncertain bug by designing experiments that distinguish competing causes, especially speculative cache, timing, environment, or concurrency explanations.

中文简介正在准备中。当前显示原文说明。

SoonGwan/questionable-hires142026年10月8日 更新

friday

免费

Review a planned deployment or release diff for rollback feasibility, mixed-version compatibility, migrations, and configuration readiness without deploying it.

中文简介正在准备中。当前显示原文说明。

SoonGwan/questionable-hires142026年10月8日 更新

Keep a small requested change focused when optional refactors, architectural redesign, or unrelated cleanup threaten to expand its scope.

中文简介正在准备中。当前显示原文说明。

SoonGwan/questionable-hires142026年10月8日 更新

landlord

免费

Review proposed abstractions, dependencies, and configuration for concrete consumers and maintenance cost when simplifying a design or checking overengineering.

中文简介正在准备中。当前显示原文说明。

SoonGwan/questionable-hires142026年10月8日 更新

Test a changed user interaction for realistic sequence failures such as double submission, stale responses, navigation, and recovery; use for interaction QA rather than general code review.

中文简介正在准备中。当前显示原文说明。

SoonGwan/questionable-hires142026年10月8日 更新

Trace the purpose of suspicious legacy code using current callers, tests, and Git history when deciding whether it can be changed or removed.

中文简介正在准备中。当前显示原文说明。

SoonGwan/questionable-hires142026年10月8日 更新

查看 SoonGwan 的全部技能

报告此技能的问题