[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74NGQBZ2BPFSNGREJJ2RKHG":3,"skill-same:01M74NGQBZ2BPFSNGREJJ2RKHG":71},{"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":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":34,"ownerHtmlUrl":35,"ownerBlogUrl":36,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M74NGQBZ2BPFSNGREJJ2RKHG","stack-webmcp",null,"Trigger: WebMCP, document.modelContext, web tools, AI browser agent. Web Model Context Protocol client-side tool standard.","Snakeblack\u002Fospec-workflow","Snakeblack","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F49766621?v=4","01M74NA5A4XHJYFRMG9JHM2R4K","Michael Snake","01M74NA5ASKTH7DG1P6DKC8WTX",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FSnakeblack\u002Fospec-workflow\u002Fblob\u002Fmain\u002Fskills\u002Fstack-webmcp\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: stack-webmcp\ndescription: \"Trigger: WebMCP, document.modelContext, web tools, AI browser agent. Web Model Context Protocol client-side tool standard.\"\nlicense: Apache-2.0\nmetadata:\n  author: manuel-retamozo-garcia\n  version: \"1.0\"\ncapabilities: [webmcp]\n---\n\n# WebMCP Patterns\n\nWeb Model Context Protocol (WebMCP) standards and patterns for exposing client-side tools to AI agents within the browser (W3C Web Machine Learning CG).\n\n## Activation Contract\n\nActivate this skill when:\n- Implementing or updating in-browser AI agent tools using WebMCP (`document.modelContext`)\n- Exposing web application functionality (search, navigation, data extraction, actions) to AI agents\n- Annotating declarative HTML forms with WebMCP attributes\n- Reviewing client-side agent integration for security, schema correctness, or lifecycle handling\n- Designing browser-mediated tools with permission gating and read-only annotations\n\n## Hard Rules\n\n1. **API Surface**: Target `document.modelContext.registerTool()` as the primary API; provide fallback alias check for `navigator.modelContext` for backward compatibility.\n2. **Strict Schemas**: Every registered tool MUST declare an explicit JSON Schema `inputSchema` (`type: 'object'`, `properties`, `required`). Never allow untyped or unbounded inputs.\n3. **Tool Name Constraints**: Tool names MUST be 1–128 characters using only ASCII alphanumeric (`[a-zA-Z0-9]`), underscore (`_`), hyphen (`-`), and dot (`.`).\n4. **Safety Annotations**: Non-mutating tools (read, search, query) MUST set `annotations: { readOnlyHint: true }` to avoid prompting unnecessary confirmation modals.\n5. **Cancellation & AbortSignal**: Execute callbacks MUST accept and respect `AbortSignal` for user-initiated or agent-initiated cancellation.\n6. **Same-Origin & Permissions**: Never cross origin boundaries or exfiltrate private credentials. Sensitive actions require explicit user confirmation.\n7. **Progressive Enhancement**: WebMCP initialization MUST be guarded by feature detection (`'modelContext' in document || 'modelContext' in navigator`).\n\n## Decision Gates\n\n| Scenario | Pattern \u002F Approach | Key Requirement |\n|---|---|---|\n| Read-only query \u002F search | `document.modelContext.registerTool()` | Set `readOnlyHint: true`, return structured JSON\u002Fstring |\n| State-changing action (checkout, submit) | `document.modelContext.registerTool()` | Omit `readOnlyHint`, validate input bounds, handle idempotency |\n| Static HTML form submission | Declarative `\u003Cform toolname=\"...\" tooldescription=\"...\">` | Use `toolparameterdescription` on input controls |\n| In-flight abort handling | Check `signal.aborted` \u002F pass `signal` to `fetch()` | Return clean abort or throw DOMException `AbortError` |\n| Browser lacks WebMCP support | Silent no-op \u002F mock fallback | Guard with feature detection; do not break regular UX |\n\n## Execution Steps\n\n1. **Feature Detection**: Check if `document.modelContext` (or `navigator.modelContext`) is supported.\n2. **Define Tool Manifest**: Formulate tool name, human-readable description, parameters with JSON Schema, and safety hints.\n3. **Implement Callback**: Write asynchronous `execute(args, { signal })` function with input sanitization and error boundaries.\n4. **Register Tool**: Call `await modelContext.registerTool({ name, description, inputSchema, annotations, execute })`.\n5. **Listen to Lifecycle**: Handle page cleanup or `toolchange` events when tools are dynamically added or removed.\n\n## Output Contract\n\nWhen writing WebMCP integration code:\n- Emit valid ES module \u002F TypeScript code compatible with browser environments.\n- Provide JSON Schemas with explicit property types and descriptions.\n- Include proper error handling returning serialized diagnostic messages.\n\n## References\n\n- [WebMCP W3C Specification & Security Reference](references\u002Fspec-and-security.md)\n- [WebMCP Tool Registration Template](assets\u002Fwebmcp-template.ts)\n- [Declarative Form Example](assets\u002Fdeclarative-form.html)\n","# WebMCP Patterns\n\nWeb Model Context Protocol (WebMCP) standards and patterns for exposing client-side tools to AI agents within the browser (W3C Web Machine Learning CG).\n\n## Activation Contract\n\nActivate this skill when:\n- Implementing or updating in-browser AI agent tools using WebMCP (`document.modelContext`)\n- Exposing web application functionality (search, navigation, data extraction, actions) to AI agents\n- Annotating declarative HTML forms with WebMCP attributes\n- Reviewing client-side agent integration for security, schema correctness, or lifecycle handling\n- Designing browser-mediated tools with permission gating and read-only annotations\n\n## Hard Rules\n\n1. **API Surface**: Target `document.modelContext.registerTool()` as the primary API; provide fallback alias check for `navigator.modelContext` for backward compatibility.\n2. **Strict Schemas**: Every registered tool MUST declare an explicit JSON Schema `inputSchema` (`type: 'object'`, `properties`, `required`). Never allow untyped or unbounded inputs.\n3. **Tool Name Constraints**: Tool names MUST be 1–128 characters using only ASCII alphanumeric (`[a-zA-Z0-9]`), underscore (`_`), hyphen (`-`), and dot (`.`).\n4. **Safety Annotations**: Non-mutating tools (read, search, query) MUST set `annotations: { readOnlyHint: true }` to avoid prompting unnecessary confirmation modals.\n5. **Cancellation & AbortSignal**: Execute callbacks MUST accept and respect `AbortSignal` for user-initiated or agent-initiated cancellation.\n6. **Same-Origin & Permissions**: Never cross origin boundaries or exfiltrate private credentials. Sensitive actions require explicit user confirmation.\n7. **Progressive Enhancement**: WebMCP initialization MUST be guarded by feature detection (`'modelContext' in document || 'modelContext' in navigator`).\n\n## Decision Gates\n\n| Scenario | Pattern \u002F Approach | Key Requirement |\n|---|---|---|\n| Read-only query \u002F search | `document.modelContext.registerTool()` | Set `readOnlyHint: true`, return structured JSON\u002Fstring |\n| State-changing action (checkout, submit) | `document.modelContext.registerTool()` | Omit `readOnlyHint`, validate input bounds, handle idempotency |\n| Static HTML form submission | Declarative `\u003Cform toolname=\"...\" tooldescription=\"...\">` | Use `toolparameterdescription` on input controls |\n| In-flight abort handling | Check `signal.aborted` \u002F pass `signal` to `fetch()` | Return clean abort or throw DOMException `AbortError` |\n| Browser lacks WebMCP support | Silent no-op \u002F mock fallback | Guard with feature detection; do not break regular UX |\n\n## Execution Steps\n\n1. **Feature Detection**: Check if `document.modelContext` (or `navigator.modelContext`) is supported.\n2. **Define Tool Manifest**: Formulate tool name, human-readable description, parameters with JSON Schema, and safety hints.\n3. **Implement Callback**: Write asynchronous `execute(args, { signal })` function with input sanitization and error boundaries.\n4. **Register Tool**: Call `await modelContext.registerTool({ name, description, inputSchema, annotations, execute })`.\n5. **Listen to Lifecycle**: Handle page cleanup or `toolchange` events when tools are dynamically added or removed.\n\n## Output Contract\n\nWhen writing WebMCP integration code:\n- Emit valid ES module \u002F TypeScript code compatible with browser environments.\n- Provide JSON Schemas with explicit property types and descriptions.\n- Include proper error handling returning serialized diagnostic messages.\n\n## References\n\n- [WebMCP W3C Specification & Security Reference](references\u002Fspec-and-security.md)\n- [WebMCP Tool Registration Template](assets\u002Fwebmcp-template.ts)\n- [Declarative Form Example](assets\u002Fdeclarative-form.html)\n",{"name":5,"license":15,"metadata":24,"description":7,"capabilities":27},{"author":25,"version":26},"manuel-retamozo-garcia","1.0",[28],"webmcp","main","e5fa11517ba3d433260f3077a2b8fadfad290896","skills\u002Fstack-webmcp",0,"https:\u002F\u002Fgithub.com\u002FSnakeblack\u002Fospec-workflow","https:\u002F\u002Fospec-workflow.mretamozo.com","https:\u002F\u002Fgithub.com\u002FSnakeblack","mretamozo.com","Full Stack Developer | Lifelong learner","2026-11-15 04:24:36",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add Snakeblack\u002Fospec-workflow --skill stack-webmcp",{"tool":45,"command":46},"bunx","bunx skills add Snakeblack\u002Fospec-workflow --skill stack-webmcp",{"tool":48,"command":49},"pnpm","pnpm dlx skills add Snakeblack\u002Fospec-workflow --skill stack-webmcp","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSnakeblack\u002Fospec-workflow\u002Fblob\u002Fmain\u002Fskills\u002Fstack-webmcp\u002FSKILL.md",true,[53,59,65],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"assets\u002Fdeclarative-form.html","ASSET","资产文件",1012,"https:\u002F\u002Fgithub.com\u002FSnakeblack\u002Fospec-workflow\u002Fblob\u002Fmain\u002Fskills\u002Fstack-webmcp\u002Fassets\u002Fdeclarative-form.html",{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"assets\u002Fwebmcp-template.ts","SCRIPT","脚本",1570,"https:\u002F\u002Fgithub.com\u002FSnakeblack\u002Fospec-workflow\u002Fblob\u002Fmain\u002Fskills\u002Fstack-webmcp\u002Fassets\u002Fwebmcp-template.ts",{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fspec-and-security.md","REFERENCE","参考文档",3398,"https:\u002F\u002Fgithub.com\u002FSnakeblack\u002Fospec-workflow\u002Fblob\u002Fmain\u002Fskills\u002Fstack-webmcp\u002Freferences\u002Fspec-and-security.md",[72,79,86,93,100,107],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M74NGTKSC65ZZZMZH9SVP86D","work-unit-commits","Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.","https:\u002F\u002Fgithub.com\u002FSnakeblack\u002Fospec-workflow\u002Fblob\u002Fmain\u002Fskills\u002Fwork-unit-commits\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M74NGM8GVVSMC8T2CHGR8DFZ","stack-vite","Vite frontend build tool — configuration, plugins, asset loading","https:\u002F\u002Fgithub.com\u002FSnakeblack\u002Fospec-workflow\u002Fblob\u002Fmain\u002Fskills\u002Fstack-vite\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M74NGHF902XYK25R6AZ1XK2T","stack-starlight","Astro Starlight documentation framework — setup, sidebar navigation, frontmatter, built-in components, asides, theming, i18n, search","https:\u002F\u002Fgithub.com\u002FSnakeblack\u002Fospec-workflow\u002Fblob\u002Fmain\u002Fskills\u002Fstack-starlight\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M74NGFD2Q6GKDA7C233756X8","stack-sqlserver","Microsoft SQL Server database — indexing, RCSI, set-based operations, SARGable queries, transaction scopes","https:\u002F\u002Fgithub.com\u002FSnakeblack\u002Fospec-workflow\u002Fblob\u002Fmain\u002Fskills\u002Fstack-sqlserver\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M74NGACCR2QG9EE5HPN51QBD","stack-springboot","Spring Boot architecture patterns — REST API design, layered services, JPA, caching, Spring Security, TDD with MockMvc and Testcontainers, and pre-release verification","https:\u002F\u002Fgithub.com\u002FSnakeblack\u002Fospec-workflow\u002Fblob\u002Fmain\u002Fskills\u002Fstack-springboot\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":19},"01M74NG6180M9PZRSRSTFCMV1P","stack-react","React UI library — components, hooks, state management, patterns, performance, and component testing with React Testing Library","https:\u002F\u002Fgithub.com\u002FSnakeblack\u002Fospec-workflow\u002Fblob\u002Fmain\u002Fskills\u002Fstack-react\u002FSKILL.md",[],[]]