Skills for Real Engineers. Straight from my .agents directory.
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
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)
1# PortalJS — Add Resource23## Overview45Add a resource — an additional file — to a dataset that already exists in a6`portaljs-catalog` portal. Where `/portaljs-add-dataset` creates a **new** dataset7(one file), this skill adds a file to an **existing** one: a data dictionary, a8methodology document, or another data file (e.g. a second year's figures).910Mirrors 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 the13first time a second file is added — no data is lost.1415## Prerequisites1617- 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, JSON21 (array), or GeoJSON format.22- Node 18+ installed to run `npx next build` for verification.2324## Instructions2526The canonical, full step-by-step workflow lives in27[`.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:29301. Gather input (interview if thin): `DATASET` (slug or `namespace/slug`), `SOURCE`31…
Excerpt shown under the repository's MIT license.
More skills in portaljs
Similar skill repositories
Public repository for Agent Skills
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
Production-grade engineering skills for AI coding agents.
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.
Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.
