2.4 KiB
2.4 KiB
icon
| icon |
|---|
| lucide/file-check-2 |
Contracts
This section groups the core data and contract documents for the repository.
Pages
Use these pages as the normative source for authored content layout, frontmatter schema, and canonical MCP URI semantics.
Content Contract
This page defines the authored content contract for the docs-first MCP architecture.
Canonical Source Of Truth
- All authored Markdown lives under
docs/. - MCP resources and static docs are two distribution surfaces of the same authored files.
- No parallel authored markdown is allowed in
src/or other package-only paths.
Canonical Content Shape
Authored content is organized under docs/:
---
config:
treeView:
rowIndent: 20
lineThickness: 2
themeVariables:
treeView:
labelColor: '#FFFFFF'
lineColor: '#FFFFFF'
---
treeView-beta
"docs/"
"*.md (top-level docs pages)"
"contracts/"
"prompt.md"
"skill_contract.md"
"frontmatter.md"
"uris.md"
"prompts/"
"<prompt-id>/"
"PROMPT.md"
"skills/"
"<skill-id>/"
"SKILL.md"
"references/..."
File Placement And Ownership Boundaries
- Top-level project docs stay in
docs/*.md. - Skill docs stay in
docs/skills/<skill-id>/.... - Prompt docs stay in
docs/prompts/<prompt-id>/.... - A skill or prompt may link across sections, but must not store content in another artifact's directory.
- Server and runtime code may index and serve docs, but must not be the source of authored markdown.
Delegated Contracts
- Skill-specific directory, metadata, and id rules are defined in Skill Contract.
- Prompt-specific directory, metadata, and id rules are defined in Prompt Contract.
Invariants
This contract guarantees:
- One authored source tree in
docs/for both website and MCP. - Skill and prompt artifacts remain path-stable within their own sections.
- Cross-surface publishing remains deterministic because authored content paths are canonical.
Non-Goals
This contract does not define:
- URI versioning policy details.
- The full frontmatter schema.
- Detailed skill rules (see Skill Contract).
- Detailed prompt rules (see Prompt Contract).