Framework Contributor Flow
This is the Slingshot-internal flow.
Use it when you are changing:
- framework bootstrap
- plugin lifecycle
- package APIs
- schema fields
- generated docs
- source-backed examples
- cross-cutting guides
Required Read Order
Section titled “Required Read Order”Read in this order and stop once you know the owning package, code path, and impacted docs:
slingshot-specs/engineering-rules.md- root
CLAUDE.md - owning package
CLAUDE.md - package
src/index.ts - one schema/config file
- one primary runtime/plugin file
- tests only if behavior is still unclear
Do not start with a broad repo sweep.
Canonical Shapes And Patterns
Section titled “Canonical Shapes And Patterns”Agents should learn canonical shapes from the narrowest source-of-truth stack:
engineering-rules.mdfor framework-wide patterns- root/package
CLAUDE.mdfor ownership and where the pattern lives - package
src/index.tsfor the public surface - schema/type files for exact config and data shapes
- one primary runtime/plugin file for how the shape is actually consumed
Prefer one canonical home for each pattern. Docs should point to that home instead of redefining it.
What You Must Publish
Section titled “What You Must Publish”When a Slingshot capability changes, you are responsible for publishing that change to the surfaces future app-building agents consume:
- JSDoc on public exports
- Zod
.describe()strings - package
docs/human/index.md - affected Astro docs pages
- source-backed examples in
examples/ CLAUDE.mdfiles when routing or ownership changed
If you change Slingshot without updating those surfaces, the repo is left in a misleading state.
Verification
Section titled “Verification”Run the verification that matches the change. For public or cross-cutting changes, the default set is:
bun run typecheckbun run format:checkbun run docs:ciWhy This Exists
Section titled “Why This Exists”App-building agents should not have to rediscover Slingshot capability from source code. Contributor agents publish capability. App-builder agents consume capability.
Related pages: