cotest
Skill0 starsChanged 5 months agoMITView on GitHub
The "test" loop — QA testing against the spec. Systematic QA of built output against Open Design artboards or design specs, and nothing beyond the spec: cross-checking is the whole scope (deeper adversarial evaluation is cochallenge; product-vs-job evaluation is cocritique). Compares marketing captures or live UI against reference designs, documents discrepancies, and produces actionable fix lists with pixel-perfect guidance. The doer is cotester. Use when validating screens after implementation or during design review. Runs on Haiku — checklist cross-checking is mechanical; the verification-trap guardrails still apply. Formerly named coverify.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- new-skillSkill
- cobuildSkill
- cochallengeSkill
- cochangelogSkill
- coconsolidateSkill
- cocreatorSkill
- cocritiqueSkill
- codebugSkill
- codirectSkill
- codrawSkill
- cohardenSkill
- colearnSkill
- coplanSkill
- coresearchSkill
- cospecifySkill
- costudySkill
- cotranslateSkill
- my-skillSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 13 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
When asked to QA a screen against design, validate pixel perfection, or compare marketing captures to artboards, I run a two-pass QA …
- Distinctive: line 19
Read the source code for the screen and compare it against the QA checklist below.
- Distinctive: line 25
Load the reference: Read Open Design artboards (via MCP or ChromeDevTools preview) or local design files for the canonical layout, colors, …
- Distinctive: line 26
Load the implementation: Read the source code and inspect marketing captures for the built screen.
- Distinctive: line 28
Document in memory-bank: Write a dated test report with screenshots, discrepancies, severity, and fix instructions.
- Distinctive: line 33
After implementing a new screen and before shipping
- Distinctive: line 34
When marketing captures don't match Open Design artboards
- Distinctive: line 36
When the user says: *"Does this match the design?"*, *"QA this screen"*, *"Compare to artboard"*
- Very specific: line 111
Do not write into TEST.md directly—it is regenerated from the reports.
- Very specific: line 165
Use mcp__chrome-devtools__take_snapshot to grab the accessibility/element tree.
- Very specific: line 166
Use mcp__chrome-devtools__evaluate_script to read computed CSS values:
- Very specific: line 171
Use mcp__chrome-devtools__take_screenshot to capture the full artboard for side-by-side comparison.
- Distinctive: line 172
When inspecting Open Design JSX source, search for the artboard component name to find exact token values and child component structures.
- Distinctive: line 179
Read Open Design artboard JSX/source via MCP
- Distinctive: line 182
Read source code for the screen
- Distinctive: line 184
Pass 1 — Development check: Run the QA checklist against the code
- Distinctive: line 185
Pass 2 — Visual check: Run the QA checklist against the screenshots
- Very specific: line 218
Backprop: every failure hands a lesson to colearn (what broke, the guardrail to prevent it).
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
cotest — test against the spec
The doer is cotester. This is the test leg of the core make → test loop; it leans on
native /verify, /code-review, and /simplify and routes failures onward to the right loop.
Its scope is deliberately narrow: cross-check the built output against the spec — nothing
more. Whether the spec itself holds up is cochallenge's question; whether the product does the
user's job is cocritique's.
What I Do
When asked to QA a screen against design, validate pixel perfection, or compare marketing captures to artboards, I run a two-pass QA process:
Pass 1 — Development Check (Code vs. Checklist)
Read the source code for the screen and compare it against the QA checklist below. Look for mismatches in tokens, colors, spacing, component patterns, label strings, layout structure, and state handling before looking at screenshots.
Pass 2 — Visual Check (Screen Captures vs. Checklist)
Inspect the marketing captures (or live UI) and compare them against the same checklist. Verify that what actually rendered matches the Open Design artboard pixel-for-pixel.
Documentation
- Load the reference: Read Open Design artboards (via MCP or ChromeDevTools preview) or local design files for the canonical layout, colors, typography, spacing, and component usage.
- Load the implementation: Read the source code and inspect marketing captures for the built screen.
- Run both passes: Code checklist first, visual checklist second.
- Document in memory-bank: Write a dated test report with screenshots, discrepancies, severity, and fix instructions.
- Produce fix list: Summarize findings as numbered, actionable items for the developer.
When to Use
- After implementing a new screen and before shipping
- When marketing captures don't match Open Design artboards
- During design review to catch visual regressions
- When the user says: "Does this match the design?", "QA this screen", "Compare to artboard"
QA Checklist (Systematic)
For every screen, verify:
1. Layout & Structure
- Overall frame size and safe areas match
- Header/nav bar placement and height
- Content area bounds and scroll behavior
- Sheet/modal presentation style (radius, shadow, overlap)
2. Typography
- Font family matches design spec
- Font size matches artboard
- Font weight matches (e.g., bold vs regular)
- Letter spacing / tracking matches
- Line height / line limit behavior
- Text color and opacity match
3. Colors & Surfaces
- Background colors match (hero, surface, card, subtle)
- Gradient angles and stops match
- Border colors and widths match
- Opacity values match design tokens
4. Icons & Imagery
- Icon names / assets match artboard
- Icon size and weight match
- Icon color/opacity match
- Photo placeholders / gradients match
5. Spacing & Alignment
- Padding values match design spec
- Gap between elements matches
- Inset alignment matches
- Divider placement and style
6. Components
- Pills: size, radius, border, active vs idle state
- Buttons: size, radius, background, stroke
- Cards: radius, shadow, dashed border style
- Input fields: label placement, placeholder style, editing state
7. Interactions & States
- Empty states handled
- Loading states handled
- Error states handled
- Editing mode vs view mode
8. Copy & Labels
- All text strings match artboard exactly
- Button labels match
- Placeholder text matches
- No hardcoded strings that should be parameterized
Format & Location
Storage: Resolve
workspaceRootfrom.agents/workspace/cocreation.yaml(default.agents). Inlocal, write the full record to<workspaceRoot>/skills/<name>/memory-bank/and refresh its index. Inlinear-primary, write the human-facing artifact through the active backend and keep provider metadata, links, and the local navigation/index cache; never write project records into the plugin cache.
Directory: .agents/skills/cotest/memory-bank/
File naming: YYYY-MM-DD-HHmm_{screen-slug}_qa.md (e.g., 2026-06-11-0900_home-screen_qa.md)
Index: memory-bank/TEST.md (auto-generated)
Copy _template.md for each report and keep its frontmatter (title, date, artboard, status) filled in—those fields become the columns in TEST.md. After writing or updating a report, refresh the index:
node .agents/skills/cotest/index.mjsDo not write into TEST.md directly—it is regenerated from the reports.
Test Report Template
---
title: Screen name
date: YYYY-MM-DD
artboard: Artboard reference
status: needs-fix
---
# Test Report — {Screen Name}
## Summary
{N} discrepancies found, {M} critical.
## Discrepancies
### 1. {Title}
- **Severity**: critical / major / minor
- **Location**: {element}
- **Expected**: {design value}
- **Actual**: {code value}
- **Fix**: {actionable instruction}
## Verification
### Pass 1 — Development Check
- [ ] Code reviewed against QA checklist
- [ ] Token / color / spacing / typography issues documented
- [ ] Component usage matches artboard
### Pass 2 — Visual Check
- [ ] Marketing captures reviewed against QA checklist
- [ ] Discrepancies verified with ChromeDevTools MCP artboard inspection
- [ ] Pixel-perfect confirmed
### Final
- [ ] Fixes applied
- [ ] Marketing capture re-run
- [ ] Artboard comparison approved
## Notes
{Any follow-ups, blocked items, or design questions}Inspecting Artboards with ChromeDevTools MCP
Open Design artboards render in a browser preview. Use the ChromeDevTools MCP to inspect them:
- Open the artboard preview URL from
mcp__open-design__get_projectormcp__open-design__get_run. - Use
mcp__chrome-devtools__take_snapshotto grab the accessibility/element tree. - Use
mcp__chrome-devtools__evaluate_scriptto read computed CSS values:getComputedStyle(element).fontSizegetComputedStyle(element).colorgetComputedStyle(element).paddingLeftelement.getBoundingClientRect()for exact dimensions and positions
- Use
mcp__chrome-devtools__take_screenshotto capture the full artboard for side-by-side comparison. - When inspecting Open Design JSX source, search for the artboard component name to find exact token values and child component structures.
This lets you extract precise design values (e.g., exact padding, border radii, opacity hex codes) to compare against the code and screenshots.
Workflow
- Load reference
- Read Open Design artboard JSX/source via MCP
- Open preview in ChromeDevTools MCP and inspect exact styles
- Load implementation
- Read source code for the screen
- Locate marketing capture PNGs for the screen
- Pass 1 — Development check: Run the QA checklist against the code
- Pass 2 — Visual check: Run the QA checklist against the screenshots
- Write report: Persist to
memory-bank/ - Summarize fixes: Numbered, actionable list for the user
- Fix & re-verify: Apply fixes, re-run capture, update report
Native tooling
/verify (run the app and observe behavior vs spec) · /code-review (catch correctness bugs in the diff) · /simplify (flag cleanups). Use these alongside the visual passes above.
Verification traps (always-on guardrails)
Graduated from real failures — a tester that ignores these passes broken work.
- The false-PASS is invisible — hunt it deliberately. Adversarial checks (refuters, code review) only scrutinize claimed discrepancies, so a tester's wrong PASS is never challenged and then becomes "evidence" in the record that the screen is fine. A verdict like "4-stop gradient — passing" once stood over a flat frame. For every PASS, re-derive the expected value from the spec and confirm the capture actually shows it — don't accept "looks right."
- Distinctness proves difference, not correctness. A hash/capture matrix showing every state is distinct only proves the states differ — a broken layout hashes distinct too. Pair every distinctness check with a content assertion (an expected token/element/string is present), or it passes garbage for being unique.
- The capture/seed harness must RESET, not be idempotent. Date-relative fixtures + a persistent
store + an
if !alreadySeeded { seed() }guard = after the seed date rolls (e.g. past midnight) seeding is silently skipped forever and you verify against stale/empty state. Wipe and reseed on every launch; never gate seeding behind an "already seeded" flag.
Self-eval gate (close the loop)
- All passes green, behavior + pixels match spec → PASS forward: ship, or hand back to
cochangelogto record what shipped. - Discrepancies found → re-loop with the developer to apply fixes, re-capture, re-check (bounded retries; default: cancel/park the screen, not extend indefinitely).
- Spec itself is ambiguous or the artboard is missing → escalate to the human.
- Defect is a logic bug → cross-loop to
codebug; same element drifted across many screens → cross-loop tococonsolidate; robustness gap →coharden. - Backprop: every failure hands a lesson to
colearn(what broke, the guardrail to prevent it). A bug-class that keeps recurring graduates into a guardrail. This is how the loop self-learns.
Relationship to Other Skills
cochallenge: evaluates the decision artifacts (direction/spec/plan) before build; cotest evaluates the built output against the spec after build.cocritique: evaluates the shipped product against the JOB; cotest never asks whether the spec was worth building.codebug/coconsolidate/coharden: where cotest routes failures (logic bug / cross-screen drift / robustness gap).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

