本文へ移動
cccskills
無料GitHub で公開

test

Write or assess tests that prove behavior and would fail without the fix. Use when: writing tests, TDD, or asked whether a green test is enough.

インストール方法を見る

含まれるファイル(9)

  • SKILL.md7.0 KB
  • references/conformance-harnesses.md2.1 KB
  • references/fuzzing.md1.6 KB
  • references/golden-artifact-strategy.md2.0 KB
  • references/golden-artifacts.md1.7 KB
  • references/metamorphic-testing.md2.0 KB
  • references/real-service-e2e.md2.0 KB
  • references/test.feature1.0 KB
  • scripts/validate.sh1.2 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Test

Write or strengthen tests for a named behavior. Use existing tests directly when the task is only to run a known suite; this skill is not a required wrapper. A test is useful when it distinguishes an accepted outcome from a plausible failure, not merely when it executes the implementation. A green test is evidence for the caller's decision, never the test author's merge approval.

Modes

ModeUse whenResult
generateExisting behavior needs testsUseful tests and focused/suite results
coverageThe caller asks to find or fill gapsBefore/after coverage, valuable tests and remaining risks
tddNew behavior is being developed test firstReal expected RED, implementation, green and refactor
strategyThe caller wants test design onlyPrioritized risks and proposed checks in the existing discussion

Default to generate; mode and scope are skill prompt choices, not invented CLI flags. Coverage thresholds come from the caller or repository.

Critical Constraints

  • Assert the promised effect. Check the state change, stored record, outbound call or count the behavior promises, with exact expected values. A status code, a returned object or the absence of an exception alone does not prove the behavior.
  • A regression test proves nothing until it fails on the defect. Show that it fails on the pre-fix code (see Mutation-kill proof). Until then, report its proof as "not shown"; green alone is not yet proof.
  • Derive cases from accepted observable behavior; reuse examples from the conversation, bead, specification or existing contract before inventing new ones. Keep established domain names; do not unify bounded-context terms by renaming tests.
  • Use the repository's framework and real check recipe; keep tests free of accidental timing, ordering and shared-state dependencies.
  • A test that starts green on existing correct behavior is legitimate. Never manufacture a RED claim or alter acceptance to excuse a product defect.
  • Repair a discovered defect when already authorized; otherwise report the reproducer and finding. Do not mask it by deleting or weakening a test.

Oracle-strength hierarchy

Prefer exact observable values or errors when known. Use properties or invariants when they express the contract more faithfully than one example. Differential agreement needs an independently credible reference. A smoke check proves only what it observes; it cannot establish an exact behavior by itself. Explain a material oracle limit in the native handoff, without creating a worksheet or mandatory report.

Mutation-kill proof

Establish that an important new behavioral check can catch the defect it claims to guard. An authentic pre-fix RED or reproduction is usually sufficient. If a regression test was written after the fix, run it against the pre-fix version (revert the fix in an isolated copy) or use a safe, targeted negative control. Mutate only when that would resolve real doubt about the oracle, then restore and verify the candidate. Do not demand one mutation experiment per table row or new test.

Harness health floors

Confirm the runner completed, the intended tests actually ran, and assertions observe the promised behavior. Report crashes, truncation, unexpected skips or exclusions as gaps. When runner discovery or failure reporting changed, use a negative control through that same path before trusting green. No need to re-prove an unchanged healthy runner on each edit.

Workflow

  1. Read the accepted examples and the relevant public interface. One discriminating example may suffice for a small change; add the error and boundary cases that could falsify acceptance. A .feature file is optional; if the repository already uses scenario-to-test annotations, maintain them and use its scenario coverage checker.
  2. Find the owning suite and a narrow baseline. Use Domain's standards only if they would change the test choice. Measure broad coverage only in coverage mode or under an existing repository requirement.
  3. Write the smallest test that observes the promised result through a stable interface. In tdd mode run it before implementation and require the expected missing-behavior failure, then implement and refactor under green.
  4. Run focused checks while editing and the relevant integration recipe before handoff; broaden only for changed risk, a failure or repository policy.
  5. Compare against the original accepted examples. New tests added after implementation may supplement but never replace them.

