code-yeongyu/oh-my-openagent / packages/shared-skills/skills/visual-qa
visual-qa
VerifiedRuns 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.
| File | Kind | Size |
|---|---|---|
| AGENTS.md | markdown | 3.2 KB |
| SKILL.md | skill md | 45.7 KB |
| references/browser-setup.md | markdown | 5.6 KB |
| scripts/ansi.test.ts | script | 1.1 KB |
| scripts/ansi.ts | script | 496 B |
| scripts/cli.test.ts | script | 2.9 KB |
| scripts/cli.ts | script | 2.5 KB |
| scripts/east-asian-width.test.ts | script | 1.9 KB |
| scripts/east-asian-width.ts | script | 3.0 KB |
| scripts/image-diff.test.ts | script | 2.5 KB |
| scripts/image-diff.ts | script | 3.8 KB |
| scripts/png-crc.ts | script | 707 B |
| scripts/png-decode.test.ts | script | 1.5 KB |
| scripts/png-decode.ts | script | 5.5 KB |
| scripts/png-synth.ts | script | 1.7 KB |
| scripts/skill-doc-fields.test.ts | script | 1.6 KB |
| scripts/tui-grid.test.ts | script | 1.9 KB |
| scripts/tui-grid.ts | script | 2.7 KB |
| scripts/types.ts | script | 1.3 KB |
| scripts/visual-qa.mjs | script | 15.8 KB |
scripts/tui-grid.test.ts
View on GitHubimport { describe, expect, test } from "bun:test"
import { checkTui } from "./tui-grid"
const ESC = String.fromCharCode(0x1b)
describe("checkTui", () => {
test("#given ASCII lines within the width #when checked #then there is no overflow", () => {
// given / when
const result = checkTui("hello\nworld", 80)
// then
expect(result.lineCount).toBe(2)
expect(result.lineWidths).toEqual([5, 5])
expect(result.maxWidth).toBe(5)
expect(result.overflowLines.length).toBe(0)
expect(result.hasAnsi).toBe(false)
})
test("#given a line wider than the expected columns #when checked #then it is flagged as overflow", () => {
// given / when
const result = checkTui("short\nthis line is definitely too long", 10)
// then
expect(result.overflowLines.length).toBe(1)
expect(result.overflowLines[0]?.line).toBe(2)
expect(result.maxWidth).toBeGreaterThan(10)
})
test("#given CJK text #when checked #then wide characters count as two columns", () => {
// given / when
const result = checkTui("가나다", 80)
// then
expect(result.lineWidths).toEqual([6])
expect(result.wideCharColumns).toEqual([0, 2, 4])
})
test("#given a box whose CJK content is wider than its border #when checked #then borders are misaligned", () => {
// given / when
const result = checkTui("┌──┐\n│가가│\n└──┘", 80)
// then
expect(result.borderMisaligned).toBe(true)
})
test("#given a well-formed box #when checked #then borders are aligned", () => {
// given / when
const result = checkTui("┌──┐\n│ab│\n└──┘", 80)
// then
expect(result.borderMisaligned).toBe(false)
})
test("#given text with ANSI color codes #when checked #then ANSI is detected and ignored for width", () => {
// given / when
const result = checkTui(`${ESC}[31mred${ESC}[0m`, 80)
// then
expect(result.hasAnsi).toBe(true)
expect(result.lineWidths).toEqual([3])
})
})
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| 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: 197k | Updated | Claude CodeCodex | Verified | Install |