Tooluck logoTooluck
SKILL.md

portaljs-add-dataset

Agent skill fromdatopian/portaljs

Add a dataset (CSV, TSV, JSON, or GeoJSON) to an existing PortalJS portal. Appends an entry to datasets.json so the catalog and showcase render it automatically; routes the data by source (local file vs remote URL) — R2 via Git LFS by default, remote URLs by passthrough. Use when registering a new dataset in a scaffolded portal.

How to install portaljs-add-dataset

install portaljs-add-dataset
# install the portaljs pack with the skills CLI
npx skills add datopian/portaljs

# or add only this skill to Claude Code: copy the folder

skills/portaljs-add-dataset/

# into

~/.claude/skills/portaljs-add-dataset/ (all projects)

.claude/skills/portaljs-add-dataset/ (one project)

skills/portaljs-add-dataset/SKILL.md

MITFull file
1# PortalJS — Add Dataset
2
3## Overview
4
5Register a dataset in a PortalJS (`portaljs-catalog`) portal. The skill appends one entry to
6`datasets.json` — the single source of truth for the catalog — and routes the underlying
7bytes by **source first, then size**: a local file defaults to R2 via Git LFS, a remote URL
8defaults to passthrough (no copy). No per-dataset page is created; the catalog at `/search`
9lists the new entry and the dynamic showcase route `pages/[owner]/[slug].tsx` renders it
10automatically at `/@<namespace>/<slug>`. Supported formats for the showcase preview: CSV,
11TSV, JSON (array), and GeoJSON.
12
13## Prerequisites
14
15- A scaffolded PortalJS portal (see `portaljs-new-portal`) with `datasets.json`,
16 `package.json`, and `pages/[owner]/[slug].tsx` present.
17- The source data: a local file path or a publicly reachable URL.
18- For the R2/Git LFS default route: `git` and `git-lfs` installed, and an Arc account token
19 (or an OSS Giftless key) to mint a push-scoped LFS credential.
20- Node 18+ and npm available in the portal directory.
21
22## Instructions
23
24The canonical, full step-by-step workflow is
25[`.claude/commands/portaljs-add-dataset.md`](https://github.com/datopian/portaljs/blob/main/.claude/commands/portaljs-add-dataset.md) —
26the single source of truth. Read and follow it when executing. Summary:
27
281. Gather input from `$ARGUMENTS` — source (file path or URL), portal directory (default
29…

Excerpt shown under the repository's MIT license.

More skills in portaljs

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates