/portolan:customize-portolan-browserfrom portolan
Adapts a portolan-browser checkout into a publisher-branded STAC browser interface by inspecting the catalog, browser, and publisher's site, proposing a design, and implementing it through configuration.
Ships in portolan. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill adapts an existing browser to one publisher and one catalog. The result reuses the publisher's visual language and words. It stays a working Portolan browser.
cholmes/stlouis-data-browser follows this structure for the City of St. Louis mirror.
cholmes/trimet-data-browser follows it for the TriMet mirror. Both keep their changes in a
small set of files, so git pull upstream main causes few conflicts.
This skill changes the user interface only.
Ask for any input you do not have. Do not invent a catalog. Do not pick an unrelated browser version. Do not infer the publisher from weak evidence.
catalog.json.portolan-browser checkout or repository, at a known commit.Read the catalog structure and several representative collections. Read the browser
configuration surface, the theme, the tests, and AGENTS.md. Read the publisher's live site
and take its real CSS values.
Extract only evidence that changes the interface:
Prefer official CSS, design tokens, and reusable assets. Confirm that you may reuse an asset
before you copy it. Read reference/catalog-ui-contract.md for the catalog fields the
browser reads.
Give the user a compact proposal. Wait for approval. Revise the proposal when feedback changes your reading of the evidence. Do not edit the browser before approval.
reference/proposal.md lists the required contents and explains how to keep the
interpretation restrained.
Work down this ladder. Move to the next layer only when the current one cannot express the approved requirement.
The root catalog sets 9 options through a stac_browser field, with no rebuild. They are
apiCatalogPriority, cardViewMode, crossOriginMedia, defaultCollectionSort,
defaultItemSort, defaultThumbnailSize, displayGeoTiffByDefault, preferredAssets, and
showThumbnailsAsAssets. Read them. Never write them, because the catalog is immutable here.
config.jssrc/merged-config.js merges four sources in order. They are config.js, the SB_CONFIG
file, SB_* environment variables, and window.STAC_BROWSER_CONFIG from
public/runtime-config.js. Command line parameters no longer exist.
The keys a rebrand normally sets are catalogUrl, catalogTitle, catalogImage,
catalogTitleAfterImage, allowExternalAccess, allowedDomains, enforcedColorMode,
supportedLocales, pathPrefix, historyMode, cardViewMode, defaultCollectionSort,
showKeywordsInCatalogCards, preferredAssets, socialSharing, registryUrl, and
footerLinks. docs/options.md documents every key.
A browser that serves one catalog sets catalogUrl, and sets allowExternalAccess to false.
That choice skips the registry start page.
Develop against a local catalog copy with an environment override:
npx serve /path/to/catalog --cors -l 8081
SB_catalogUrl=http://localhost:8081/catalog.json pnpm start
Terminology is configuration. src/locales/<code>/custom.json merges over texts.json, so
you override a string without a code change. Rename the STAC nouns there:
{
"stacCollection": "Dataset | Datasets",
"stacItem": "Row | Rows"
}
Apply these cautions. The catalogs, items, and search groups hold their own worded
copies of the same nouns, so change those keys too. Repeat every override in each locale
listed in supportedLocales. Each footerLinks label resolves as an i18n key first, and
falls back to the literal text.
widgets.config.js maps a hook id to an array of widget definitions. The browser has 23
hooks. docs/widgets.md lists them, and pnpm run docs:hooks regenerates that list. The
useful ones for a landing page are root-start, root-before-content, footer-start,
view-catalog-meta-start, view-catalog-catalogs-start, and view-catalog-items-end.
src/widgets/ includes AlertBox, CustomText, ExternalWarning, and Featured.
A definition takes an id or component, plus props and an optional condition. The condition receives
{ data, state, getters }. Use it to limit a widget to the root catalog.
The existing forks do not use this layer. Check it before you write a component.
src/theme/variables.scss holds the palette, the fonts, and the breakpoints as Sass
variables. Put every brand value there. Do not paste a hex literal into a component.
src/theme/custom.scss takes anything a variable cannot express. docs/styling.md states
that upstream never changes that file, so it is the safe place for an override.
custom.scss already hardcodes #202a4f, #343e63, and #d4d8e8, which do not follow
$primary, so a rebrand must edit them. Styling is build time only. The --sb-* custom
properties come from page.scss. A comment there refers to a runtime-style.css that the
repository does not contain.
index.html holds the favicon and the web font link as literal text. Edit the file. Only
catalogUrl, catalogTitle, and pathPrefix are interpolated there.
Add a component only for an approved requirement that the layers above cannot meet. Keep the change narrow. Preserve normal browser behavior.
Both forks replaced the upstream .site header row in src/StacBrowser.vue with their own
header component. Each passes the upstream props and events straight through, which keeps
search, the sidebar, authentication, and the locale chooser working. Follow that pattern.
Give each new file a name that identifies the publisher, such as StlHeader.vue. Keep data-derived behavior
generic. Read catalog metadata. Never key behavior to a collection id, and never correct a
metadata value in the interface.
Do not build a second frontend. Do not replace portolan-browser with a new application.
MAP_CONSTRAINTS is not an upstream key. Both forks export it from basemaps.config.js, and
spread it into the MapLibre constructor from src/components/maps/MapMixin.js. Add it the
same way when the design bounds the map to a region.
basemaps.config.js exports configureBasemap(stac). This fork uses MapLibre, so a vector
basemap is { url, title } and a raster basemap is
{ title, raster: true, attribution, tiles: [...] }. docs/basemaps.md still documents the
OpenLayers keys of the parent project, so do not follow it.
A homepage screenshot is not verification. Read reference/verification.md. Copy
reference/verify-template.mjs into the repository as verify-<publisher>.mjs and fill in
the publisher assertions.
The repository contains no screenshot baselines and tests no mobile viewport, so your script must set both viewports itself. Run the repository checks as well:
pnpm run lint
pnpm run test:unit
Do not repair a failed check by adding a catalog-specific transformation to the interface. Classify the failure instead.
Give the user three lists. State the affected route, collection, asset, or interface state for every finding, and describe what you observed. Do not write "some legends are broken".
portolan-browser issue or patch.The third list has precedent. TriMet's layer order fix is now upstream as
StacMapLayer._addLayerBelowLabels, with tests/unit/layerOrder.spec.js. The St. Louis
parquet table pagination is now upstream as tests/unit/parquetTable.spec.js. Report the
finding. Wait for approval before you touch the upstream repository.
pnpm install --frozen-lockfile, even though
docs/widgets.md still shows npm examples.portolan-browser is ISC, not Apache-2.0. A derived browser keeps that license.CLAUDE.md, or the ops-sync block of AGENTS.md. The next sync overwrites
both. Put repository rules below the block in AGENTS.md.AGENTS.md. Both forks include a
table that maps each file to what it owns.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub portolan-sdi/portolan-skills --plugin portolan13 skills in this plugin
/automated-catalog-updatesSet up automated updates for a Portolan catalog that mirrors a source that changes regularly. CI or cron runs the scripts on a schedule, and no agent takes part after setup. Each run re-extracts only the collections whose source changed and publishes each change as a new version. Work in progress, and the place to run large extracts is still open. Use when someone wants a mirror of an ArcGIS, GeoNode, WFS, or similar service to update itself./catalog-graderGrade a published Portolan catalog from A+ to F and explain each finding with evidence. Use this skill when you need to review catalog quality, including a registry submission./enrich-metadataFill a collection's metadata.yaml from the open data portal record that lists the same data, when the data came from a source with no metadata of its own, such as a Carto table, a file download, an HDX file, or a Socrata dataset. A script finds the record in a JKAN, CKAN, or Socrata portal. The skill covers the decisions the script cannot make - bundled records, producer versus uploader, copied records, broken licenses, and notices mixed into descriptions./git-backed-catalogCreate, maintain, or contribute to a Portolan catalog whose metadata is stored in a git repository, with CI that validates each change. Use when someone wants to publish a catalog they can roll back and take pull requests on, or wants to fix metadata in someone else's catalog./portolan-bootstrapBuild a complete, well-documented Portolan catalog from a data source. Research the data and its publisher, convert to cloud-native formats, write the documentation and styles that make it usable, and publish. Use when someone wants to publish, mirror, or 'portolan-ify' a dataset, an open data portal, an ArcGIS or WFS service, or a folder of geospatial files./portolan-cliUse when publishing, managing, or converting cloud-native geospatial data catalogs with the Portolan CLI. Covers init, add, check, push, pull, sync, partitioning, and format conversion workflows.Other plugins' skills for the same job