agenticschema: Skill for Claude Code

.agent/skills/build-webmcp-tools/SKILL.md

build-webmcp-tools is a skill for Claude Code, Codex from searchstefano/agenticschema. It costs 157 tokens per session (4,132 once invoked), scanned A, original, MIT.

A development guide for WebMCP, a browser feature that lets a web page expose named actions to AI agents through the page's own logged-in session. It covers designing, reviewing, auditing, and implementing those actions in plain web code or supported frameworks.

In plain words
What is it for?
Use it when making a website expose client-side tools, or when evaluating and improving tools already exposed through WebMCP.
Why use it?
It helps agents use an application's intended actions instead of scraping page text or imitating clicks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is searchstefano/agenticschema's own configuration. It tells Claude Code and Codex how to work on agenticschema itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agenticschema configures →

Reuse

Borrowing it

Nothing to install: this file belongs to searchstefano/agenticschema. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/searchstefano/agenticschema/main/.agent/skills/build-webmcp-tools/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/searchstefano/agenticschema

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for build-webmcp-tools

README.md
[![agentmods](https://agentmods.dev/badge/skills/searchstefano/agenticschema/build-webmcp-tools/github.svg)](https://agentmods.dev/skills/searchstefano/agenticschema/build-webmcp-tools)
Your own site
<a href="https://agentmods.dev/skills/searchstefano/agenticschema/build-webmcp-tools"><img src="https://agentmods.dev/badge/skills/searchstefano/agenticschema/build-webmcp-tools/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for build-webmcp-tools

Your own site · 80×15
<a href="https://agentmods.dev/skills/searchstefano/agenticschema/build-webmcp-tools"><img src="https://agentmods.dev/badge/skills/searchstefano/agenticschema/build-webmcp-tools.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 157 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,132 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00157 $0.04132
Opus 5.5 $0.00063 $0.01653
Sonnet 5.5 $0.00031 $0.00826
Haiku 4.5 $0.00016 $0.00413

Measured 11d ago against content hash 2ef4db0bd1b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

build-webmcp-tools scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (evals/fixtures/project-app/src/tools/project-tools.ts, evals/fixtures/recipe-app/src/store.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **Live site**: explain that tools must be registered by code running in the page (first-party code or an extension/content script) on `document.modelContext`, not by headless scraping. **If `chrome-devtools` MCP (or an
.agent/skills/build-webmcp-tools/SKILL.md · 129 lines

How it starts

The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.

WebMCP Tool Development Workflow (build-webmcp-tools)

WebMCP lets a web page expose client-side capabilities as structured tools to in-browser AI agents on document.modelContext, instead of agents scraping or clicking the DOM. This skill routes a developer to the right stage of the tool lifecycle and points to the reference file that holds the detailed rules and code for that stage.

Key tenet: WebMCP runs client-side in the browser tab on document.modelContext, inside the user's authenticated session. It supports Tools only (no Resources or Prompts). It is not a backend MCP server over stdio/SSE, and tools execute application logic (state stores, APIs, client routers) directly rather than simulating typing or clicks.

How to Use This Skill

  1. Match the developer's request to a row in the Router and go to that stage.
  2. Read the files in the "Read first" column before responding. Paths are relative to this skill's directory. This file only summarizes them; the detailed rules, examples, and code patterns live in the references, so do not answer from this summary alone.
  3. If the request refers to an artifact you were not given (transcripts, schema.json, source files), read it if it is available in the workspace; otherwise ask for it, and outline how you will apply the stage's key rules from its reference file (for audits, include the verification steps). Never invent the missing artifact.
  4. Apply the Non-Negotiables to everything you produce.
  5. Before finishing an audit, schema.json, or implementation, check your output against references/audit-checklist.md.

Non-Negotiables

  • Budgets: tool and parameter names ≤ 30 chars; tool descriptions ≤ 500 chars; parameter descriptions ≤ 150 chars; output ≤ 1,500 chars (~400 tokens), paginated. → tool-design.md
  • Descriptions: "What + When" (what the tool does, when to choose it); never repeat inputSchema parameters; no implementation jargon (Redux, Pinia, Express, REST, GraphQL, gRPC). → tool-design.md
  • Naming & shape: action verbs; initiate_* for tools that open a form or wizard vs. book_*/create_* for immediate execution; never make the model compute values (relative dates, conversions): accept the user's phrasing and resolve it in the app, though unambiguous lookups to standard codes are fine; prefer names over opaque IDs; recommended: consolidate entities that share a lifecycle and annotations into polymorphic, batched tools, keeping trusted and user-authored content in separate tools. → tool-design.md
  • Annotations: all hints default to false and are strictly opt-in (specify only when true; never declare : false); readOnlyHint: true only on pure queries; consequentialHint: true only on significant, irreversible real-world actions (payments, bookings, deletions); view navigation, tab switching, and initiate_* hand-offs must not declare readOnlyHint: true (omit it) and do not need consequentialHint, protecting unsaved work inside the tool; routine mutating tools omit annotations; untrustedContentHint: true on any output containing user- or third-party-authored text, even from your own database. → annotations.md
  • Errors reach the agent: React useWebMCP throws Error (→ isError: true); native registerTool resolves { error, code, retryable } because rejections become a generic DOMException: UnknownError; declarative forms resolve structured field errors via event.respondWith. → error-handling.md
  • UI sync: await state and DOM updates before a tool returns.
  • Cross-origin: tools are same-origin by default (Permissions Policy tools, default self); delegate only with <iframe allow="tools"> plus registerTool(tool, { exposedTo: ['https://trusted.origin'] }); origin isolation is required (Origin-Agent-Cluster: ?0 disables WebMCP). → vanilla-patterns.md
  • Design before code: every tool goes through Stages 2–4 (starting states, role-play, variations, and critique of tone, clarifying questions, and autonomous boundaries) before Stage 5–6 schemas, evals, or code; implementation simplicity is not conversational simplicity. Run Stages 2–6 in Interactive Mode (pausing after each goal's role-play for developer critique) or Autonomous Mode (working through each isolated goal's Stages 2–4, self-critique, and Stage 5–6 consolidation/code end-to-end without stops). Only skip Stages 2–4 on the Explicit Fast Path below when asked to skip design for one tool. → conversational-design.md

Read the full file on GitHub · 129 lines

Files

What ships with it

32 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 129 lines · 157 tokens per session scan A 2ef4db0bd1b3

Subscribe to this mod's changes

build-webmcp-tools is a skill published in the GitHub repository searchstefano/agenticschema (5 stars, last pushed 13d ago), licensed MIT. It adds 157 tokens to every session and 4,132 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-26.

Related

build-webmcp-tools compared with skills from other repositories

build-webmcp-tools next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
build-webmcp-toolssearchstefano/agenticschemaSkill513d agoMITA157Claude Code, Codex
flutter-app-links-deep-link-engineeringariaramin/flutter-skillsSkill87d agoMITA145Claude Code, Codex
x402browser-use/browser-useSkill120kyesterdayMITA175Claude Code
browser-usebrowser-use/browser-useSkill120kyesterdayMITA57Claude Code, Codex
cloudbrowser-use/browser-useSkill120kyesterdayMITA177Claude Code
opencli-autofixjackwener/OpenCLISkill31kyesterdayApache-2.0A61Claude Code
opencli-browserjackwener/OpenCLISkill31kyesterdayApache-2.0A43Claude Code