一键导入
code-test
Use only when autopilot-code dispatches implementation verification and evidence recording. Not for top-level user requests or primary capability routing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use only when autopilot-code dispatches implementation verification and evidence recording. Not for top-level user requests or primary capability routing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | code-test |
| description | Use only when autopilot-code dispatches implementation verification and evidence recording. Not for top-level user requests or primary capability routing. |
This is a Codex-native Skill projection generated from the portable capability contract. It is adapter-owned output, not a legacy compatibility Skill copy.
capabilities/code-test.mdadapters/codex/bin/preflight.sh capability-info code-testadapters/codex/AGENTS.mdcapabilities/code-test.md for the runtime-neutral contract.adapters/codex/bin/preflight.sh capability-info code-test.instruction-only: use this Skill as Codex guidance plus explicit preflight guards.tool-contract: report the named tool_contract, run any tool_contract_check, and obey runtime_surface / fallback before claiming full support.unsupported: stop or use the reported fallback.code-testparent-invokednone<plan name, path, or test scope> [--intensity direct|quick|standard|strong|thorough|adversarial]code-execute or on demand to verify code correctness. Intensity-derived rigor scales final verification and test-adequacy review; it does not force a separate parallel QA loop by itself. The capability resolves a plan path, changed-file list, or test scope, runs the applicable test levels, stops on the first failing level, and records durable evidence before reporting a verdict. When the verification target includes a report spectrogram, the graduated levels include the fail-closed figure semantic verifier against its manifest and report. Missing exact 48 kHz full-band metadata, range-compatible claims, shared-scale evidence, or a hash-current visual review is a failed level. Adapters may expose this capability through native commands, skill files, prompt instructions, or explicit wrappers. The adapter must report unsupported runtime mechanics instead of silently treating another runtime's native file format as portable.Use the shared artifact root rule: prefer .agent_reports/; use legacy .claude_reports/ only when it already exists and .agent_reports/ does not.
When invoked from a standard+ autopilot-code stage cycle, write verification
evidence only under <artifact-root>/plans/<date>_<slug>/test_logs/ and
_internal/test_reviews/. Return the final verdict to code-report, which owns
pipeline_summary.md; the code-test stage must not write that report-owned
artifact. Standalone invocations should create or reuse an appropriate
plans/<date>_<slug>/ work-cycle directory and may update their own standalone
summary when no code-report stage exists.
Required evidence:
code-report.Use portable role names from roles/README.md and core/CONVENTIONS.md.
Concrete model names, subagent frontmatter, and runtime-specific tool lists
belong in adapter files.
Minimum role mapping:
roles/units/qa/test.md;Adapters must preserve the portable invariants relevant to this capability:
utilities/artifact-root.sh or equivalent logic;Additional test-entry gates:
roles/units/qa/test.md semantics or the adapter-native projection of
that mode before claiming verification;verification-runner tool contract, run its
contract check or report unavailable;code-test;roles/units/qa/test.md:
syntax, import, smoke, functional, integration, and behavioral runtime
observation for user-facing surfaces.
If changed outputs include a spectrogram report, also run the fail-closed
figure semantic verifier against its manifest and report.test_logs/.code-report; in a standard+ stage
cycle, code-report alone updates pipeline_summary.md. When no
code-report stage exists, a standalone invocation may update its own
standalone work-cycle summary.adapters/codex/bin/preflight.sh write <file> [session-id]adapters/codex/bin/preflight.sh route code-test [cwd] [session-id]adapters/codex/bin/preflight.sh capability code-test [cwd] [session-id]adapters/codex/bin/preflight.sh read <prd.md> [session-id]adapters/codex/bin/preflight.sh status [cwd] [session-id] and adapters/codex/bin/preflight.sh prompt-signal [cwd] [session-id]Do not use legacy compatibility Skill files or non-native adapter Skill files as Codex-native source. Those files are compatibility/reference surfaces only.
Use when source code must be implemented, debugged, refactored, or code-audited through a plan, execution, test, and report loop. Not for requirements-only changes, new empirical experiments, or document-only editing.
Use when persistent analysis of code, a paper, or a document must be created or refreshed because it is absent, stale, or explicitly requested. Not for read-only project orientation, context recovery, or status reporting.
Use when durable cross-project user preferences must be inferred from coding, writing, or analysis evidence and stored as a profile. Not for one-project context recovery, casual preference acknowledgment, or ordinary task execution.
Use when a visual product surface needs references, design tokens, components or mockups, review, and development handoff. Not for implementing an already-approved design in code or for document prose work.
Use when a new paper, presentation, report, proposal, or other user-facing document must be produced from evidence. Not for correcting only an existing document or for source-code implementation.
Use only when autopilot-draft dispatches document strategy and evidence-plan creation. Not for top-level user requests or primary capability routing.