design-system-injector
Phase 5 part of disease-market-sizing-orchestration. Injects consulting palette (navy/gold/blue) + base CSS + floating TOC + section dividers into raw report HTML. Validates token coverage ≥60% (warn)
SKILL.mdarchives/user-installed-skills/design-system-injector/57d311e82a35c5b9/design-system-injector/SKILL.md
GitHubDesign System Injector (Phase 5 part)
Functions
inject(html, tokens) -> str— insert :root tokens + base CSS + floating TOC button + overlayvalidate_design(html) -> DesignReport— compute coverage + TOC li count
Validation Thresholds
token_coverage ≥ 0.60→ ok; otherwise warn (not block)toc_li_count ≥ 5→ ok; otherwise BLOCK (B3 守门)
P0 Watchdog
Skill scripts contain 0 hardcoded disease/drug names — CI block on hit.