This skill handles browser Prompt API integrations when you're adding on-device AI to a web app. It walks through availability checks, session lifecycle, streaming versus one-shot prompts, structured output with JSON Schema, download progress UX, and iframe permission policy. The template service wrapper and step-by-step procedures keep you from shipping code that breaks in cross-origin iframes or mishandles the downloading state. It's opinionated about treating availability checks as passive capability detection rather than app-owned busy states, which matches the spec intent but isn't obvious from the API shape alone. Useful if you're implementing the Prompt API for the first time and want to avoid the common traps around context, modalities, and secure contexts.

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

Install

$ npx -y skills add webmaxru/agent-skills --skill prompt-api --agent claude-code

Installs into .claude/skills of the current project.

Files

Prompt API

Procedures

Step 1: Identify the integration surface

  1. Inspect the workspace for browser entry points, UI handlers, and any existing AI abstraction layer.
  2. Execute node scripts/find-frontend-targets.mjs . to inventory likely frontend files and existing Prompt API usage when a Node runtime is available.
  3. If a Node runtime is unavailable, inspect the nearest package.json, HTML entry point, and framework entry 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 the user which app should receive the Prompt 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
Backend & APIs, AI & Agent Building
First seen
Jun 3, 2026

More from webmaxru/agent-skills

All 11
1cloudai-x avatardatabase-designcloudai-x/claude-workflow-v2Designs database schemas, indexing strategies, query optimization, and migration patterns for SQL and NoSQL databases. Use when designing tables, optimizing que139skills.sh installs
2sickn33 avatarsqlmap-database-pentestingsickn33/antigravity-awesome-skillssqlmap database pentesting121skills.sh installs
3github avatarsql-server-table-reconciliationgithub/awesome-copilotUse when: comparing SQL Server tables across instances, data migration validation, ETL verification, row mismatch detection, schema drift, reconciliation report104skills.sh installs
4martinholovsky avatarSQLite Database Expertmartinholovsky/claude-skills-generatorExpert in SQLite embedded database development for Tauri/desktop applications with focus on SQL injection prevention, migrations, FTS search, and secure data ha1skills.sh installs
5aden-hive avatarbrowser-edge-casesaden-hive/hiveSOP for debugging browser automation failures on complex websites. Use when browser tools fail on specific sites like LinkedIn, Twitter/X, SPAs, or sites with S0skills.sh installs
6awslabs avataraws-lambda-durable-functionsawslabs/agent-plugins>0skills.sh installs