Skip to content
Back to skills

Ps New Project

ASecurity

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 AGENTS.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.

  • 5 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 23, 2026
developmentgophpbashsqlnodegitsecurity

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 17, 2026

npx -y skills add educlopez/mallard --skill ps-new-project --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ps New Project?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ps New Project
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/educlopez-ps-new-project/badge)](https://www.skillsdirectory.com/skills/educlopez-ps-new-project)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ps-new-project
description: >
  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 AGENTS.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.
version: "0.1.3"
metadata:
  author: Eduardo Calvo
---

# 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 of `classic`, relies on the `stsitebuilder` module. 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.php` and 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 weekly `ps-security-audit` job 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 on `bin/` and `mails/`).
Verify with `git ls-files vendor | head -1` (must print nothing) before committing.

### 1. Child theme scaffold
```bash
~/.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>/` with `config/theme.yml` (per track), `config/.htaccess`, `templates/{_partials,catalog,checkout,customer,errors}/`, `modules/`, `assets/{css,js}/`.
- For `elementflow`, verify `modules/stsitebuilder` exists; 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 `.gitignore` before 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.)

Files in this skill

  • SKILL.md5 KB
  • scripts/scaffold-theme.sh3.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.