/portaljs:portaljs-new-portalfrom portaljs
Scaffolds a PortalJS data portal from a brief via interactive interview, template copy, token substitution, and dependency install. Use when starting a new PortalJS project from scratch.
Ships in portaljs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Scaffold a production-ready PortalJS data portal from a brief. The skill is
interactive: if the brief is thin it interviews the user in three short rounds
(mapped to the template's three surfaces — Home, Catalog, Showcase), echoes a brief
back for confirmation, then copies examples/portaljs-catalog (locally or via a
remote tiged fetch), substitutes placeholder tokens, sets the namespace mode, seeds
any datasets named in the interview, installs dependencies, and verifies the scaffold
with a type check.
PATH.The canonical, full step-by-step workflow is
.claude/commands/portaljs-new-portal.md —
the single source of truth. Read and follow it when executing. Summary:
theme vs owner), Showcase/views — skipping any round
already answered by the input brief. Accept "use defaults" at any point.tiged fetch of
examples/portaljs-catalog at main (or PORTALJS_TEMPLATE_REF); use a local
checkout only when it is current (has pages/[owner]/[slug].tsx) and the
destination is outside that repo../PROJECT_SLUG, asking first if the destination
already exists and is non-empty.__PROJECT_NAME__, __PROJECT_SLUG__, __DESCRIPTION__ tokens
across all files with perl -pi, escaping /, \, and & in the values.NAMESPACE_TYPE ('theme' or 'owner') in lib/datasets.ts per the
interview./portaljs-add-dataset or by hand), or
clear datasets.json to [] if none were named.npm install inside the scaffolded portal.npx tsc --noEmit (never next build here — it would corrupt a
running dev server's .next/ directory)../PROJECT_SLUG/ containing the full
examples/portaljs-catalog template with tokens substituted.lib/datasets.ts (NAMESPACE_TYPE); datasets.json (seeded
datasets or cleared to []).npx tsc --noEmit passes inside the scaffolded portal../PROJECT_SLUG with Home (/), Catalog
(/search), and Showcase (/@<namespace>/<slug>) surfaces wired up.| Symptom | Cause | Fix |
|---|---|---|
DIR_EXISTS | ./PROJECT_SLUG already exists and is non-empty | Ask the user for a different name or consent to remove it; then proceed. |
| Remote fetch fails | Bad PORTALJS_TEMPLATE_REF, network outage, or tiged unavailable | Tell the user plainly and ask to retry, use a different ref, or check network. |
Stale local scaffold (pages/datasets/[slug].tsx) | Old local clone missing pages/[owner]/[slug].tsx | Resolver already falls back to remote in this case — do not force local mode. |
npm install fails | Node <22 or no network | Report the error and ask the user to check Node version and connectivity. |
tsc --noEmit fails | Token substitution or manifest error | Print the log and fix before reporting success — never report success with a failing type check. |
/portaljs-new-portal Auckland Open Data Portal — datasets published by several council
departments (multiple publishers). Start with ./data/parks.csv and ./data/budget.csv.
Infers name + description, picks NAMESPACE_TYPE = 'owner', asks for namespace
values (e.g. parks-dept, finance), confirms the brief, scaffolds the template, and
seeds both datasets at /@parks-dept/parks and /@finance/budget.
/portaljs-new-portal
Runs all three interview rounds from scratch, accepting "use defaults" for any round, then confirms the brief before scaffolding.
/portaljs-new-portal Reference Data Hub — a single-team reference catalog, no data yet.
Picks NAMESPACE_TYPE = 'theme' with namespace reference, clears datasets.json to
[], and reports /portaljs-add-dataset as the next step.
.claude/commands/portaljs-new-portal.mdreferences/reference.mdportaljs-add-dataset, portaljs-add-chart, portaljs-add-map, portaljs-connect-ckanWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
14 skills in this plugin
/arcgis-to-portaljsMigrate a whole ArcGIS Hub site into a PortalJS Arc portal end-to-end. Harvests the Hub /data.json (DCAT-US) inventory, exports every FeatureService layer through the ArcGIS REST query API with resultOffset paging, converts each to the serverless dual tier (PMTiles render + GeoParquet query) with tabular items to Parquet, pushes everything to Cloudflare R2 via Git LFS, appends dual-tier datasets.json entries, and writes a source-vs-derived parity report. Use to move a City or sector ArcGIS Hub open-data portal onto PortalJS with no server-side compute./portaljs-add-chartAdd a chart (line, bar, area, pie, or scatter) to a dataset's showcase in a PortalJS portal. Installs recharts, writes a reusable Chart component, and renders it in the showcase Views section. Use when visualizing a dataset already registered in datasets.json./portaljs-add-datasetnpx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin portaljsOther plugins' skills for the same job