install-sections
Installation
SKILL.md
Page Builder
Install shadcnblocks sections and implement i18n for a page.
Workflow
- Install Sections - Install only NEW sections
- Check if component file exists in
components/ - If exists: Skip installation, reuse existing component, do it with prop-based consolidation with variant prop if needed
- If new: Run
pnpm dlx shadcn add @shadcnblocks/[section] - Never overwrite existing files
- Check if component file exists in
- Create Page File - Create/update app/[locale]/[route]/page.tsx
- Import Sections - Import all installed components
- Arrange Sections - Place in order as specified
- Extract Text - Find all hardcoded text in sections
- Add to i18n - Add text to messages/de.json and messages/en.json
- Replace with t() - Use useTranslations hook in components