plans/005-agents-md.md
AGENTS.mdExecutor instructions: Follow this plan step by step. If anything in "STOP conditions" occurs, stop and report. When done, update the status row in
plans/README.md.Drift check (run first):
git diff --stat c63cb120..HEAD -- AGENTS.md CONTRIBUTING.md package.json scripts/publish.mjsOn a mismatch with the excerpts below, treat it as a STOP condition.
verify script if it exists)c63cb120, 2026-07-10This repo ships agent tooling to its users (.claude-plugin/, skills/slidev/)
but has no AGENTS.md/CLAUDE.md for agents or newcomers working in the
repo. Several conventions are non-obvious and easy to get wrong: tests need a
prior build, dependencies are pinned through pnpm catalogs (not raw versions),
and skills/ is generated (must not be hand-edited) and is copied into the
published package. A short AGENTS.md captures the executable ground rules.
AGENTS.md or CLAUDE.md exists anywhere (glob returns none).CONTRIBUTING.md:76-84):
packages/slidev/ - Node.js side (CLI, Vite plugins)
packages/client/ - frontend Vue app (shipped as source)
packages/parser/ - Slidev extended-Markdown parser
packages/create-app/, create-theme/ - scaffolding
packages/vscode/ - VSCode extension
packages/types/ - shared types
package.json:9-28): build, dev, lint, typecheck, test,
docs. Tests require a prior build.pnpm-workspace.yaml (catalog:prod,
catalog:dev, catalog:frontend, etc.) — deps reference catalog keys, not
literal versions.skills/ is generated: skills/GENERATION.md documents the process, and
scripts/publish.mjs:4 copies skills into packages/slidev/skills at publish
time (so it ships in @slidev/cli). It must be regenerated from docs/, not
edited by hand.| Purpose | Command | Expected |
|---|---|---|
| Lint (markdown is ignored, but run anyway) | pnpm lint | exit 0 |
(No build/test required — this plan adds one Markdown file.)
In scope:
AGENTS.md (create, repo root)Out of scope:
CONTRIBUTING.md (leave as the human-facing doc; AGENTS.md complements it).skills/ content.docs/agents-md.docs: add AGENTS.md for contributors.AGENTS.mdCreate AGENTS.md at the repo root with these sections (keep it under ~60 lines,
factual, matching the current state above):
pnpm install, then pnpm build before pnpm test
(tests resolve workspace packages to dist/). If plan 003 landed, point at
pnpm verify. List pnpm typecheck (vue-tsc --noEmit) and pnpm lint
(eslint . --cache).pnpm-workspace.yaml; reference a catalog key (catalog:prod, etc.), don't
hardcode versions; taze manages bumps.skills/slidev/** is generated
from docs/ (see skills/GENERATION.md) and copied into the published
package by scripts/publish.mjs; regenerate via the documented process.
Also note docs/components.d.ts and other generated artifacts if present.simple-git-hooks +
lint-staged), so no manual formatting needed.pnpm release is maintainer-run).Verify: test -f AGENTS.md && wc -l AGENTS.md prints a line count > 0.
package.json scripts and CONTRIBUTING.md by re-reading both.AGENTS.md exists at repo root and covers: project map, build/verify (build-before-test), catalogs, generated skills/, conventions, releasespackage.jsonpnpm lint exits 0AGENTS.md added (git status)plans/README.md status row updatedStop and report if:
package.json scripts differ from the excerpts (document what actually exists,
and report the drift).package.json scripts.CLAUDE.md/tool-specific file is also wanted, symlink or re-export from
AGENTS.md rather than duplicating.