Skip to content

Documentation Levels

Slingshot keeps package docs in four lanes so ownership stays clear and automation does not stomp on trusted guidance.

  • Rebuilt by automation.
  • Best for inventories, package metadata, exports, scripts, and other facts.
  • Treat this lane as disposable output.
  • Good for first-pass explanations, summaries, and example-heavy drafts.
  • Humans can replace or rewrite this lane at any time.
  • Use it to move from blank page to useful starting point quickly.
  • Use for architecture, decisions, invariants, migration notes, and trusted guidance.
  • This is the authoritative lane.
  • Anything here should survive automation runs unchanged.
  • Use for rough notes, investigation breadcrumbs, and reminders.
  • Split a notes lane into more files when a topic deserves its own page.
  • Put personal untracked notes in private.md inside any notes/ folder.

Every package uses the same shape:

docs/
generated/
ai/
human/
notes/

The root @lastshotlabs/slingshot package uses the same layout under docs/package/.

  1. Run bun run docs:sync to scaffold missing docs folders and sync package docs into the Astro site.
  2. Run bun run docs:api to rebuild API reference pages from exported TypeScript entrypoints.
  3. Run bun run docs:build to assemble the full site.

bun run docs:generate runs the sync and API steps together.