跳到主要内容
知仓学习社ZHICANG

create-test

Define or implement regression proof: test strategy, black-box/integration tests, KPIs, thresholds, audits, or missing tests.

不碰外部(只输出文字)无严重或高危命中hashgraph-online/awesome-codex-plugins

它会碰到什么

扫了多少2 个文本文件,3 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Create Test

Start with the user need or business rule that must always hold, not files, coverage, or internal calls. Inspect for facts; ask only for business decisions that cannot be discovered.

Define the regression contract

Establish:

  • actors, goals, and externally observable outcomes;
  • business rules and invariants that must never change;
  • critical paths and relevant rejection, timeout, retry, permission, concurrency, and partial-failure cases;
  • the current baseline and every intended behavior change;
  • KPIs with window, data set, acceptable variance, and justified pass/fail threshold;
  • systems crossed, production-like data needs, and evidence the available environment can actually provide.

Never invent a metric or threshold; record the gap.

Choose the proof

Prefer the highest reliable boundary:

  1. black-box tests through the public API, UI, job, event, or CLI;
  2. deep integration with the real database, queue, connector, or protocol;
  3. contract, replay, property, or characterization tests for narrower risks;
  4. unit tests for isolated rules where a wider test adds no confidence.

Mock only beyond the verified boundary. For database or migration work, read [integration patterns](references/integration-patterns.md).

When proving a process manager, worker, container entrypoint, or deployed artifact, exercise the real container or OS image, not only a host process, and verify worker replacement, signal handling, and graceful shutdown where those boundaries apply.

For strategy or audit only, return the contract, prioritized scenarios, proof method, and blind spots. Judge tests by failures caught, not assertion or coverage counts.

Implement when asked

Follow project layout and the development loop. Add the smallest important proof, observe it fail, make approved source changes, then observe it pass.

Assert outcomes, state, events, metrics, and error contracts rather than calls. Run focused and relevant suites. Report what the evidence proves and what it does not cover.

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。