crystalline-intelligence
Use when the crystalline MCP tools are available and the task involves recalling, storing or sharing knowledge - searching domains, capturing engrams or sharing with a team.
- License 许可
- MPL-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 18
- Forks
- 2
01 前言 Front Matter
- name
- crystalline-intelligence
- description
- Use when the crystalline MCP tools are available and the task involves recalling, storing or sharing knowledge - searching domains, capturing engrams or sharing with a team.
03 SKILL.md 正文
Crystalline Intelligence
Crystalline is your crystallized intelligence across sessions: what you have been taught and what you have learned lives in Domains as Engrams you search, read and, where allowed, capture into.
Start from the routing block
At connection you are handed a routing block as your instructions: one line per registered domain plus the tool names it routes through. Treat each line as a targeting aid, not a full catalog - an unrelated-looking domain may still hold the answer. Re-fetch the same index mid-session with list_domains and include_routing: true.
On a shared instance that block may be a count rather than a list, or may name fewer domains than exist: an instance can hold private domains, and what you are shown is what the account you connected as may see. So list_domains with include_routing: true is the index, not a refresh of one you already have - call it at session start whenever the instructions carried no domain lines.
Domains you may not see
A domain the account you connected as is not a member of is not there for you at all: it is absent from list_domains and from every search, and naming it directly answers exactly as naming a domain nobody ever registered. Read a "not registered" answer as "not yours to see or not there, and you cannot tell which" - never as a cue to create it with add_domain, and never as a bug to report. Ask the person you are working with for access instead.
The same rule governs ending a domain. remove_domain unregisters one - the counterpart to add_domain, and what to call when someone says a domain is finished rather than telling them to open a terminal - and on your own machine you may remove any of them. On a shared instance it takes an instance admin or, for a private domain, its owner; anything else is refused with text naming who can, which is an answer to relay rather than a call to retry. It never deletes a file domain's markdown, and it refuses a virtual domain (whose engrams are only in the database) until you pass purge: true, so confirm the loss with the user first. On a harness that can ask, the call also puts one question to the person, with its checkbox already checked: Accept removes the domain and Decline keeps everything.
A write is a second question, answered separately. Where you may read a domain but not change it, the refusal names the level you hold on it (viewer, for instance) and needs an upgrade rather than a retry: relay it and ask, rather than trying another verb or another phrasing of the same write.
Recall before you answer
Never answer from pre-trained knowledge alone when a domain could cover it; search first. This holds even for a question that looks self-contained or seems to need clarification - a question that feels ambiguous is a signal to search first, not to ask the user before searching. Only ask a clarifying question once a search comes back genuinely empty or irrelevant. One domain obviously owns the task: a scoped search (domains: ["that-domain"]); broad or cross-cutting: a sweep with domains omitted. Decide that scope by matching the question's subject against the routing block's domain lines before you search, not after seeing results - when a domain's description names the topic (say a payments domain whose line mentions refunds and retries), scope to it on the first call rather than sweeping unscoped out of caution. For a "what is true now" question, filter on status: stable (current is the older word for the same state and a filter on either returns both). Follow a strong hit with build_context to pull in what surrounds it - it returns node titles, relations and untyped prose links (the latter as links_to) but no content, ranked by how strongly each node connects to the anchor, so reads follow it. If a first phrasing turns up nothing, reformulate once before concluding the knowledge was not captured. In a harness with the per-prompt hook, a prompt may arrive with a short "Knowledge that may apply" block naming engrams by crystalline:// address: read the ones that fit with read_engram (the address is the identifier), and treat the block as a head start, not as the search you would otherwise run - a topic it does not name is still searched.
A search hit's snippet is a short window around the match, not the engram: read_engram an engram before citing or summarizing its content. When the engram carries a resource (the source it was distilled from), cite that location in your answer. Each hit also carries its engram's tags, so a search shows the vocabulary in use. read_engram marks each relation and link resolved or not, summarizes inbound edges (capped at 5 refs) and, when inbound or resolved outbound edges exist, emits a related hint naming a build_context anchor - follow it when the neighbourhood helps. Its identifier takes the hit's permalink field verbatim (there is no separate permalink argument); pass the hit's domain as the domain argument. A file path is not an identifier: a miss names the permalink it probably meant, so retry with that. Never glue the domain onto the permalink - an identifier without the crystalline:// scheme is always domain-relative, and crystalline://domain/permalink is the one form that names a domain. That rule is about tool arguments only: a link inside an engram body names another domain as [[domain:Target]]. For an overview question ("what is X about?") read every strong hit before drafting - what you read earlier for a different task is not coverage for this one - and when something relevant stays unread, say so instead of presenting partial coverage as complete. When a read returns attachment resource links (screenshots, slide decks, files a human added), read the attachment itself through resources/read before summarizing or verifying what it shows. Pass include_images to read_engram when a picture is marked as needing vision (an evolve V007 finding, or a :status[Needs vision] label or a Pictures that need vision list in the engram), so you see it. A read may come back flagged live: true, with present naming who has the page open right now - that is somebody's unsaved work in progress, so read it as exactly that rather than as settled fact, and expect it to move. Where this instance serves the web UI a read, write, edit or move receipt also carries web_url, the engram's page in the web UI: hand that to the person when they want to see the engram themselves, and add # plus the heading's slug (lowercase, keep letters, digits, hyphens and underscores, spaces to hyphens, drop the rest, a repeated heading numbered -1, -2) to open the page at one section. A list result carries one web_url_template instead; fill in the hit's domain and permalink. No web_url and a web_url_note means the instance has not been told its own address: relay the note: the operator sets that address with the crystalline CLI. search_engrams leaves a domain's Reflection pages out; search those with read_reflection and query.
That scope is a starting bet, not a lock-in. If every hit in the scoped domain is tangential - a different sub-topic, or just its MANIFEST - even after you reformulate once, the answer may live in a domain the question's surface noun does not name: an escalation contact, an on-call owner or a policy question about a technical topic often sits in a people or ops domain rather than the technical one. Retry as an unscoped sweep before concluding the knowledge is missing or asking the user.
For a question bound to a specific past date or window ("what applied on 2025-08-01", "the cost in June 2025"), do not trust text-score ranking alone - pass metadata_filters on valid_from and valid_to so the engram whose window actually contains that date wins over a superseded or not-yet-current one with a similar-looking snippet.
To find every engram that cites a source, filter search_engrams on its sources list: metadata_filters with $contains for one location, or $contains_any for up to 100. Use limit: 100 and ask for the next page until you hold total hits. An empty result is reliable. An older server answers unknown operator '$contains' (-32602); there, search by resource and compare by hand.
Once a hit answers the question, stop there. Reading the domain MANIFEST (read_engram on it, or browse_domain) is an extra step for when the routing line and the hits together still leave the right engram unclear, not a routine follow-up to every search - and since the MANIFEST is itself indexed, it often surfaces among the hits already.
Capture what you learn
Treat capture as a normal byproduct of the task, not an end-of-session chore. If the user did not ask for it, propose first: name the insight and the domain, and wait for a yes. Searching before you write is mandatory, never optional - run search_engrams for the topic before any write tool, even when the request is a short clarification that feels self-contained. If a hit already owns the topic, even a broader engram whose scope covers this narrower case, edit that engram rather than creating a new one beside it. Every write names its domain explicitly - there is no default, so knowledge never lands in the wrong place by accident. A write_engram or content edit_engram receipt may carry a similar list of up to three existing engrams closest in meaning to what you just wrote, with guidance: act on it or say why not - merge into the owner, supersede what yours makes false, link what is related but distinct, or say unrelated - never ignore it silently. Reuse the domain's folder layout as well (browse_domain shows it) and start a subfolder once a topic clusters: the folder you pass becomes the permalink prefix build_context can glob. A body is markdown bullets: - [category] content #tag for an observation, - rel_type [[Target]] for a relation. Before coining a new tag or category, check vocabulary for the domain and reuse an existing term; searches fold old tag names through a MANIFEST's ## Tag Aliases entries, and when the same concept appears under two tags you may propose adding one via edit_engram, after the user agrees. Leave valid_from and valid_to unset unless a fact is genuinely time-bounded - absence already means always valid, never a sentinel date. Exceptionally valuable knowledge can carry a numeric salience key (0 to 10) in metadata - hybrid search lifts a salient engram above equally relevant hits without ever filtering by it, and raising it later elevates an engram that proved to be the key to a task. Mark old knowledge superseded or deprecated rather than letting it stand alongside the new as current - pick from the recognized retirement set (deprecated, superseded, archived, legacy) so it softly fades in search ranking instead of a free-form status that keeps it ranking as if current. Confirm with the user before deleting or moving an engram.
For a domain in your routing block, crystalline is where its knowledge lives: route every "remember this" or "update what we know" request through the crystalline tools, never a generic file Write or a local memory folder. Those are separate stores, and a fact written there is invisible to every future search here. If a write tool you reached for is missing or errors, that is the cue to fall back to search_engrams, not to try another store.
Content the user flags as transient or disregardable - a scratch note, an "ignore this", a one-off local workaround - is not a capture candidate: do not propose storing it, just answer any real question alongside it and move on. When one message bundles a transient aside with a genuinely capture-worthy fact, drop the aside and still run the full search-then-append-or-create pass on the fact alone.
When new information replaces a fact already held in a current engram, do not find_replace that engram's text to the new value - that erases the history the supersede model exists to keep. Leave the old engram's content as it stands, flip its status to superseded with edit_engram's set_frontmatter operation (key: "status", value: "superseded") and add a - superseded_by [[New Engram]] relation, then write the new fact as its own engram with status: stable and a - supersedes [[Old Engram]] relation pointing back. This is only for a genuine replacement or contradiction; an exception or extra detail about a fact that still holds is an append to its engram, not a supersede. When nothing replaces the old fact at all - a practice abandoned, a caveat that stopped applying - there is no new engram to write: flip the old one's status to a retirement value and close valid_to when the end date is known. A claim you find false while reading, or two hits that disagree with each other, is the cue to propose the reconciling edit or the supersession, never a silent append beside the old.
A wrong engram you cannot fix yourself still gets fixed: when the domain is read-only for you, the engram records a person's own words or decisions, or the right value is a call only a person can make, tell the person you are working with. Name the engram and give its web_url where the receipt carries one, say what it claims, what is true instead and the source that shows it, and propose the edit. Never leave a wrong engram unmentioned because you cannot change it. Still capture the correct fact where you may write: add a relation from the new engram to the wrong one (- corrects [[domain:Target]]) so a reader of either finds the other, and tell the person about both.
An engram is what is true now, never a change log: on an ordinary update reconcile the body in place instead of appending dated ## Update or ## Re-verification sections, and never add - [fact] As of <date> X is Y when the body already says X is Y. Record "checked, unchanged" with set_frontmatter key: "verified" (no value stamps you and now), not with a heading. To change tags, read the engram, check vocabulary and pass the whole new list as key: "tags", values: [...]; sources takes its whole new list the same way. Keep outdated content only when the outdatedness is itself the knowledge - a deprecated approach or rejected alternative held so it is not re-adopted - and mark it deprecated or superseded or frame it as a [lesson] so it cannot read as current. A source read into the knowledge gets its own type: ingestion record engram carrying source_version, so the next pass over that source takes the delta instead of starting over.
Every engram created or reconciled from the source carries resource set to the exact page or file it came from - for a git source the file at the ingested commit, https://github.com/{org}/{repo}/blob/{sha}/{path} - plus source_date where there is one, every location it was distilled from in a sources list (a version-free address such as https://github.com/{org}/{repo}/blob/main/{path}, one spelling each; - [source] <url> bullets may stay for readers, but a filter does not see them) and a - ingested_from [[<record>]] relation. A re-ingest updates resource, source_date and sources with set_frontmatter too, finds the engrams a changed location fed with $contains_any on sources, and drops a location that is gone from sources without retiring the engram; retire only when no source is left and the knowledge is found nowhere else. A source too large for one context is split into topic clusters, each ingested by its own subagent on a capable model (Claude Opus or one of similar capability), and you write the ingestion record last, from what they report.
Superseding is how the past stays useful rather than deleted. When the date the old fact stopped holding is known, set valid_to with a second set_frontmatter call right after the status flip - that closed window is what lets a later metadata_filters search answer what applied at a past date, the way a person recalls a past job without mistaking it for the present. And before moving on, carry forward what the retired fact taught: an insight that outlives it belongs as an unbounded [lesson] on the new engram, linked back to the retired one. When only one fact in an engram expired and the rest still holds, split before retiring, in one call: split_engram takes the source, a title and the observations (the line numbers read_engram reports) or sections to move, writes the still-valid facts into their own engram with the source's tags and a stable status, and links the pair with derived_from and split_into; then retire what remains - never retire the bundle whole and re-type the survivors into the successor, which loses their history and copies them forward on every later expiry.
When you are asked to link a new fact to an existing engram, make the link resolve both ways: add the relation on the new engram pointing at the existing one and a matching relation on the existing engram pointing back, so each is discoverable from the other. A large capture - a transcript, a research document - splits by granularity, not topic: the distilled summary is a normal engram in the topic's usual folder, the full text a type: source engram under a sources/ subfolder, linked both ways with - summarizes [[Full Document]] and - summarized_by [[Summary]], and split into sequential part engrams when it exceeds the verify token budget for a type: source engram (10000 tokens by default, four times the ordinary budget, since verbatim capture is what a source engram is for). On recall read the summary first and pull the full text only when the summary falls short.
A write only counts as captured once it passes the verify layer: tags present, at least three non-blank content lines, valid dates, no duplicate permalink and every [[Target]] relation resolving to a real engram. So a single-bullet body fails the line count - give even a small fact a lead-in sentence plus two bullets, say the fact itself and its scope or source. A [[Target]] resolves by title, so a relation whose text does not match a real engram's title stays unresolved even though the write itself succeeds. A bare [[Target]] looks only inside the engram's own domain; a target in another domain is written [[<domain>:<Title or permalink>]]. [[target|text]] links to target and shows text. And a validity bound only sticks when valid_from and valid_to are set as keys inside the metadata object - a bound stated only in the body prose, or a metadata passed as a JSON string instead of an object, never becomes a real frontmatter field. The write enforces the format: a value that is not a plain ISO date (YYYY-MM-DD) fails with an error, so treat a temporal write error as a format fix, never as a cue to fall back to prose.
When the user asks what the archive itself needs - what has gone stale, what is half-finished, what looks duplicated - evolve_engrams sweeps a domain or every domain read-only and returns a ranked queue where each finding carries its evidence and its next action: work the items marked mechanical directly and summarize once, propose each judgment item and wait for a yes one at a time, and a V301 semantic twin means two current engrams say the same thing in different words, not that one of them is wrong: read both, merge and supersede or link and acknowledge the pair with evolve_ack. V302 is the one finding that names a possible contradiction; read it as the model's question, never as proof: open both engrams, supersede the one that is false going forward, let the newer engram supersede the older one with its valid_to set to the real date if both held in different periods, correct a single stale line when the rest still holds, or acknowledge the pair of lines if they do not contradict. An engram a person captured directly - its generated.by starts with human: - always comes back as a judgment finding: verify the claim, align its tags and wire its relations both ways, and propose any wording change instead of making it, because the words are the user's. When no person is there to answer, as in a scheduled or headless run, pass class mechanical to evolve_engrams so the sweep returns only the findings you may fix, and leave every judgment finding for a person. A finding the user declares intentional gets acknowledged, not ignored: record it with edit_engram set_frontmatter key evolve_ack and it stays out of future sweeps, counted but silent. The same key takes one back when the user changes their mind: the value remove V101 unacknowledges that rule so the finding resurfaces on the next sweep. Take an acknowledgment back only when the user asks. Both acts land at once, with no question to the user, so make them only when the user said so, since a finding silenced or resurfaced without them is the one outcome neither of you wanted.
Some domains keep a Reflection: documents for people under reflections/, written at the level the domain's PACT.md agrees on, which people and agents both edit and discuss. reflect hands you its work queue - feedback items (what people changed; judge them into the engrams first), update items (engrams that changed or that no page covers yet; bring them into the pages) and review items (threads waiting for you) - so call it when a reminder or the routing block names a domain's Reflection, or when the user asks what the Reflection needs. A queue's scope.unreadable names domains it left out because their Reflection could not be read, and scope.pending names domains whose Reflection waits until the engrams in their reflections/ folder are moved out; tell the person. read_reflection shows the tree of reflections, or one reflection with its section ids, source engrams and open threads. read_reflection with query searches the Reflection's sections by words and by meaning, so you find the page and section to read or change before you write. write_reflection creates, changes, moves and deletes reflections and edits PACT.md (only curators, everyone who may edit the engrams, write PACT.md; when you may not, propose the change with discuss), and changes one section with the section operations of edit_engram (replace_section, insert_before_section, insert_after_section) when the rest of the page stays; name each section's source engrams when you build it from them, keyed by the ## section's id or heading text, never the # title (this is not the sources frontmatter field of an engram, which lists outside locations), pass sources alone, with no markdown, to curate sections as the page stands, and settle a person's change as kept when their text stands. When a person asks you for a page or space, add a bullet to the PACT's ## Pages (add the heading if the pact has none) with its path or glob, their request in their words, who asked and the date, add a matching ## Structure glob, and name each section's sources; when update items offer new engrams, read ## Pages to place them, and to recreate a page, rebuild it from its bullet. A write_reflection receipt lists unsourced_sections for sections you wrote without sources; pass sources for each one built from engrams. The PACT's ## Structure bullets are globs, one per top-level bullet; a PACT receipt's structure_findings names bullets that are not read as globs. A reflect run may be headless, started by crystalline reflect run or a scheduler with nobody to answer: then ask people only in a thread with discuss, leave every item that needs a yes or a person's answer for that person and name each one in the run's summary. Your own writes never come back as feedback. When the pages follow a changed pact again, settle PACT.md with action=settle and no sections, which settles the whole page. A heading with no id line yet gets one on the next write; settle again after it. discuss opens a thread on a section (by id, or by heading text when the heading has no id yet, which then stays the thread's section; a heading two sections share needs the id) or a quoted passage, answers, resolves with a short outcome and reopens; write threads in plain words for people, never with engram links, because some readers cannot see engrams. Answer a person's thread and leave it open. The person who opened it resolves it. Write every comment as a conventional comment (https://conventionalcomments.org): a first line <label> [decorations]: <subject>, then an optional discussion. The label is one of praise, nitpick, suggestion, issue, todo, question, thought, chore or note, and the decorations in parentheses are blocking, non-blocking or if-minor, for example suggestion (non-blocking): name the batch window here too. Present what you write with the crystalline-presentation skill (read it with the skills tool, name crystalline-presentation, if it is not installed): the PACT's ## Presentation first, an element only where it serves the reader.
Write-result nudges
A write result may end with a '[crystalline]' nudge line - treat it as the standing practice the Stop hook teaches: propose sharing or run maintenance, and wait for a yes. When it names a Reflection you curate, call reflect and work its queue. It reaches you only when a session works through MCP with no Stop hook of its own to ask at the end - so it is the one place that standing practice reaches you, not a new kind of instruction.
Read-only deployments
Some deployments are read-only and say so up front: the instructions state the knowledge is curated externally, and the write tools are simply absent from the tool list. Search and read there; do not propose a capture.
A domain whose routing line says (read-only), or whose row carries read_only: true (a domain row's read_only), is not a place for you to write. It is locked, your role only reads it, or it is not on your account's write list. Search and read it, and write where the routing block allows.
Sharing with a team
The collaboration tools are listed only while collaboration is on, so seeing share_changes, update_domain, origin_status, resolve_conflict, withdraw_proposal and discard_changes in the tool list means this instance shares knowledge with a team; not seeing them means it does not, and no domain here is shared. Call origin_status to learn which domains actually have a team origin and where each one stands, before deep work, and update_domain first if behind. Share a coherent unit of knowledge with share_changes and always relay the returned review URL - a person merges the proposal, never the agent. Review feedback comes back through update_domain and origin_status, and the loop is share, read the feedback, edit the engrams, share again naming the layer the feedback belongs to: sharing while a proposal is open stacks a new proposal on top of it, one focused review per unit of work, and share_changes with proposal: <number> amends that open layer instead of stacking. withdraw_proposal closes one the team no longer wants. Settle a disagreement with resolve_conflict: mine, theirs or a supplied merged version.
Two things decide what a share carries and whose name it goes out under. A share proposes the domain's whole unshared delta unless you pass files, an array of domain-relative paths, which narrows it to exactly those (each one's folder listing rides along where the domain's MANIFEST declares generated_indexes: shared, and what you leave out stays a local change for later). And where github.share_identity is personal, which is also what an instance with a GitHub App uses when the key is not set, every share, amend and withdrawal goes out on the acting person's own GitHub identity and refuses until they have connected one: relay the refusal's instruction - Fluid's profile card under GitHub identity, or crystalline connect github --personal - instead of retrying, since there is no fallback to the instance credential; the connection belongs to the surface the share is made from, so a Fluid sign-in unblocks that account's shares from Fluid while the CLI command unblocks the machine owner's shares from the CLI and locally attached agents. An agent connected over HTTP shares as the account it authenticated as, or - where the instance does not make agents authenticate - as the account github.agent_identity names; either way that identity needs write access to the repository, because proposals are branches in it and never forks.
Team collaboration is set up through configure alone, no terminal needed: setting github.enabled reveals the tools above, and connect: "github" returns a code and a URL for a browser already signed in to GitHub - in either order, since connecting works before enabling too. After the code GitHub shows an Authorize button, and the sign-in lands only when it is clicked; relay the result's next_steps as they are rather than paraphrasing them. To check or revoke a sign-in, point people at Settings > Applications > Authorized OAuth Apps, never at the personal access tokens page, which never lists it. Git and clones are never part of this flow. The instance's network, database and sign-in are not part of configure: the operator sets them with the crystalline CLI.
To see or change how a domain behaves (its sharing, generated indexes, MANIFEST sections or rule overrides), call configure with the domain.
04 同仓库更多 Skills
crystalline-schema
Use when a Crystalline domain wants structure for one of its engram types - authoring a Picoschema schema engram, running infer_schema to bootstrap one from what is already captured, or validate_engrams to check conformance.
crystalline-routing
Use when deciding which Crystalline domain(s) to search or read for a task, especially at session start, before reading a MANIFEST directly, when answering a broad question across domains, or when a "what is true now" question needs temporal filtering.
crystalline-provisioning
Use when a person wants a Crystalline domain to ship its own skills, slash commands, agents or MCP servers into their coding harnesses - setting up the tools repo beside the domain, laying out the folders, bringing in skills they already have, adding or changing the MANIFEST Provisioning section, asking for the allow or deny decision, or updating provisioned tools (provision apply) after a change, an update or a git pull.
crystalline-presentation
Use when writing or updating a reflection or PACT.md, working reflect feedback, update or review items, or writing an engram that a table, diagram or callout would make easier to find or use. Messages between parties need a sequenceDiagram, a process with a branch a flowchart, states a stateDiagram-v2, three or more options compared a table, an irreversible step a caution callout inside its section; everywhere else prose.
crystalline-collaboration
Use when working in a domain that has a team origin on GitHub - checking status at session start, updating before deep work, sharing new knowledge as a proposal, settling a conflict, or connecting a new teammate.
crystalline-capture
Use when durable knowledge is learned while working, when the user asks to update a Crystalline domain, or before writing or editing an engram so it is deduplicated, well-formed and linked correctly.