Specialized references

Load only the guidance needed by the subject:

Output Specification

Tests belong in the repository's language-native locations. Check facts and limits go in the existing handoff:

tests:     <file::name> -> <behavior and exact values it asserts>
proof:     <each important new test> -> how it was shown to fail on its defect:
           pre-fix RED | reverted-fix run | negative control | not shown
commands:  <exact command> -> <result>
harness:   <runner completed; how many ran; skips or exclusions>
defects:   <discovered defect and reproducer, or none>
unchecked: <material behavior no test covers>

Persist coverage or other reports only when requested or required by a declared consumer, at its selected destination; no automatic .agents/ output. Factual green is input to the caller's merge or review decision, not the test author's binding PASS.

Example: for a duplicate Job delivery, assert that the completed result is returned and the external side effect is called only once. A coverage increase without those assertions would not prove the behavior.

This guidance uses original examples informed by Matt Pocock's engineering skills, with AgentOps' existing acceptance and evidence boundaries.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Use AtomLane to compile and execute safe atomic parallel plans on macOS and native Windows Preview for worthwhile independent argv tasks, dependency DAGs, supported platform entrypoints, or Apple-silicon operators. Use at task start or an execution boundary when structured local work may contain two or more worthwhile units; skip plain answers, one quick command, and work whose effects cannot be safely bounded.

日本語の概要は準備中です。原文の説明を表示しています。

hashgraph-online/awesome-codex-plugins1,2732026年10月10日 更新

add

無料

Register a deferred decision in the debt registry. Trigger by judgment, not a marker scan, whenever a future reader would ask "why this way?": an unmade decision, stub, loosened type, bypassed check, swallowed error, a default picked "for now", or a TODO/FIXME/HACK/XXX marker. Trigger immediately whenever you defer work, or when the user invokes $add. Over-register freely; the developer drops with "drop A", "drop A,C", or "drop all".

日本語の概要は準備中です。原文の説明を表示しています。

hashgraph-online/awesome-codex-plugins1,2732026年10月10日 更新

ADK 框架适配层。为 LangChain / EINO / AutoGen / AgentScope / CrewAI 提供框架特定的 代码模板、惯用模式、API 映射和项目结构,供 agent-dev-workshop Phase 5 代码生成使用。 每个框架 reference 文件标注 verified_date 用于版本锁定。

日本語の概要は準備中です。原文の説明を表示しています。

hashgraph-online/awesome-codex-plugins1,2732026年10月10日 更新

中文调试修复技能。用于报错、测试失败、页面异常、功能不符合预期、需要定位根因并做最小修复时。触发语包括"进入调试模式""帮我修问题""报错了""测试失败""页面坏了""找根因"。

日本語の概要は準備中です。原文の説明を表示しています。

hashgraph-online/awesome-codex-plugins1,2732026年10月10日 更新

交互式 AI Agent 开发工作坊:通过 6 阶段深度协作对话,引导用户完成 Agent 需求分析、架构设计、 工具定义、Prompt 与编排设计、代码生成、验证迭代,产出可直接运行的 Agent 项目。 框架无关设计优先,支持 LangChain / EINO / AutoGen / AgentScope / CrewAI 等 ADK 框架。

日本語の概要は準備中です。原文の説明を表示しています。

hashgraph-online/awesome-codex-plugins1,2732026年10月10日 更新

中文漂移审计技能。用于项目或学习过程变乱、上下文漂移、任务分叉、多个方案冲突、命名不一致、Codex 可能顺手改多了时。触发语包括"漂移检查""感觉跑偏了""项目变乱了""检查是否失控""分叉太多""上下文漂移"。

日本語の概要は準備中です。原文の説明を表示しています。

hashgraph-online/awesome-codex-plugins1,2732026年10月10日 更新

hashgraph-online のスキルをすべて見る

このスキルの問題を報告する