Design system injector
Skill EthanYoQ/Skill-hub/skills/10-business-industry/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) and floating TOC li ≥5 (block). Use AFTER content-verification passes, BEFORE report-bundle-builder build_all_deliverables.From its SKILL.md
npx -y skills add EthanYoQ/Skill-hub --skill design-system-injectorAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as Cite-or-Block strict (P0 iron law, see ../../CLAUDE.md). That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
0.9 KB, 126 tokens by cl100k_base, as published. Nobody here has run it
Design 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.
What ships with it: 1 file
3.5 KB alongside SKILL.md, 1 of them executable
scripts/
- injector.pyruns3.5 KB