kwakseongjae/oh-my-design / .claude/skills/omd-restraint
omd:restraint
Verified절제미를 측정 가능한 규칙으로 — 덜어내기(subtraction)·여백·위계를 AUDIT(렌더된 페이지를 데스크톱·모바일에서 재서 규칙별 PASS/FAIL+수치)하거나 APPLY(인벤토리 → 필요 없는 것 삭제 → 중복 병합 → 비운 자리를 초점 요소에 준다 → 재측정)한다. 초점 1개(1등 ≥ 2× 2등), 첫 화면 조각 ≤ 5, 서체 크기 ≤ 4, 헤드라인 ≤ 2줄, 첫 화면 단어 예산, 히어로 CTA ≤ 2, 액센트 1개, 장식 선·그리드·eyebrow 금지, 첫 화면 빈 면적 ≥ 65%, 얇은 화면 금지, 페이지 길이 예산. 규칙마다 출처 등급(실측/관례/휴리스틱). '덜어내 줘', '절제미', '너무 복잡해', '여백 살려줘', '심플하게', 'too busy', 'simplify the page', 'declutter', 'more whitespace', 「余白を活かして」, 「引き算のデザイン」, 「留白」, 「太擁擠了」 류에 트리거. 브랜드 토큰은 DESIGN.md가 이기고, 이 스킬은 양과 위계만 다룬다.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 15.7 KB |
| references/benchmarks.md | markdown | 5.9 KB |
| scripts/audit.mjs | script | 39.6 KB |
| scripts/fixtures/busy.html | other | 5.6 KB |
| scripts/fixtures/restrained.html | other | 3.1 KB |
| scripts/selftest.mjs | script | 1.3 KB |
scripts/selftest.mjs
View on GitHub#!/usr/bin/env node
// Self-test for audit.mjs: the busy fixture must FAIL, the restrained fixture must PASS.
// node selftest.mjs (exit 0 = both behaved, 1 = the meter is broken, 3 = no browser)
import { spawnSync } from 'node:child_process';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
const here = path.dirname(fileURLToPath(import.meta.url));
const audit = path.join(here, 'audit.mjs');
const cases = [
{ file: 'restrained.html', expect: 'PASS' },
{ file: 'busy.html', expect: 'FAIL', minFails: 6 },
];
let broken = 0;
for (const c of cases) {
const run = spawnSync(process.execPath, [audit, path.join(here, 'fixtures', c.file), '--json'], { encoding: 'utf-8', maxBuffer: 64 << 20 });
if (run.status === 3) { process.stderr.write(run.stderr); process.exit(3); }
let report;
try { report = JSON.parse(run.stdout); } catch { console.error(`${c.file}: audit printed no JSON\n${run.stderr}`); broken++; continue; }
const ok = report.verdict === c.expect && (!c.minFails || report.fails.length >= c.minFails);
console.log(`${ok ? 'ok ' : 'BAD '} ${c.file}: ${report.verdict}${report.fails.length ? ` (${report.fails.join(', ')})` : ''} — expected ${c.expect}${c.minFails ? ` with >= ${c.minFails} failing rules` : ''}`);
if (!ok) broken++;
}
process.exit(broken ? 1 : 0);
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |