Skip to content

code-yeongyu/oh-my-openagent / packages/shared-skills/skills/visual-qa

visual-qa

Verified

Runs rigorous visual QA across web, terminal, and paginated surfaces: an Apple HIG-based checklist, paired light/dark captures at phone and desktop widths, screenshot evidence, and a per-item PASS/FAIL verdict. Use for any UI build or change, or when asked whether a page, component, or TUI looks right or follows the platform's design guidelines.

scripts/skill-doc-fields.test.ts

View on GitHub
import { describe, expect, test } from "bun:test"
import { readFileSync } from "node:fs"
import { join } from "node:path"
import { checkTui } from "./tui-grid"

const skill = readFileSync(join(import.meta.dir, "..", "SKILL.md"), "utf-8")
const emitted = new Set(Object.keys(checkTui("abc", 10)))

function fieldNames(line: string): string[] {
  return [...line.matchAll(/`([A-Za-z]+)(?:\[\])?`|\b([a-z]+[A-Z][A-Za-z]*)(?:\[\])?/g)].map((m) => m[1] ?? m[2] ?? "")
}

function lineStartingWith(prefix: string, after = ""): string {
  const lines = skill.split("\n")
  const from = after === "" ? 0 : lines.findIndex((l) => l.includes(after))
  if (from < 0) throw new Error(`SKILL.md has no line containing ${after}`)
  const line = lines.slice(from).find((l) => l.trimStart().startsWith(prefix))
  if (line === undefined) throw new Error(`SKILL.md has no line starting with ${prefix} after ${after}`)
  return line
}

describe("tool-output contract: the tui-check JSON fields visual-qa SKILL.md tells reviewers to read", () => {
  const keyFields = fieldNames(lineStartingWith("Key fields:", 'visual-qa.mjs" tui-check'))
  const passBInspects = fieldNames(lineStartingWith("- TUI (tui-check):"))

  test("#given the Key fields line #when compared with checkTui output #then every listed field is emitted", () => {
    expect(keyFields.filter((name) => !emitted.has(name))).toEqual([])
  })

  test("#given Pass B's tui-check instructions #when compared with the Key fields line #then every inspected field is listed", () => {
    expect(passBInspects.length).toBeGreaterThan(0)
    expect(passBInspects.filter((name) => !keyFields.includes(name))).toEqual([])
  })
})
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 321kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 321kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 321kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 197kUpdated Claude CodeCodexVerifiedInstall