skills/ui-freeze/SKILL.md
Protects design and theme files from unintended changes. Locks tailwind.config, global CSS, and theme variables. Requires explicit confirmation before modifying UI components. Activate on changes to CSS, theme config, or layout components.
npx skillsauth add svenja-dev/claude-code-skills ui-freezeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Skill to protect design and theme files from unintended changes
This skill activates automatically on changes to:
tailwind.config.* - Tailwind configuration**/index.css - Global styles**/globals.css - Global CSS variables**/theme.css - Theme variables**/variables.css - CSS custom properties**/Header.* - Navigation & Branding**/Footer.* - Footer & Legal Links**/App.* - Root Layout & Theme Provider**/Layout.* - Main Layout wrapperUser: "Change the background color to gray"
Claude (with this skill):
UI FREEZE ACTIVE
You want to modify a theme file. This affects:
- File: tailwind.config.ts
- Change: backgroundColor from #0f172a to #374151
- Affected pages: ALL (global style)
Last stable version: v1.0-stable-ui
Preview:
- Before: Dark blue background (#0f172a)
- After: Gray background (#374151)
Should I proceed? (Answer with "Yes, change design")
Alternative: "Show me a before/after screenshot"
Define baseline screenshots for visual regression:
| Page | File | Last Check |
|------|------|------------|
| Login | tests/screenshots/login-baseline.png | - |
| Dashboard | tests/screenshots/dashboard-baseline.png | - |
| Settings | tests/screenshots/settings-baseline.png | - |
All colors must be defined via CSS Variables:
/* CORRECT - in theme.css or tailwind.config */
--color-primary: #3B82F6;
--color-background: #0f172a;
/* WRONG - hard values in components */
background-color: #0f172a; /* Not allowed */
className="bg-[#0f172a]" /* Not allowed */
After every approved design change:
npx playwright test --update-snapshotsv1.1-ui-gray-theme)If design was accidentally changed:
# Restore last stable state
git checkout <last-stable-tag> -- tailwind.config.ts src/index.css
# Or: Reset all theme files
git checkout <last-stable-tag> -- $(git diff --name-only HEAD <last-stable-tag> | grep -E '\.(css|config)')
Add to your CLAUDE.md:
### UI Protection
Locked Files:
- tailwind.config.*
- src/index.css
- src/globals.css
Last Stable UI Tag: v1.0-stable-ui
Design System:
- Primary: #3B82F6
- Background: #0f172a
- Use CSS variables only
Originally developed for fabrikIQ - AI-powered manufacturing data analysis.
MIT - Free to use and modify
tools
Proactive token budget assessment and task chunking strategy. Use this skill when queries involve multiple large file uploads, requests for comprehensive multi-document analysis, complex multi-step workflows with heavy research (10+ tool calls), phrases like "complete analysis", "full audit", "thorough review", "deep dive", or tasks combining extensive research with large output artifacts. This skill helps assess token consumption risk early and recommend chunking strategies before beginning work.
development
Erzwingt striktes Test-Driven Development mit Red-Green-Refactor Zyklus. Blockiert Code-Generierung ohne vorherige Tests. Dokumentiert 13 ungueltige Rationalisierungen. Aktivieren bei neuen Features, Bug Fixes, Refactoring.
development
Enforces TypeScript best practices when writing code. Automatically enables strict typing for TypeScript projects, prevents `any` usage, and recommends generic constraints. Activate on TS/TSX files, new features, code reviews.
development
Erarbeitet mit dem User eine Spezifikation bevor Code geschrieben oder an CC/Sonnet delegiert wird. Prueft Kontext, Ziel, Abnahmekriterien, Constraints. Erzeugt SPEC.md oder CC-Prompt mit Self-Fix-Protokoll. Triggern bei: Spec, Spezifikation, SPEC.md, CC-Prompt, Sonnet-Prompt, "delegate an CC", "was brauchst du noch", "plan das erstmal", "bevor du loslegst", groessere Features, mehrstufige Aufgaben, unklare Abnahmekriterien. Im Zweifel User fragen. Ersetzt cc-prompt-builder.