Tooluck logoTooluck
SKILL.md

portaljs-add-resource

Agent skill fromdatopian/portaljs

Add another file (resource) to an EXISTING dataset in a PortalJS portal — a data dictionary, methodology, or an additional data file. Turns a single-file dataset into a multi-resource one; the showcase renders a section per resource. Use when a dataset needs a second file, such as a data dictionary, methodology doc, or an additional period's data.

How to install portaljs-add-resource

install portaljs-add-resource
# 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-resource/

# into

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

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

skills/portaljs-add-resource/SKILL.md

MITFull file
1# PortalJS — Add Resource
2
3## Overview
4
5Add a resource — an additional file — to a dataset that already exists in a
6`portaljs-catalog` portal. Where `/portaljs-add-dataset` creates a **new** dataset
7(one file), this skill adds a file to an **existing** one: a data dictionary, a
8methodology document, or another data file (e.g. a second year's figures).
9
10Mirrors the Frictionless Data Package model: a dataset holds a `resources[]` array,
11and the showcase at `/@<namespace>/<slug>` renders one section per resource (preview,
12schema, download). A single-file dataset migrates to `resources[]` automatically the
13first time a second file is added — no data is lost.
14
15## Prerequisites
16
17- An existing PortalJS portal (`portaljs-catalog` template) with `datasets.json`,
18 `package.json`, and `pages/[owner]/[slug].tsx` present.
19- The target dataset already registered in `datasets.json`.
20- The new resource's source: a local file path or a public URL, in CSV, TSV, JSON
21 (array), or GeoJSON format.
22- Node 18+ installed to run `npx next build` for verification.
23
24## Instructions
25
26The canonical, full step-by-step workflow lives in
27[`.claude/commands/portaljs-add-resource.md`](https://github.com/datopian/portaljs/blob/main/.claude/commands/portaljs-add-resource.md)
28in this repository — that file is the single source of truth. Read and follow it. Summary:
29
301. Gather input (interview if thin): `DATASET` (slug or `namespace/slug`), `SOURCE`
31…

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

nexu-io /

open-design
107k

The 1st Collaborative AI Design Agent Workspace. Local-first and open source. Create motion, prototypes, websites, apps, dashboards, presentations, images, and videos with your team and AI agents. Share work, exchange feedback, and iterate together in one workspace.

40 skills

tt-a1i /

archify
95k

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

CCCXOC1 skill

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates