[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72SYHEMGTDRWSERJWZR0XE2":3,"skill-same:01M72SYHEMGTDRWSERJWZR0XE2":56},{"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":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":6,"ownerDescription":41,"updatedAt":42,"install":43,"resources":55},"01M72SYHEMGTDRWSERJWZR0XE2","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.","ltdrew\u002FAgent-brain-2","ltdrew","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F173687628?v=4","01M72SVABERGYY99JQPNV3FTTN","Logan Drew","01M72SVABZHAN29CHRV66Y48B8",1,"MIT","https:\u002F\u002Fgithub.com\u002Fltdrew\u002FAgent-brain-2\u002Fblob\u002Ffeat\u002Fbrain-first-convention\u002Fskills\u002Fwebhook-transforms\u002FSKILL.md",[],[],"2026-11-10 22:39:42",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\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## 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## 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},[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","feat\u002Fbrain-first-convention","f3dace916c3845569f26904591b95baf00237bf8","skills\u002Fwebhook-transforms",0,"https:\u002F\u002Fgithub.com\u002Fltdrew\u002FAgent-brain-2","https:\u002F\u002Fgithub.com\u002Fltdrew","Account 2","2026-05-13 07:52:42",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":29},[45,48,51],{"tool":46,"command":47},"npx","npx skills add ltdrew\u002FAgent-brain-2 --skill webhook-transforms",{"tool":49,"command":50},"bunx","bunx skills add ltdrew\u002FAgent-brain-2 --skill webhook-transforms",{"tool":52,"command":53},"pnpm","pnpm dlx skills add ltdrew\u002FAgent-brain-2 --skill webhook-transforms","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fltdrew\u002FAgent-brain-2\u002Fblob\u002Ffeat\u002Fbrain-first-convention\u002Fskills\u002Fwebhook-transforms\u002FSKILL.md",[],[57,64,71,78,85,92],{"skillNo":58,"name":59,"nameZh":6,"description":60,"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},"01M72SYQK7HQ98AEY8Z8DBT3C0","signal-detector","Always-on ambient signal capture for the OpenClaw reference fixture.","https:\u002F\u002Fgithub.com\u002Fltdrew\u002FAgent-brain-2\u002Fblob\u002Ffeat\u002Fbrain-first-convention\u002Ftest\u002Ffixtures\u002Fopenclaw-reference-minimal\u002Fskills\u002Fsignal-detector\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},"01M72SYPHM4TDK6ZRV4NWAGC3D","query","Look up brain pages in the OpenClaw reference fixture.","https:\u002F\u002Fgithub.com\u002Fltdrew\u002FAgent-brain-2\u002Fblob\u002Ffeat\u002Fbrain-first-convention\u002Ftest\u002Ffixtures\u002Fopenclaw-reference-minimal\u002Fskills\u002Fquery\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},"01M72SYN2J4BGSFS613D80AJQX","context-now","ALWAYS-ON time-sensitivity discipline for the OpenClaw reference fixture.","https:\u002F\u002Fgithub.com\u002Fltdrew\u002FAgent-brain-2\u002Fblob\u002Ffeat\u002Fbrain-first-convention\u002Ftest\u002Ffixtures\u002Fopenclaw-reference-minimal\u002Fskills\u002Fcontext-now\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},"01M72SYKY67RCNH8VH9R2N0ZZV","brain-ops","Core read\u002Fwrite cycle for the OpenClaw reference fixture.","https:\u002F\u002Fgithub.com\u002Fltdrew\u002FAgent-brain-2\u002Fblob\u002Ffeat\u002Fbrain-first-convention\u002Ftest\u002Ffixtures\u002Fopenclaw-reference-minimal\u002Fskills\u002Fbrain-ops\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},"01M72SYEE2B8F47TN01CAGQ4JG","testing","Skill validation framework. Validates every skill has SKILL.md with frontmatter,\nevery reference exists, every env var is declared. The testing contract for the\nskill system itself.","https:\u002F\u002Fgithub.com\u002Fltdrew\u002FAgent-brain-2\u002Fblob\u002Ffeat\u002Fbrain-first-convention\u002Fskills\u002Ftesting\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M72SYBB9SD2C75ZACA2XXPN7","soul-audit","6-phase interactive interview that generates the agent's identity (SOUL.md),\nuser profile (USER.md), access control (ACCESS_POLICY.md), and operational\ncadence (HEARTBEAT.md). Re-runnable anytime to update any section.","https:\u002F\u002Fgithub.com\u002Fltdrew\u002FAgent-brain-2\u002Fblob\u002Ffeat\u002Fbrain-first-convention\u002Fskills\u002Fsoul-audit\u002FSKILL.md",[],[]]