[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M780Y79VVMTFYCEDDXR97Q43":3,"skill-same:01M780Y79VVMTFYCEDDXR97Q43":51},{"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":31,"commitSha":32,"skillDirectory":33,"forksCount":14,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":36,"install":37,"resources":50},"01M780Y79VVMTFYCEDDXR97Q43","publish",null,"Share brain pages as beautiful password-protected HTML with zero LLM calls","moonstachain\u002Fgbrain-yuanli","moonstachain","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F20961570?v=4","01M780RGGTEZZFR5F5PP9BY2RP","HAY2045","01M780RGHMKRKAX5KHNJN779EV",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmoonstachain\u002Fgbrain-yuanli\u002Fblob\u002Fmain\u002Fskills\u002Fpublish\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: publish\ndescription: Share brain pages as beautiful password-protected HTML with zero LLM calls\ntriggers:\n  - \"share this page\"\n  - \"publish page\"\n  - \"create shareable link\"\ntools:\n  - get_page\n  - search\nmutating: false\n---\n\n# Publish Skill\n\nShare brain pages as beautiful, self-contained HTML documents. Optionally\npassword-protected with client-side AES-256-GCM encryption. No server needed.\n\nThis is a **code + skill pair**: the deterministic code (`gbrain publish`) does\nthe stripping, encrypting, and HTML generation. This skill tells you when and\nhow to use it. See [Thin Harness, Fat Skills](https:\u002F\u002Fx.com\u002Fgarrytan\u002Fstatus\u002F2042925773300908103)\nfor the architecture philosophy.\n\n## Contract\n\n- Published HTML is fully self-contained: no external dependencies, no server needed.\n- All private metadata (frontmatter, source citations, confirmation numbers, brain cross-links, timeline) is stripped before publishing.\n- Password protection uses AES-256-GCM with PBKDF2 key derivation; plaintext never appears in the encrypted HTML file.\n- Default is always encrypted unless the user explicitly requests \"open\", \"no password\", or \"public\".\n- External URLs (`https:\u002F\u002F...`) are preserved; only internal brain paths are stripped.\n\n## When to Publish\n\n- User asks to share a brain page, create a shareable link, or says \"give me a page\"\n- User wants to send a deal memo, person briefing, or research to someone external\n- User asks to publish a data room analysis or trip plan\n- Any time brain content needs to leave the brain without exposing the whole system\n\n## Default: ALWAYS ENCRYPT\n\nBrain content is private. Default to password-protected unless the user explicitly\nsays \"open\", \"no password\", or \"public\".\n\nIf no password is specified, auto-generate one. Share the password via a different\nchannel than the URL.\n\n## Quick Reference\n\n```bash\n# Basic publish (outputs local HTML file)\ngbrain publish brain\u002Fcompanies\u002Facme.md\n\n# Password protected (auto-generate password)\ngbrain publish brain\u002Fcompanies\u002Facme.md --password\n\n# Password protected (specific password)\ngbrain publish brain\u002Fcompanies\u002Facme.md --password \"secret123\"\n\n# Custom title\ngbrain publish brain\u002Fcompanies\u002Facme.md --password --title \"Acme -- Deal Analysis\"\n\n# Custom output path\ngbrain publish brain\u002Fcompanies\u002Facme.md --out \u002Ftmp\u002Facme-share.html\n```\n\n## What Gets Stripped\n\nThe publish command automatically removes all private\u002Finternal data:\n\n| Stripped | Example | Why |\n|---------|---------|-----|\n| YAML frontmatter | `title:`, `type:`, `tags:` | Internal metadata |\n| `[Source: ...]` citations | All formats | Provenance is internal |\n| Confirmation numbers | `ABC123DEF` -> \"on file\" | PII\u002Fbooking data |\n| Brain cross-links | `[Jane](..\u002Fpeople\u002Fjane.md)` -> `Jane` | Internal paths |\n| Timeline section | Everything below `---` \u002F `## Timeline` | Raw evidence log |\n| \"See also\" lines | Internal references | Brain navigation |\n\n**Preserved:** external URLs (`https:\u002F\u002F...`), all other content.\n\n## Sharing Workflows\n\n### Option A: Local file (simplest)\n\n```bash\ngbrain publish brain\u002Fpeople\u002Fjane-doe.md --password --out ~\u002FDesktop\u002Fjane-briefing.html\n```\n\nShare the HTML file via email, Slack, Airdrop. Share the password separately.\n\n### Option B: Upload to cloud storage\n\n```bash\n# Publish locally first\ngbrain publish brain\u002Fcompanies\u002Facme.md --password \"secret\" --out \u002Ftmp\u002Facme.html\n\n# Upload to Supabase Storage\ngbrain files upload \u002Ftmp\u002Facme.html --page shares\u002Facme\n\n# Get a signed URL (1-hour expiry)\ngbrain files signed-url shares\u002Facme\u002Facme.html\n```\n\nShare the signed URL + password. URL expires in 1 hour. Re-generate as needed.\n\n### Option C: Static hosting (Render, Netlify, S3)\n\nUpload the HTML file to any static hosting service. The file is self-contained,\nno server logic needed. Password-protected files work entirely client-side via\nWeb Crypto API.\n\n### Option D: GitHub Pages \u002F Gist\n\n```bash\ngbrain publish brain\u002Ftrips\u002Fjapan-2026.md --out trip.html\n# Upload to a GitHub Gist or Pages repo\n```\n\n## Password Protection Details\n\n- **Algorithm:** AES-256-GCM\n- **Key derivation:** PBKDF2 with 100K iterations, SHA-256\n- **Salt:** Random 16 bytes per encryption\n- **IV:** Random 12 bytes per encryption\n- **Decryption:** Client-side via Web Crypto API (SubtleCrypto)\n- **No server auth needed** -- the HTML file is self-contained\n- **\"Remember on this device\"** -- saves password in localStorage\n\nWhen encrypted, the published HTML contains ONLY ciphertext. The plaintext is\nnot present anywhere in the file.\n\n## Updating a Published Page\n\nRe-run the publish command with the same output path:\n```bash\ngbrain publish brain\u002Fcompanies\u002Facme.md --password \"same-password\" --out shares\u002Facme.html\n```\n\nSame file, same URL (if hosted), updated content.\n\n## Revoking Access\n\nDelete the file. If using signed URLs, the URL expires automatically (1 hour).\nIf using static hosting, remove the file from the host.\n\n## Anti-Patterns\n\n- **Publishing without encryption.** Brain content is private. Default to password-protected unless the user explicitly says \"open\", \"no password\", or \"public\".\n- **Sharing password and URL in the same channel.** Always share the password via a different channel than the URL for security.\n- **Assuming the user wants raw markdown.** The publish command produces beautiful HTML. Don't copy-paste markdown when `gbrain publish` exists.\n- **Including internal metadata.** Never manually share content that contains frontmatter, source citations, or timeline sections. Let the publish command strip it.\n\n## Output Format\n\n```\nPUBLISHED: [page title]\n========================\n\nFile: [output path]\nEncrypted: [yes (AES-256-GCM) \u002F no]\nPassword: [auto-generated password \u002F user-provided \u002F none]\nSize: [file size]\n\nShare the file via: [email \u002F Slack \u002F Airdrop \u002F cloud upload]\nShare the password via: [a different channel]\n```\n\n## Tools Used\n\n- `gbrain publish` -- deterministic HTML generation (no LLM calls)\n- `gbrain files upload` -- upload to cloud storage (optional)\n- `gbrain files signed-url` -- generate access links (optional)\n","# Publish Skill\n\nShare brain pages as beautiful, self-contained HTML documents. Optionally\npassword-protected with client-side AES-256-GCM encryption. No server needed.\n\nThis is a **code + skill pair**: the deterministic code (`gbrain publish`) does\nthe stripping, encrypting, and HTML generation. This skill tells you when and\nhow to use it. See [Thin Harness, Fat Skills](https:\u002F\u002Fx.com\u002Fgarrytan\u002Fstatus\u002F2042925773300908103)\nfor the architecture philosophy.\n\n## Contract\n\n- Published HTML is fully self-contained: no external dependencies, no server needed.\n- All private metadata (frontmatter, source citations, confirmation numbers, brain cross-links, timeline) is stripped before publishing.\n- Password protection uses AES-256-GCM with PBKDF2 key derivation; plaintext never appears in the encrypted HTML file.\n- Default is always encrypted unless the user explicitly requests \"open\", \"no password\", or \"public\".\n- External URLs (`https:\u002F\u002F...`) are preserved; only internal brain paths are stripped.\n\n## When to Publish\n\n- User asks to share a brain page, create a shareable link, or says \"give me a page\"\n- User wants to send a deal memo, person briefing, or research to someone external\n- User asks to publish a data room analysis or trip plan\n- Any time brain content needs to leave the brain without exposing the whole system\n\n## Default: ALWAYS ENCRYPT\n\nBrain content is private. Default to password-protected unless the user explicitly\nsays \"open\", \"no password\", or \"public\".\n\nIf no password is specified, auto-generate one. Share the password via a different\nchannel than the URL.\n\n## Quick Reference\n\n```bash\n# Basic publish (outputs local HTML file)\ngbrain publish brain\u002Fcompanies\u002Facme.md\n\n# Password protected (auto-generate password)\ngbrain publish brain\u002Fcompanies\u002Facme.md --password\n\n# Password protected (specific password)\ngbrain publish brain\u002Fcompanies\u002Facme.md --password \"secret123\"\n\n# Custom title\ngbrain publish brain\u002Fcompanies\u002Facme.md --password --title \"Acme -- Deal Analysis\"\n\n# Custom output path\ngbrain publish brain\u002Fcompanies\u002Facme.md --out \u002Ftmp\u002Facme-share.html\n```\n\n## What Gets Stripped\n\nThe publish command automatically removes all private\u002Finternal data:\n\n| Stripped | Example | Why |\n|---------|---------|-----|\n| YAML frontmatter | `title:`, `type:`, `tags:` | Internal metadata |\n| `[Source: ...]` citations | All formats | Provenance is internal |\n| Confirmation numbers | `ABC123DEF` -> \"on file\" | PII\u002Fbooking data |\n| Brain cross-links | `[Jane](..\u002Fpeople\u002Fjane.md)` -> `Jane` | Internal paths |\n| Timeline section | Everything below `---` \u002F `## Timeline` | Raw evidence log |\n| \"See also\" lines | Internal references | Brain navigation |\n\n**Preserved:** external URLs (`https:\u002F\u002F...`), all other content.\n\n## Sharing Workflows\n\n### Option A: Local file (simplest)\n\n```bash\ngbrain publish brain\u002Fpeople\u002Fjane-doe.md --password --out ~\u002FDesktop\u002Fjane-briefing.html\n```\n\nShare the HTML file via email, Slack, Airdrop. Share the password separately.\n\n### Option B: Upload to cloud storage\n\n```bash\n# Publish locally first\ngbrain publish brain\u002Fcompanies\u002Facme.md --password \"secret\" --out \u002Ftmp\u002Facme.html\n\n# Upload to Supabase Storage\ngbrain files upload \u002Ftmp\u002Facme.html --page shares\u002Facme\n\n# Get a signed URL (1-hour expiry)\ngbrain files signed-url shares\u002Facme\u002Facme.html\n```\n\nShare the signed URL + password. URL expires in 1 hour. Re-generate as needed.\n\n### Option C: Static hosting (Render, Netlify, S3)\n\nUpload the HTML file to any static hosting service. The file is self-contained,\nno server logic needed. Password-protected files work entirely client-side via\nWeb Crypto API.\n\n### Option D: GitHub Pages \u002F Gist\n\n```bash\ngbrain publish brain\u002Ftrips\u002Fjapan-2026.md --out trip.html\n# Upload to a GitHub Gist or Pages repo\n```\n\n## Password Protection Details\n\n- **Algorithm:** AES-256-GCM\n- **Key derivation:** PBKDF2 with 100K iterations, SHA-256\n- **Salt:** Random 16 bytes per encryption\n- **IV:** Random 12 bytes per encryption\n- **Decryption:** Client-side via Web Crypto API (SubtleCrypto)\n- **No server auth needed** -- the HTML file is self-contained\n- **\"Remember on this device\"** -- saves password in localStorage\n\nWhen encrypted, the published HTML contains ONLY ciphertext. The plaintext is\nnot present anywhere in the file.\n\n## Updating a Published Page\n\nRe-run the publish command with the same output path:\n```bash\ngbrain publish brain\u002Fcompanies\u002Facme.md --password \"same-password\" --out shares\u002Facme.html\n```\n\nSame file, same URL (if hosted), updated content.\n\n## Revoking Access\n\nDelete the file. If using signed URLs, the URL expires automatically (1 hour).\nIf using static hosting, remove the file from the host.\n\n## Anti-Patterns\n\n- **Publishing without encryption.** Brain content is private. Default to password-protected unless the user explicitly says \"open\", \"no password\", or \"public\".\n- **Sharing password and URL in the same channel.** Always share the password via a different channel than the URL for security.\n- **Assuming the user wants raw markdown.** The publish command produces beautiful HTML. Don't copy-paste markdown when `gbrain publish` exists.\n- **Including internal metadata.** Never manually share content that contains frontmatter, source citations, or timeline sections. Let the publish command strip it.\n\n## Output Format\n\n```\nPUBLISHED: [page title]\n========================\n\nFile: [output path]\nEncrypted: [yes (AES-256-GCM) \u002F no]\nPassword: [auto-generated password \u002F user-provided \u002F none]\nSize: [file size]\n\nShare the file via: [email \u002F Slack \u002F Airdrop \u002F cloud upload]\nShare the password via: [a different channel]\n```\n\n## Tools Used\n\n- `gbrain publish` -- deterministic HTML generation (no LLM calls)\n- `gbrain files upload` -- upload to cloud storage (optional)\n- `gbrain files signed-url` -- generate access links (optional)\n",{"name":5,"tools":24,"mutating":20,"triggers":27,"description":7},[25,26],"get_page","search",[28,29,30],"share this page","publish page","create shareable link","main","8a1ba5bf6fb27ae3c622d36b4287f8a96555c805","skills\u002Fpublish","https:\u002F\u002Fgithub.com\u002Fmoonstachain\u002Fgbrain-yuanli","https:\u002F\u002Fgithub.com\u002Fmoonstachain","2026-09-16 09:55:03",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add moonstachain\u002Fgbrain-yuanli --skill publish",{"tool":43,"command":44},"bunx","bunx skills add moonstachain\u002Fgbrain-yuanli --skill publish",{"tool":46,"command":47},"pnpm","pnpm dlx skills add moonstachain\u002Fgbrain-yuanli --skill publish","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmoonstachain\u002Fgbrain-yuanli\u002Fblob\u002Fmain\u002Fskills\u002Fpublish\u002FSKILL.md",true,[],[52,58,64,71,78,85],{"skillNo":53,"name":54,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M7813JZE1PE2C5VYE92ENW0K","query-helper","https:\u002F\u002Fgithub.com\u002Fmoonstachain\u002Fgbrain-yuanli\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fskill-catalog\u002Fskills\u002Fquery-helper\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7813J1CEF860359MM2X0E9F","broken","https:\u002F\u002Fgithub.com\u002Fmoonstachain\u002Fgbrain-yuanli\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fskill-catalog\u002Fskills\u002Fbroken\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7813EM189HRGPS6JMYWGDBY","brain-ops","Read, enrich, and write brain pages with source attribution.","https:\u002F\u002Fgithub.com\u002Fmoonstachain\u002Fgbrain-yuanli\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fskill-catalog\u002Fskills\u002Fbrain-ops\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7813BNHV1F88ZSEZC7FVE30","signal-detector","Always-on ambient signal capture for the OpenClaw reference fixture.","https:\u002F\u002Fgithub.com\u002Fmoonstachain\u002Fgbrain-yuanli\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fopenclaw-reference-minimal\u002Fskills\u002Fsignal-detector\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"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},"01M78138QAK5AM8ZJV3DEYZZZN","query","Look up brain pages in the OpenClaw reference fixture.","https:\u002F\u002Fgithub.com\u002Fmoonstachain\u002Fgbrain-yuanli\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fopenclaw-reference-minimal\u002Fskills\u002Fquery\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M78135RC63M8RZNK0TTHRBTS","context-now","ALWAYS-ON time-sensitivity discipline for the OpenClaw reference fixture.","https:\u002F\u002Fgithub.com\u002Fmoonstachain\u002Fgbrain-yuanli\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fopenclaw-reference-minimal\u002Fskills\u002Fcontext-now\u002FSKILL.md",[],[]]