skills/lp-init/SKILL.md
Inizializza progetto landing page animata: scaffold React+Tailwind+GSAP+Motion, genera CLAUDE.md, hook QA, struttura cartelle. Usa quando l'utente vuole creare una nuova landing page, setup progetto landing, o dice lp init, nuova landing, setup landing, crea landing page.
npx skillsauth add MaxGiu67/landing-craft lp-initInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Inizializza un progetto landing page completo con React, Tailwind CSS v4, GSAP, Motion.dev, e configurazione Claude Code ottimizzata.
Chiedi all'utente (o inferisci dal contesto):
Se il progetto non esiste ancora, crea con:
React + Vite (default):
pnpm create vite@latest [nome] --template react-ts
cd [nome]
pnpm add gsap @gsap/react motion tailwindcss @tailwindcss/vite
pnpm add -D prettier eslint typescript
Next.js:
pnpm create next-app@latest [nome] --typescript --tailwind --app --src-dir
cd [nome]
pnpm add gsap @gsap/react motion
Crea la struttura:
src/
├── components/
│ ├── sections/ # Hero.tsx, Features.tsx, Pricing.tsx, CTA.tsx, Footer.tsx
│ ├── ui/ # Button.tsx, Badge.tsx, Card.tsx (shadcn-style)
│ └── animations/ # ScrollReveal.tsx, StaggerContainer.tsx, CountUp.tsx
├── hooks/
│ ├── useScrollProgress.ts
│ ├── useReducedMotion.ts
│ └── useInView.ts
├── lib/
│ ├── utils.ts # cn(), constants
│ └── animation-config.ts # durate, ease, stagger values centralizzati
└── styles/
└── globals.css # Tailwind v4 @import, font, base styles
Crea src/lib/animation-config.ts:
export const ANIMATION = {
duration: { fast: 0.3, normal: 0.6, slow: 0.8 },
ease: { default: "power2.out", bounce: "back.out(1.7)", smooth: [0.25, 0.46, 0.45, 0.94] },
stagger: { fast: 0.05, normal: 0.1, slow: 0.15 },
scroll: { start: "top 80%", end: "top 20%" }
} as const;
Crea wrapper riutilizzabili in src/components/animations/:
ScrollReveal.tsx — wrapper Motion.dev con useInViewStaggerContainer.tsx — container con stagger childrenCountUp.tsx — counter animato GSAP per numeri/statsCrea CLAUDE.md nella root del progetto con:
Crea .claude/settings.json con:
Progetto inizializzato! Prossimi passi:
1. /lp-hero [stile] — genera la hero section
2. /lp-section [tipo] — genera sezioni (features, pricing, etc.)
3. /lp-qa — verifica qualita completa
testing
Dashboard stato landing page: sezioni completate, score Lighthouse, checklist. Usa quando l'utente vuole vedere lo stato, il progresso, o dice lp status, stato, a che punto siamo, progresso landing.
testing
Genera sezione landing page con animazioni scroll-triggered. Tipi: features, testimonials, stats, pricing, comparison, cta, footer. Usa quando l'utente vuole aggiungere una sezione, o dice lp section, aggiungi sezione, crea features, pricing, testimonials.
development
QA completa landing page: build, Lighthouse, accessibilita, visual check 3 viewport, reduced-motion, CLS. Usa quando l'utente vuole verificare la qualita, testare la landing, o dice lp qa, controlla, verifica, test landing, qualita, lighthouse.
tools
Overview del plugin Landing Craft. Mostra skill disponibili, workflow, stack e references. Usa quando l'utente chiede aiuto sul plugin, vuole vedere le skill, o dice help landing, come funziona, lp help.