Document Format
File Naming
Section titled “File Naming”Every document follows the pattern:
<slug>.<type>.mdSlug Rules
Section titled “Slug Rules”- Lowercase letters and numbers only
- Words separated by hyphens
- Must match:
^[a-z0-9]+(-[a-z0-9]+)*$
Valid: jwt-strategy, use-postgres, api-v2-migration
Invalid: JWT_Strategy, use postgres, my.decision
Valid Types
Section titled “Valid Types”adr, rfc, rule, guide, doc, prd, idea, plan, task-type, cpatExamples
Section titled “Examples”use-postgres.adr.mdapi-versioning.rfc.mderror-handling.rule.mdci-cd-setup.guide.mdapi-endpoints.doc.mdauth-redesign.prd.mdcaching-layer.idea.mdq1-migration.plan.mdapi-endpoint-creation.task-type.mdcallbacks-to-async.cpat.mdFrontmatter
Section titled “Frontmatter”Every document requires YAML frontmatter with title and status:
---title: Use PostgreSQL as Primary Databasestatus: accepted---Required Fields
Section titled “Required Fields”| Field | Type | Description |
|---|---|---|
title | string | Human-readable document title. Must not be empty |
status | string | Document status: draft, accepted, or rejected |
Status Values
Section titled “Status Values”| Status | Meaning |
|---|---|
draft | Work in progress (default for new documents) |
accepted | Finalized or approved |
rejected | Superseded, abandoned, or declined (preserves history) |
Optional Fields
Section titled “Optional Fields”The meta field can hold arbitrary YAML metadata:
---title: API Rate Limiting Standardsstatus: acceptedmeta: author: team-backend reviewed: 2025-01-15---Content Structure
Section titled “Content Structure”After the frontmatter, content is standard Markdown. Each document type has recommended sections (generated by the template), but the structure is not enforced beyond frontmatter validation.
Code References
Section titled “Code References”Documents may reference source code using @-notation:
See the implementation at @cmd/init.go and @internal/config/config.go.This is optional but helps agents navigate between documentation and code.
Template Generation
Section titled “Template Generation”When creating a document through the MCP create_document tool without providing content, Archcore generates a template with all required and recommended sections for that type.
For example, an ADR template includes:
## Context[Describe the situation and problem]
## Decision[What was decided and why]
## Alternatives Considered[Other options that were evaluated]
## Consequences### Positive- [Benefit 1]
### Negative- [Trade-off 1]
### Risks- [Risk 1]
## Implementation Notes[Key implementation details]
## References- [Link 1]