arcgis-to-portaljs
Skill by datopian
Migrates a whole ArcGIS Hub open-data site into a PortalJS Arc portal in one pass. Built for City or sector teams moving Hub datasets onto PortalJS with no server-side compute.
Install arcgis-to-portaljs
Built from the published package, never by AI.
git clone --depth 1 https://github.com/datopian/portaljs /tmp/portaljs && mkdir -p ~/.claude/skills && cp -r /tmp/portaljs/skills/arcgis-to-portaljs ~/.claude/skills/arcgis-to-portaljsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/datopian/portaljs /tmp/portaljs && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/portaljs/skills/arcgis-to-portaljs ~/.gemini/antigravity-cli/skills/arcgis-to-portaljsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
arcgis-to-portaljs is an agent skill that migrates an ArcGIS Hub open-data site into a PortalJS Arc portal. It reads the Hub's /data.json DCAT-US catalog, then exports each FeatureService layer through the ArcGIS REST query API using resultOffset paging. Vector layers are converted to PMTiles for rendering and GeoParquet for querying, and tabular items become Parquet.
The derived files are tracked with Git LFS and pushed to Cloudflare R2, and dual-tier datasets.json entries are appended. The skill also writes a parity report that compares each source layer with its derived output. It is aimed at City or sector teams moving an ArcGIS Hub portal onto PortalJS with no server-side compute.
Written from the project's SKILL.md and checked against it.
What it can do
- Harvest Hub catalogReads the Hub /data.json (DCAT-US) and classifies each item as vector, table, or non-data.
- Export FeatureService layersPulls layer features through the ArcGIS REST query API with resultOffset paging.
- Dual-tier conversionConverts vector layers to PMTiles and GeoParquet, and tabular items to Parquet.
- R2 publishTracks outputs with Git LFS and pushes them to Cloudflare R2 through Giftless.
- Catalog entriesAppends dual-tier datasets.json entries, upserting on namespace and slug.
- Parity reportWrites arcgis-parity-report.md comparing record count, extent, schema, and geometry validity.
What you need
- A scaffolded PortalJS portal with geo showcase components (PR #1647 or later)
- Node.js 18+ and Next.js 14 or React 18/19 portal
- Native GDAL, tippecanoe, duckdb with spatial, and jq
- Arc credentials for R2 push, or a self-hosted Giftless
- macOS or Linux, or Windows through WSL
Try asking
- Migrate the ArcGIS Hub at hub-lewisville.opendata.arcgis.com into my PortalJS portal
- Dry-run an inventory of this Hub site without writing any files
- Write a parity report comparing source layers with derived PMTiles and GeoParquet
Good to know
- Requires native GDAL, tippecanoe, duckdb and jq on the operator's machine.
- Layers that error or hit a hard transfer cap are logged and skipped.
- Needs a PortalJS template that ships the geo showcase components.
Security check
B- Allowed to use Write, Edit without limitsIn
SKILL.md
Checked automatically: skills/arcgis-to-portaljs/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteEditBash(ogr2ogr:*)Bash(ogrinfo:*)Bash(tippecanoe:*)Bash(duckdb:*)Bash(git:*)Bash(curl:*)Bash(jq:*)Bash(npx:*)Bash(node:*)Bash(mkdir:*)Bash(cp:*)Bash(wc:*)Bash(command:*)WebFetch
-
SKILL.md8 KB -
references/reference.md5 KB -
references/sync-and-cutover.md15 KB
Alternatives to arcgis-to-portaljs
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
arcgis-to-portaljs: common questions
Does this migration need server-side compute?
The source says it runs almost fully automated on the operator's machine with no server-side compute.
What happens if a FeatureService layer fails to export?
It is logged and skipped. The source suggests keyset paging or a customer File Geodatabase dump for that layer.
Which operating systems does it support?
The compatibility note lists macOS and Linux, with Windows supported through WSL.
How do I install arcgis-to-portaljs?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is arcgis-to-portaljs free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is arcgis-to-portaljs safe to use?
It scores 87 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.
What are alternatives to arcgis-to-portaljs?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
