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/ansi.test.ts

View on GitHub
import { describe, expect, test } from "bun:test"

import { hasAnsi, stripAnsi } from "./ansi"

const ESC = String.fromCharCode(0x1b)

describe("stripAnsi", () => {
  test("#given an ANSI-wrapped string #when stripped #then escape codes are removed", () => {
    // given
    const input = `${ESC}[31mred${ESC}[0m`
    // when
    const stripped = stripAnsi(input)
    // then
    expect(stripped).toBe("red")
  })

  test("#given a plain string #when stripped #then it is unchanged", () => {
    // given
    const input = "plain text"
    // when
    const stripped = stripAnsi(input)
    // then
    expect(stripped).toBe("plain text")
  })
})

describe("hasAnsi", () => {
  test("#given a string with ANSI codes #when checked #then it is true", () => {
    // given
    const input = `${ESC}[1mbold${ESC}[0m`
    // when
    const detected = hasAnsi(input)
    // then
    expect(detected).toBe(true)
  })

  test("#given a plain string #when checked #then it is false", () => {
    // given
    const input = "no ansi here"
    // when
    const detected = hasAnsi(input)
    // then
    expect(detected).toBe(false)
  })
})
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