{"data":{"slug":"github-datopian-portaljs-skills-portaljs-architect-d48b633e0686","title":"PortalJS \u2014 Architect","summary":"Recommend a data-portal architecture based on stated needs, including six architecture slots (storage, catalog, compute, access, hosting, metadata), and hand off to build skills. The advisory entry point for a PortalJS project.","url":"https:\/\/skillshunter.net\/skills\/github-datopian-portaljs-skills-portaljs-architect-d48b633e0686","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-datopian-portaljs-skills-portaljs-architect-d48b633e0686","markdown_url":"https:\/\/skillshunter.net\/skills\/github-datopian-portaljs-skills-portaljs-architect-d48b633e0686.md","download_url":"https:\/\/skillshunter.net\/skills\/github-datopian-portaljs-skills-portaljs-architect-d48b633e0686\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"A rough idea of the portal's purpose and data is required. 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":"---\nname: portaljs-architect\ndescription: Recommend a data-portal architecture (storage, compute, catalog, access, hosting, metadata) from stated needs, then hand off to the build skills. The advisory entry point. Use when starting a new data-portal project and the underlying architecture has not yet been decided.\nallowed-tools: Read, Write, Bash(du:*), Bash(wc:*), Bash(ls:*), Bash(head:*)\nversion: 1.0.0\nauthor: Datopian <hello@datopian.com>\nlicense: MIT\ncompatibility: Claude Code with PortalJS portals (Next.js 14, React 18, Node 18+). Runs from any project via the plugin, a personal ~\/.claude\/commands install, or a portaljs clone.\ntags:\n  - portaljs\n  - data-portal\n  - architecture\n  - advisory\n  - ckan\n  - nextjs\n---\n\n# PortalJS \u2014 Architect\n\n## Overview\nThe advisory entry point for a PortalJS project. Before anything gets scaffolded, this\nskill works out what to build: given the kind of portal, the shape of the data, and its\npurpose, it fills six architecture slots (storage, catalog, compute, access, hosting,\nmetadata), resolves two build-time knobs (per-dataset data tier and the portal-wide\n`DATA_QUERY` mode), and hands off to the concrete build skills. It decides; it does not\nbuild. When the brief is thin it interviews in short rounds and never dead-ends \u2014 every\nquestion has a sensible default, reachable by replying \"use defaults.\"\n\n## Prerequisites\n- A rough idea of the portal's purpose and data (exact numbers are not required \u2014 the\n  interview supplies defaults for anything missing).\n- Optional: local files or a directory of sample data to inspect for size and shape.\n- No PortalJS project needs to exist yet; this skill runs before scaffolding.\n\n## Instructions\nThe canonical, full step-by-step workflow lives in\n[`.claude\/commands\/portaljs-architect.md`](https:\/\/github.com\/datopian\/portaljs\/blob\/main\/.claude\/commands\/portaljs-architect.md) \u2014\nthat file is the single source of truth. Follow it when executing this skill:\n\n1. Parse `$ARGUMENTS` for anything already specified, then interview for what's\n   missing, one round at a time: (1) what's being built, (2) what the data is,\n   (3) what it's for, (4) constraints. Accept \"use defaults\" at any point. Inspect\n   named files\/directories with `du -sh` and line counts to ground size guesses.\n2. Derive the recommendation by matching the answers against the decision tables \u2014\n   Storage\/Catalog\/Compute by data volume and query needs, Access\/Hosting by public\n   vs. private, Metadata by standards-compliance needs \u2014 then resolve the two\n   build-time knobs: per-dataset **data tier** (`inline | LFS | external`) and the\n   portal-wide **`DATA_QUERY`** mode (`flat | duckdb`).\n3. Echo the architecture brief (stack, reasoning per slot, deviations from default,\n   deferred items) and wait for confirmation (\"go\") or corrections.\n4. On confirmation, persist the brief to `.\/ARCHITECTURE.md` in the working directory.\n5. Hand off to the build skills \u2014 `\/portaljs-new-portal`, `\/portaljs-add-dataset`,\n   `\/portaljs-connect-ckan`, `\/portaljs-define-schema`, `\/portaljs-deploy` \u2014 mapped\n   from the brief, and offer to run the first one.\n\n## Output\n- **Created:** `.\/ARCHITECTURE.md` documenting the six slots, the two build-time\n  knobs, the reasoning, and anything deferred to a later build step.\n- **Modified:** nothing else \u2014 this skill is advisory only.\n- **Verified:** the brief was echoed back and confirmed before being persisted.\n- **Result:** a concrete, named sequence of follow-up skill invocations\n  (e.g. `\/portaljs-new-portal` \u2192 `\/portaljs-add-dataset` \u2192 `\/portaljs-deploy`).\n\n## Error Handling\n| Symptom | Cause | Fix |\n| --- | --- | --- |\n| Skill keeps asking rounds of questions | Brief was thin or `$ARGUMENTS` omitted | Answer inline, or reply \"use defaults\" to accept the opinionated default stack |\n| Recommendation looks generic | Rounds were skipped without real data details | Give actual size\/shape\/cadence, or point at files for `du -sh` inspection |\n| `ARCHITECTURE.md` never appears | Confirmation step was skipped | Reply \"go\" once the echoed brief looks right |\n| Scaffolded portal has the wrong `DATA_QUERY` | Flat downgrade wasn't applied | Run the `perl -pi -e` one-liner from the command file against `lib\/datasets.ts` |\n| Hand-off names a skill that doesn't exist | Decision maps to a *(planned)* skill (e.g. `\/connect-openmetadata`) | Treat it as designed-in\/built-later; proceed with the closest available skill |\n\n## Examples\n### Example 1 \u2014 National statistics office, DCAT-AP harvesting\n```\n\/portaljs-architect We're a national statistics office. ~200 datasets, mostly large\nCSVs (some GBs), updated quarterly, all public, and we must publish DCAT-AP for the\nEU data portal.\n```\nInfers a multi-publisher, analytics-grade portal. Recommends Parquet on R2 + DuckLake +\nDuckDB, static Cloudflare Pages, Frictionless + DCAT-AP metadata, `owner` namespace,\ndata tier `external` for the Parquet, `DATA_QUERY=duckdb`. Writes `ARCHITECTURE.md` and\nhands off to `\/portaljs-new-portal` then `\/portaljs-add-dataset`.\n\n### Example 2 \u2014 Small nonprofit, no arguments given\n```\n\/portaljs-architect\n```\nRuns the full four-round interview since nothing was pre-filled. Accepting defaults at\neach round lands on the opinionated default stack: repo files or Git-LFS + R2 storage,\n`datasets.json` catalog, DuckDB compute, static access on Cloudflare Pages, Frictionless\nmetadata, `theme` namespace, data tier LFS, `DATA_QUERY=duckdb`.\n\n### Example 3 \u2014 Internal catalog with restricted datasets\n```\n\/portaljs-architect Internal engineering data catalog, single team, dozens of CSVs,\nsome of it access-controlled to specific roles.\n```\nThe private-data answer in Round 2 flips Access\/Hosting to runtime + backend RBAC on\nCloudflare Workers \u2014 flagged as the larger, opt-in build \u2014 while Storage\/Catalog\/Compute\nstill follow the volume-based defaults.\n\n## Resources\n- Full workflow: [`.claude\/commands\/portaljs-architect.md`](https:\/\/github.com\/datopian\/portaljs\/blob\/main\/.claude\/commands\/portaljs-architect.md)\n- Reference: [`references\/reference.md`](references\/reference.md)\n- Decision framework: [`site\/content\/docs\/architecture\/decision-framework.md`](https:\/\/github.com\/datopian\/portaljs\/blob\/main\/site\/content\/docs\/architecture\/decision-framework.md)\n- Related skills: `\/portaljs-new-portal`, `\/portaljs-add-dataset`, `\/portaljs-connect-ckan`, `\/portaljs-define-schema`, `\/portaljs-deploy`\n","use_cases":["Designing a national statistics portal with DCAT-AP compliance","Setting up a small nonprofit data portal with default settings"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/datopian\/portaljs\/blob\/fc7ccd651459549a962c8b7aa08f60f8849fd9a5\/skills\/portaljs-architect\/SKILL.md","source_commit":"fc7ccd651459549a962c8b7aa08f60f8849fd9a5","license":"MIT","version":"1.0.0","listing_approved_at":"2026-11-22","created_at":"2026-11-21T15:52:32.000000Z","updated_at":"2026-11-22T11:18:24.000000Z","seo_title":"PortalJS Architect: Recommend Data Portal Architecture","seo_description":"Recommend a data-portal architecture based on stated needs and hand off to build skills.","seo_keywords":["data portal architecture","portaljs architect","data portal design","data portal recommendation"]}}