SkillsReviewed · datopian

PortalJS Migrate

PortalJS Migrate is a Claude Code skill for developers moving open-data catalogs into PortalJS or CKAN, but its default static catalog still depends on source file URLs. It documents six source families, repeatable catalog imports and optional file copying through Git LFS and Cloudflare R2.

Researched 16 Nov 2026

In short.

PortalJS Migrate is a Claude Code skill for developers moving open-data catalogs into PortalJS or CKAN, but its default static catalog still depends on source file URLs. It describes mapping source metadata into a shared dataset structure, updating a static catalog or writing through CKAN’s API, and optionally copying resource files into Git LFS and Cloudflare R2. The separate command implementation and RDF helper code are outside the available files. No migration, build, authentication check or upload was executed, so operational correctness and migration completeness remain unverified.

Researched and written by an AI model and checked by a second AI model. How it works

Covers skills/portaljs-migrate/SKILL.md and skills/portaljs-migrate/references/reference.md at revision fc7ccd651459549a962c8b7aa08f60f8849fd9a5, together with the repository-level MIT notice above that folder. The linked .claude/commands/portaljs-migrate.md, RDF helper implementations, installation machinery and remaining repository contents are outside this scope. No commands were executed. Migration correctness, completeness, source reachability, authentication, builds, uploads and performance remain unverified; actual operating costs are unknown.

The overview

Identity

PortalJS Migrate is an assistant-loaded skill authored by Datopian in the datopian/portaljs repository. Its metadata identifies it as portaljs-migrate, version 1.0.0, with Claude Code compatibility.

Its purpose is to copy dataset catalogs from supported open-data platforms into a static PortalJS catalog or another CKAN instance. The documented model is a rerunnable snapshot, so continued freshness requires further harvests.

Assessment

The documented design suits portal migrations and catalog consolidation where developers want a common process across several source platforms. Static imports can update existing entries using namespace and slug as the matching key.

The main operational choice is how to handle resource files. Default link mode keeps the repository small but depends on the source for previews and downloads. Download mode copies files into Git LFS and R2, adding storage and authentication requirements. Neither path has been verified by execution.

Users

Likely users include open-data portal maintainers, developers moving catalogs between CKAN instances, and teams collecting datasets from several publishing systems into PortalJS.

The prerequisites imply familiarity with project files, Node.js, npm, APIs and credentials. Beginners can follow the stated sequence, but preparing the portal template, resolving metadata problems and configuring file storage require development knowledge.

Capabilities

Documented sources are CKAN; DCAT-US catalogs such as DKAN, ArcGIS Hub and data.gov; DCAT or DCAT-AP RDF feeds in JSON-LD, Turtle or RDF/XML; Socrata; OpenDataSoft; and ArcGIS FeatureServer or MapServer services.

Targets are a static PortalJS datasets.json catalog and CKAN through its write API. The instructions describe source detection, filters, a dry-run preview, static upserts or replacement, and creation or updating of CKAN packages and resources.

The reference lists CSV, TSV, JSON and GeoJSON as previewable resource formats. Other formats remain available as download links; general conversion between file formats is not established.

Using it

Requirements

The skill declares compatibility with Claude Code and PortalJS portals using Next.js 14, React 18 and Node 18 or later. It requires npm, installed portal dependencies and network access to the source API or feed.

A static target must already contain datasets.json, package.json and pages/[owner]/[slug].tsx from the portaljs-catalog template. A CKAN target requires an API key supplied through CKAN_API_KEY with permission to write to the intended organization.

Download mode additionally requires git-lfs and a PortalJS Arc account or self-hosted Giftless endpoint for pushing files to R2. RDF harvesting requires dcat-harvest.ts and dcat-profiles.ts, with execution through npx tsx.

Mechanism

Each source maps into a shared structure containing slug, namespace, name, description and resources, with optional keywords. A namespace generally represents a source organization, publisher or theme. The target then consumes that common structure.

Source detection uses URL patterns and API or content probes. An explicit --source value can override detection. The reference also describes following an HTML page’s alternate-feed link when present.

The documented metadata rules preserve source dates separately from migratedAt, sanitize descriptions, clean display titles while deriving slugs from raw titles, and avoid inventing a CC-BY licence when source licensing is missing. The reference says colliding slugs receive numerical suffixes.

Setup

The skill mentions installation through a plugin, a personal ~/.claude/commands installation or a PortalJS clone. Complete plugin-installation instructions are not included in these files. The full migration procedure is linked through the separate .claude/commands/portaljs-migrate.md file.

