scaffold-component
Installation
SKILL.md
scaffold-component (Global Fallback)
Use this skill when the user asks to "create a component". This skill is designed to be framework-agnostic and will adapt to the current project's stack. Adhere to the following process and development philosophy and approach.
Development Process
Philosophy & Approach
- Spec-Driven Development (SDD): Always start by creating a technical specification using the sdd-workflow template. Adhere to the
spec-driven-development.mdglobal rule.- Create the spec as
[ComponentName].spec.mdwithin the component folder before starting implementation. - Living Document: Refactor the spec for every new feature or discovery and maintain a timestamped Changelog at the bottom.
- Create the spec as
- Component Architecture: Follow the
component-architecture.mdglobal rule (Folder-per-Component).
Usage
- Draft the Spec: Follow the sdd-workflow template and create
src/components/[ComponentName]/[ComponentName].spec.md. Initialize the Changelog section. - Detect Framework & Stack: Check
package.jsonfor dependencies (e.g.,@mui/material,tailwindcss,reactversion). Adhere to project-specific rules likethree-js-react.mdif applicable. - Implement & Update: Follow the spec strictly. If architecture changes during build, update the spec and the changelog before proceeding.