Agent skill
fix-css
Fixes corrupted Panda CSS styled-system when styles appear broken, CSS isn't applying, or the build fails with styled-system errors. Use when CSS looks wrong, styles are missing, or after prettier/formatters may have corrupted generated files.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/fix-css
SKILL.md
Fix Corrupted Panda CSS (styled-system)
This project uses Panda CSS which generates a styled-system/ directory. This directory can become corrupted when:
- Prettier or other formatters modify the generated files
- Git merge conflicts in styled-system/
- Interrupted
panda codegenruns - Node modules corruption
Symptoms
- Styles not applying correctly
- CSS appears broken or missing
- Build errors mentioning
styled-system - Type errors in
styled-system/imports - Visual regressions that appeared without code changes
Fix Procedure
Run these commands in order:
# 1. Delete the corrupted styled-system
rm -rf apps/web/styled-system
# 2. Regenerate it with Panda CSS
cd apps/web && pnpm panda codegen
# 3. Clear Next.js cache (if build errors persist)
rm -rf apps/web/.next
# 4. Rebuild to verify
cd /Users/antialias/projects/soroban-abacus-flashcards && pnpm build
Verification
After regeneration, verify:
apps/web/styled-system/directory exists with fresh filespnpm buildcompletes without styled-system errors- Dev server shows correct styling
Prevention
The repo has .prettierignore at the root that excludes **/styled-system/**. If corruption keeps happening:
- Verify
.prettierignorecontains**/styled-system/** - Check that IDE formatters respect
.prettierignore - Ensure git hooks don't format styled-system files
Quick One-Liner
For fast fix without explanation:
rm -rf apps/web/styled-system apps/web/.next && cd apps/web && pnpm panda codegen && cd ../.. && pnpm build
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?