Best Practices
These practices keep your Lore wiki useful as it scales.
Operational Cadence
| Cadence | Actions |
|---|---|
| Daily active work | lore ingest for new sources, then lore compile |
| Before sharing answers | lore index --repair, then lore lint |
| Weekly maintenance | Review orphans, gaps, and ambiguous entries |
| Before export/publish | lore compile --force for deterministic artifacts |
Recommended Maintenance Loop
lore ingest ./docs
lore compile
lore index --repair
lore lint --json
Writing for Better Retrieval
Good retrieval starts with good article structure.
- Keep one primary concept per article
- Use explicit section headings (
##) for major ideas - Add
[[Wiki Links]]to related concepts - Avoid vague titles like "Notes" or "Misc"
A useful article shape:
---
title: "Compile Locking"
tags: [runtime, reliability]
sources: [docs]
updated: 2026-04-10T00:00:00Z
confidence: extracted
---
# Compile Locking
## Why it exists
Prevents overlapping compile runs and stale writes.
## Operational behavior
Lore uses `.lore/compile.lock` and validates stale PID locks.
## Related
- [[Incremental Compile]]
- [[Watch Mode]]
Linking and Naming Conventions
- Prefer stable concept names for long-lived pages
- Keep slug-friendly titles (clear, concise, specific)
- Use
[[Exact Concept Name]]where possible - Merge duplicate concepts instead of keeping near-identical pages
Team Workflow Patterns
Feature branch workflow
- Ingest new design docs in branch
- Compile and lint before PR
- Run Angela on key commits for decision trail
- Export bundle/pdf for reviewers if needed
Long-running repository workflow
- Scheduled ingest of docs/changelogs
- Daily compile
- Weekly lint + gap triage
- Monthly graph analysis using
graphmlexport
Query and Explain Habits
- Use specific noun phrases in
lore search - Use
lore queryfor direct answers tied to source slugs - Use
lore explainfor concept deep dives and related context synthesis - Enable
--normalize-questionwhen queries contain typos
Export Strategy
| Audience | Recommended format |
|---|---|
| Engineers and maintainers | bundle, web |
| Non-technical stakeholders | pdf, docx |
| Presentations | slides |
| Graph analysis teams | canvas, graphml |