Skills for Real Engineers. Straight from my .agents directory.
portaljs-add-chart
Agent skill fromdatopian/portaljs
Add a chart (line, bar, area, pie, or scatter) to a dataset's showcase in a PortalJS portal. Installs recharts, writes a reusable Chart component, and renders it in the showcase Views section. Use when visualizing a dataset already registered in datasets.json.
How to install portaljs-add-chart
npx skills add datopian/portaljs# or add only this skill to Claude Code: copy the folder
skills/portaljs-add-chart/
# into
~/.claude/skills/portaljs-add-chart/ (all projects)
.claude/skills/portaljs-add-chart/ (one project)
1# PortalJS — Add Chart23## Overview45Add a visualization to a dataset's **showcase** in a PortalJS portal. The skill installs6`recharts` (added directly — never `@portaljs/components`), writes a reusable client-side7`Chart` component into `components/`, and renders a `<Chart />` into the **Views** section8of the showcase route `pages/[owner]/[slug].tsx` for one chosen dataset. The chart reads the9same `/public/data/<file>` the showcase `<Table />` already uses, so no data is duplicated.10Five chart types are supported: line, bar, area, pie, and scatter.1112## Prerequisites1314- A scaffolded PortalJS portal (see `portaljs-new-portal`).15- The target dataset already registered in `datasets.json` (see `portaljs-add-dataset`).16- `components/ui/parseCsv.ts` present (ships with the template).17- Node 18+ and npm available in the portal directory.1819## Instructions2021The canonical, full step-by-step workflow is22[`.claude/commands/portaljs-add-chart.md`](https://github.com/datopian/portaljs/blob/main/.claude/commands/portaljs-add-chart.md) —23the single source of truth. Read and follow it when executing. Summary:24251. Gather input — dataset slug, X column, Y column(s), chart type (default `line`), portal26 directory. If any is missing, interview the user; never dead-end on a missing value.272. Resolve the dataset from `datasets.json` (`namespace`, `file`, `format`).283. Validate that the X and every Y column exist in the data file's header; warn on29…
Excerpt shown under the repository's MIT license.
More skills in portaljs
Similar skill repositories
An agentic skills framework & software development methodology that works.
Public repository for Agent Skills
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
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.
