webmaxru avatar

Writing Assistance Apis

Teaches Claude how to wire up the browser's built-in Summarizer, Writer, and Rewriter APIs in your JavaScript or TypeScript web app. You'd reach for this when you want on-device text generation without sending data to the cloud: checking availability, handling model downloads with progress UI, creating sessions with the right options, streaming or batch output, and dealing with permissions-policy constraints in iframes. The procedures walk through feature detection, choosing the right API surface for your task, building guarded session wrappers, and wiring up fallback UX for unsupported devices. It's opinionated about keeping these APIs for their intended purpose and switching to Prompt API when you're really building a chatbot. Includes a find-targets script, reference docs, and explicit TypeScript templates.

skills.sh installs
152
GitHub stars
31
last updated
Jun 3, 2026

Install

$ npx -y skills add webmaxru/agent-skills --skill writing-assistance-apis --agent claude-code

Installs into .claude/skills of the current project.

Files

Writing Assistance APIs

Procedures

Step 1: Identify the browser integration surface

  1. Inspect the workspace for browser entry points, UI handlers, and any existing AI abstraction layer.
  2. Execute 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.
  3. If a Node runtime is unavailable, inspect the nearest package.json, HTML entry point, and framework bootstrap files manually to identify the browser app boundary.
  4. If the workspace contains multiple frontend apps, prefer the app that contains the active route, component, or user-requested feature surface.
  5. If the inventory still leaves multiple plausible frontend targets, stop and ask which app should receive the Writing Assistance API integration.
  6. If the project is not a browser web app, stop and explain that this skill does not apply.

Sponsors

Details

Repository
github.com/webmaxru/agent-skills
Categories
Documentation, AI & Agent Building
First seen
Jun 3, 2026

More from webmaxru/agent-skills

All 11
1anthropics avatarux-writinganthropics/knowledge-work-pluginsWrite effective microcopy for user interfaces. Trigger with "write copy for", "help with UX copy", "what should this button say", "error message for", "empty st134skills.sh installs
2jabrena avatar170-java-documentationjabrena/cursor-rules-java170 java documentation129skills.sh installs
3michalparkola avatarship-learn-nextmichalparkola/tapestry-skills-for-claude-codeship learn next123skills.sh installs
4laolaoshiren avatarzh-readmelaolaoshiren/claude-code-skills-zh中文 README 生成器 - 先分析项目,再生成面向中文开发者的高质量 README112skills.sh installs
5butterbase-ai avatarjourney-docsbutterbase-ai/butterbase-skillsUse as the docs-priming stage of the Butterbase journey, immediately after journey-preflight and before the first build stage. Reads the plan to discover which 0skills.sh installs
6cloudposse avatardocs-stylescloudposse/docsCSS styles, color themes, and visual conventions for docs.cloudposse.com. Use when styling components, mermaid diagrams, or working with site theming.0skills.sh installs