Automated summary
Creates a complete, production-ready product page in the hydrascan-pro Astro project, including collection data, content JSON, route validation, and QA checks.
Strengths
- Follows an established reference structure with clear step-by-step instructions.
- Automates validation (JSON syntax, Zod schema) to catch errors early.
- Provides a deterministic section ordering and fallbacks for optional content.
- Uses existing patterns and assets to ensure consistency.
Limitations
- Specific to the hydrascan-pro project structure; not portable to other projects.
- Requires the user to provide several inputs (slug, category, etc.) before starting.
- Relies on local commands (npm run validate:content) and a dev server URL for verification.
When adding a new product page to the hydrascan-pro site and you need a full content structure that matches existing pages.
When you're working outside this particular project or when the product content is incomplete and doesn't need the full page structure.
Security analysis
SafeThe skill instructs creating product page content files and running benign validation commands (node JSON.parse, npm run validate:content). No destructive, exfiltration, obfuscated, or privilege-escalating actions are present. It operates within a known project structure for legitimate content authoring.
No concerns found
How this analysis is madeExamples
Create a new product page for the Novalight 4Wave laser in the diodalezerek category. Name: Novalight 4Wave, description: 'Advanced 4-wave diode laser for permanent hair removal', price: 1250000, availability: in_stock.Add a product page for the HydraFacial Deluxe, category hydrafacial, price 450000, preorder, with specs and FAQs.Make a product page for the Nd:YAG Q-Switched laser, category nd-yag-lezerek, out_of_stock, with training and testimonials.Új termékoldal létrehozása
Teljes, production-ready termékoldal készítése a hydrascan-pro referencia-struktúra szerint.
Input
Kérd be (ha nem adta meg):
- Termék slug — fájlnév és URL (pl.
novalight-4wave) - Kategória slug —
diodalezerek|sminktetovalas|nd-yag-lezerek|hydrafacial|anti-aging|szalonberendezes - Termék neve
- Rövid leírás (1-2 mondat)
- Ár (HUF szám, vagy
null) - Elérhetőség —
in_stock|preorder|out_of_stock
Ha a felhasználó egyéb infót is ad (specifikációk, funkciók, USP-k, leírás), használd fel a content feltöltésénél.
Lépések
1. Product collection entry
Keress: src/content/products/{slug}.json. Ha nincs, hozd létre a séma szerint.
Lásd: .claude/commands/new-product-page/references/product-collection-schema.json
Kép kezelés: Az image mező @assets/products/{slug}.webp formátumú. Ha a kép fájl nem létezik, használj egy meglévő placeholder képet ugyanabból a kategóriából. Szólj a felhasználónak, hogy a képet cserélje ki. A images[] tömbbe a galéria képeket sorold (szintén @assets/products/ prefix).
2. Content JSON
Hozd létre: src/content/product-content/hu/{slug}.json
Lásd: .claude/commands/new-product-page/references/content-schema.json
Minden szekció opcionális a name, shortDescription, description kivételével. A ProductLayout feltételes renderelést használ — ha egy mező hiányzik, az adott szekció nem jelenik meg.
3. Route ellenőrzés
Ellenőrizd, hogy src/pages/{categorySlug}/[slug].astro létezik. Ha nincs, hozd létre a meglévők mintájára (mind ugyanazt a patternt követi — ProductLayout-ot importál).
4. Validáció
node -e "JSON.parse(require('fs').readFileSync('src/content/product-content/hu/{slug}.json','utf8'))"— JSON szintaxis checknpm run validate:content— Zod séma validáció- Ellenőrizd a dev szervert:
http://localhost:4321/{categorySlug}/{slug}
Ha validáció hibát dob: Olvasd el a hibaüzenetet, javítsd a JSON-t, futtasd újra. Gyakori hibák: idézőjel escape, trailing comma, hiányzó kötelező mező.
Szekció-sorrend (ProductLayout.astro)
| # | Komponens | JSON mező | Feltétel |
|---|-----------|-----------|----------|
| 1 | ProductGallery + Hero inline | collection data + content overrides | mindig |
| 2 | StatsBar | stats[] | ha van |
| 3 | ROICalculator | roi.defaultTreatmentPrice | mindig |
| 4 | VideoDescription | videoDescription | ha van |
| 5 | ProductCTA variant="light" | cta.afterVideo | mindig (i18n fallback) |
| 6 | FeatureRows | featureRows | ha van |
| 7 | ProductCTA variant="accent" | cta.afterFeatures | ha van featureRows |
| 8 | TrainingCard | training | ha van |
| 9 | Testimonials | testimonials[] | ha van |
| 10 | ExpertQuote | expertQuote | ha van |
| 11 | Specs table + FunctionCards | specs{} + functionCards[] | ha van bármelyik |
| 12 | ProductFAQ | faq[] | ha van |
| 12.5 | BuyerChecklist | buyerChecklist | ha van |
| 13 | WhatsIncluded | whatsIncluded[] | ha van |
| 14 | WarrantyService | — (i18n) | mindig |
| 15 | ProductCTA variant="primary" | cta.final | mindig (i18n fallback) |
| 16 | RelatedProducts | — (auto) | mindig |
Fontos fájlok
- Layout:
src/layouts/ProductLayout.astro - Típusok:
src/lib/types/product-content.ts - Loader:
src/lib/load-product-content.ts(cascade: product JSON → category JSON → undefined) - Komponensek:
src/components/product/*.astro - Ikonok, HTML minták:
.claude/commands/new-product-page/references/patterns.md
DO
- Minden szekciót tölts ki tartalommal — egy teljes oldal a cél
<mark>tag-gel jelöld a testimonials legfontosabb részét- FAQ: minimum 5-7 kérdés, válaszok 2-3 mondat
- WhatsIncluded: mindig zárd "2 év teljes körű garancia" és "Cseregép javítás idejére" sorokkal
- ExpertQuote: általában Horváth László, Technikai szakértő
- Használd a meglévő content JSON-öket mintának (lásd references/patterns.md)
- A featureRows description mezőben HTML használható (checklistek, grid-ek)
- JSON validáció MINDIG a végén
DON'T
- Ne használj
„és"(magyar idézőjelet) JSON stringekben — helyette\u201Eés\u201D - Ne hagyj trailing comma-t a JSON-ban
- Ne hozz létre képfájlt — csak hivatkozz rá, szólj a usernek ha hiányzik
- Ne módosítsd a ProductLayout.astro-t — csak content JSON-t és collection JSON-t írj
- Ne felejtsd el a
categorySlugegyeztetést a collection és content JSON között - Ne írj üres tömböket/objektumokat a content JSON-be — hagyd ki az egész mezőt ha nincs tartalom
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/create-a-new-product-page-mtchbc06/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/create-a-new-product-page-mtchbc06' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/create-a-new-product-page-mtchbc06/download' --output '.skill-downloads/create-a-new-product-page-mtchbc06/SKILL.md.part' && mv '.skill-downloads/create-a-new-product-page-mtchbc06/SKILL.md.part' '.skill-downloads/create-a-new-product-page-mtchbc06/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
This file does not provide a usable name/description header for this native procedure. It remains available to download and inspect; use the manual method below.
Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/create-a-new-product-page-mtchbc06/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.