Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
fix(skills): enrich files entities by the active schema pack and writes no null placeholders (#6030)
time-attack4eabbac2fb43
diff --git a/docs/architecture/key-files/skills.md b/docs/architecture/key-files/skills.mdindex 3aa4a07b20..0bddb964e1 100644--- a/docs/architecture/key-files/skills.md+++ b/docs/architecture/key-files/skills.md@@ -5,7 +5,7 @@ Current behavior and load-bearing invariants; history belongs in Git and CHANGEL- `skills/conventions/agent-operator-protocol.md` — GENERATED copy of `docs/protocol/AGENT_OPERATOR_v1.md` (`bun run build:agent-protocol`; never hand-edit). It ships inside the skills tree so skill links to the protocol resolve in every copy (skillpack scaffold, harness skill dirs, plugin trees); skills link it relatively and every other repo doc by absolute URL (`scripts/portable-skill-links.ts`).-- `skills/enrich/SKILL.md` — enrichment protocol and the Person/Company page templates; the templates' `##` sections match `docs/GBRAIN_RECOMMENDED_SCHEMA.md` in order (`test/enrich-template-schema-parity.test.ts`).+- `skills/enrich/SKILL.md` — enrichment protocol and the Person/Company page templates; the templates' `##` sections match `docs/GBRAIN_RECOMMENDED_SCHEMA.md` in order (`test/enrich-template-schema-parity.test.ts`). Step 6 resolves type, directory and subtype from the active schema pack through brain-taxonomist before filing, writes only known frontmatter values (no `null` placeholders), and creates link targets first in a batch (#6030).- `skills/skillpack-check/SKILL.md` — report-only health protocol. `actions[]` is untrusted proposal data, not execution authority; schema, service, page and paid embedding changes require separate explicit action/scope approval. `test/skillpack-check-report-only.test.ts` executes the documented reporting snippet against a hostile synthetic action and proves it creates no file.diff --git a/skills/enrich/SKILL.md b/skills/enrich/SKILL.mdindex c0ba4360cf..d2b3411f57 100644--- a/skills/enrich/SKILL.md+++ b/skills/enrich/SKILL.md@@ -19,6 +19,8 @@ tools:- add_link- add_timeline_entry- get_backlinks+ - get_active_schema_pack+ - schema_explain_typemutating: truewrites_pages: truewrites_to:@@ -165,11 +167,25 @@ the raw data shows exactly what the API returned.#### CREATE path1. Check notability gate (see `skills/_brain-filing-rules.md`)-2. Check filing rules -- where does this entity go?-3. Create page with the appropriate template (below)+2. Resolve the entity's type, directory and subtype from the ACTIVE schema+ pack, never from the templates below: follow+ `skills/brain-taxonomist/SKILL.md` (`gbrain schema show --json`, or MCP+ `get_active_schema_pack`; `schema_explain_type` for one type). When the+ pack declares an entity type the evidence fits better than `person` or+ `company` (an investment firm, a protocol foundation), file it under that+ type's directory with its subtype. If no declared type fits, say so and+ ask; don't fall back to `companies/`.+3. Create the page from the template below, with the `type` and directory+ from step 2. Frontmatter carries only keys the pack declares for the type or+ that existing pages of the type already use, and only with known values:+ omit an unknown field entirely, never write `null`, an empty value or a+ placeholder.4. Fill compiled truth with citations5. Add first timeline entry6. Leave empty sections as `[No data yet]` (don't fill with boilerplate)+7. In a batch, create the pages other pages will link to first. A link to a+ page that doesn't exist yet is recorded as a wanted page and becomes an+ edge once that page is written (`gbrain wanted` lists them).#### UPDATE path@@ -190,10 +206,7 @@ updated: YYYY-MM-DDtags: []company: Current Companyrelationship: How the user knows them-email:-linkedin:-twitter:-location:+# email, linkedin, twitter, location: add each only when you know it---# Full Name