This is the canonical template used by the /new-portal skill. It is a real Next.js project — you can run it directly.
cd examples/portaljs-template
npm install
npm run devFiles contain {{PLACEHOLDER}} tokens that /new-portal replaces at scaffold time:
| Token | Replaced with |
|---|---|
__PROJECT_NAME__ |
Human-readable portal name (e.g. "Auckland Open Data Portal") |
__PROJECT_SLUG__ |
URL-safe slug (e.g. auckland-open-data) |
__DESCRIPTION__ |
One-sentence portal description |
- Edit files in this directory directly
- Run
npm run devto verify changes work - Commit — the next
/new-portalrun picks up your changes automatically
No need to touch .claude/commands/new-portal.md when changing page layouts, styles, or component usage. Only edit the skill file when changing how scaffolding works (steps, error handling, argument parsing).