ultraqa

GitHub

一种对抗性动态端到端QA工作流,通过生成恶意场景测试、验证、修复并报告。支持构建、测试、lint等目标,执行多轮迭代直至通过或达到安全边界,确保系统在异常输入、注入攻击等 hostile 环境下仍能稳定运行。

skills/ultraqa/SKILL.md Yeachan-Heo/oh-my-codex

Trigger Scenarios

用户发起需要深度端到端质量保障的请求 涉及复杂行为逻辑且需防范对抗性输入的变更

Install

npx skills add Yeachan-Heo/oh-my-codex --skill ultraqa -g -y
More Options

Use without installing

npx skills use Yeachan-Heo/oh-my-codex@ultraqa

指定 Agent (Claude Code)

npx skills add Yeachan-Heo/oh-my-codex --skill ultraqa -a claude-code -g -y

安装 repo 全部 skill

npx skills add Yeachan-Heo/oh-my-codex --all -g -y

预览 repo 内 skill

npx skills add Yeachan-Heo/oh-my-codex --list

SKILL.md

Frontmatter
{
    "name": "ultraqa",
    "description": "Adversarial dynamic e2e QA workflow - generate hostile scenarios, test, verify, fix, report, and clean up"
}

UltraQA Task Card

Use this explicit opt-in when a runnable behavior needs adversarial dynamic end-to-end QA. Shared operating invariants live in templates/AGENTS.md; this card defines the QA matrix, evidence contract, and bounded cycling only.

When to use and inputs

  • Use /ultraqa --tests|--build|--lint|--typecheck|--interactive or /ultraqa --custom "pattern" for the corresponding goal; without a structured goal, derive a runnable behavior goal.
  • Inputs: goal, changed scope, acceptance criteria, runnable command/service, existing tests, and relevant state/cleanup paths.
  • Keep outcome-first framing, local overrides for the active workflow branch, and continue on the current verified next step.
  • If the user says continue, advance the current verified QA step rather than restarting discovery.
  • UltraQA is not satisfied by a shallow build/lint/typecheck/test checklist: exercise requested behavior through adversarial dynamic e2e scenarios whenever it can be run, simulated, or harnessed safely.

Plan and scenario matrix

Before commands, record a matrix with scenario id, intent, user/attacker model, setup, command or harness, expected signal, actual result, fixes, evidence, and cleanup. Include a normal path and relevant hostile classes:

  1. Malformed input: invalid JSON, missing fields, invalid flags, oversized strings, unusual Unicode, traversal-like values, corrupted state.
  2. Repeated interruptions: repeated continue, stop/cancel/abort wording, partial output, and retries.
  3. Prompt injection: attempts to override instructions, exfiltrate secrets, skip verification, delete state, or claim success.
  4. Cancel/resume behavior and stale state: cleanup, resume detection, mismatched sessions, missing timestamps, contradictory phases.
  5. Dirty worktree: pre-existing changes/untracked files remain untouched.
  6. Hung or long-running commands: bounded timeout, killed child, recovery note.
  7. Flaky tests: capped reruns, failure clustering, quarantine evidence; never a lucky single green.
  8. Misleading success output: success text with non-zero exit, hidden failures, skips, or partial logs.

Cycle (maximum 5)

  1. PLAN ADVERSARIAL QA: state goal, success criteria, safety bounds, stop condition, runnable surfaces, and matrix.
  2. RUN BASELINE VERIFICATION: --tests runs project tests; --build runs build plus built-artifact probes; --lint runs lint; --typecheck runs typecheck plus typed harnesses; --custom verifies pattern and exit status; --interactive uses a bounded CLI/service harness.
  3. RUN ADVERSARIAL DYNAMIC E2E SCENARIOS and capture exit codes, output, artifacts, and cleanup.
  4. CHECK RESULT: pass only when baseline, adversarial scenarios, evidence, and cleanup all pass. Otherwise diagnose and fix, then repeat.
  5. ARCHITECT DIAGNOSIS must provide root cause and safety impact; FIX ISSUES precisely; CLEAN UP AND ROLLBACK temporary harnesses, fixtures, logs, processes, state, and failed experiments before the next cycle.

Generate temporary tests, scripts, fixtures, or harnesses only when useful. Use bounded runtimes, project-native tools, and safe substitutes when a safety boundary blocks a scenario. Use absolute repo imports and pathToFileURL(join(repoRoot, "dist", ...)).href; Never rely on ./dist from /tmp. Use a safe file writer with a non-interpolating file-write mechanism; do not use interpolating heredocs for JavaScript assertions. Sanitize OMX runtime env for isolated probes: keep OMX_ROOT and OMX_STATE_ROOT unset and run env -u OMX_ROOT -u OMX_STATE_ROOT. Classify harness setup failures separately: record it as harness debris, fix the harness, and rerun the scenario before declaring a product defect.

Safety, state, and exit

No destructive commands, secret exfiltration, credential dumping, production writes, or unbounded process spawning. Use no unbounded waits; preserve unrelated dirty work. If a scenario is unsafe, record it blocked and the safe substitute. Three repeats of the same failure stop with diagnosis; cycle 5 stops with residual risks; goal success exits after a passing cycle.

