[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DVABTFPR7V3AERMYR0EY0A":3,"skill-same:01M7DVABTFPR7V3AERMYR0EY0A":61},{"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":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":45,"ownerDescription":46,"updatedAt":47,"install":48,"resources":60},"01M7DVABTFPR7V3AERMYR0EY0A","storage-manifest",null,"The storage shelf: one card per item archived to object storage (B2,\nSupabase Storage, S3). Register a card after a verified archive, find a\ncard before any restore, restore through the agent's own restore skill with\nthe card's restore form, then record the restore on the card.","garrytan\u002Fgbrain","garrytan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F19957?v=4","01M6DJCCDDG53MTYYRTXAXFG17","Garry Tan","01M6MZQZCEN3RRMD33E1X9ZZR9",32977,"MIT","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain\u002Fblob\u002Fmaster\u002Fplugin\u002Fskills\u002Fstorage-manifest\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: storage-manifest\nversion: 1.0.0\ndescription: |\n  The storage shelf: one card per item archived to object storage (B2,\n  Supabase Storage, S3). Register a card after a verified archive, find a\n  card before any restore, restore through the agent's own restore skill with\n  the card's restore form, then record the restore on the card.\ntriggers:\n  - \"bring back\"\n  - \"restore the archived\"\n  - \"where did X go\"\n  - \"what's in B2\"\n  - \"what did we archive\"\n  - \"register this archive\"\ntools:\n  - storage_find\n  - storage_get\n  - storage_list\nmutating: true\nwrites_pages: false\nwhen_to_use: \"Use when the user asks: \\\"bring back\\\", \\\"restore the archived\\\", \\\"where did X go\\\", \\\"what's in B2\\\", \\\"what did we archive\\\".\"\n---\n\n# Storage manifest\n\n> **Convention:** see [conventions\u002Fbrain-first.md](..\u002Fconventions\u002Fbrain-first.md):\n> look on the shelf with `gbrain storage-find` before listing a bucket or asking the user where something went.\n\nFull guide: `docs\u002Fguides\u002Fstorage-manifest.md`.\n\n## Contract\n\n- **Register after the archive is verified, never before.** Once the upload's checksum or snapshot check passed,\n  run `gbrain storage-register --card '\u003Cjson>'` (or pipe the card on stdin) from the trusted local CLI. The card\n  names every copy (store, bucket, path, tool, repository, snapshot, size, hash and its kind, when verified), the\n  original path, why it was archived, and the restore form `{ skill, args }`.\n- **Find before restore.** `gbrain storage-find \"\u003Cthe user's words>\" --json` (MCP `storage_find`), then\n  `gbrain storage-get \u003Cid> --json` for the copies and the restore form. A miss lists the closest cards: show them.\n  On `storage_record_invalid` the stored card is broken: tell the user and do not restore from it.\n- **Restore through the agent's own restore skill.** Run the skill the card's `restore.skill` names with\n  `restore.args`. Cards never carry commands or credentials; the restore skill reads credentials from its own\n  environment. gbrain never contacts a store.\n- **Record the restore.** After the restore, run `gbrain storage-update \u003Cid> --expected-revision \u003Crev>\n  --restored-to \u003Cpath>` with `--restored-verified` only when the checksums matched. `\u003Crev>` is the revision\n  `storage-get` returned; on `storage_revision_conflict` read the card again and update once.\n- **Interim records** (`stored-object` pages under `storage-manifest\u002F` written before the shelf existed) move with\n  `gbrain storage adopt`: preview, show the user every refused field, then apply the printed command.\n\n## Anti-Patterns\n\n- Putting a command, a password, a signed URL or an environment assignment on a card: it is refused.\n- Writing the shelf with `put_page` or `remember`: refused `storage_source_managed`.\n- Restoring from a bucket listing without reading the card first.\n- Recording `--restored-verified` without checking the hashes.\n\n## Output Format\n\nTell the user what the card says in plain words: what the item is, where each copy lives, its size, when it was last\nverified, and which skill restores it. After a restore, say where it landed and whether the checksums matched.\n\n## When it fails\n\nRead the refusal's `code` and follow its `fix` (see [the agent operator protocol](..\u002Fconventions\u002Fagent-operator-protocol.md)).\n`storage_manifest_missing` on a brain with a Git checkout means the shelf is not hosted yet: relay the\n`gbrain storage init` preview to the user.\n","# Storage manifest\n\n> **Convention:** see [conventions\u002Fbrain-first.md](..\u002Fconventions\u002Fbrain-first.md):\n> look on the shelf with `gbrain storage-find` before listing a bucket or asking the user where something went.\n\nFull guide: `docs\u002Fguides\u002Fstorage-manifest.md`.\n\n## Contract\n\n- **Register after the archive is verified, never before.** Once the upload's checksum or snapshot check passed,\n  run `gbrain storage-register --card '\u003Cjson>'` (or pipe the card on stdin) from the trusted local CLI. The card\n  names every copy (store, bucket, path, tool, repository, snapshot, size, hash and its kind, when verified), the\n  original path, why it was archived, and the restore form `{ skill, args }`.\n- **Find before restore.** `gbrain storage-find \"\u003Cthe user's words>\" --json` (MCP `storage_find`), then\n  `gbrain storage-get \u003Cid> --json` for the copies and the restore form. A miss lists the closest cards: show them.\n  On `storage_record_invalid` the stored card is broken: tell the user and do not restore from it.\n- **Restore through the agent's own restore skill.** Run the skill the card's `restore.skill` names with\n  `restore.args`. Cards never carry commands or credentials; the restore skill reads credentials from its own\n  environment. gbrain never contacts a store.\n- **Record the restore.** After the restore, run `gbrain storage-update \u003Cid> --expected-revision \u003Crev>\n  --restored-to \u003Cpath>` with `--restored-verified` only when the checksums matched. `\u003Crev>` is the revision\n  `storage-get` returned; on `storage_revision_conflict` read the card again and update once.\n- **Interim records** (`stored-object` pages under `storage-manifest\u002F` written before the shelf existed) move with\n  `gbrain storage adopt`: preview, show the user every refused field, then apply the printed command.\n\n## Anti-Patterns\n\n- Putting a command, a password, a signed URL or an environment assignment on a card: it is refused.\n- Writing the shelf with `put_page` or `remember`: refused `storage_source_managed`.\n- Restoring from a bucket listing without reading the card first.\n- Recording `--restored-verified` without checking the hashes.\n\n## Output Format\n\nTell the user what the card says in plain words: what the item is, where each copy lives, its size, when it was last\nverified, and which skill restores it. After a restore, say where it landed and whether the checksums matched.\n\n## When it fails\n\nRead the refusal's `code` and follow its `fix` (see [the agent operator protocol](..\u002Fconventions\u002Fagent-operator-protocol.md)).\n`storage_manifest_missing` on a brain with a Git checkout means the shelf is not hosted yet: relay the\n`gbrain storage init` preview to the user.\n",{"name":5,"tools":24,"version":28,"mutating":29,"triggers":30,"description":37,"when_to_use":38,"writes_pages":20},[25,26,27],"storage_find","storage_get","storage_list","1.0.0",true,[31,32,33,34,35,36],"bring back","restore the archived","where did X go","what's in B2","what did we archive","register this archive","The storage shelf: one card per item archived to object storage (B2,\nSupabase Storage, S3). Register a card after a verified archive, find a\ncard before any restore, restore through the agent's own restore skill with\nthe card's restore form, then record the restore on the card.\n","Use when the user asks: \"bring back\", \"restore the archived\", \"where did X go\", \"what's in B2\", \"what did we archive\".","master","b3d43b163f634082bf15e8c0f08a0eb0c016380d","plugin\u002Fskills\u002Fstorage-manifest",4929,"https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain","https:\u002F\u002Fgithub.com\u002Fgarrytan","https:\u002F\u002Fblog.garrytan.com","Writes software, dreams. ","2026-11-15 03:57:03",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":29},[50,53,56],{"tool":51,"command":52},"npx","npx skills add garrytan\u002Fgbrain --skill storage-manifest",{"tool":54,"command":55},"bunx","bunx skills add garrytan\u002Fgbrain --skill storage-manifest",{"tool":57,"command":58},"pnpm","pnpm dlx skills add garrytan\u002Fgbrain --skill storage-manifest","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain\u002Fblob\u002Fmaster\u002Fplugin\u002Fskills\u002Fstorage-manifest\u002FSKILL.md",[],[62,69,75,80,85,90],{"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},"01M7DVD1SVD1CK2S6M5MR0NKVH","beta","Synthetic fixture skill.","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fguards\u002Fcheck-skill-health.ts\u002Fgood\u002Fskills\u002Fbeta\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"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":72,"categories":73,"keywords":74,"publishedAt":19},"01M7DVD0T1465DP7CGPVNGK5XH","alpha","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fguards\u002Fcheck-skill-health.ts\u002Fgood\u002Fskills\u002Falpha\u002FSKILL.md",[],[],{"skillNo":76,"name":71,"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":77,"categories":78,"keywords":79,"publishedAt":19},"01M7DVCZWYBFRTE76082QMZCK8","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fguards\u002Fcheck-skill-health.ts\u002Fbad\u002Fskills\u002Falpha\u002FSKILL.md",[],[],{"skillNo":81,"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":82,"categories":83,"keywords":84,"publishedAt":19},"01M7DVCYYGRM05Z2MWH37CYGHH","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fguards\u002Fcheck-skill-health.ts\u002Fbad-undeclared\u002Fskills\u002Fbeta\u002FSKILL.md",[],[],{"skillNo":86,"name":71,"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":87,"categories":88,"keywords":89,"publishedAt":19},"01M7DVCXRT85704NBBZ73F59KP","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fguards\u002Fcheck-skill-health.ts\u002Fbad-undeclared\u002Fskills\u002Falpha\u002FSKILL.md",[],[],{"skillNo":91,"name":71,"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":92,"categories":93,"keywords":94,"publishedAt":19},"01M7DVCWR4M8HWJVM1CXB7K1VN","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fguards\u002Fcheck-skill-health.ts\u002Fbad-tool\u002Fskills\u002Falpha\u002FSKILL.md",[],[]]