Knowledge Primitives
Praxis organizes team knowledge into four types of documents. Understanding what each one is for — and what it is not for — is the foundation of everything else.
The four types
Context
Context captures how you think and who you are — things that apply broadly across many experts and don't change often.
Context has three subtypes:
- Constitution — Immutable identity. Who you are as an organization, what you value, what you refuse. This is the most stable content in the system.
- Conventions — Standards and norms. How you write code, how you name things, how you communicate. Changes slowly as the team evolves.
- Lenses — Mental models. Domain-specific frameworks that shape how an expert thinks about a problem.
Context is never used directly by an agent. It is pulled into experts via the constitution and context frontmatter fields.
Experts
An expert is the central compilation unit. It represents a specific agent identity with a defined scope, set of authorities, and personality.
Each expert file contains:
- Frontmatter — The manifest. Declares which context, practices, and references to include.
- Body — The expert description: who this agent is, what they're responsible for, what they're not, and what authorities they hold.
When you compile, Praxis reads the expert's frontmatter, resolves every referenced file, and assembles one standalone profile.
Practices
A practice is a discrete unit of delegatable work. It describes one thing an expert owns — the inputs it receives, the outputs it produces, and the criteria for doing it well.
Practices are designed to be reusable. The same practice can be claimed by multiple experts. The compiler inlines whichever practices an expert declares.
Reference
Reference documents are lookup tables, vocabulary lists, policy excerpts, and indices. They are not instructions — they are facts that an agent needs to consult while doing its job.
Examples: Scoop Society's API shape reference, a refund policy, a vocabulary list, a team directory.
Experts and practices are reviewed too
Expert and practice files are themselves governed files. The scaffold's recruiter (experts/praxis-recruiter.md) declares validates: over both directories, so once compiled its profile is a spec, and praxis eval run --type praxis-recruiter reads every definition, one file at a time, against its practices: Review Expert Definition asks whether the definition tells a reviewer which files it covers and how to read them; Review Practice Definition asks whether every criterion is a judgment rather than a lint rule, with the reason stated and one example pair shown. Both are written for a reviewer that sees only the file in front of it. The scaffold's steward takes the other shape: cohort: by_directory over context/* and reference, so it sees a whole folder at once and can judge whether its documents agree with each other. Both are the spec-writing rules applied to the spec layer's own documents. A project without the scaffold gets the same by giving any expert validates: over its authoring directories.
Why the separation matters
The separation is not cosmetic. It reflects how knowledge actually works:
- Context changes rarely. When the identity or the result-handling convention changes, you update one file and every agent picks it up on the next compile — no hunting down thirty prompts.
- Practices are reusable. "Review service quality" is a real unit of work that Scoop Society's service steward and its feature steward both draw on. Write it once, declare it in multiple experts.
- Reference is consulted, not internalized. An agent that needs your refund policy should reference it at runtime, not have it hardcoded into its identity.
What a document looks like
Every Praxis document is a markdown file with YAML frontmatter. The frontmatter declares the document's type and metadata. The body is free-form markdown.
---
title: Service Steward
type: expert
alias: Scooper
description: "Use this agent to review Scoop Society services for convention adherence."
---
# Service Steward
...The type field is used by praxis status to categorize document counts. The compiler routes by directory — every .md file in expertsDir is treated as an expert — and praxis eval run reviews file content against the governing spec; neither reads type.