educlopez/mallard/ps-new-project
Claude Code and agent skill by educlopez/mallard
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Orchestrate the day-1 setup that remains after cloning a PrestaShop repo and running lando-setup: scaffold the child theme (panda or elementflow track), wire the CSS build, and write CLAUDE.md. Composes existing skills (ps-css-build, ps-project-doc, lando-setup). Does NOT create the GitLab repo, the server, or install PrestaShop core. Use when starting a new client project locally and you need the standard scaffold fast.
Install
npx vskill@latest install educlopez/mallard/ps-new-projectSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as educlopez/mallard/ps-new-project.
ps-new-project — new client day-1 scaffold
Runs the repetitive setup that's still manual after clone + lando-setup: child theme → CSS build → AGENTS.md. Pure orchestration over skills that already exist. Server/repo/PS-core stay out of scope (manual / PM-owned).
Universal rule: always a child theme
Every project gets a child theme, on both tracks — you never edit the parent (panda/classic) directly. The child is the safe override layer; parent files stay untouched so parent updates don't wipe your work. Creating the child is not optional.
Tracks
panda— legacy majority: child of the Panda theme (parent: panda). Storefront work (templates + CSS) happens in the child.elementflow— emerging default: child ofclassic, relies on thestsitebuildermodule. The child is still mandatory (same rule). What differs is where the visual work goes: in ElementFlow the site layout/content is built in the builder (stsitebuilder), so the child's hand-work concentrates on the checkout and my-account pages (building those with the builder causes compatibility issues). Don't build the whole site in the child — but you still always have one.
EF child — prefer the official download over generating. The canonical EF child theme is downloaded from the store itself so it preserves existing image types (installing a theme on PS 1.7/8 erases image types; the BO download re-adds them):
- PS 1.7 / 8: BO → Element Flow → Settings → Child theme (downloads with the store's image types baked in).
- PS 9: the
elementflow.zip(classic) /elementflow_hb.zip(Hummingbird) — PS 9 keeps image types on install.
This skill's generated EF skeleton (below) is a fallback/starting point only. When the store already has the stsitebuilder module, tell the user to grab the official child instead, and warn: on PS 1.7/8 a hand-generated child will not carry the store's image types — re-add them or use the BO download. Consult the elementflow-kb skill for builder specifics (navigation items, terms modal terms-and-conditions-modal.tpl, one-column mobile checkout).
The CSS build for both tracks is the same lightningcss pipeline ps-css-build ships (bundle+minify _dev/css/custom.css → assets/css/custom.css, zero-dep Node watch, zero-dep pre-commit fallback), so one build system serves both.
Flow
0. Preconditions
Confirm cwd is a PS repo (themes/ + modules/). Detect installed base: themes/panda → Panda available; modules/stsitebuilder → ElementFlow available. If --track mismatches what's installed, warn before proceeding.
0b. .gitignore — never version vendor/
Before the first commit, check .gitignore against the sibling PrestaShop repos (grep -L '^/vendor' ../*/.gitignore shows repos that miss it). A fresh PS core install ships a .gitignore that does NOT ignore vendor/, so a first git add -A commits ~80 MB of Composer deps that then live in history forever. Rules, checked across ~30 Cinetic PS repos:
- Always ignore
/vendor/(uploaded by hand to servers, not deployed from git),/img/*(keep the!/img/**/index.phpand default-logo exceptions),/upload/*,/download/*,/var/*(keep.gitkeep),/cache/*,app/config/parameters.php,config/settings.inc.php,*sitemap.xml,*.sql,CLAUDE.local.md. - Track
composer.lock(the weeklyps-security-auditjob needs it). Many old repos ignore it; new ones should not. - Varies — decide per project:
/bin/,translations/*,app/Resources/translations/*,mails/*(most repos ignore translations; ps8/ps9 siblings differ onbin/andmails/).
Verify with git ls-files vendor | head -1 (must print nothing) before committing.
1. Child theme scaffold
- Default
<name>=<repo-slug>-child(derive slug from the repo dir name; override with--name). - The script creates
themes/<name>/withconfig/theme.yml(per track),config/.htaccess,templates/{_partials,catalog,checkout,customer,errors}/,modules/,assets/{css,js}/. - For
elementflow, verifymodules/stsitebuilderexists; warn if missing. Also recommend the official EF child download (BO → Element Flow → Settings → Child theme on PS 1.7/8, or the zip on PS 9) since it preserves image types — the generated skeleton is a fallback. On PS 1.7/8 warn that a generated child won't carry the store's image types. - It refuses to clobber an existing
themes/<name>/.
2. CSS build — reuse ps-css-build
Run the ps-css-build skill targeting themes/<name>/ (lightningcss + pnpm + pre-commit). Same for both tracks. Skip with --no-css.
3. AGENTS.md — reuse ps-project-doc (non-interactive)
Call ps-project-doc with known values (track, theme name, PS version, git remote) so it writes a lean shared AGENTS.md plus the one-line CLAUDE.md (@AGENTS.md) bridge without re-prompting. Both are committed; CLAUDE.local.md is the private one and stays gitignored. Skip with --no-doc.
4. Lando — reuse lando-setup (optional)
If Lando isn't configured and --no-lando not passed, hand off to lando-setup. Usually already done → skip.
5. Report
List created/skipped, the child theme path, and remaining manual steps: activate the theme in the Back Office, and (if from scratch) create the repo/server — which this skill deliberately does not touch.
Hard rules
- Never commit
vendor/—/vendor/must be in.gitignorebefore the first commit. - Never create the GitLab repo or server, never install PS core, never deploy.
- Never clobber an existing child theme without explicit confirmation.
- English-only content; no company names in the skill. (Generated AGENTS.md is committed and shared: no personal notes, no private contacts.)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ps-new-project/SKILL.md
Popularity
- Repository stars
- 4
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/educlopez/mallard/ps-new-project)