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
src/jsl_mcp/docs/. - MCP resources and static docs are two distribution surfaces of the same authored files.
- No parallel authored Markdown is allowed in a root
docs/directory or another source tree.
Canonical Content Shape¶
Authored content is organized under src/jsl_mcp/docs/:
---
config:
treeView:
rowIndent: 20
lineThickness: 2
themeVariables:
treeView:
labelColor: '#FFFFFF'
lineColor: '#FFFFFF'
---
treeView-beta
"src/jsl_mcp/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
src/jsl_mcp/docs/*.md. - Skill docs stay in
src/jsl_mcp/docs/skills/<skill-id>/.... - Prompt docs stay in
src/jsl_mcp/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
src/jsl_mcp/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).