Generate a project-specific web design reference sheet (docs/design/design-reference.md) and companion enforcement skill for any website codebase. Extracts CSS custom properties, validates against a JSON schema scratchpad, inspects components, and produces a 12-section document covering colours, typography, spacing, layout, borders, shadows, motion, accessibility, dark mode, and Figma sync notes. Use when starting a new project, onboarding a design system, creating a Figma reference sheet, porting design tokens, or auditing existing styles. Triggers on: create a design reference, generate a style guide, document the design tokens, make a brand reference sheet, port design tokens, audit existing styles.
77%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./skills/development/front-end/web-reference-sheet-generator/SKILL.mdGenerate a project-specific design reference sheet and companion enforcement skill from any website codebase, mirroring the structure of the Figma Web Design Reference Sheet.
Document what exists, not what should exist.
Every invented token is technical debt dressed as documentation — developers trust the
reference sheet and will use the wrong values in production. When data is missing, write
TBD — not yet defined. A reference sheet with honest gaps is more useful than one with
plausible fictions.
TBD — not yet defined instead of leaving it blank or filling it in.See references/workflow.md for the full 8-step generation process:
Discover design tokens
grep -r "\-\-" src/ --include="*.css" -h | grep -E "^\s+--" | sort -u
grep -r "@theme\|@font-face\|@import" src/ --include="*.css"Inspect existing components (read 3–5 representative files)
Check dark mode and accessibility patterns
Fill templates/skill-output.yaml — structured scratchpad validated against schemas/design-reference.schema.json
Generate docs/design/design-reference.md from the template
# Review populated scratchpad before generating final docs
cat templates/skill-output.yaml | grep -E "TBD|null" && echo "Gaps found — fill before generating"Generate the enforcement skill from the enforcement skill template
bun run generate --template enforcement-skill --output ./{project-slug}/SKILL.mdConfirm output with a structured report listing populated sections and TBD items
bun run validate --schema schemas/design-reference.schema.json --input templates/skill-output.yamlWHY: Invented values create false documentation. Developers trust the reference sheet and may use wrong tokens, causing design inconsistencies that are hard to trace.
BAD: Infer --space-4: 1rem because it seems reasonable.
GOOD: Document only values found in CSS; mark missing sections as TBD — not yet defined.
WHY: Shades and tints you generate are not tokens the project defines, so the sheet would document colours nobody can use.
BAD: Expand one brand colour into a full 9-shade palette.
GOOD: Document only the hardcoded hex values found; note they are not formalised tokens.
WHY: Even well-known frameworks have project-level overrides. Reading source files is the only way to capture what is real.
BAD:
# assuming Tailwind defaults for breakpointsGOOD:
grep -r "screens" tailwind.config.tsWHY: Blank sections appear complete; TBD — not yet defined is an actionable signal that makes gaps impossible to miss.
BAD: ## Dark Mode followed by empty content.
GOOD: ## Dark Mode followed by TBD — not yet defined.
WHY: A sheet with honest TBD markers is more useful than no sheet, and the gaps tell the team what to define next.
BAD: Ask the user to add tokens first and stop.
GOOD: Generate all 12 sections, mark undefined ones TBD — not yet defined and list them in the final report.
WHY: A reference sheet that requires editing before use wastes developer time and erodes trust.
BAD:
/* placeholder that doesn't exist in the project */
--color-example: #000000;GOOD:
/* actual token from source */
--color-brand-primary: #1a2b3c;WHY: A generic description means the skill doesn't activate correctly for the project. A common pitfall is copying the parent skill description verbatim.
BAD: description: Enforce design tokens for any web project
GOOD: description: Enforce design tokens for the Acme Corp marketing site
docs/WHY: The companion skill must live in the project's skills directory (see references/workflow.md, Step 7) to be discovered; under docs/ it is only a document.
BAD:
docs/design/SKILL.mdGOOD:
<project-skills-directory>/{project-slug}/SKILL.mdWHY: Unfilled {PROJECT_NAME} and {TOKEN_*} markers show the sheet was never completed and cannot be copied from.
BAD: --color-brand: {TOKEN_BRAND}
GOOD: --color-brand: #1a2b3c taken from the authoritative token file.
WHY: The report lists populated sections and TBD items, which is how reviewers see what is real and what is a gap.
BAD: Write both files and stop without a summary.
GOOD: Print the structured report listing populated sections with token counts and every TBD item.
| Topic | Reference | When to Use |
|---|---|---|
| Full generation workflow | references/workflow.md | Following the 8-step process |
| Output template | references/design-reference-template.md | Writing docs/design/design-reference.md |
| Enforcement skill template | references/enforcement-skill-template.md | Generating the companion skill |
| Scratchpad | templates/skill-output.yaml | Populating values before writing any markdown |
| Scratchpad schema | schemas/design-reference.schema.json | Validating the scratchpad |
| Accessibility | references/accessibility-guidelines.md | WCAG 2.1 AA criteria, contrast, keyboard nav, ARIA |
| Typography | references/typography-principles.md | Hierarchy, readability, pairing, modular scale |
| Colour | references/psychology-of-color.md | Colour associations, harmony, contrast |
| Visual hierarchy | references/visual-hierarchy.md | Seven hierarchy variables, Z/F-patterns |
| Grid and layout | references/grid-and-layout-theory.md | Column grids, 8-point system, responsive strategies |
| Whitespace | references/whitespace-theory.md | Macro and micro whitespace, density |
| Gestalt | references/gestalt-principles.md | Proximity, similarity, figure-ground, closure |
pantheon-org/tekhne
c8416e9
Also appears in
last in sync Aug 28, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.