Skip to content
Early bird + Black Friday · 73% off

Get ZeroDirs for $179 $49

Claim $49 deal

Import listings

.agents/skills/import-listings/SKILL.md — 118 lines of instruction that ship inside the starter. This page is generated from it, so it says what the skill does without republishing it.

The skill description, verbatim — this is the text an agent matches your request against:

Bulk-import listings into a ZeroDirs directory site from a CSV or JSON file with pnpm listings:import. Covers column mapping, the dry run, the unknown-category hard error, the unknown-tag warning, logo and date rules, and slug collisions. Use when asked to import a spreadsheet, seed a directory from a data file, or re-import a corrected export.

  1. Always dry-run first
  2. The two failure modes to know
  3. Column mapping
  4. Field rules
  5. JSON input
  6. Verify
Terminal window
pnpm listings:import <file.csv|file.json> --local|--remote
pnpm dev
pnpm listings:import data.csv --dry-run # always do this first
pnpm listings:import data.csv --local # then write, into the local database
pnpm listings:import data.csv --remote # or into the real one
pnpm listings:import data.csv --dry-run
pnpm listings:import data.csv --local
pnpm check:config # config + the static-file budget estimate for the new count
pnpm build
pnpm check:config
pnpm content:reset --yes

scripts/import.ts · src/loaders/normalize.ts · site.config.ts · tests/fixtures/import-sample.csv · src/lib/listing.ts

Skills load themselves — you describe the outcome, not the skill. “Add a Compliance category with an icon and seed it” is enough for an agent that can see .agents/skills/; Claude Code reads .claude/skills/, which pnpm skills:sync mirrors from .agents/ on every install. See Working with an agent.