ultraqa
Skill này làm gì
Skill này kiểm thử một tính năng đang chạy bằng cách cố làm nó hỏng, không chỉ chạy một danh sách kiểm tra. Skill dành cho các nhóm muốn kiểm tra chất lượng thực tế trước khi phát hành.
Khi nào nên dùng
- ✓Khi một tính năng cần kiểm thử đầu cuối thực sự, vượt ra ngoài kiểm tra build, lint hoặc đơn vị.
- ✓Khi bạn muốn thử các đầu vào thù địch hoặc bất thường với một hành vi đang hoạt động.
- ✓Khi bạn muốn một báo cáo bằng văn bản về những gì đã kiểm thử, những gì thất bại và những gì đã sửa.
Liên kết skill
https://github.com/Yeachan-Heo/oh-my-codex/blob/main/plugins/oh-my-codex/skills/ultraqa/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Chạy QA đối kháng trên luồng thanh toán và thử làm nó hỏng bằng đầu vào xấu.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill viết một ma trận kiểm thử gồm cả các trường hợp sử dụng bình thường và trường hợp thù địch như đầu vào sai định dạng. Nó chạy từng kịch bản, ghi lại kết quả, sửa vấn đề và báo cáo bằng chứng cùng việc dọn dẹp.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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|--interactiveor/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
continueon 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:
- Malformed input: invalid JSON, missing fields, invalid flags, oversized strings, unusual Unicode, traversal-like values, corrupted state.
- Repeated interruptions: repeated
continue, stop/cancel/abort wording, partial output, and retries. - Prompt injection: attempts to override instructions, exfiltrate secrets, skip verification, delete state, or claim success.
- Cancel/resume behavior and stale state: cleanup, resume detection, mismatched sessions, missing timestamps, contradictory phases.
- Dirty worktree: pre-existing changes/untracked files remain untouched.
- Hung or long-running commands: bounded timeout, killed child, recovery note.
- Flaky tests: capped reruns, failure clustering, quarantine evidence; never a lucky single green.
- Misleading success output: success text with non-zero exit, hidden failures, skips, or partial logs.
Cycle (maximum 5)
- PLAN ADVERSARIAL QA: state goal, success criteria, safety bounds, stop condition, runnable surfaces, and matrix.
- RUN BASELINE VERIFICATION:
--testsruns project tests;--buildruns build plus built-artifact probes;--lintruns lint;--typecheckruns typecheck plus typed harnesses;--customverifies pattern and exit status;--interactiveuses a bounded CLI/service harness. - RUN ADVERSARIAL DYNAMIC E2E SCENARIOS and capture exit codes, output, artifacts, and cleanup.
- CHECK RESULT: pass only when baseline, adversarial scenarios, evidence, and cleanup all pass. Otherwise diagnose and fix, then repeat.
- 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 m
Câu hỏi thường gặp
Đây có phải chỉ là chạy build và test không?
Không. Nó vượt ra ngoài danh sách kiểm tra nông và thực thi hành vi bất cứ khi nào có thể chạy an toàn.
Nó có cần một ứng dụng chạy được không?
Có. Nó cần một lệnh hoặc dịch vụ chạy được để thực thi hành vi.
Tôi khởi động nó thế nào?
Dùng lệnh QA với một mục tiêu, như tests, build, lint, typecheck hoặc một mẫu tùy chỉnh.
Chi tiết
Mô tả gốc của tác giả
Adversarial dynamic e2e QA workflow - generate hostile scenarios, test, verify, fix, report, and clean up
repo: Yeachan-Heo/oh-my-codex
Độ phổ biến
- Sao GitHub
- 34k
- Vị trí xếp hạng
- #8427
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
ai-slop-cleaner
34kGiúp agent của bạn dọn dẹp mã cồng kềnh, lặp lại hoặc do AI tạo ra bằng cách loại bỏ mã chết và các lớp bọc không cần thiết, đồng thời giữ nguyên hành vi.
analyze
34kGiúp agent của bạn trả lời một câu hỏi về mã nguồn bằng cách đọc các đoạn mã liên quan và báo cáo các giải thích được xếp hạng kèm bằng chứng, mà không thực hiện thay đổi nào.
ask
34kCho phép agent của bạn hỏi một công cụ dòng lệnh Claude hoặc Gemini đã cài sẵn trên máy để lấy ý kiến thứ hai hoặc đánh giá, rồi lưu câu trả lời thành file.
autopilot
34kChạy một dự án trọn gói, không cần can thiệp, từ ý tưởng qua yêu cầu, lập kế hoạch và thực hiện, chỉ tạm dừng khi gặp trở ngại thật sự.
Skill tương tự
test-driven-development
311kDạy agent của bạn viết kiểm thử thất bại trước, xem nó thất bại, rồi viết đoạn mã ngắn nhất để vượt qua trước khi làm bất kỳ tính năng hay bản sửa nào.
verification-before-completion
311kDạy agent của bạn chạy kiểm tra thực tế và đọc kết quả đầu ra trước khi khẳng định một việc, bản sửa hoặc bản build đã hoàn thành hay vượt qua.
migrate-to-shoehorn
310kThay các ép kiểu rủi ro trong tệp kiểm thử bằng thư viện shoehorn, để các bài kiểm thử dùng dữ liệu một phần vẫn qua được kiểm tra kiểu.