The documented sequence gathers source, target, portal directory, copy mode and filters; validates the target and source; previews the import; and then writes unless --dry-run was requested. Its verification steps are npm run build for a static target and a package_search query for CKAN. No successful verification result is available.

Example

The documented CKAN-to-static example sets --source ckan, --source-url to [https://demo.dev.datopian.com], --target static, --portal-dir . and --copy-mode link. Its intended result is to upsert source packages into datasets.json while leaving resource URLs pointed at the source.

Adding --dry-run requests the documented preview without writing. This is an instructional example: endpoint availability, imported dataset counts and a successful build are unknown.

Assessment & evidence

Limitations

Partial imports are possible by design. The reference describes RDF records being skipped when essential titles, identifiers or distributions are missing, and the skill says individual CKAN dataset failures are logged and skipped. A completed process would therefore need a completeness check.

Large Socrata or OpenDataSoft catalogs can encounter pagination stalls or timeouts, and ambiguous URLs can cause incorrect source detection. Slug suffixing can resolve collisions, but the resulting identifiers still need inspection.

The separate command implementation and RDF helpers are unavailable in the supplied material. Preservation of metadata outside the common structure, repeat-run behavior beyond the documented upsert rule, throughput and compatibility across platform versions remain unverified.

Reasoning

The shared dataset structure explains how one source adapter can support both targets. It also creates a point where source-specific metadata must be mapped carefully; support for a platform does not establish preservation of every field it exposes.

From the documented design, link mode fits work where source hosting is dependable and minimizing copied storage matters. Download mode fits work that needs control over file hosting and can support the additional infrastructure. Both choices still require reruns to refresh copied catalog metadata.

Alternatives

The skill describes /portaljs-connect-ckan as reading a CKAN source during builds. That is the relevant documented alternative when a PortalJS portal should continue drawing metadata from CKAN during builds instead of maintaining a migrated snapshot.

It also points to /portaljs-new-portal when the required static template is missing. These related commands were not examined, and no independent migration tools or comparative benchmarks are established by the available material.

Evidence

The original skill definition is available at [https://raw.githubusercontent.com/datopian/portaljs/fc7ccd651459549a962c8b7aa08f60f8849fd9a5/skills/portaljs-migrate/SKILL.md]. Its supporting source mappings and troubleshooting reference are at [https://raw.githubusercontent.com/datopian/portaljs/fc7ccd651459549a962c8b7aa08f60f8849fd9a5/skills/portaljs-migrate/references/reference.md].

These files establish the documented interfaces, prerequisites and intended behavior. No execution results, generated catalogs, build logs, CKAN responses or upload receipts are available to establish operational success.

Access & freshness

Costs

The MIT notice permits use of the software free of charge, but total operating cost is unknown. No prices or usage allowances are established for Claude Code, PortalJS Arc, R2, self-hosted Giftless infrastructure, network transfer or CKAN hosting.

Link mode avoids copying resource files into portal storage. Download mode sends every copied resource through Git LFS and R2 regardless of file size. Storage volume and traffic therefore matter when estimating that mode’s costs, but no measured usage or cost figures are provided.

Rights

The repository notice is the MIT License, copyright 2020 Datopian, and the skill metadata also declares MIT. The notice permits use, modification, redistribution and sale of the software and documentation, subject to retaining the copyright and permission notice in copies or substantial portions. It provides no warranty.

That notice does not establish reuse rights for harvested datasets. The skill explicitly calls for preserving an unknown-licence sentinel instead of fabricating CC-BY licensing. Permission to copy or rehost each source dataset still needs confirmation.

Freshness

This description applies to repository revision fc7ccd651459549a962c8b7aa08f60f8849fd9a5, captured on 16 November 2026. The skill declares version 1.0.0; the capture date does not establish its release date or most recent maintenance activity.

Its stated compatibility names Next.js 14, React 18 and Node 18 or later. Compatibility with newer PortalJS or framework releases, current source API behavior and repository changes after this revision are unknown.

Actions

Before using the skill, confirm the static template or CKAN write permissions and choose whether resource URLs should remain at the source or files should be copied. Preview a small filtered import with --dry-run and inspect namespaces, slugs, dates, licence values and resource locations. Use --replace only when catalog replacement is intended.

After a real write, compare source and destination counts, review warnings and per-dataset failures, check representative resource links, and perform the documented build or CKAN re-query. A successful build alone would not establish migration completeness. Confirm dataset reuse rights and service pricing separately.

Evidence for this report

licensenotice · checked 2026-11-16
skills/portaljs-migrate/SKILL.mdselected · checked 2026-11-16