ps-new-project
Skill4 starsChanged 14 days agoMITView on GitHub
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.
In this repository37 other files it gives its agents.
- blast-radiusSkill
- elementflow-kbSkill
- gitlab-changelog-releaseSkill
- gitlab-ci-quality-gatesSkill
- gitlab-project-bootstrapSkill
- gitlab-security-setupSkill
- gitlab-wiki-bootstrapSkill
- lando-checkSkill
- lando-img-placeholderSkill
- lando-mail-smtpSkill
- lando-setupSkill
- mallard-releaseSkill
- mr-flowSkill
- no-commentsSkill
- paginated-report-pdfSkill
- panda-kbSkill
- ploi-prestashop-deploySkill
- prestashop-kbSkill
- ps-consoleSkill
- ps-css-buildSkill
- ps-demo-userSkill
- ps-email-previewSkill
- ps-image-regenSkill
- ps-invoice-previewSkill
- ps-one-page-checkoutSkill
- ps-project-docSkill
- ps-security-auditSkill
- ps-storefront-polishSkill
- ps-theme-cacheSkill
- ps-translateSkill
- ps-view-transitionsSkill
- ps-watchSkill
- reflectSkill
- show-me-your-workSkill
- skill-authorSkill
- task-contextSkill
- verify-ps-projectSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 2 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Every project gets a child theme, on both tracks — you never edit the parent (panda/classic) directly.
- Very specific: line 44
Verify with git ls-files vendor | head -1 (must print nothing) before committing.
- Very specific: line 50
Default <name> = <repo-slug>-child (derive slug from the repo dir name.
- Very specific: line 56
Run the ps-css-build skill targeting themes/<name>/ (lightningcss + pnpm + pre-commit).
- Very specific: line 59
Call ps-project-doc with known values (track, theme name, PS version, git remote) so it writes CLAUDE.md without re-prompting.
- Very specific: line 62
If Lando isn't configured and --no-lando not passed, hand off to lando-setup.
- Very specific: line 68
Never commit vendor/ — /vendor/ must be in .gitignore before the first commit.
- Distinctive: line 69
Never create the GitLab repo or server, never install PS core, never deploy.
- Distinctive: line 70
Never clobber an existing child theme without explicit confirmation.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ps-new-project — new client day-1 scaffold
Runs the repetitive setup that's still manual after clone + lando-setup: child theme → CSS build → CLAUDE.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.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 withgit ls-files vendor | head -1(must print nothing) before committing.
1. Child theme scaffold
~/.claude/skills/ps-new-project/scripts/scaffold-theme.sh <track> <name> "<display_name>" .- 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. CLAUDE.md — reuse ps-project-doc (non-interactive)
Call ps-project-doc with known values (track, theme name, PS version, git remote) so it writes CLAUDE.md without re-prompting. Stays gitignored, never committed. 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 CLAUDE.md may name the client — it's private/untracked.)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

