/synclair/knowledge is Synclair’s answer to the question “where does the AI get
its context?” It’s the home for everything a person or agent needs to know about the
product that isn’t in the code — the specs, the designs, the decisions — organized
so it’s cheap to load and impossible to lose.
What it is
The place the project’s knowledge lives, in three layers that trade off freshness against readiness:Sources
Links to the canonical PRDs, decks, and Figma files — wherever they actually
live (Drive, Figma, GitHub).
Digests
The compressed, durable knowledge extracted from those sources and kept in the
repo as skills — what agents read most of the time.
Summaries
Generated, audience-specific reads — onboarding briefs, diagrams, custom cuts —
on the Summary tab.
What’s in it
- Source-of-truth links (
lib/system/knowledge/sources.ts) — each entry points at a canonical doc (a PRD in Drive, a Figma file, a deck) with enough metadata to find it and know what it covers. In existing-app mode these are harvested from the host repo’s READMEs,docs/, and ADRs. - Distilled digests — the durable essentials pulled out of those sources, stored
as the
product-specskill (and per-areareferences/*.md). Each digest links back to the canonical source it came from. - Project summaries (
data/knowledge/summaries/) — briefs and diagrams generated per audience, shown on the Summary tab.
How it works
The core rule is link, don’t copy — and it’s not a style preference, it’s what keeps the knowledge from rotting.A pasted 40-page PRD goes stale the day someone edits the real Doc, and it blows an
agent’s context window when read raw. So raw sources stay canonical in Drive /
Figma / GitHub and are linked; the repo holds the distilled digest, not the dump.
1
Progressive disclosure
A digest’s one-line description is always in context; its body loads only when a
task touches that area. A large knowledge base costs almost nothing until it’s
relevant.
2
Digger agents
A retrieval agent (like
prd-retriever or figma-frame-reader) reads the heavy
source in its own throwaway context and hands back a tight brief — so the main
conversation never loads the 40-page doc.TODO: distill note when the source genuinely can’t be read
yet. Write-back is the second half of the same flywheel: when a later dig surfaces
something durable, the agent refines the existing digest — so the knowledge base
converges on “what a builder routinely needs.”
And because the sources keep moving where they live, npm run check:knowledge
probes each linked source’s real last-modified against its distilledAt and flags
digests whose upstream has moved — so a PRD edited in GitHub can’t leave its digest
silently lying. It’s the knowledge-layer twin of the foundation’s call-home check.
How to act on it
Add a source — link and distill in one pass
Add a source — link and distill in one pass
Add an entry to
lib/system/knowledge/sources.ts (or, in existing-app mode, let
the knowledge-harvester digger propose entries from the host repo) and write
its digest in the same change — product-spec for docs/PRDs/decks,
figma-distiller for Figma. If distilling genuinely has to wait, record an
explicit TODO: distill in the entry’s notes so the IOU is visible.Dig deeper than the digest
Dig deeper than the digest
Dig into the raw source with a digger (
prd-retriever, figma-frame-reader)
only when the digest is insufficient — then write the durable part back so the
digest gets sharper.Generate a summary
Generate a summary
Queue a summary from the Summary tab (or run the
product-summary skill) — a
brief, a diagram, or a custom cut for a specific audience. The button queues it;
an agent drains the queue and writes it to data/knowledge/summaries/.Onboard someone (or an agent)
Onboard someone (or an agent)
Point them at
/synclair/knowledge — the Summary tab’s brief is the fastest way
in, and the source links are there when they need the canonical detail.Related: References
Knowledge is the inputs (specs, designs). References is the project’s findings —
prior art and recommendations agents accumulate as they research.