Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/coleam00/claude-memory-compiler/llms.txt

Use this file to discover all available pages before exploring further.

The knowledge base stores three types of articles, each with a defined YAML frontmatter schema and a fixed section structure. The LLM uses these templates when compiling daily logs or filing query answers. Humans can read and navigate the articles directly, but the LLM is the primary author — you should rarely need to edit knowledge/ files by hand. All article files live under knowledge/, use lowercase filenames with hyphens, carry required YAML frontmatter, and link to related articles using Obsidian-style [[wikilinks]].

Concept articles

Location: knowledge/concepts/ Concept articles are the atomic units of the knowledge base. Each one covers a single topic — a pattern, a decision, a preference, a lesson, or a technical fact extracted from your conversations. If a daily log mentions ten distinct things, the compiler may produce anywhere from three to seven concept articles. The compiler prefers updating an existing concept article over creating a near-duplicate. A single article can accumulate entries from many daily logs over time, with each source log listed in the frontmatter.

Full template

---
title: "Concept Name"
aliases: [alternate-name, abbreviation]
tags: [domain, topic]
sources:
  - "daily/2026-04-01.md"
  - "daily/2026-04-03.md"
created: 2026-04-01
updated: 2026-04-03
---

# Concept Name

[2-4 sentence core explanation]

## Key Points

- [Bullet points, each self-contained]

## Details

[Deeper explanation, encyclopedia-style paragraphs]

## Related Concepts

- [[concepts/related-concept]] - How it connects

## Sources

- [[daily/2026-04-01.md]] - Initial discovery during project setup
- [[daily/2026-04-03.md]] - Updated after debugging session

Frontmatter fields

FieldTypeRequiredDescription
titlestringYesHuman-readable name of the concept
aliaseslistNoAlternate names or abbreviations for the same concept
tagslistNoDomain and topic labels for grouping
sourceslistYesRelative paths to every daily log that contributed to this article
createddate (ISO 8601)YesDate the article was first created
updateddate (ISO 8601)YesDate of the most recent update

Sections

SectionPurpose
Core explanation (under # Concept Name)2–4 sentence summary; written to be self-contained
Key Points3–5 self-contained bullet points covering the most important facts
DetailsTwo or more encyclopedia-style paragraphs with deeper explanation
Related ConceptsWikilinks to at least two related articles with brief connection notes
SourcesWikilinks back to source daily logs with a note on what each log contributed
Every concept article must link to at least two other articles via [[wikilinks]] and must cite its source daily logs in the Sources section. These requirements are enforced during lint checks.

Connection articles

Location: knowledge/connections/ Connection articles document non-obvious relationships between two or more existing concepts. The compiler creates them when a daily log reveals that two separate topics share a pattern, a constraint, or an insight that is not obvious from reading the concept articles individually. Connection articles are created less frequently than concept articles. A typical compilation produces zero to one connection articles.

Full template

---
title: "Connection: X and Y"
connects:
  - "concepts/concept-x"
  - "concepts/concept-y"
sources:
  - "daily/2026-04-04.md"
created: 2026-04-04
updated: 2026-04-04
---

# Connection: X and Y

## The Connection

[What links these concepts]

## Key Insight

[The non-obvious relationship discovered]

## Evidence

[Specific examples from conversations]

## Related Concepts

- [[concepts/concept-x]]
- [[concepts/concept-y]]

Frontmatter fields

FieldTypeRequiredDescription
titlestringYesMust follow the pattern "Connection: X and Y"
connectslistYesRelative paths (without .md) to the two or more concepts being linked
sourceslistYesRelative paths to the daily log(s) where the relationship was discovered
createddate (ISO 8601)YesDate the connection article was first created
updateddate (ISO 8601)YesDate of the most recent update

Sections

SectionPurpose
The ConnectionWhat the two concepts have in common or how they interact
Key InsightThe non-obvious relationship — what makes this connection worth an article
EvidenceSpecific examples from conversation logs that demonstrate the connection
Related ConceptsWikilinks to the connected concepts and any other relevant articles

Q&A articles

Location: knowledge/qa/ Q&A articles store the answers to queries filed with query.py --file-back. Unlike concept and connection articles (which the compiler creates autonomously during compilation), Q&A articles are created on demand in response to an explicit question. Every filed answer becomes a permanent part of the knowledge base and is listed in knowledge/index.md, making future queries on the same topic faster and cheaper.

Full template

---
title: "Q: Original Question"
question: "The exact question asked"
consulted:
  - "concepts/article-1"
  - "concepts/article-2"
filed: 2026-04-05
---

# Q: Original Question

## Answer

[The synthesized answer with [[wikilinks]] to sources]

## Sources Consulted

- [[concepts/article-1]] - Relevant because...
- [[concepts/article-2]] - Provided context on...

## Follow-Up Questions

- What about edge case X?
- How does this change if Y?

Frontmatter fields

FieldTypeRequiredDescription
titlestringYesMust follow the pattern "Q: <question text>"
questionstringYesThe exact question string passed to query.py
consultedlistYesRelative paths (without .md) to every article read when formulating the answer
fileddate (ISO 8601)YesDate the Q&A article was created

Sections

SectionPurpose
AnswerThe synthesized answer with inline [[wikilink]] citations
Sources ConsultedEach consulted article with a note on why it was relevant
Follow-Up QuestionsSuggested next questions to deepen understanding of the topic

Conventions

These rules apply to all three article types.
Write in encyclopedia style: factual, concise, and third-person where appropriate. Avoid first-person (“I decided…”) in favour of passive or neutral constructions (“The decision was made to…”). Every section should be self-contained enough to be read without context from surrounding sections.
Use ISO 8601 throughout. Use YYYY-MM-DD for date-only fields (created, updated, filed). Use full ISO 8601 with time and offset for timestamps in knowledge/log.md (e.g. 2026-04-01T14:30:00+00:00).
Lowercase letters and hyphens only. No spaces, underscores, or special characters. Examples:
knowledge/concepts/supabase-row-level-security.md
knowledge/connections/auth-and-webhooks.md
knowledge/qa/how-to-handle-auth-redirects.md
Every article must have YAML frontmatter with at minimum: title, sources (or consulted/connects for the appropriate type), and the relevant date fields. Articles without frontmatter will be treated as malformed by lint checks.

Build docs developers (and LLMs) love