DOCUMENTATION

The Agent Kit

Documentation written for AI agents, readable by humans. The Agent Kit tells each agent exactly what it can do, what files to touch, and what patterns to follow.

Why documentation for agents?

Traditional documentation explains concepts to humans. The Agent Kit takes a different approach — it provides precise, specification-style instructions that AI agents can follow mechanically. Each role gets only the information relevant to its task, reducing hallucination and keeping agents within their boundaries.

The Agent Kit is generated into the agent-kit/ folder in your project root by running jay-stack setup followed by jay-stack agent-kit. Setup initializes your project's services; agent-kit then executes plugin generators against those live services to produce contracts that reflect your project's actual configured state. The result isn't generic documentation — it's a machine-readable manifest of what your project can do right now.

What's in the Kit

Plugins Index

plugins-index.yaml

The master discovery index. Lists every installed plugin's contracts, actions, services, contexts, routes, and CLI commands. This is how an agent finds out what's available — a single machine-readable manifest for the entire project.

Materialized Contracts

materialized-contracts/

Static contracts copied and dynamic contracts generated by executing plugin code against your project's live services. These aren't just docs — they're the actual tag schemas, data types, and props that agents bind to when writing templates and components.

References

references/

Plugin-generated reference data from your project's data sources — product catalogs, collection schemas, media indexes. Agents use these to produce realistic, grounded content instead of placeholder data.

Role Guides

designer/developer/plugin/devops/

Each role gets its own directory with an INSTRUCTIONS.md entry point and topic-specific guides — template syntax, routing, component state, deployment, and more. Agents read only the guides relevant to their role.

How Agents Use It

1

Discover

Read plugins-index.yaml and the role's INSTRUCTIONS.md to learn what's available and how to work with it.

2

Understand

Read materialized contracts for exact tag schemas, data types, and prop definitions. Read references for real project data — product catalogs, collection schemas.

3

Execute

Write code that follows the contracts. Run CLI commands like jay-stack action for live data discovery and code generation.

4

Validate

Run jay-stack validate to check correctness. When validation fails, the agent-kit guides explain the fix — a feedback loop back to the contracts and patterns.