Skip to content

Add category

Markdown

.agents/skills/add-category/SKILL.md — 80 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:

Add a category to a ZeroDirs directory site. Edits site.config.ts, picks a lucide icon, seeds at least one listing so the new category page is not empty, and verifies with pnpm check and a full build. Use when asked to add, rename or reorder a category, or when a category page turns up empty.

  1. Steps
    • Add the entry
    • Seed at least one listing
    • Watch out for orphans
    • Verify
  2. Removing or renaming a category
Terminal window
pnpm listings:import
pnpm check:config # slug shape, duplicates, reserved segments, icon name
pnpm check # types + config
pnpm build # the real signal

site.config.ts · src/config/schema.ts · src/content/listings/ · src/loaders/normalize.ts · src/content/schema.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.