mrzhangguoguo/oh-my-workbuddy/ultraqa
Claude Code and agent skill by mrzhangguoguo/oh-my-workbuddy
- community
Checking that the SKILL.md file is still in the repository.
Adversarial dynamic end-to-end QA - generate hostile scenarios, test, verify, fix, report, and clean up. Use for robust behavior verification.
Install
npx vskill@latest install mrzhangguoguo/oh-my-workbuddy/ultraqaSKILL.md
The same SKILL.md was published earlier as mrzhangguoguo/oh-my-workbuddy/ultraqa.
Ported from oh-my-codexultraqa. OMX runtime conventions ($macroinvocation,omxCLI,.omx/state directory) are replaced with WorkBuddy idioms (Skill tool, Agent tool, task list,.workbuddy/memory).
UltraQA Skill
Operating Contract
- Outcome-first framing with concise, evidence-dense progress and completion reporting.
- Treat newer user updates as local overrides for the active workflow branch while preserving earlier non-conflicting constraints.
- If the user says
continue, advance the current verified next step instead of restarting discovery. - UltraQA is not satisfied by a shallow build/lint/typecheck/test checklist. It must exercise the requested behavior through adversarial dynamic e2e scenarios whenever the target can be run, simulated, or harnessed safely.
[ULTRAQA ACTIVATED - ADVERSARIAL DYNAMIC E2E QA CYCLING]
Overview
UltraQA finds real behavior failures by combining normal verification commands with generated end-to-end scenarios, hostile user modeling, temporary harnesses when useful, and a structured evidence report. The workflow repeats test → diagnose → fix → retest until the goal is met, a bounded stop condition is reached, or a safety boundary blocks further execution.
Goal Parsing
Parse the goal from arguments. Supported formats:
| Invocation | Goal Type | What to Check | |
|---|---|---|---|
/ultraqa --tests | tests | Existing tests plus adversarial dynamic e2e scenarios for the changed behavior | |
/ultraqa --build | build | Build succeeds and generated smoke/e2e probes still run against the built artifact when applicable | |
/ultraqa --lint | lint | Lint passes and no generated harness/test artifact violates project hygiene | |
/ultraqa --typecheck | typecheck | Typecheck passes and generated typed harnesses compile when applicable | |
/ultraqa --custom "pattern" | custom | Custom success pattern is verified against behavior, not trusted as misleading success output | |
/ultraqa --interactive | interactive | CLI/service behavior is tested with generated hostile and edge-case interactions |
If no structured goal is provided, interpret the argument as a custom behavior goal and derive a runnable e2e strategy from repository context.
Required Scenario Matrix
Before declaring success, create and maintain a scenario matrix (in memory or a temp file). Each row must include: scenario id, intent, user/attacker model, setup, command or harness, expected signal, actual result, fixes applied, evidence, and cleanup status.
The matrix must include normal-path coverage plus adversarial dynamic e2e scenarios selected from the current goal and codebase. Unless clearly irrelevant or impossible, include these hostile and edge-case classes:
- Malformed input: invalid JSON, missing fields, invalid flags, oversized strings, unusual Unicode, path traversal-like values, corrupted state files.
- Repeated interruptions: repeated
continue, stop/cancel/abort wording, interrupted command output, retries after partial progress. - Prompt injection attempts: user text that tries to override instructions, exfiltrate secrets, skip verification, delete state, or claim false success.
- Cancel/resume behavior: active state cleanup, resume detection, stale in-progress state, cancellation followed by a fresh run.
- Stale state: old state files, mismatched sessions, missing timestamps, contradictory phase metadata.
- Dirty worktree: pre-existing modifications, untracked generated files, verification that UltraQA does not hide or overwrite unrelated work.
- Hung or long-running commands: bounded timeout handling, killed child processes, recovery notes.
- Flaky tests: rerun strategy, failure clustering, quarantine evidence, avoiding false green from a single lucky pass.
- Misleading success output: output containing success phrases with non-zero exits, hidden failures, skipped tests, partial command logs.
Dynamic E2E and Temporary Harness Rules
- Generate temporary tests, scripts, fixtures, or harnesses when they materially improve behavioral confidence and no existing e2e surface covers the scenario.
- Prefer project-native test tools and small throwaway harnesses under a temporary directory or clearly named test fixture.
- Record every generated artifact in the scenario matrix, including whether it was committed intentionally or removed during cleanup.
- Use bounded runtimes and explicit timeouts for commands that can hang.
- Validate exit codes and output semantics; do not trust success-looking text alone.
- Do not delete, rewrite, or mask unrelated user work. Capture dirty-worktree evidence before and after generated harness work.
Temporary Harness Generation Guardrails
Generated harnesses are part of the QA evidence chain; until setup succeeds, they are evidence about the harness apparatus, not product behavior.
- Use absolute repo imports for built artifacts. When a harness runs from
/tmpor another scratch directory but imports repository code, resolve the repo root explicitly and import built modules with an absolute path orpathToFileURL(join(repoRoot, "dist", ...)).href. Never rely on./dist/...from the harness's temp directory. - Use a safe file writer for JS/TS harness bodies. Prefer a small Node/Python writer or another non-interpolating file-write mechanism for harness source containing backticks,
${...}, shell metacharacters, or prompt-injection strings. If a shell heredoc is unavoidable, quote the delimiter and verify the written file before execution; do not use interpolating heredocs for JavaScript assertions. - Sanitize ambient runtime env for isolated probes. When the scenario creates a temporary repo/state tree or checks local isolation, run the probe with
OMX_ROOT/OMX_STATE_ROOT-style env unset (e.g.env -u OMX_ROOT -u OMX_STATE_ROOT ...) — and in WorkBuddy, never reference.omx/. Use a clean cwd so ambient boxed state cannot redirect reads/writes away from the scenario fixture. - Classify harness setup failures separately. If a generated harness fails before exercising product behavior (import paths, shell interpolation, env leakage, fixture construction), record it as harness debris, fix the harness, and rerun the scenario before declaring a product defect.
Cycle Workflow
Cycle N (Max 5)
Track each cycle in the task list: TaskCreate a cycle task (in_progress → completed).
- PLAN ADVERSARIAL QA
- Restate the goal, success criteria, safety bounds, and stop condition.
- Inspect repository context enough to identify runnable surfaces, test commands, state files, cleanup paths.
- Build or update the required scenario matrix before running commands.
- RUN BASELINE VERIFICATION
--tests: run the project's test command.--build: run the project's build command.--lint: run the project's lint command.--typecheck: run the project's type check command.--custom: run the appropriate command and check the pattern plus exit status and failure markers.--interactive: harness the CLI/service with generated hostile and edge-case interactions (spawn aqa-tester-style Agent if available, otherwise drive it directly via Bash).
- RUN ADVERSARIAL DYNAMIC E2E SCENARIOS
- Execute the scenario matrix using existing e2e tests, generated temporary tests, or generated harnesses.
- Model malicious/hostile user behavior explicitly, including prompt injection and attempts to bypass safety or verification.
- Exercise malformed input, repeated interruptions, cancel/resume, stale state, dirty worktree, hung commands, flaky tests, and misleading success output when relevant.
- Capture commands, exit codes, key output excerpts, artifacts, and cleanup status.
- CHECK RESULT
- YES only if baseline verification and adversarial e2e scenarios passed, generated artifacts are cleaned up or intentionally tracked, and the report has complete evidence.
- NO if any scenario failed, was skipped without justification, left debris, relied on misleading output, or lacked evidence. Continue to step 5.
- ARCHITECT DIAGNOSIS
- Reason about root cause, safety implications, and specific fix recommendations. Invoke the
architect/analyzeskill via the Skill tool if available (skill: architect/skill: analyze); otherwise perform the diagnosis directly.
- FIX ISSUES
- Apply the fix precisely. Invoke an
executor/planskill via the Skill tool if available; otherwise implement directly. Constraints: preserve unrelated dirty work, clean temporary harnesses, keep safety bounds.
- CLEAN UP AND ROLLBACK
- Remove temporary harnesses, fixtures, logs, spawned processes, and state files unless intentional deliverables.
- Roll back failed experimental edits not part of the final fix.
- Re-check the worktree and record remaining intentional changes or residual debris.
- REPEAT
- Go back to step 1 with the updated scenario matrix and failure history.
Safety Bounds
UltraQA must stay inside these safety bounds:
- No destructive commands such as force resets, broad deletes, secret exfiltration, credential dumping, production writes, or unbounded process spawning.
- No reading or printing secrets beyond the minimum metadata needed to verify absence of leakage.
- No network or external-production side effects unless the user explicitly authorized them.
- No unbounded waits: use timeouts, retries with caps, clear hung-command diagnostics.
- No hiding unrelated dirty work or generated debris.
- If a required scenario would violate these bounds, mark it blocked in the report with the safe substitute used.
Exit Conditions
| Condition | Action | |
|---|---|---|
| Goal Met | Exit success: ULTRAQA COMPLETE: Goal met after N cycles plus the structured report | |
| Cycle 5 Reached | Exit with diagnosis: ULTRAQA STOPPED: Max cycles plus failures, fixes attempted, residual risks, evidence | |
| Same Failure 3x | Exit early: ULTRAQA STOPPED: Same failure detected 3 times plus root cause, safety notes, next owner | |
| Safety Boundary | Exit: ULTRAQA BLOCKED: [destructive/credentialed/external-production/unbounded action] plus safe substitute evidence | |
| Environment Error | Exit: ULTRAQA ERROR: [port/dependency/hung command issue] plus cleanup status |
Structured Report
Every terminal UltraQA result must include this report shape:
Observability
Output progress each cycle:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ultraqa/SKILL.md
Popularity
- Repository stars
- 2
- Repository forks
- 1
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mrzhangguoguo/oh-my-workbuddy/ultraqa)