[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75KP7FVS7VC3AWXV9MSVGM1":3,"skill-same:01M75KP7FVS7VC3AWXV9MSVGM1":57},{"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":36,"commitSha":37,"skillDirectory":38,"forksCount":14,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":41,"ownerDescription":42,"updatedAt":43,"install":44,"resources":56},"01M75KP7FVS7VC3AWXV9MSVGM1","webhook-transforms",null,"Generic framework for converting external events (SMS, meetings, social mentions)\ninto brain-ingestible signals. Define a transform function, register a webhook URL,\nand incoming events get processed through the brain pipeline.","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\u002Fwebhook-transforms\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: webhook-transforms\nversion: 1.0.0\ndescription: |\n  Generic framework for converting external events (SMS, meetings, social mentions)\n  into brain-ingestible signals. Define a transform function, register a webhook URL,\n  and incoming events get processed through the brain pipeline.\ntriggers:\n  - \"set up webhook\"\n  - \"process webhook event\"\n  - \"transform this event\"\ntools:\n  - put_page\n  - add_timeline_entry\n  - search\nmutating: true\nwhen_to_use: \"Use when the user asks: \\\"set up webhook\\\", \\\"process webhook event\\\", \\\"transform this event\\\".\"\n---\n\n# Webhook Transforms\n\n## Contract\n\nThis skill guarantees:\n- External events are transformed into brain pages with proper citations\n- Raw payloads are preserved (dead-letter queue if transform fails)\n- Entity extraction runs on every transformed event\n- Input sanitization: no raw HTML\u002Fscript passes to brain pages\n- Error handling: transform failure logs raw payload, retries once\n\n## Phases\n\n1. **Define transform.** Map event schema to brain page format:\n   - Input: raw webhook payload (JSON)\n   - Output: brain page content (markdown) + metadata (slug, type, citations)\n   - Must sanitize: strip HTML tags, escape script content\n\n2. **Register webhook URL.** Provide the external service with the webhook endpoint.\n\n3. **On event received:**\n   - Parse payload\n   - Run transform function\n   - Write brain page via `gbrain put`\n   - Extract entities, run enrichment\n   - Add timeline entries to mentioned entities\n   - Sync: `gbrain sync`\n\n4. **Error handling:**\n   - If transform throws: log raw payload to `_dead-letter\u002F{timestamp}.md`\n   - Surface error type to agent\n   - Retry once\n   - Don't lose events\n\n## Example Transforms\n\n### SMS Received\n```\nInput: {from: \"+1555...\", body: \"Meeting moved to 3pm\", timestamp: \"...\"}\nOutput: Timeline entry on sender's brain page + task update if action item detected\n```\n\n### Meeting Completed\n```\nInput: {title: \"Weekly sync\", attendees: [...], transcript: \"...\", summary: \"...\"}\nOutput: Delegate to meeting-ingestion skill\n```\n\n### Social Mention\n```\nInput: {platform: \"twitter\", author: \"@handle\", text: \"...\", url: \"...\"}\nOutput: Brain page in media\u002F + entity extraction + backlinks\n```\n\n## Output Format\n\nEvent transformed and written to brain. Report: \"Webhook: {event_type} from {source}\n→ {brain_page_path}\"\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- A transformed write returns `write_pending` (exit 10): the event is accepted; record the request id and poll it, never replay the event under a new id.\n- `source_binding_required` \u002F `insufficient_scope`: the webhook's token cannot write that source; tell the user which grant the brain host's operator must add.\n- A malformed payload: reject it with the parse error and log it; do not write a partial page.\n\n## Anti-Patterns\n\n- Passing raw HTML\u002Fscript to brain pages (XSS risk)\n- Silently dropping events when transform fails (use dead-letter queue)\n- Processing webhooks without entity extraction\n- Not sanitizing external input before brain writes\n","# Webhook Transforms\n\n## Contract\n\nThis skill guarantees:\n- External events are transformed into brain pages with proper citations\n- Raw payloads are preserved (dead-letter queue if transform fails)\n- Entity extraction runs on every transformed event\n- Input sanitization: no raw HTML\u002Fscript passes to brain pages\n- Error handling: transform failure logs raw payload, retries once\n\n## Phases\n\n1. **Define transform.** Map event schema to brain page format:\n   - Input: raw webhook payload (JSON)\n   - Output: brain page content (markdown) + metadata (slug, type, citations)\n   - Must sanitize: strip HTML tags, escape script content\n\n2. **Register webhook URL.** Provide the external service with the webhook endpoint.\n\n3. **On event received:**\n   - Parse payload\n   - Run transform function\n   - Write brain page via `gbrain put`\n   - Extract entities, run enrichment\n   - Add timeline entries to mentioned entities\n   - Sync: `gbrain sync`\n\n4. **Error handling:**\n   - If transform throws: log raw payload to `_dead-letter\u002F{timestamp}.md`\n   - Surface error type to agent\n   - Retry once\n   - Don't lose events\n\n## Example Transforms\n\n### SMS Received\n```\nInput: {from: \"+1555...\", body: \"Meeting moved to 3pm\", timestamp: \"...\"}\nOutput: Timeline entry on sender's brain page + task update if action item detected\n```\n\n### Meeting Completed\n```\nInput: {title: \"Weekly sync\", attendees: [...], transcript: \"...\", summary: \"...\"}\nOutput: Delegate to meeting-ingestion skill\n```\n\n### Social Mention\n```\nInput: {platform: \"twitter\", author: \"@handle\", text: \"...\", url: \"...\"}\nOutput: Brain page in media\u002F + entity extraction + backlinks\n```\n\n## Output Format\n\nEvent transformed and written to brain. Report: \"Webhook: {event_type} from {source}\n→ {brain_page_path}\"\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- A transformed write returns `write_pending` (exit 10): the event is accepted; record the request id and poll it, never replay the event under a new id.\n- `source_binding_required` \u002F `insufficient_scope`: the webhook's token cannot write that source; tell the user which grant the brain host's operator must add.\n- A malformed payload: reject it with the parse error and log it; do not write a partial page.\n\n## Anti-Patterns\n\n- Passing raw HTML\u002Fscript to brain pages (XSS risk)\n- Silently dropping events when transform fails (use dead-letter queue)\n- Processing webhooks without entity extraction\n- Not sanitizing external input before brain writes\n",{"name":5,"tools":24,"version":28,"mutating":29,"triggers":30,"description":34,"when_to_use":35},[25,26,27],"put_page","add_timeline_entry","search","1.0.0",true,[31,32,33],"set up webhook","process webhook event","transform this event","Generic framework for converting external events (SMS, meetings, social mentions)\ninto brain-ingestible signals. Define a transform function, register a webhook URL,\nand incoming events get processed through the brain pipeline.\n","Use when the user asks: \"set up webhook\", \"process webhook event\", \"transform this event\".","feat\u002Flink-chat-distiller","b7935e119783c2f35d6d182ede452faf32de675c","plugin\u002Fskills\u002Fwebhook-transforms","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":45,"prompt":55,"zipAvailable":29},[46,49,52],{"tool":47,"command":48},"npx","npx skills add cheRoma\u002Fgbrain-link-chat --skill webhook-transforms",{"tool":50,"command":51},"bunx","bunx skills add cheRoma\u002Fgbrain-link-chat --skill webhook-transforms",{"tool":53,"command":54},"pnpm","pnpm dlx skills add cheRoma\u002Fgbrain-link-chat --skill webhook-transforms","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FcheRoma\u002Fgbrain-link-chat\u002Fblob\u002Ffeat\u002Flink-chat-distiller\u002Fplugin\u002Fskills\u002Fwebhook-transforms\u002FSKILL.md",[],[58,64,70,77,84,91],{"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},"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":65,"name":66,"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":67,"categories":68,"keywords":69,"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":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"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":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"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":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"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":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"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",[],[]]