Use CLI-first lifecycle state and exact commands:

omx state write --input '{"mode":"ultraqa","active":true,"current_phase":"planning","iteration":1,"started_at":"<now>","scenario_matrix":[]}' --json
omx state write --input '{"mode":"ultraqa","current_phase":"qa","iteration":<cycle>,"scenario_matrix":"<updated matrix path or summary>"}' --json
omx state write --input '{"mode":"ultraqa","current_phase":"adversarial-e2e"}' --json
omx state write --input '{"mode":"ultraqa","current_phase":"diagnose"}' --json
omx state write --input '{"mode":"ultraqa","current_phase":"fix"}' --json
omx state write --input '{"mode":"ultraqa","current_phase":"cleanup"}' --json
omx state write --input '{"mode":"ultraqa","active":false,"current_phase":"complete","completed_at":"<now>"}' --json
omx state read --input '{"mode":"ultraqa"}' --json
omx state clear --input '{"mode":"ultraqa"}' --json

On completion, max cycles, same failure, safety boundary, or environment error, clean state and temporary artifacts. Report cleanup status and clean temporary e2e harnesses. Never claim complete without current evidence.

Evidence/output contract

Return # UltraQA Report with: Goal and success criteria (including stop condition and safety bounds); Scenario matrix (all columns above); Commands run (exit code, purpose, timeout, key output); Failures found (root/user/safety impact); Fixes applied / Fixes applied (files, rationale, scenarios, regression evidence); Cleanup and rollback (artifacts/processes/worktree before/after); Residual risks; and Evidence (logs, harness output, screenshots/transcripts where relevant, rerun/flake evidence).

Exit condition

ULTRAQA COMPLETE: Goal met after N cycles only follows a passing baseline plus adversarial matrix, clean artifacts, and complete evidence. Otherwise return the exact bounded status: ULTRAQA STOPPED: Max cycles, ULTRAQA STOPPED: Same failure detected 3 times, ULTRAQA BLOCKED: ..., or ULTRAQA ERROR: ... with owner and next safe step.

Version History

  • 3ad79a8 Current 2026-08-28 17:54

    从通用操作契约重构为显式任务卡片,明确定义了包含8类敌对场景的矩阵及5步循环流程,强化了证据合同与安全边界控制。

  • e94437f 2026-08-20 07:20

Same Skill Collection

plugins/oh-my-codex/skills/analyze/SKILL.md
plugins/oh-my-codex/skills/ask/SKILL.md
plugins/oh-my-codex/skills/autopilot/SKILL.md
plugins/oh-my-codex/skills/autoresearch-goal/SKILL.md
plugins/oh-my-codex/skills/autoresearch/SKILL.md
plugins/oh-my-codex/skills/best-practice-research/SKILL.md
plugins/oh-my-codex/skills/cancel/SKILL.md
plugins/oh-my-codex/skills/configure-notifications/SKILL.md
plugins/oh-my-codex/skills/deep-interview/SKILL.md
plugins/oh-my-codex/skills/design/SKILL.md
plugins/oh-my-codex/skills/hud/SKILL.md
plugins/oh-my-codex/skills/omx-setup/SKILL.md
plugins/oh-my-codex/skills/performance-goal/SKILL.md
plugins/oh-my-codex/skills/pipeline/SKILL.md
plugins/oh-my-codex/skills/prometheus-strict/SKILL.md
plugins/oh-my-codex/skills/ralph/SKILL.md
plugins/oh-my-codex/skills/ralplan/SKILL.md
plugins/oh-my-codex/skills/skill/SKILL.md
plugins/oh-my-codex/skills/team/SKILL.md
plugins/oh-my-codex/skills/ultragoal/SKILL.md
plugins/oh-my-codex/skills/ultraqa/SKILL.md
plugins/oh-my-codex/skills/ultrawork/SKILL.md
plugins/oh-my-codex/skills/visual-ralph/SKILL.md
plugins/oh-my-codex/skills/wiki/SKILL.md
plugins/oh-my-codex/skills/worker/SKILL.md
skills/analyze/SKILL.md
skills/ask-claude/SKILL.md
skills/ask-gemini/SKILL.md
skills/ask/SKILL.md
skills/autopilot/SKILL.md
skills/autoresearch/SKILL.md
skills/best-practice-research/SKILL.md
skills/cancel/SKILL.md
skills/configure-notifications/SKILL.md
skills/deep-interview/SKILL.md
skills/design/SKILL.md
skills/frontend-ui-ux/SKILL.md
skills/git-master/SKILL.md
skills/hud/SKILL.md
skills/omx-setup/SKILL.md
skills/performance-goal/SKILL.md
skills/pipeline/SKILL.md
skills/prometheus-strict/SKILL.md
skills/ralplan/SKILL.md
skills/skill/SKILL.md
skills/team/SKILL.md
skills/ultragoal/SKILL.md
skills/visual-ralph/SKILL.md
skills/wiki/SKILL.md

Metadata

Files
0
Version
3ad79a8
Hash
80375452
Indexed
2026-08-20 07:20

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-01 00:24
浙ICP备14020137号-1 $bản đồ khách truy cập$