button-skill
Installation
SKILL.md
Button Skill
When To Use
Use this skill when implementing base-theme button patterns in a Vue project using @rds-vue-ui/* packages (not local component copies).
Inputs
- Framework:
Vue 3 - Package manager:
yarn(or npm/pnpm equivalent) - Private registry (required):
https://npm.edpl.us - Storybook docs URL:
https://rds-vue-ui.edpl.us/?path=/docs/components-button-buttons--docs - Base theme only (ignore alternate themes).
Dependencies (Registry Packages)
@rds-vue-ui/rds-theme-basesass-embedded(if SCSS preprocessing is required by dependent packages)
Registry Configuration (Required)
- Add/update project
.npmrc:@rds-vue-ui:registry=https://npm.edpl.us/
- Validate package resolution:
npm view @rds-vue-ui/rds-theme-base version --registry=https://npm.edpl.us/
Workflow
- Configure
.npmrcwith@rds-vue-uiscoped registry. - Install packages from private registry:
yarn add @rds-vue-ui/rds-theme-baseyarn add -D sass-embedded(if build fails on SCSS preprocessing).
- Import base theme once in app entry:
import '@rds-vue-ui/rds-theme-base/dist/css/rds-theme-base.css';
- Implement button usage based on Storybook
Components/Button/Buttonsdocs:- Use documented classes (
btn, size variants, solid/outline variants, disabled, block). - Do not create local replacement button components to mimic RDS behavior.
- Use documented classes (
- Create/update practical demo examples and route links.
- Run QA checklist and resolve all open items.
Outputs
README.mdspec/component-spec.mdexamples/*checklists/qa.md
Verification Checklist
-
.npmrccontains@rds-vue-ui:registry=https://npm.edpl.us/. -
@rds-vue-ui/rds-theme-baseresolves from private registry. - Base theme CSS imported exactly once in app entry.
- Examples use documented button patterns from Storybook.
- No local replacement button component was introduced.
- Build completes successfully.
Constraints
- Base theme only.
- No non-base screenshots, variants, or token references.
- Prefer registry package usage over local component implementations.
- If details are unknown, mark them as
TBDand capture source needed to confirm.
Failure Handling
- Registry/auth failure:
- Verify
.npmrcscope is set to@rds-vue-ui:registry=https://npm.edpl.us/. - Retry
npm view @rds-vue-ui/rds-theme-base version --registry=https://npm.edpl.us/. - If still blocked, confirm VPN/SSO/token requirements for private registry access.
- Verify
- SCSS preprocessor failure:
- Install
sass-embeddedand rebuild.
- Install
Related skills
More from ashwinikarnik/rds-skills
button-play-apollo-skill
Reusable workflow for implementing and validating @rds-vue-ui/button-play-apollo across projects, including registry setup, theme wiring, demo integration, and verification gates.
3form-checkbox-skill
Reusable workflow for implementing and validating @rds-vue-ui/form-checkbox from the private npm registry, including theme wiring, v-model behavior, demos, and verification gates.
3