extend-pattern

Add new variants, sizes, or features to existing component patterns.

3|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/GDSDN/kord-aios --skill extend-pattern
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extend-pattern
Source: https://github.com/GDSDN/kord-aios/tree/main/src/features/builtin-skills/kord-aios/dev-workflow/extend-pattern
Command: npx skills add https://github.com/GDSDN/kord-aios --skill extend-pattern

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of adding new variants, sizes, or features to existing software components without introducing breaking changes, ensuring consistency with design system patterns.

Core Features & Use Cases

  • Component Extension: Safely add new variations to UI components.
  • Backward Compatibility: Ensures existing functionality remains intact.
  • Design System Adherence: Maintains consistency by leveraging established tokens and patterns.
  • Use Case: A design team needs to add a new "warning" variant to an existing "Button" component. This Skill handles updating the component's props, styles, tests, and documentation to include the new variant while ensuring existing "primary" and "secondary" buttons still function correctly.

Quick Start

Use the extend-pattern skill to add a new 'warning' variant to the 'button' component.

Frequently Asked Questions about extend-pattern

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a new variant to an existing UI component without breaking backward compatibility?

To add a new UI component variant without breaking backward compatibility, extend existing software patterns by modifying component props, styles, and tests while leveraging established design tokens. This ensures existing variations remain fully intact and functional.

What is the best way to extend a design system component with new sizes or features?

The best way to extend a design system component with new sizes or features is to adhere to established design system principles. This involves modifying component files, styles, and documentation while utilizing available design tokens for the new variations.

Do I need a complete design system setup before extending component patterns?

Yes, you need a complete design system setup and available design tokens for new variations before extending component patterns. Pre-existing components are also required to safely add new variants, sizes, or features to the codebase.

How do I update component tests and documentation when adding a new button variant?

To update component tests and documentation when adding a new button variant, modify the component files and styles first. This pattern extension process ensures the new variant is tested and documented while maintaining existing functionality.

Can I introduce new component features without disrupting existing design system patterns?

Yes, you can introduce new component features without disrupting existing design system patterns by safely extending the component. This approach maintains consistency by leveraging established tokens and ensures existing variations still function correctly.

What should I update when adding a warning variant to a primary button component?

When adding a warning variant to a primary button component, you must update the component's props, styles, tests, and documentation. This ensures the new variant integrates seamlessly while existing primary and secondary buttons function correctly.