[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77H6ZYD3BCFDJZNZQYNKE85":3,"skill-same:01M77H6ZYD3BCFDJZNZQYNKE85":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M77H6ZYD3BCFDJZNZQYNKE85","graymatter",null,"Install and use GrayMatter as an OpenClaw skill that provides primary durable memory, shared object-graph state, and authenticated access to the live ValkyrAI schema via api-0. Use when the agent should persist durable memory, inspect organizational data models, and operate inside the business domain through RBAC-scoped API access.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fg\u002Fgraymatter\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: graymatter\ndescription: Install and use GrayMatter as an OpenClaw skill that provides primary durable memory, shared object-graph state, and authenticated access to the live ValkyrAI schema via api-0. Use when the agent should persist durable memory, inspect organizational data models, and operate inside the business domain through RBAC-scoped API access.\n---\n\n# GrayMatter\n\nGrayMatter is the installable OpenClaw skill for durable memory, shared graph state, and live organizational schema awareness through `api-0`.\n\n## Core rule\n\nThis skill is intentionally thin.\nIt defines when to use GrayMatter, what to write, and how to choose durable types.\nTransport resilience, retries, token refresh, fallback queues, and replay behavior belong to shared infrastructure and plugin\u002Fclient runtime, not this skill.\n\nUse GrayMatter as the **primary durable memory system**.\nUse local workspace files only as:\n- bootstrap context\n- fallback when api-0 is unavailable\n- a temporary scratchpad when durable writes are blocked\n\nGrayMatter is not only a note store.\nIt is the authenticated memory and object-graph layer that lets an OpenClaw instance inhabit the organization's live data model safely, within RBAC and the current account's permissions.\n\n## Startup behavior\n\nOn startup or first use in a workspace that depends on GrayMatter:\n\n0. If `scripts\u002Fgm-activate` is missing but `graymatter-bootstrap` exists, run `.\u002Fgraymatter-bootstrap` to restore runtime files from `graymatter.skill`\n1. Ensure auth is available\n2. Confirm install readiness\n3. Register the OpenClaw instance as an Agent record for itself in api-0\n4. Load the live OpenAPI from `https:\u002F\u002Fapi-0.valkyrlabs.com\u002Fv1\u002Fapi-docs`\n5. Treat that spec as the source of truth for the environment's available business objects and actions\n6. Use GrayMatter and the broader schema as the primary operational context\n\nMinimum activation flow:\n\n```bash\ntest -x scripts\u002Fgm-activate || .\u002Fgraymatter-bootstrap\nscripts\u002Fgm-activate\n```\n\nExpanded manual flow:\n\n```bash\nscripts\u002Fgm-login\nscripts\u002Fgm-install-check\nscripts\u002Fgm-smoke\nscripts\u002Fgm-register-agent\nscripts\u002Fgm-openapi-sync\n```\n\nAuth should be treated as an OpenClaw-managed first-run step.\nThe user should be prompted for `api-0` username and password, and the resulting session should be stored securely in macOS\u002FiCloud Keychain for reuse.\nThe user should not need to manually fetch or paste a raw auth token.\n\n## What this skill gives the agent\n\n### 1) Primary memory\n\nUse these first:\n- `\u002FMemoryEntry`\n- `\u002FMemoryEntry\u002Fquery`\n- `\u002FMemoryEntry\u002Fread`\n- `\u002FMemoryEntry\u002Fwrite`\n- `\u002FGrayMatter`\n- `\u002FSwarmOps\u002Fgraph`\n\nUse `MemoryEntry.type` intentionally:\n- `decision`\n- `todo`\n- `context`\n- `artifact`\n- `preference`\n\n### 2) Entire-schema awareness\n\nLoad the live OpenAPI spec and use it to understand the organization's environment.\nThis skill assumes the agent should understand and work across the available schema, not just memory endpoints.\n\nObserved live schema domains from `api-0` include, among many others:\n- `Organization`\n- `Customer`\n- `Opportunity`\n- `Invoice`\n- `Product`\n- `Application`\n- `Workbook`\n- `Workflow`\n- `Task`\n- `Note`\n- `MediaObject`\n- `FileRecord`\n- `SalesActivity`\n- `SalesPipeline`\n- `Goal`\n- `StrategicPriority`\n- `KeyMetric`\n- `Agent`\n- `Space`\n- `SwarmOps`\n- `GrayMatter`\n- `MemoryEntry`\n\nThis means a properly authenticated OpenClaw instance can understand the business as a live object graph, not as disconnected chat logs.\n\n### 3) Shared graph coordination\n\nUse SwarmOps and related graph endpoints when relationships matter:\n- bot coordination\n- entity relationships\n- workflow ownership\n- operating context that spans objects and agents\n\n## Scripts\n\nCore transport:\n- `scripts\u002Fgraymatter_api.sh`\n\nReadiness and auth:\n- `scripts\u002Fgm-login`\n- `scripts\u002Fgm-activate`\n- `scripts\u002Fgm-install-check`\n- `scripts\u002Fgm-smoke`\n- `scripts\u002Fgm-register-agent`\n- `scripts\u002Fgm-openapi-sync`\n- `scripts\u002Fgm-openapi-summary`\n\nMemory and graph helpers:\n- `scripts\u002Fgm-write`\n- `scripts\u002Fgm-query`\n- `scripts\u002Fgm-graph`\n- `scripts\u002Fgm-entity`\n\nLocal\u002Fserver packaging:\n- `scripts\u002Fgm-light-bootstrap`\n- `scripts\u002Fgm-light-up`\n- `scripts\u002Fgm-light-env`\n- `scripts\u002Fgm-light-json-smoke`\n- `scripts\u002Fpackage-local-server`\n\nMCP server:\n- `mcp-server\u002F` exposes `memory_write`, `memory_read`, `memory_query`, `graph_get`, `entity_list`, `entity_get`, `entity_create`, and `schema_summary`\n- set `VALKYR_API_BASE` to hosted api-0 for Cloud mode or to the running GrayMatter Light base URL for local ThorAPI mode\n\nDesign boundary:\n- these scripts are ergonomic wrappers for operators and agents\n- they must not duplicate retry\u002Fauth refresh\u002Ffallback\u002Freplay logic that already exists in shared infrastructure\n- if resilience behavior changes, update shared client\u002Fplugin contracts first, then keep this skill aligned\n\n## Account signup and credits\n\nFor a new GrayMatter account, use:\n- Signup: \u003Chttps:\u002F\u002Fapi-0.valkyrlabs.com\u002Fv1\u002Fauth\u002Fsignup>\n- Credits and recharge: \u003Chttps:\u002F\u002Fapi-0.valkyrlabs.com\u002Fv1\u002Fcredits>\n\nCommercial model:\n- fresh signups should receive **500 starter credits** automatically\n- GrayMatter query and some higher-order operations consume credits\n- after the starter balance is exhausted, account recharge is required for full GrayMatter functionality\n\n## Immediate install and use\n\nFresh machine or fresh OpenClaw skill install:\n\n```bash\nscripts\u002Fgm-activate\n```\n\n`scripts\u002Fgm-activate` is the one-shot OpenClaw bootstrap script. It can either:\n- prompt the interactive user for username\u002Fpassword through the normal login flow, or\n- use credentials already present in environment variables\n\nThen it:\n- stores the session securely in Keychain\n- runs install validation\n- runs the smoke test\n- registers the OpenClaw server as an Agent\n- syncs the live OpenAPI\n- prints a schema summary\n\nExpanded manual flow if needed:\n\n```bash\nscripts\u002Fgm-login\nscripts\u002Fgm-install-check\nscripts\u002Fgm-smoke\nscripts\u002Fgm-register-agent\nscripts\u002Fgm-openapi-sync\nscripts\u002Fgm-openapi-summary\n```\n\n`scripts\u002Fgm-login` is the intended OpenClaw login UX: prompt once for username\u002Fpassword, store securely in Keychain, and let the rest of the skill use that session automatically.\n\n`scripts\u002Fgm-register-agent` should run immediately after auth succeeds so the OpenClaw server creates or refreshes an Agent record for itself in api-0 before normal operation.\n\nAfter that, GrayMatter is ready to use as primary durable memory and schema context.\n\n## Basic examples\n\n```bash\n# query durable memory\nscripts\u002Fgm-query \"graymatter launch\" 10\n\n# write durable context\nscripts\u002Fgm-write context \"GrayMatter is primary memory for this OpenClaw instance\"\n\n# write durable decision with tags\nscripts\u002Fgm-write decision \"Use GrayMatter as primary memory and file memory as backup\" openclaw \"graymatter,bootstrap,memory\"\n\n# one-shot activation for OpenClaw install or skill bootstrap\nscripts\u002Fgm-activate\n\n# register this OpenClaw instance as an agent in api-0\nscripts\u002Fgm-register-agent\n\n# inspect graph state\nscripts\u002Fgm-graph GET\n\n# fetch live OpenAPI and store a local cache for startup\u002Freference\nscripts\u002Fgm-openapi-sync\n\n# summarize the live schema in a human-usable way\nscripts\u002Fgm-openapi-summary\n\n# list organizations visible to the current account\nscripts\u002Fgm-entity Organization\n\n# fetch a specific customer by id\nscripts\u002Fgm-entity Customer 123\n\n# create a note directly if the account is allowed\nscripts\u002Fgm-entity Note POST '{\"title\":\"Launch note\",\"content\":\"GrayMatter launch in progress\"}'\n```\n\n## Auth\n\n`graymatter_api.sh` uses:\n- `VALKYR_API_BASE`, defaulting to `https:\u002F\u002Fapi-0.valkyrlabs.com\u002Fv1`\n- `VALKYR_KEYCHAIN_SERVICE`, defaulting to `VALKYR_AUTH`\n- macOS\u002FiCloud Keychain lookup for `VALKYR_AUTH`\n- `VALKYR_AUTH_TOKEN` if already present as an override\u002Fdebug path\n- `VALKYR_JWT_SESSION` as a compatible env fallback\n\nPreferred auth behavior is OpenClaw-first:\n- check Keychain for `VALKYR_AUTH` first\n- if present, reuse it automatically\n- otherwise prompt for username\u002Fpassword\n- exchange for a `VALKYR_AUTH` token\n- store it in Keychain\n\nIf activation can write\u002Fread by id and register the agent but semantic memory query is blocked by missing credits, treat that as a degraded startup state rather than total activation failure. Preserve auth, register the agent, sync the schema, and surface that query\u002Flist capability is limited until credits are available.\n\nDo not hardcode secrets into the skill.\nDo not print tokens.\nDo not require manual token handling as the normal setup path.\n\n## OpenAPI and schema loading\n\nThe live OpenAPI endpoint is:\n- `https:\u002F\u002Fapi-0.valkyrlabs.com\u002Fv1\u002Fapi-docs`\n\nThis skill expects the spec to be loaded at startup or during activation so the agent understands the environment it is entering.\n\nUse the spec to:\n- discover available entities\n- inspect CRUD capabilities\n- understand domain boundaries\n- adapt behavior to the current tenant\u002Fbusiness\n- operate as a business-native agent rather than a generic chatbot\n\nLocal cache path used by helper scripts:\n- `tmp\u002Fapi-docs.json`\n- `tmp\u002Fapi-docs.summary.md`\n\nTreat the live API docs as authoritative, but remember that actual access is still constrained by auth and RBAC.\n\n## Entire-schema operating guidance\n\nWhen helping in a GrayMatter-native environment:\n\n1. Query GrayMatter for durable context first\n2. Inspect the relevant business entities from the live schema second\n3. Use file memory only as fallback or bootstrap\n4. Keep durable memory concise and reusable\n5. Prefer authenticated API state over stale local assumptions\n\nExamples:\n- for sales work, inspect `Customer`, `Opportunity`, `SalesActivity`, `SalesPipeline`\n- for operations, inspect `Task`, `Workflow`, `WorkflowExecution`, `Application`\n- for content or CMS-like work, inspect `Note`, `MediaObject`, `FileRecord`, `Space`\n- for strategy, inspect `Goal`, `StrategicPriority`, `KeyMetric`\n- for agent coordination, inspect `Agent`, `SwarmOps`, `GrayMatter`, `MemoryEntry`\n\n## Write rules\n\n1. Keep writes deterministic and bounded\n2. Prefer one clear durable record over many noisy records\n3. Do not dump giant blobs into `MemoryEntry.text`\n4. Use the right object for the job, not only `MemoryEntry`\n5. Respect permission failures and surface them clearly\n6. If a known backend bug blocks a write path, fall back cleanly\n\n## Tag guidance\n\nWhen tag persistence is healthy, prefer normalized tags such as:\n- `graymatter`\n- `memory`\n- `launch`\n- `patchbot`\n- `salesbot`\n- `scribebot`\n\nCurrent caution:\n- some deployments may still have a `MemoryEntry.tags` persistence mismatch\n- `scripts\u002Fgm-write` should retry without tags when the backend rejects tagged writes\n\n## Scoped memory hierarchy\n\nUse `MemoryEntry.sourceChannel` as the primary retrieval scope key. It is the field that `gm-query` maps to the query `source` filter, so it should carry the most specific stable context identifier available.\n\nRecommended scope keys:\n- `codex:automation:\u003Cautomation-id>`\n- `codex:workspace:\u003Cworkspace-key>`\n- `codex:chat:\u003Cchat-id>`\n- `codex:session:\u003Csession-id>`\n\nWhen memory is backed by a file path, preserve the folder hierarchy as structured metadata in the `MemoryEntry.text` header and mirror the strongest scope into `sourceChannel`. For example, `$HOME\u002F.codex\u002Fautomations\u002Fmcp-and-skill-hunter\u002Fmemory.md` should become `sourceChannel=codex:automation:mcp-and-skill-hunter` with an audit header containing `scope`, `runtime`, `automationId`, `artifactPath`, and `sourceChannel`.\n\nThe helpers support this convention directly:\n\n```bash\nscripts\u002Fgm-write context \"handoff state\" --scope-path \"$HOME\u002F.codex\u002Fautomations\u002Fmcp-and-skill-hunter\u002Fmemory.md\"\nscripts\u002Fgm-query \"handoff\" 5 context --scope-path \"$HOME\u002F.codex\u002Fautomations\u002Fmcp-and-skill-hunter\u002Fmemory.md\"\n```\n\nTags are secondary hints only. Do not depend on tags for scoped retrieval until backend tag persistence is known healthy.\n\n## Failure handling\n\nIf api-0 is unavailable or a known schema\u002Fruntime bug blocks the exact write:\n- write the smallest safe fallback locally\n- say GrayMatter was intended but unavailable\n- preserve a replayable payload for later sync\n\nIf login authenticates successfully but no token appears in the response body, use the latest `scripts\u002Fgm-login`, which now treats `VALKYR_AUTH` as the primary contract and checks body, headers, and cookies accordingly.\n\nDo not pretend durable memory succeeded when it did not.\n\nKnown operational note:\n- `\u002FMemoryEntry\u002Fquery` may require credits even when write\u002Fread paths succeed\n- new signups should receive an automatic 500-credit grant so GrayMatter query works immediately during activation\n- after starter credits are exhausted, recharge is required for full GrayMatter functionality\n- signup: \u003Chttps:\u002F\u002Fapi-0.valkyrlabs.com\u002Fv1\u002Fauth\u002Fsignup>\n- credits and recharge: \u003Chttps:\u002F\u002Fapi-0.valkyrlabs.com\u002Fv1\u002Fcredits>\n- buy credits: \u003Chttps:\u002F\u002Fvalkyrlabs.com\u002Fbuy-credits>\n- human signup form: \u003Chttps:\u002F\u002Fvalkyrlabs.com\u002Ffunnel\u002Fwhite-paper>\n- `scripts\u002Fgraymatter_api.sh` prints both links on `INSUFFICIENT_FUNDS` and attempts a popup prompt on macOS\u002FWindows\n- optional overrides: `VALKYR_BUY_CREDITS_URL`, `VALKYR_HUMAN_SIGNUP_URL`\n\n## Local fallback\n\nUse local files only as backup, typically:\n- `memory\u002FYYYY-MM-DD.md`\n- `MEMORY.md`\n- `memory\u002Fgraymatter-fallback.json`\n\nGrayMatter remains the primary system of record whenever available.\n\n## Installability standard\n\nFor this skill to count as installable and immediately usable, a fresh user should be able to:\n\n1. install the skill\n2. authenticate with `scripts\u002Fgm-login` or env vars\n3. run `scripts\u002Fgm-install-check`\n4. run `scripts\u002Fgm-smoke`\n5. run `scripts\u002Fgm-register-agent`\n6. run `scripts\u002Fgm-openapi-sync`\n7. immediately query memory, write memory, inspect graph state, and inspect live business objects\n\nIf any of those fail, the install is not complete.\n","# GrayMatter\n\nGrayMatter is the installable OpenClaw skill for durable memory, shared graph state, and live organizational schema awareness through `api-0`.\n\n## Core rule\n\nThis skill is intentionally thin.\nIt defines when to use GrayMatter, what to write, and how to choose durable types.\nTransport resilience, retries, token refresh, fallback queues, and replay behavior belong to shared infrastructure and plugin\u002Fclient runtime, not this skill.\n\nUse GrayMatter as the **primary durable memory system**.\nUse local workspace files only as:\n- bootstrap context\n- fallback when api-0 is unavailable\n- a temporary scratchpad when durable writes are blocked\n\nGrayMatter is not only a note store.\nIt is the authenticated memory and object-graph layer that lets an OpenClaw instance inhabit the organization's live data model safely, within RBAC and the current account's permissions.\n\n## Startup behavior\n\nOn startup or first use in a workspace that depends on GrayMatter:\n\n0. If `scripts\u002Fgm-activate` is missing but `graymatter-bootstrap` exists, run `.\u002Fgraymatter-bootstrap` to restore runtime files from `graymatter.skill`\n1. Ensure auth is available\n2. Confirm install readiness\n3. Register the OpenClaw instance as an Agent record for itself in api-0\n4. Load the live OpenAPI from `https:\u002F\u002Fapi-0.valkyrlabs.com\u002Fv1\u002Fapi-docs`\n5. Treat that spec as the source of truth for the environment's available business objects and actions\n6. Use GrayMatter and the broader schema as the primary operational context\n\nMinimum activation flow:\n\n```bash\ntest -x scripts\u002Fgm-activate || .\u002Fgraymatter-bootstrap\nscripts\u002Fgm-activate\n```\n\nExpanded manual flow:\n\n```bash\nscripts\u002Fgm-login\nscripts\u002Fgm-install-check\nscripts\u002Fgm-smoke\nscripts\u002Fgm-register-agent\nscripts\u002Fgm-openapi-sync\n```\n\nAuth should be treated as an OpenClaw-managed first-run step.\nThe user should be prompted for `api-0` username and password, and the resulting session should be stored securely in macOS\u002FiCloud Keychain for reuse.\nThe user should not need to manually fetch or paste a raw auth token.\n\n## What this skill gives the agent\n\n### 1) Primary memory\n\nUse these first:\n- `\u002FMemoryEntry`\n- `\u002FMemoryEntry\u002Fquery`\n- `\u002FMemoryEntry\u002Fread`\n- `\u002FMemoryEntry\u002Fwrite`\n- `\u002FGrayMatter`\n- `\u002FSwarmOps\u002Fgraph`\n\nUse `MemoryEntry.type` intentionally:\n- `decision`\n- `todo`\n- `context`\n- `artifact`\n- `preference`\n\n### 2) Entire-schema awareness\n\nLoad the live OpenAPI spec and use it to understand the organization's environment.\nThis skill assumes the agent should understand and work across the available schema, not just memory endpoints.\n\nObserved live schema domains from `api-0` include, among many others:\n- `Organization`\n- `Customer`\n- `Opportunity`\n- `Invoice`\n- `Product`\n- `Application`\n- `Workbook`\n- `Workflow`\n- `Task`\n- `Note`\n- `MediaObject`\n- `FileRecord`\n- `SalesActivity`\n- `SalesPipeline`\n- `Goal`\n- `StrategicPriority`\n- `KeyMetric`\n- `Agent`\n- `Space`\n- `SwarmOps`\n- `GrayMatter`\n- `MemoryEntry`\n\nThis means a properly authenticated OpenClaw instance can understand the business as a live object graph, not as disconnected chat logs.\n\n### 3) Shared graph coordination\n\nUse SwarmOps and related graph endpoints when relationships matter:\n- bot coordination\n- entity relationships\n- workflow ownership\n- operating context that spans objects and agents\n\n## Scripts\n\nCore transport:\n- `scripts\u002Fgraymatter_api.sh`\n\nReadiness and auth:\n- `scripts\u002Fgm-login`\n- `scripts\u002Fgm-activate`\n- `scripts\u002Fgm-install-check`\n- `scripts\u002Fgm-smoke`\n- `scripts\u002Fgm-register-agent`\n- `scripts\u002Fgm-openapi-sync`\n- `scripts\u002Fgm-openapi-summary`\n\nMemory and graph helpers:\n- `scripts\u002Fgm-write`\n- `scripts\u002Fgm-query`\n- `scripts\u002Fgm-graph`\n- `scripts\u002Fgm-entity`\n\nLocal\u002Fserver packaging:\n- `scripts\u002Fgm-light-bootstrap`\n- `scripts\u002Fgm-light-up`\n- `scripts\u002Fgm-light-env`\n- `scripts\u002Fgm-light-json-smoke`\n- `scripts\u002Fpackage-local-server`\n\nMCP server:\n- `mcp-server\u002F` exposes `memory_write`, `memory_read`, `memory_query`, `graph_get`, `entity_list`, `entity_get`, `entity_create`, and `schema_summary`\n- set `VALKYR_API_BASE` to hosted api-0 for Cloud mode or to the running GrayMatter Light base URL for local ThorAPI mode\n\nDesign boundary:\n- these scripts are ergonomic wrappers for operators and agents\n- they must not duplicate retry\u002Fauth refresh\u002Ffallback\u002Freplay logic that already exists in shared infrastructure\n- if resilience behavior changes, update shared client\u002Fplugin contracts first, then keep this skill aligned\n\n## Account signup and credits\n\nFor a new GrayMatter account, use:\n- Signup: \u003Chttps:\u002F\u002Fapi-0.valkyrlabs.com\u002Fv1\u002Fauth\u002Fsignup>\n- Credits and recharge: \u003Chttps:\u002F\u002Fapi-0.valkyrlabs.com\u002Fv1\u002Fcredits>\n\nCommercial model:\n- fresh signups should receive **500 starter credits** automatically\n- GrayMatter query and some higher-order operations consume credits\n- after the starter balance is exhausted, account recharge is required for full GrayMatter functionality\n\n## Immediate install and use\n\nFresh machine or fresh OpenClaw skill install:\n\n```bash\nscripts\u002Fgm-activate\n```\n\n`scripts\u002Fgm-activate` is the one-shot OpenClaw bootstrap script. It can either:\n- prompt the interactive user for username\u002Fpassword through the normal login flow, or\n- use credentials already present in environment variables\n\nThen it:\n- stores the session securely in Keychain\n- runs install validation\n- runs the smoke test\n- registers the OpenClaw server as an Agent\n- syncs the live OpenAPI\n- prints a schema summary\n\nExpanded manual flow if needed:\n\n```bash\nscripts\u002Fgm-login\nscripts\u002Fgm-install-check\nscripts\u002Fgm-smoke\nscripts\u002Fgm-register-agent\nscripts\u002Fgm-openapi-sync\nscripts\u002Fgm-openapi-summary\n```\n\n`scripts\u002Fgm-login` is the intended OpenClaw login UX: prompt once for username\u002Fpassword, store securely in Keychain, and let the rest of the skill use that session automatically.\n\n`scripts\u002Fgm-register-agent` should run immediately after auth succeeds so the OpenClaw server creates or refreshes an Agent record for itself in api-0 before normal operation.\n\nAfter that, GrayMatter is ready to use as primary durable memory and schema context.\n\n## Basic examples\n\n```bash\n# query durable memory\nscripts\u002Fgm-query \"graymatter launch\" 10\n\n# write durable context\nscripts\u002Fgm-write context \"GrayMatter is primary memory for this OpenClaw instance\"\n\n# write durable decision with tags\nscripts\u002Fgm-write decision \"Use GrayMatter as primary memory and file memory as backup\" openclaw \"graymatter,bootstrap,memory\"\n\n# one-shot activation for OpenClaw install or skill bootstrap\nscripts\u002Fgm-activate\n\n# register this OpenClaw instance as an agent in api-0\nscripts\u002Fgm-register-agent\n\n# inspect graph state\nscripts\u002Fgm-graph GET\n\n# fetch live OpenAPI and store a local cache for startup\u002Freference\nscripts\u002Fgm-openapi-sync\n\n# summarize the live schema in a human-usable way\nscripts\u002Fgm-openapi-summary\n\n# list organizations visible to the current account\nscripts\u002Fgm-entity Organization\n\n# fetch a specific customer by id\nscripts\u002Fgm-entity Customer 123\n\n# create a note directly if the account is allowed\nscripts\u002Fgm-entity Note POST '{\"title\":\"Launch note\",\"content\":\"GrayMatter launch in progress\"}'\n```\n\n## Auth\n\n`graymatter_api.sh` uses:\n- `VALKYR_API_BASE`, defaulting to `https:\u002F\u002Fapi-0.valkyrlabs.com\u002Fv1`\n- `VALKYR_KEYCHAIN_SERVICE`, defaulting to `VALKYR_AUTH`\n- macOS\u002FiCloud Keychain lookup for `VALKYR_AUTH`\n- `VALKYR_AUTH_TOKEN` if already present as an override\u002Fdebug path\n- `VALKYR_JWT_SESSION` as a compatible env fallback\n\nPreferred auth behavior is OpenClaw-first:\n- check Keychain for `VALKYR_AUTH` first\n- if present, reuse it automatically\n- otherwise prompt for username\u002Fpassword\n- exchange for a `VALKYR_AUTH` token\n- store it in Keychain\n\nIf activation can write\u002Fread by id and register the agent but semantic memory query is blocked by missing credits, treat that as a degraded startup state rather than total activation failure. Preserve auth, register the agent, sync the schema, and surface that query\u002Flist capability is limited until credits are available.\n\nDo not hardcode secrets into the skill.\nDo not print tokens.\nDo not require manual token handling as the normal setup path.\n\n## OpenAPI and schema loading\n\nThe live OpenAPI endpoint is:\n- `https:\u002F\u002Fapi-0.valkyrlabs.com\u002Fv1\u002Fapi-docs`\n\nThis skill expects the spec to be loaded at startup or during activation so the agent understands the environment it is entering.\n\nUse the spec to:\n- discover available entities\n- inspect CRUD capabilities\n- understand domain boundaries\n- adapt behavior to the current tenant\u002Fbusiness\n- operate as a business-native agent rather than a generic chatbot\n\nLocal cache path used by helper scripts:\n- `tmp\u002Fapi-docs.json`\n- `tmp\u002Fapi-docs.summary.md`\n\nTreat the live API docs as authoritative, but remember that actual access is still constrained by auth and RBAC.\n\n## Entire-schema operating guidance\n\nWhen helping in a GrayMatter-native environment:\n\n1. Query GrayMatter for durable context first\n2. Inspect the relevant business entities from the live schema second\n3. Use file memory only as fallback or bootstrap\n4. Keep durable memory concise and reusable\n5. Prefer authenticated API state over stale local assumptions\n\nExamples:\n- for sales work, inspect `Customer`, `Opportunity`, `SalesActivity`, `SalesPipeline`\n- for operations, inspect `Task`, `Workflow`, `WorkflowExecution`, `Application`\n- for content or CMS-like work, inspect `Note`, `MediaObject`, `FileRecord`, `Space`\n- for strategy, inspect `Goal`, `StrategicPriority`, `KeyMetric`\n- for agent coordination, inspect `Agent`, `SwarmOps`, `GrayMatter`, `MemoryEntry`\n\n## Write rules\n\n1. Keep writes deterministic and bounded\n2. Prefer one clear durable record over many noisy records\n3. Do not dump giant blobs into `MemoryEntry.text`\n4. Use the right object for the job, not only `MemoryEntry`\n5. Respect permission failures and surface them clearly\n6. If a known backend bug blocks a write path, fall back cleanly\n\n## Tag guidance\n\nWhen tag persistence is healthy, prefer normalized tags such as:\n- `graymatter`\n- `memory`\n- `launch`\n- `patchbot`\n- `salesbot`\n- `scribebot`\n\nCurrent caution:\n- some deployments may still have a `MemoryEntry.tags` persistence mismatch\n- `scripts\u002Fgm-write` should retry without tags when the backend rejects tagged writes\n\n## Scoped memory hierarchy\n\nUse `MemoryEntry.sourceChannel` as the primary retrieval scope key. It is the field that `gm-query` maps to the query `source` filter, so it should carry the most specific stable context identifier available.\n\nRecommended scope keys:\n- `codex:automation:\u003Cautomation-id>`\n- `codex:workspace:\u003Cworkspace-key>`\n- `codex:chat:\u003Cchat-id>`\n- `codex:session:\u003Csession-id>`\n\nWhen memory is backed by a file path, preserve the folder hierarchy as structured metadata in the `MemoryEntry.text` header and mirror the strongest scope into `sourceChannel`. For example, `$HOME\u002F.codex\u002Fautomations\u002Fmcp-and-skill-hunter\u002Fmemory.md` should become `sourceChannel=codex:automation:mcp-and-skill-hunter` with an audit header containing `scope`, `runtime`, `automationId`, `artifactPath`, and `sourceChannel`.\n\nThe helpers support this convention directly:\n\n```bash\nscripts\u002Fgm-write context \"handoff state\" --scope-path \"$HOME\u002F.codex\u002Fautomations\u002Fmcp-and-skill-hunter\u002Fmemory.md\"\nscripts\u002Fgm-query \"handoff\" 5 context --scope-path \"$HOME\u002F.codex\u002Fautomations\u002Fmcp-and-skill-hunter\u002Fmemory.md\"\n```\n\nTags are secondary hints only. Do not depend on tags for scoped retrieval until backend tag persistence is known healthy.\n\n## Failure handling\n\nIf api-0 is unavailable or a known schema\u002Fruntime bug blocks the exact write:\n- write the smallest safe fallback locally\n- say GrayMatter was intended but unavailable\n- preserve a replayable payload for later sync\n\nIf login authenticates successfully but no token appears in the response body, use the latest `scripts\u002Fgm-login`, which now treats `VALKYR_AUTH` as the primary contract and checks body, headers, and cookies accordingly.\n\nDo not pretend durable memory succeeded when it did not.\n\nKnown operational note:\n- `\u002FMemoryEntry\u002Fquery` may require credits even when write\u002Fread paths succeed\n- new signups should receive an automatic 500-credit grant so GrayMatter query works immediately during activation\n- after starter credits are exhausted, recharge is required for full GrayMatter functionality\n- signup: \u003Chttps:\u002F\u002Fapi-0.valkyrlabs.com\u002Fv1\u002Fauth\u002Fsignup>\n- credits and recharge: \u003Chttps:\u002F\u002Fapi-0.valkyrlabs.com\u002Fv1\u002Fcredits>\n- buy credits: \u003Chttps:\u002F\u002Fvalkyrlabs.com\u002Fbuy-credits>\n- human signup form: \u003Chttps:\u002F\u002Fvalkyrlabs.com\u002Ffunnel\u002Fwhite-paper>\n- `scripts\u002Fgraymatter_api.sh` prints both links on `INSUFFICIENT_FUNDS` and attempts a popup prompt on macOS\u002FWindows\n- optional overrides: `VALKYR_BUY_CREDITS_URL`, `VALKYR_HUMAN_SIGNUP_URL`\n\n## Local fallback\n\nUse local files only as backup, typically:\n- `memory\u002FYYYY-MM-DD.md`\n- `MEMORY.md`\n- `memory\u002Fgraymatter-fallback.json`\n\nGrayMatter remains the primary system of record whenever available.\n\n## Installability standard\n\nFor this skill to count as installable and immediately usable, a fresh user should be able to:\n\n1. install the skill\n2. authenticate with `scripts\u002Fgm-login` or env vars\n3. run `scripts\u002Fgm-install-check`\n4. run `scripts\u002Fgm-smoke`\n5. run `scripts\u002Fgm-register-agent`\n6. run `scripts\u002Fgm-openapi-sync`\n7. immediately query memory, write memory, inspect graph state, and inspect live business objects\n\nIf any of those fail, the install is not complete.\n",{"name":5,"description":7},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fg\u002Fgraymatter",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill graymatter",{"tool":39,"command":40},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill graymatter",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill graymatter","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fg\u002Fgraymatter\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]