New to Claude Skills? Learn how to install them →

Pjeremylongshore on GitHub

PortalJS Architect

Free

Design your data-portal architecture before building.

Get this skill

Free · Opens the source repo

What PortalJS Architect does

PortalJS Architect serves as the initial advisory skill for setting up a data-portal project using PortalJS. It is specifically designed for developers and designers who need to determine the architecture of their data portal before any actual coding or scaffolding begins. This skill guides users through a structured interview process, where it gathers essential information about the intended purpose of the portal, the type of data it will handle, and any constraints that may exist. By doing so, it fills six critical architecture slots: storage, catalog, compute, access, hosting, and metadata, which are essential for a well-functioning data portal.

The skill operates interactively, asking questions in a series of rounds to clarify the project requirements. If the user is unsure or lacks specific details, they can simply reply with "use defaults," allowing the skill to provide sensible defaults based on common use cases. This feature ensures that even users with minimal initial information can still receive a tailored architecture recommendation. Once all necessary information is gathered, PortalJS Architect generates a brief that outlines the recommended architecture, including the reasoning behind each choice, and waits for user confirmation before finalizing the architecture in a markdown file.

Ideal for teams starting new data-portal projects, this skill helps avoid the pitfalls of poorly defined architecture by ensuring that all necessary considerations are addressed upfront. It is particularly useful for users who may not have a clear vision of their project's architecture but want to ensure that their data portal is built on a solid foundation. By handing off to subsequent build skills, it streamlines the development process, making it easier to move from planning to execution.

When to use it

Use this skill when starting a new data portal project and the underlying architecture has not yet been decided.

When not to use it

This is not suitable for projects where the architecture has already been established or for users who require immediate coding without planning.

What you can build with it

National Statistics Office Project

A national statistics office uses this skill to define a robust architecture for managing ~200 large datasets, ensuring compliance with DCAT-AP.

Small Nonprofit Data Portal

A small nonprofit without specific requirements uses the skill to generate a default architecture, allowing them to quickly set up their data portal.

Internal Data Catalog for Engineering

An engineering team uses the skill to create an internal catalog for their datasets, ensuring access controls are properly configured.

How to install PortalJS Architect

View source

1. Install with the skills CLI

npx skills add jeremylongshore/claude-code-plugins-plus-skills/portaljs-architect --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by jeremylongshore

PortalJS — Architect

Overview

The advisory entry point for a PortalJS project. Before anything gets scaffolded, this skill works out what to build: given the kind of portal, the shape of the data, and its purpose, it fills six architecture slots (storage, catalog, compute, access, hosting, metadata), resolves two build-time knobs (per-dataset data tier and the portal-wide DATA_QUERY mode), and hands off to the concrete build skills. It decides; it does not build. When the brief is thin it interviews in short rounds and never dead-ends — every question has a sensible default, reachable by replying "use defaults."

Prerequisites

  • A rough idea of the portal's purpose and data (exact numbers are not required — the interview supplies defaults for anything missing).
  • Optional: local files or a directory of sample data to inspect for size and shape.
  • No PortalJS project needs to exist yet; this skill runs before scaffolding.

Instructions

The canonical, full step-by-step workflow lives in .claude/commands/portaljs-architect.md — that file is the single source of truth. Follow it when executing this skill:

  1. Parse $ARGUMENTS for anything already specified, then interview for what's missing, one round at a time: (1) what's being built, (2) what the data is, (3) what it's for, (4) constraints. Accept "use defaults" at any point. Inspect named files/directories with du -sh and line counts to ground size guesses.
  2. Derive the recommendation by matching the answers against the decision tables — Storage/Catalog/Compute by data volume and query needs, Access/Hosting by public vs. private, Metadata by standards-compliance needs — then resolve the two build-time knobs: per-dataset data tier (inline | LFS | external) and the portal-wide DATA_QUERY mode (flat | duckdb).
  3. Echo the architecture brief (stack, reasoning per slot, deviations from default, deferred items) and wait for confirmation ("go") or corrections.
  4. On confirmation, persist the brief to ./ARCHITECTURE.md in the working directory.
  5. Hand off to the build skills — /portaljs-new-portal, /portaljs-add-dataset, /portaljs-connect-ckan, /portaljs-define-schema, /portaljs-deploy — mapped from the brief, and offer to run the first one.

Output

  • Created: ./ARCHITECTURE.md documenting the six slots, the two build-time knobs, the reasoning, and anything deferred to a later build step.
  • Modified: nothing else — this skill is advisory only.
  • Verified: the brief was echoed back and confirmed before being persisted.
  • Result: a concrete, named sequence of follow-up skill invocations (e.g. /portaljs-new-portal/portaljs-add-dataset/portaljs-deploy).

Error Handling

SymptomCauseFix
Skill keeps asking rounds of questionsBrief was thin or $ARGUMENTS omittedAnswer inline, or reply "use defaults" to accept the opinionated default stack
Recommendation looks genericRounds were skipped without real data detailsGive actual size/shape/cadence, or point at files for du -sh inspection
ARCHITECTURE.md never appearsConfirmation step was skippedReply "go" once the echoed brief looks right
Scaffolded portal has the wrong DATA_QUERYFlat downgrade wasn't appliedRun the perl -pi -e one-liner from the command file against lib/datasets.ts
Hand-off names a skill that doesn't existDecision maps to a (planned) skill (e.g. /connect-openmetadata)Treat it as designed-in/built-later; proceed with the closest available skill

Examples

Example 1 — National statistics office, DCAT-AP harvesting

/portaljs-architect We're a national statistics office. ~200 datasets, mostly large
CSVs (some GBs), updated quarterly, all public, and we must publish DCAT-AP for the
EU data portal.

Infers a multi-publisher, analytics-grade portal. Recommends Parquet on R2 + DuckLake + DuckDB, static Cloudflare Pages, Frictionless + DCAT-AP metadata, owner namespace, data tier external for the Parquet, DATA_QUERY=duckdb. Writes ARCHITECTURE.md and hands off to /portaljs-new-portal then /portaljs-add-dataset.

Example 2 — Small nonprofit, no arguments given

/portaljs-architect

Runs the full four-round interview since nothing was pre-filled. Accepting defaults at each round lands on the opinionated default stack: repo files or Git-LFS + R2 storage, datasets.json catalog, DuckDB compute, static access on Cloudflare Pages, Frictionless metadata, theme namespace, data tier LFS, DATA_QUERY=duckdb.

Example 3 — Internal catalog with restricted datasets

/portaljs-architect Internal engineering data catalog, single team, dozens of CSVs,
some of it access-controlled to specific roles.

The private-data answer in Round 2 flips Access/Hosting to runtime + backend RBAC on Cloudflare Workers — flagged as the larger, opt-in build — while Storage/Catalog/Compute still follow the volume-based defaults.

Resources

Frequently asked questions about PortalJS Architect

Similar skills