Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问clear审计通过

use-modern-browser-apis使用现代浏览器 API

Agent Skill

use-modern-browser-apis 用于处理浏览器自动化、网页检查和页面信息提取,适合在 Codex、Claude、Cursor、Gemini CLI 中需要让 Agent 打开页面、读取网页或验证前端流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

636

周安装

26

GitHub Stars

4

下载量

206
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:use-modern-browser-apis(使用现代浏览器 API)
来源仓库:https://github.com/academind/ai-config
仓库路径:skills/use-modern-browser-apis
安装命令:
npx skills add https://github.com/academind/ai-config --skill use-modern-browser-apis
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/academind/ai-config --skill use-modern-browser-apis

简介

use-modern-browser-apis 用于处理浏览器自动化、网页检查和页面信息提取。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中让 Agent 打开页面、读取网页或验证前端流程。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 安装前需确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 建议结合来源仓库和原始 README 核验具体用法和功能边界。

SKILL.md

Using Modern Browser APIs

We prefer native, modern browser APIs — *standardized, widely supported, and high-leverage* — to heavy external libraries or custom fallbacks. Use them to simplify logic, improve performance, and reduce bundle size where appropriate.

Philosophy

  • PREFER browser-native capabilities over third-party dependencies
  • PROGRESSIVE ENHANCE: Always provide sensible fallbacks for APIs that aren’t available in all clients
  • ASYNC & SECURE: Use promise-based and secure context APIs for non-blocking, safe access

Core & Widely Supported APIs

These APIs are stable, broadly implemented, and useful in everyday applications.

UI & Interaction

  • Intersection Observer API — Efficiently detect when elements enter/exit the viewport (lazy loading, infinite scroll).
  • ResizeObserver API — React to element size changes without layout thrashing.
  • PerformanceObserver API — Observe performance metrics (RUM/perf insights).
  • BroadcastChannel API — Cross-tab communication in the same origin.

Navigation & View Management

  • View Transitions API — Native, hardware-accelerated transitions between UI states.
  • URLPattern API — Declaratively match and parse URLs (helps in routing logic).

Clipboard & Sharing

  • Clipboard Async API — Non-blocking, modern clipboard read/write with user consent.
  • Web Share API Level 2 — Share text, links, files through native device dialogs.

Files & Persistence

  • File System Access API — Read/write local files with user permissions.
  • File Handle & Directory Picker extensions for batch file/directory selection.

Concurrency & Scheduling

  • Web Locks API — Coordinate async access to shared resources (avoid races).
  • Scheduling API — Prioritize/background non-essential work to improve responsiveness.

Workers & Off-Main Thread

  • Web Workers API — Run scripts off the main thread for intensive tasks.
  • OffscreenCanvas — Use canvas rendering in workers for performant graphics/visuals.

Speech & Accessibility

  • Web Speech API — Integrate speech recognition and synthesis for accessibility and voice UI.

Advanced Graphics & Compute

  • WebGPU API — Low-level GPU access for high-perf rendering and compute workloads (in many browsers; includes Chromium + newer Safari + Firefox support).

Real-Time & Networking

  • WebRTC — Real-time peer-to-peer audio/video communication without plugins.

When to Use & How to Fallback

  • FEATURE DETECTION is required before use: if ('clipboard' in navigator) {…}

For APIs not universally supported (e.g., WebGPU), provide a graceful fallback (WebGL or degraded UI).

Always combine user gesture requirements (e.g., for sharing or clipboard) with permission checks.

Best Practices

ASYNC FIRST: Prefer promise/async APIs to avoid blocking UI.

PERMISSIONS UI: Convey clearly to users when the browser will ask for access (files, clipboard, sharing).

PERFORMANCE MINDFUL: Observe and prioritize main thread work using PerformanceObserver or Scheduling APIs.

SECURE CONTEXTS: Use HTTPS; many APIs require secure contexts to function.

General Principles

Write code for browsers as platforms, not just JS engines.

Prefer native semantics (e.g., lazy loading via IntersectionObserver vs manual scroll handlers).

Reduce external dependencies where modern browser APIs suffice.

Document API usage and fallback patterns for maintenance and cross-browser support.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

29.63%
按下载量换算61

OpenCode

23.35%
按下载量换算48

Antigravity

18.5%
按下载量换算38

windsurf

11.89%
按下载量换算24

Codex

6.76%
按下载量换算14

trae

3.17%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills