[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75KJSEX5CG07P3TYWB3YEQF":3,"skill-same:01M75KJSEX5CG07P3TYWB3YEQF":54},{"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":32,"commitSha":33,"skillDirectory":34,"forksCount":14,"repositoryHtmlUrl":35,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":37,"ownerDescription":38,"updatedAt":39,"install":40,"resources":53},"01M75KJSEX5CG07P3TYWB3YEQF","publish",null,"Share brain pages as beautiful password-protected HTML with zero LLM calls","cheRoma\u002Fgbrain-link-chat","cheRoma","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F265356812?v=4","01M75JVGAJEZK04E1THSDHYVNK","Roman Cherepanov","01M75JVGB5SWY40H959C3QXRAQ",0,"MIT","https:\u002F\u002Fgithub.com\u002FcheRoma\u002Fgbrain-link-chat\u002Fblob\u002Ffeat\u002Flink-chat-distiller\u002Fplugin\u002Fskills\u002Fpublish\u002FSKILL.md",[],[],"2026-11-12 13:55:43",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\nwhen_to_use: \"Use when the user asks: \\\"share this page\\\", \\\"publish page\\\", \\\"create shareable link\\\".\"\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## When it fails\n\nFollow the [agent operator protocol](..\u002Fconventions\u002Fagent-operator-protocol.md) for any gbrain error `code`, exit code, `[AGENT]` block or notice block. Specific to this skill:\n\n- The source page returns `page_not_found`: resolve the real slug first; never publish a guessed page.\n- `gbrain files upload` \u002F `gbrain files signed-url` fails (storage not configured, `bucket_not_found`): tell the user publishing needs storage and run `gbrain doctor --json`; do not paste private page content instead.\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## When it fails\n\nFollow the [agent operator protocol](..\u002Fconventions\u002Fagent-operator-protocol.md) for any gbrain error `code`, exit code, `[AGENT]` block or notice block. Specific to this skill:\n\n- The source page returns `page_not_found`: resolve the real slug first; never publish a guessed page.\n- `gbrain files upload` \u002F `gbrain files signed-url` fails (storage not configured, `bucket_not_found`): tell the user publishing needs storage and run `gbrain doctor --json`; do not paste private page content instead.\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,"when_to_use":31},[25,26],"get_page","search",[28,29,30],"share this page","publish page","create shareable link","Use when the user asks: \"share this page\", \"publish page\", \"create shareable link\".","feat\u002Flink-chat-distiller","b7935e119783c2f35d6d182ede452faf32de675c","plugin\u002Fskills\u002Fpublish","https:\u002F\u002Fgithub.com\u002FcheRoma\u002Fgbrain-link-chat","https:\u002F\u002Fgithub.com\u002FcheRoma","https:\u002F\u002Fostov.dev","Engineer and founder of Ostov. Websites, Telegram apps, business automation and ERP\u002FCRM integrations.","2026-11-12 20:40:42",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add cheRoma\u002Fgbrain-link-chat --skill publish",{"tool":46,"command":47},"bunx","bunx skills add cheRoma\u002Fgbrain-link-chat --skill publish",{"tool":49,"command":50},"pnpm","pnpm dlx skills add cheRoma\u002Fgbrain-link-chat --skill publish","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FcheRoma\u002Fgbrain-link-chat\u002Fblob\u002Ffeat\u002Flink-chat-distiller\u002Fplugin\u002Fskills\u002Fpublish\u002FSKILL.md",true,[],[55,61,67,74,81,88],{"skillNo":56,"name":57,"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":58,"categories":59,"keywords":60,"publishedAt":19},"01M75M5HR90P229V66Q4Q1GM0W","query-helper","https:\u002F\u002Fgithub.com\u002FcheRoma\u002Fgbrain-link-chat\u002Fblob\u002Ffeat\u002Flink-chat-distiller\u002Ftest\u002Ffixtures\u002Fskill-catalog\u002Fskills\u002Fquery-helper\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"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":64,"categories":65,"keywords":66,"publishedAt":19},"01M75M5GZ1WQB7NHR07QV38YB8","broken","https:\u002F\u002Fgithub.com\u002FcheRoma\u002Fgbrain-link-chat\u002Fblob\u002Ffeat\u002Flink-chat-distiller\u002Ftest\u002Ffixtures\u002Fskill-catalog\u002Fskills\u002Fbroken\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M75M5FDJV3M4GP71SKD31P33","brain-ops","Read, enrich, and write brain pages with source attribution.","https:\u002F\u002Fgithub.com\u002FcheRoma\u002Fgbrain-link-chat\u002Fblob\u002Ffeat\u002Flink-chat-distiller\u002Ftest\u002Ffixtures\u002Fskill-catalog\u002Fskills\u002Fbrain-ops\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M75M5DYW3WBGDC6M90YMC843","meeting-prep","Build a briefing before you meet someone, from their recent threads, open loops and what they care about.","https:\u002F\u002Fgithub.com\u002FcheRoma\u002Fgbrain-link-chat\u002Fblob\u002Ffeat\u002Flink-chat-distiller\u002Ftest\u002Ffixtures\u002Fskill-catalog-query\u002Fskills\u002Fmeeting-prep\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M75M5CJZX22MV7XKJQYEMC9Y","inbox-zero","Triage the inbox into replies, delegations and archives.","https:\u002F\u002Fgithub.com\u002FcheRoma\u002Fgbrain-link-chat\u002Fblob\u002Ffeat\u002Flink-chat-distiller\u002Ftest\u002Ffixtures\u002Fskill-catalog-query\u002Fskills\u002Finbox-zero\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"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},"01M75M5B953478ACM9X3MPAX3P","deal-memo","Draft an investment memo from the deal pages and the founder history already in the brain.","https:\u002F\u002Fgithub.com\u002FcheRoma\u002Fgbrain-link-chat\u002Fblob\u002Ffeat\u002Flink-chat-distiller\u002Ftest\u002Ffixtures\u002Fskill-catalog-query\u002Fskills\u002Fdeal-memo\u002FSKILL.md",[],[]]