# normalize-pencil > Normalize Pencil/MCP-generated UI code to Cloakling’s design system (tokens, primitives, shadows, z-index, spacing). - Author: austin - Repository: hernamesbarbara/promptkit - Version: 20260202102729 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-07 - Source: https://github.com/hernamesbarbara/promptkit - Web: https://mule.run/skillshub/@@hernamesbarbara/promptkit~normalize-pencil:20260202102729 --- --- name: normalize-pencil description: Normalize Pencil/MCP-generated UI code to Cloakling’s design system (tokens, primitives, shadows, z-index, spacing). disable-model-invocation: true argument-hint: "[--check|--apply] [--fix-shadows] [--fix-z] [--fix-copy] [--strict] [path=frontend/src]" --- # normalize-pencil Normalize Pencil/MCP-generated UI code into Cloakling’s design system. ## Invocation - `/normalize-pencil [path]`: show scan report + show unified diff preview (no writes) - `/normalize-pencil --apply [path]`: apply deterministic rewrites (writes files) - `/normalize-pencil --check [path]`: CI mode (non-zero / fail if changes needed) - `/normalize-pencil --apply --fix-shadows --fix-z --fix-copy [path]`: Apply strict normalization: tokens, shadow removal, z-index, & copy fixes - `/normalize-pencil --apply --strict [path]`: Shorthand for all fix passes (equivalent to --fix-shadows --fix-z --fix-copy) Arguments: - `$ARGUMENTS` may include any combination of: - `--apply` - `--check` - `--fix-shadows` - `--fix-z` - `--fix-copy` - `--strict` (equivalent to --fix-shadows --fix-z --fix-copy) - `[path]` defaults to `frontend/src` if omitted. ## What this skill enforces 1) Detect "Pencilisms" - `--pencil-*` css vars - raw Tailwind literals (bg-white, text-gray-*, border-gray-*) - shadow-* usage - z-[9999] / z-50 etc 2) Rewrite tokens deterministically - Replace `var(--pencil-*)` with Cloakling tokens per [`reference.md`](reference.md) - Replace a small allowlist of Tailwind literals with tokenized equivalents This skill intentionally does NOT yet: - do AST refactors (e.g., `