arcgis-to-portaljs
Skill2.4k starsChanged 12 days agoMITView on GitHub
Migrate 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.
- Installs packages
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Every Hub site is machine-readable — a DCAT-US catalog at /data.json, with every dataset backed by an ArcGIS REST FeatureService — so …
- Very specific: line 53
Check native tools (ogr2ogr, tippecanoe, duckdb + spatial, jq).
- Very specific: line 74
Write arcgis-parity-report.md — record count, extent, attribute schema, and geometry validity, source vs derived, per dataset, plus the …
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ArcGIS Hub → PortalJS
Overview
Migrate an entire ArcGIS Hub open-data site into a PortalJS Arc portal in one pass.
Every Hub site is machine-readable — a DCAT-US catalog at /data.json, with every dataset
backed by an ArcGIS REST FeatureService — so migration is a harvest → export → convert →
publish → verify pipeline that runs almost fully automated on the operator's machine, no
server-side compute. The tooling is the reusable arcgis-to-portaljs migrator: input is one
Hub URL, output is a ready-to-deploy PortalJS catalog plus a parity report.
The skill is an orchestrator: it reuses the DCAT-US harvest from portaljs-migrate, the
ogr2ogr/tippecanoe/duckdb dual-tier conversion from portaljs-add-geo, and the bulk
Git-LFS → R2 push from portaljs-migrate. Its novel parts are the FeatureService REST export
loop (paged features, not just a link) and the source-vs-derived parity report.
Prerequisites
- A scaffolded PortalJS portal whose template ships
components/MapPreview.tsxandcomponents/GeoQuery.tsx(PR #1647 or later). Runportaljs-new-portalfirst if none. - Native CLIs: GDAL (
ogr2ogr,ogrinfo), tippecanoe, duckdb (withspatial), and jq. macOS:brew install gdal tippecanoe duckdb jq; Debian/Ubuntu:apt-get install gdal-bin duckdb jqplus tippecanoe (apt or build from source); Windows via WSL. The skill hard-stops with the install hint if any is missing. - Arc credentials for the Git-LFS → R2 push (the token
portaljs-deployresolves), or an OSS self-hosted Giftless.
Instructions
The canonical, full step-by-step workflow is
.claude/commands/arcgis-to-portaljs.md
— the single source of truth. Read and follow it when executing. Summary:
- Gather input — Hub URL, portal directory, project slug, optional flags (
--limit,--only,--dry-run,--namespace-mode). Interview if missing; never dead-end. - Check native tools (
ogr2ogr,tippecanoe,duckdb+spatial,jq). Any missing → print the per-OS install and stop. - Validate the portal directory and confirm the geo showcase components exist.
- Harvest the Hub
/data.json(reuse theportaljs-migrateDCAT-US map) and classify each item: vector (FeatureService), table, or non-data (web map / 3D / imagery → skipped). Under--namespace-mode owner, resolve namespaces through a publisher-normalization table with title-prefix fallback for broken{{source}}publishers (multi-publisher Hubs ship dirty publisher labels). Dedup near-duplicate hosted-viewlayers — but only after a mandatory live record-count check on BOTH twins: equal ⇒ dedup (keep the source layer, log the pair); different ⇒ keep both as distinct datasets. Consolidate per-year dataset series into one year-partitioned Parquet with legacy per-year view entries. Enrich from the AGOL item: sanitized metadata (license/description/dates), cleaned display title (cleanTitle— raw title still drives the slug),category(item categories → meaningful theme → keyword mapping), and athumbnailsnapshot intopublic/thumbnails/. - Export each vector layer through the ArcGIS REST
queryAPI withresultOffsetpaging (f=geojson,outSR=4326); fall back to keyset paging on transfer limits; accept a customer File Geodatabase dump for very large layers. - Convert each layer to the dual tier via the
portaljs-add-georecipe (PMTiles + GeoParquet); tabular items to Parquet. Preserve the native-CRS original. - Publish — bulk Git-LFS track + one push to R2 through Giftless, then append dual-tier
datasets.jsonentries (upsert on(namespace, slug)). - Write
arcgis-parity-report.md— record count, extent, attribute schema, and geometry validity, source vs derived, per dataset, plus the migrated/skipped/failed accounting. - Report the inventory, migrated datasets, R2 push, and parity summary.
Output
- Created:
data/<namespace>/<slug>.pmtiles,.parquet, and the original per vector dataset (all LFS-tracked → R2); Parquet + original per table;arcgis-parity-report.md. - Modified:
datasets.json(one dual-tier entry per vector dataset, one resource entry per table);.gitattributes(LFS tracking). - Verified: the parity report compares each derived artifact to the live FeatureService.
- Result:
/@<namespace>/<slug>renders<MapPreview>+<GeoQuery>for each vector dataset with no page edits; the catalog lists everything migrated.
Error Handling
| Symptom | Cause | Fix |
MISSING_INPUT | No Hub URL provided | Pass the site root (e.g. https://hub-lewisville.opendata.arcgis.com) and retry. |
MISSING_TOOLS | ogr2ogr/tippecanoe/duckdb/jq (or duckdb spatial) absent | Print the per-OS install line and stop; re-run after installing. |
NOT_A_PORTAL | Target dir has no datasets.json / geo components | Run portaljs-new-portal first, then re-run. |
HARVEST_FAILED | /data.json unreachable or not DCAT-US | Confirm the site is an ArcGIS Hub and the feed loads in a browser. |
EXPORT_FAILED | One FeatureService layer errored or hit a hard transfer cap | Logged and skipped; try keyset paging or a customer FGDB dump for that layer. |
LFS_PUSH_FAILED | Missing/expired Arc token or unset lfs.url | Re-mint the JWT (see portaljs-deploy); confirm git config lfs.url. |
Examples
Example 1 — Migrate a City Hub (Lewisville)
/arcgis-to-portaljs https://hub-lewisville.opendata.arcgis.com slug=lewisvilleExample 2 — Dry-run inventory + plan only (no writes)
/arcgis-to-portaljs https://streamwaterdata.co.uk --dry-runExample 3 — Migrate a subset, one namespace per publisher
/arcgis-to-portaljs https://streamwaterdata.co.uk --only sewer-catchments,water-boundaries --namespace-mode ownerResources
- Full workflow:
.claude/commands/arcgis-to-portaljs.md - REST export, classification, parity, and phasing details:
references/reference.md - Ongoing sync, parity dashboard, and cutover (Phase 3):
references/sync-and-cutover.md - Related skills:
portaljs-migrate,portaljs-add-geo,portaljs-add-dataset,portaljs-deploy - ArcGIS REST query API: https://developers.arcgis.com/rest/services-reference/enterprise/query-feature-service-layer/ · tippecanoe: https://github.com/felt/tippecanoe · DuckDB spatial: https://duckdb.org/docs/extensions/spatial
Trending
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about datopian/portaljs
- A Hacker News story“Show HN: PortalJS – AI-native, open-source framework for data portals”Hacker News · Jul 15, 2026 · 10 points
- fuma-nama/fumadocs“[feat] support obsidian style wikilinks, backlinks, embeds, graph view”GitHub · Mar 17, 2025 · 1 reactions
- sudosubin/agents.nix“claude-code-marketplaces.github.datopian.portaljs: init at 0-unstable-2026-10-27”GitHub · Oct 28, 2026
- sudosubin/agents.nix“agent-skills.github.datopian.portaljs: 0-unstable-2026-10-15 → 0-unstable-2026-10-20”GitHub · Oct 20, 2026
- sudosubin/agents.nix“agent-skills.github.datopian.portaljs: 0-unstable-2026-08-20 → 0-unstable-2026-10-15”GitHub · Oct 20, 2026
The biggest 5 of 38 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 38
Talked about on GitHub and Hacker News (38 times).
On GitHub · 37
- Mar 17, 2025[feat] support obsidian style wikilinks, backlinks, embeds, graph view — fuma-nama/fumadocs1 reaction · 1 comment
- Oct 28, 2026claude-code-marketplaces.github.datopian.portaljs: init at 0-unstable-2026-10-27 — sudosubin/agents.nix0 reactions
- Oct 20, 2026agent-skills.github.datopian.portaljs: 0-unstable-2026-10-15 → 0-unstable-2026-10-20 — sudosubin/agents.nix0 reactions
- Oct 20, 2026agent-skills.github.datopian.portaljs: 0-unstable-2026-08-20 → 0-unstable-2026-10-15 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.datopian.portaljs: 1.4.0-unstable-2026-08-20 → 0-unstable-2026-08-20 — sudosubin/agents.nix0 reactions
32 more on GitHub
- Sep 30, 2026docs: fix typos and a stale CKAN example link — olitreadwell/portaljs0 reactions
- Sep 26, 2026agent-skills.github.datopian.portaljs: init at 1.4.0-unstable-2026-08-20 — sudosubin/agents.nix0 reactions
- Sep 26, 2026[Candidate] datopian/portaljs/skills/portaljs-add-dataset - portaljs-add-dataset — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] datopian/portaljs/skills/portaljs-add-chart - portaljs-add-chart — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] datopian/portaljs/skills/arcgis-to-portaljs - arcgis-to-portaljs — ProSkillsMD/proskills0 reactions · 1 comment
- Aug 12, 2026fix(ckan): make Pagination page buttons readable by screen readers — olitreadwell/portaljs0 reactions
- Aug 12, 2026fix(ckan-api-client-js): restore validation error fallback message — olitreadwell/portaljs0 reactions
- Aug 12, 2026fix(create-portaljs): make the scaffold template source repo-aware — olitreadwell/portaljs0 reactions
- Jul 8, 2026Add charts to the homepage — datopian/portaljs-research0 reactions · 2 comments
- Jul 7, 2026Add PortalJS plugin (datopian/portaljs) — tmcpa/claudedirectory0 reactions · 1 comment
- Jun 25, 2026Improve ui/ux — datopian/portaljs-research0 reactions · 2 comments
- Mar 24, 2026content: migrate two legacy Flowershow tutorials from portaljs.com — flowershow/flowershow0 reactions · 2 comments
- Dec 12, 2025Consolidate datahubio repos into datasets org — datasets/collective0 reactions
- Nov 21, 2025Added scope organization param into MCP URL to allow specific organizations — datopian/portaljs-mcp-server0 reactions · 2 comments
- Oct 29, 2025[BUG Fix] Pagination and table — datopian/portaljs-frontend-starter0 reactions · 2 comments
- Oct 19, 2025[BUG FIX] Frontend table preview — datopian/portaljs-frontend-starter0 reactions · 2 comments
- Oct 19, 2025[Bug Fix] Table Preview Frontend issues — datopian/portal-lcc0 reactions · 2 comments
- Oct 9, 2025preview data table tool — datopian/portaljs-mcp-server0 reactions · 1 comment
- Oct 7, 2025[IMPLEMENTING] Auth for portalJS key — datopian/portaljs-mcp-server0 reactions · 2 comments
- Sep 18, 2025Dataverse Harvester Implementation — datopian/harvesterjs0 reactions · 1 comment
- Jul 6, 2025Move all flowershow stuff from portaljs and add redirects — flowershow/flowershow0 reactions · 1 comment
- May 9, 2025Enable Iframe previews — datopian/portaljs-frontend-starter0 reactions · 2 comments
- Dec 28, 2023Transfer here "create a simple catalog of anything using markdown" — flowershow/wayofmarkdown0 reactions · 8 comments
- Dec 14, 2023Migrate content from portaljs.org/guide to this site — flowershow/wayofmarkdown0 reactions · 6 comments
- Oct 23, 2023[DO-NOT_MERGE] Improvement suggestions — flowershow/flowershow0 reactions · 1 comment
- Sep 20, 2023When I have a remote content e.g. https://github.com/datasets/awesome-data I want to load and render that (statically) so that i can author content in another repo but render it here — Valecia2023/caring.net0 reactions
- Jun 12, 2023Setup auto-publishing to npm — flowershow/markdowndb0 reactions
- May 26, 2023Turn this repo into core template and move core lib to portaljs repo — flowershow/flowershow0 reactions · 2 comments
- May 17, 202317 consolidate gitignore and expand its entries — hackforla/accessthedata-ckan0 reactions
- May 16, 2023[EPIC] Editor guide: how to contribute content and datasets — flowershow/wayofmarkdown0 reactions · 2 comments
- Apr 28, 2023[epic] MarkdownDB site (landing page) and "launch" — flowershow/markdowndb0 reactions · 6 comments
- Oct 30, 2022Analytics other than Google Analytics (and switch to pliny model) — flowershow/flowershow0 reactions · 2 comments
On Hacker News · 1
- Jul 15, 2026Show HN: PortalJS – AI-native, open-source framework for data portals10 points · 1 comment
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- site/CLAUDE.mdCLAUDE.md
- portaljs-add-chartSkill
- portaljs-add-datasetSkill
- portaljs-add-dcatSkill
- portaljs-add-geoSkill
- portaljs-add-mapSkill
- portaljs-add-resourceSkill
- portaljs-architectSkill
- portaljs-check-data-qualitySkill
- portaljs-connect-ckanSkill
- portaljs-define-schemaSkill
- portaljs-deploySkill
- portaljs-migrateSkill
- portaljs-new-portalSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

