Agent skill
component-transformer
Orchestrates the migration of legacy MUI or generic components to the Northcote Curio design system. Specializes in "Refactor-on-Port" logic, ensuring visual transformation while preserving business state and behavioral integrity.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/component-transformer
SKILL.md
Component Transformer Skill
Migration Steps
1. The Audit (Discovery)
Use the token-orchestrator principles to scan the file for:
- ❌ Hardcoded colors (hex, rgb, rgba)
- ❌ Hardcoded spacing (padding, margin, gap in px)
- ❌ Hardcoded radii (4px, 8px, etc.)
- ❌ Generic fonts (Inter, Arial, System)
- ❌ Standard easing (ease-in-out)
2. The Context Selection
Determine if the component belongs in:
- Mode A (Gallery): For "Wonder" (Marketing, Profile Hero, Landing).
- Mode B (Laboratory): For "Rigor" (Parsing, Data, Settings, Editor).
3. The Transformation (Mapping)
Replace generic values with the Northcote Token Set:
- Colors: Map to
primary-wattle,tertiary-waratah,parchment, etc. - Typography: Inject the Federation Stack.
- Wrap primary headers in
banksia-composition. - Apply
font-variation-settingsfor parametric weight (XTRA: 468).
- Wrap primary headers in
- Physics: Replace linear transitions with
ease-viscousorease-settle. - Morphology: Apply asymmetric border-radii (
radius-pebble, etc.).
4. Behavioral Preservation
Ensure no business logic, event handlers, or state management is lost or altered during the visual upgrade.
5. Verification
- Generate unit tests using
jest-test-scaffolder. - Create a Storybook story using
storybook-scaffolder.
Implementation Principles
- Anti-Slop: Reject any transformation that results in a "generic SaaS" look.
- Parametric: Engage variable font axes for interactive elements (e.g., GRAD hover).
- Layout-Safe: Prefer
GRADoverwghtfor hover animations to prevent reflow.
Usage Example
"Transform Header.tsx to the Northcote Curio system. It should be in Gallery mode."
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?