/web-ai-skills:writing-assistance-apisfrom web-ai-skills
Implements browser Summarizer, Writer, and Rewriter integrations in JS/TS web apps. Handles availability checks, model download UX, session creation, streaming, abort, and permissions-policy constraints.
Ships in web-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Step 1: Identify the browser integration surface
node scripts/find-writing-assistance-targets.mjs . to inventory likely frontend files and existing Summarizer, Writer, or Rewriter usage when a Node runtime is available.package.json, HTML entry point, and framework bootstrap files manually to identify the browser app boundary.Step 2: Confirm API viability and choose the right surface
references/writing-assistance-reference.md before writing code.references/examples.md when the feature needs a session shape for monitoring downloads, batch output, streaming output, or cancellation.references/compatibility.md when preview flags, browser channels, hardware requirements, or iframe constraints matter.references/troubleshooting.md when availability checks, creation, streaming, or session cleanup fail.Window context and that the relevant permissions-policy feature allows access from the current frame.Summarizer for article, document, or conversation summaries.Writer for generating new text from a short prompt or writing task.Rewriter for transforming existing text while preserving its intent.Step 3: Implement a guarded session wrapper
assets/writing-assistance-session.template.ts and adapt it to the framework, state model, and file layout in the workspace.availability() method using the same create options that will be used at runtime.availability() as a capability check, not a guarantee that creation will succeed without user interaction or download time.monitor option during create() when the UI needs download progress.AbortController for cancelable create and run calls, and call destroy() when the session is no longer needed.Step 4: Wire UX and fallback behavior
sharedContext only for persistent session-wide guidance, and pass per-call context only for request-specific background detail.Step 5: Validate behavior
node scripts/find-writing-assistance-targets.mjs . to confirm that the intended app boundary and API markers still resolve to the edited integration surface.availability() behavior before debugging deeper runtime failures.references/compatibility.md before treating failures as application bugs.Summarizer, Writer, or Rewriter is missing, keep a non-AI fallback and confirm that the environment satisfies the browser and preview requirements before changing product logic.availability() returns downloadable or downloading, require user-driven session creation before promising that generation is ready.create() throws NotAllowedError, check permissions-policy constraints, missing user activation for downloads, browser policy restrictions, or user rejection.create() or a run call throws NotSupportedError, align the requested languages, output format, summary type, tone, or length with the browser's supported combinations.QuotaExceededError, shrink sharedContext, per-call context, or the user input before retrying.assets/writing-assistance-session.template.ts (opens in a new tab)references/compatibility.md (opens in a new tab)references/examples.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)references/writing-assistance-reference.md (opens in a new tab)scripts/find-writing-assistance-targets.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
web-ai-skills@webmaxru-ai-native-dev is listed by webmaxru/ai-native-dev — review the source before installing
npx claudepluginhub webmaxru/ai-native-dev --plugin web-ai-skills7 skills in this plugin
/language-detector-apiImplements and debugs browser Language Detector API integrations in JavaScript or TypeScript web apps. Use when adding LanguageDetector support checks, availability and model download flows, session creation, detect() calls, input-usage measurement, permissions-policy handling, or compatibility fallbacks for built-in language detection. Don't use for server-side language detection SDKs, cloud translation services, or generic NLP pipelines./prompt-apiImplements and debugs browser Prompt API integrations in JavaScript or TypeScript web apps. Use when adding LanguageModel availability checks, session creation, prompt or promptStreaming flows, structured output, download progress UX, or iframe permission-policy handling. Don't use for server-side LLM SDKs, REST AI APIs, or non-browser providers./proofreader-apiImplements and debugs browser Proofreader API integrations in JavaScript or TypeScript web apps. Use when adding Proofreader availability checks, monitored model downloads, proofread flows, correction metadata handling, or permissions-policy checks for built-in proofreading. Don't use for generic prompt engineering, server-side LLM SDKs, or cloud AI services./translator-apiImplements and debugs browser Translator API integrations in JavaScript or TypeScript web apps. Use when adding Translator support checks, language-pair availability flows, model download UX, session creation, translate() or translateStreaming() calls, input-usage measurement, or permissions-policy handling for on-device translation. Don't use for server-side translation SDKs, cloud translation services, or generic multilingual content pipelines./webmcpImplements and debugs browser WebMCP integrations in JavaScript or TypeScript web apps. Use when exposing imperative tools through document.modelContext (with a navigator.modelContext fallback), annotating HTML forms for declarative tools, handling agent-invoked form flows, or validating WebMCP behavior in the current Chrome preview. Don't use for server-side MCP servers, REST tool backends, or non-browser providers./webnnImplements and debugs browser Web Neural Network API integrations in JavaScript or TypeScript web apps. Use when adding navigator.ml checks, MLContext creation, MLGraphBuilder flows, device selection, tensor dispatch and readback, or explicit fallback paths to ONNX Runtime Web or other local runtimes. Don't use for model training, server-side ML inference, or cloud AI APIs.Other plugins' skills for the same job