Token导航 LogoToken导航

Agent Skill · 研究检索

webf-api-compatibility(webf API compatibility 搜索)

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

webf-api-compatibility 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证为 MIT,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 63,559。

总安装 315周安装 13GitHub Stars 2,374下载 103核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:webf-api-compatibility(webf API compatibility 搜索)
来源仓库:https://github.com/openwebf/webf
仓库路径:skills/webf-api-compatibility
安装命令:
npx skills add https://github.com/openwebf/webf --skill webf-api-compatibility
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/openwebf/webf --skill webf-api-compatibility

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

辅助 API 设计与接口文档整理,适合梳理 endpoint、字段命名和错误码规则。可帮助生成 OpenAPI 草稿并支持前后端联调准备。通过 npx skills add 从指定仓库安装,兼容多个 AI 宿主平台。涉及接口定义时应避免凭空补字段,优先从现有代码或样例中提取事实。

webf-api-compatibility 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/webf-api-compatibility

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/openwebf/webf --skill webf-api-compatibility;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

webf-api-compatibility 怎么安装?

在终端执行 npx skills add https://github.com/openwebf/webf --skill webf-api-compatibility。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

webf-api-compatibility 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

webf-api-compatibility 需要什么权限?

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

webf-api-compatibility 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

webf-api-compatibility 用的人多吗?

公开数据是累计安装 315 次,近一周安装 13 次,下载 103 次,GitHub 2,374 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

webf-api-compatibility 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
webf-api-compatibility

webf API compatibility 搜索 · 本页

3152,374操作浏览器MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

WebF API & CSS Compatibility

Note: WebF development is nearly identical to web development - you use the same tools (Vite, npm, Vitest), same frameworks (React, Vue, Svelte), and same deployment services (Vercel, Netlify). This skill covers one of the 3 key differences: checking API and CSS compatibility before implementation. The other two differences are async rendering and routing.

WebF is NOT a browser - it's a Flutter application runtime that implements W3C/WHATWG web standards. This means some browser APIs are not available, and some CSS features work differently.

This skill helps you quickly check what's supported and find alternatives for unsupported features.

Quick Compatibility Check

When asked about a specific API or CSS feature, I will:

  1. Check if it's in the supported list
  2. Provide the compatibility status (✅ Supported, ⏳ Coming Soon, ❌ Not Supported)
  3. Explain why it's not supported (if applicable)
  4. Suggest alternatives or workarounds

JavaScript & Web APIs

✅ Fully Supported

Timers & Animation
  • setTimeout(), clearTimeout()
  • setInterval(), clearInterval()
  • requestAnimationFrame(), cancelAnimationFrame()
Networking
  • fetch() - Full support with async/await
  • XMLHttpRequest - For legacy code
  • WebSocket - Real-time bidirectional communication
  • EventSource - Server-Sent Events (SSE) for real-time server push
  • URL and URLSearchParams - URL manipulation
Storage
  • localStorage - Persistent key-value storage
  • sessionStorage - Session-only storage
Graphics
  • Canvas 2D - Full 2D canvas API
  • SVG - SVG element rendering
DOM APIs
  • document, window, navigator
  • querySelector(), querySelectorAll()
  • addEventListener(), removeEventListener()
  • createElement(), appendChild(), etc.
  • MutationObserver - Watch DOM changes
  • Custom Elements - Define custom HTML elements
Events
  • click - Enabled by default
  • Other events via FlutterGestureDetector (double-tap, long-press, etc.)

⏳ Coming Soon

  • CSS Grid - Planned for future release
  • Tailwind CSS v4 - Planned for 2026

❌ NOT Supported

Storage
  • IndexedDB - Use native plugin instead

- Alternative: sqflite, hive, or custom plugin

Graphics
  • WebGL - Not available, no alternative
  • Web Animations API (JavaScript) - CSS animations work, but not the JS API
Workers
  • Web Workers - Not needed

- Why: JavaScript already runs on dedicated thread in WebF - No performance benefit from workers

DOM
  • Shadow DOM - Not used for component encapsulation

- Use framework component systems instead (React, Vue, etc.)

Observers
  • IntersectionObserver - Use onscreen/offscreen events instead

CSS Compatibility

✅ Fully Supported Layout Modes

Standard Flow
  • block - Block-level elements
  • inline - Inline elements
  • inline-block - Inline elements with block properties
Flexbox (Recommended)
  • display: flex
  • All flex properties (justify-content, align-items, flex-direction, etc.)
  • This is the recommended layout approach
Positioned Layout
  • position: relative
  • position: absolute
  • position: fixed
  • position: sticky
Text & Direction
  • RTL (right-to-left) support
  • All text alignment and direction properties

❌ NOT Supported Layout Modes

Float Layout (Legacy)
  • float: left / float: right - NOT SUPPORTED
  • clear - NOT SUPPORTED
  • Why: Legacy layout model, use Flexbox instead
Table Layout
  • display: table - NOT SUPPORTED
  • display: table-row, display: table-cell - NOT SUPPORTED
  • Why: Use Flexbox or CSS Grid (when available)

⏳ Coming Soon

CSS Grid
  • display: grid - Planned
  • All grid properties - Planned
  • Use Flexbox until Grid is available

✅ Fully Supported CSS Features

Colors & Backgrounds
  • All color formats (hex, rgb, rgba, hsl, hsla, named)
  • background-color, background-image, background-size, etc.
  • Linear gradients, radial gradients
Borders & Shapes
  • border, border-radius, border-color, etc.
  • box-shadow, text-shadow
Transforms (Hardware Accelerated)
  • transform: translate(), rotate(), scale(), skew()
  • 2D and 3D transforms
  • Use for smooth animations
Animations & Transitions
  • transition - All transition properties
  • @keyframes and animation
  • CSS animations are fully supported
Layout & Sizing
  • width, height, min-width, max-width, etc.
  • margin, padding
  • box-sizing
Responsive Design
  • @media queries
  • Viewport units (vw, vh, vmin, vmax)
  • Some advanced units not supported (dvh, lvh, svh)
Advanced CSS
  • CSS variables (--custom-property)
  • Pseudo-classes (:hover, :active, :focus, etc.)
  • Pseudo-elements (::before, ::after)
  • Filters (blur, brightness, contrast, etc.)
  • z-index and stacking contexts

⚠️ Partially Supported

Tailwind CSS
  • v3 - ✅ Supported (some utilities may not work if they use unsupported features)
  • v4 - ❌ Not yet supported (planned for 2026)

❌ NOT Supported CSS Features

  • backdrop-filter - Not available
  • Advanced viewport units - dvh, lvh, svh

Architecture Differences

Understanding why some features aren't available:

AspectBrowserWebF
RuntimeV8 / SpiderMonkeyQuickJS (ES6+)
DOMBlink / GeckoCustom C++ + Dart
LayoutBrowser engineFlutter rendering
PurposeGeneral web browsingApp runtime

Key Insight: WebF implements core web standards for building apps, not for web browsing.

Finding Alternatives

For IndexedDB → Use Native Storage

// ❌ IndexedDB not available
// const db = await openDB('mydb', 1);

// ✅ Option 1: localStorage for simple key-value storage (RECOMMENDED for most cases)
localStorage.setItem('user', JSON.stringify({ name: 'Alice', age: 30 }));
const user = JSON.parse(localStorage.getItem('user'));

// ✅ Option 2: Request custom native plugin from Flutter team
// For complex database needs (SQL, large datasets, queries):
// - Flutter team creates native plugin using sqflite, Hive, or Isar
// - Plugin exposed to JavaScript via WebF module system
// - See: https://openwebf.com/en/docs/add-webf-to-flutter/bridge-modules

// Example of custom storage plugin (created by Flutter team):
// import { AppStorage } from '@yourapp/storage-plugin';
// await AppStorage.save('key', { complex: 'data' });
// const data = await AppStorage.get('key');

For WebGL → No Alternative

// ❌ WebGL not available
// const gl = canvas.getContext('webgl');

// ✅ Use Canvas 2D instead (limited graphics)
const ctx = canvas.getContext('2d');

// ✅ Or use Flutter's rendering for complex graphics
// Flutter team can render directly

For Float Layout → Use Flexbox

/* ❌ Float layout not supported */
.sidebar { float: left; width: 200px; }
.content { float: right; width: calc(100% - 200px); }

/* ✅ Use Flexbox instead */
.container { display: flex; }
.sidebar { width: 200px; flex-shrink: 0; }
.content { flex-grow: 1; }

For Table Layout → Use Flexbox

/* ❌ Table layout not supported */
.table { display: table; }
.row { display: table-row; }
.cell { display: table-cell; }

/* ✅ Use Flexbox instead */
.table { display: flex; flex-direction: column; }
.row { display: flex; }
.cell { flex: 1; }

For Native Device Features → Use WebF Plugins

Check available plugins: https://openwebf.com/en/native-plugins

WebF provides official npm packages for native features. When you need a native feature:

  1. First, check the available plugins list at https://openwebf.com/en/native-plugins
  2. Ask the user about their environment before providing setup instructions
  3. Follow the plugin's installation guide for their specific environment
Step 1: Determine Your Environment

IMPORTANT: Setup differs based on your development environment.

Question: "Are you testing in WebF Go, or working on a production app?"

Option 1: Testing in WebF Go (Most web developers)

  • ✅ Just install npm package
  • ✅ No additional setup needed
  • Example: npm install @openwebf/webf-share

Option 2: Production app with Flutter team

  • ⚠️ Your Flutter developer needs to add the Flutter plugin first
  • ⚠️ Once they've done that, you install the npm package
  • ⚠️ Coordinate with your Flutter team - give them the plugin documentation
Example: Native Share Plugin

If using WebF Go:

# Just install npm package
npm install @openwebf/webf-share

If integrating with Flutter app:

# 1. Add Flutter plugin first (in pubspec.yaml)
# See: https://openwebf.com/en/native-plugins/webf-share

# 2. Then install npm package
npm install @openwebf/webf-share

Usage in JavaScript:

import { WebFShare } from '@openwebf/webf-share';

// Check availability first
if (WebFShare.isAvailable()) {
  // Share text
  await WebFShare.shareText({
    text: 'Check this out!',
    url: 'https://example.com',
    title: 'My App'
  });
}

// Or use React hook
import { useWebFShare } from '@openwebf/webf-share';

function ShareButton() {
  const { share, isAvailable } = useWebFShare();

  if (!isAvailable) return null;

  return (
    <button onClick={() => share({ text: 'Hello!' })}>
      Share
    </button>
  );
}
Finding the Right Plugin

When looking for native features:

  1. Check plugin list: https://openwebf.com/en/native-plugins
  2. If plugin exists: Follow its installation guide
  3. If no plugin exists:

- For WebF Go users: Feature may not be available - For Flutter integration: Create custom plugin using WebF Module System

How to Check Compatibility

1. Check the Compatibility Table

See reference.md in this skill for complete compatibility tables.

2. Test in WebF Go

// Quick compatibility test
if (typeof IndexedDB !== 'undefined') {
  console.log('IndexedDB available');
} else {
  console.log('IndexedDB NOT available - use alternative');
}

// Check for WebF-specific features
if (typeof WebF !== 'undefined') {
  console.log('Running in WebF');
}

3. Use Feature Detection

function checkStorageOptions() {
  const support = {
    localStorage: typeof localStorage !== 'undefined',
    sessionStorage: typeof sessionStorage !== 'undefined',
    indexedDB: typeof indexedDB !== 'undefined'
  };

  console.log('Storage support:', support);
  return support;
}

Common Questions

"Can I use Tailwind CSS?"

Yes, but only v3 - v4 is planned for 2026.

# Install Tailwind v3
npm install -D tailwindcss@^3.0 postcss autoprefixer

Some Tailwind utilities may not work if they use unsupported CSS features (like float or table layout).

"Why no Web Workers?"

JavaScript in WebF already runs on a dedicated thread, separate from the Flutter UI thread. Web Workers would provide no performance benefit.

"Can I use React Query / SWR / Axios?"

Yes! All popular libraries that use fetch() or XMLHttpRequest work perfectly:

  • ✅ React Query
  • ✅ SWR
  • ✅ Axios
  • ✅ TanStack Query
  • ✅ Apollo Client (if using fetch)

"Can I use AI streaming APIs (OpenAI, etc.)?"

Yes! WebF supports both EventSource (SSE) and fetch() streaming, which are the two main approaches used by AI SDKs:

  • ✅ OpenAI streaming (uses SSE)
  • ✅ Vercel AI SDK (uses SSE / fetch streaming)
  • ✅ Any SSE-based streaming API
  • ✅ EventSource with named events, auto-reconnect, and lastEventId

"What about CSS-in-JS libraries?"

Most work fine as they generate standard CSS:

  • ✅ styled-components
  • ✅ Emotion
  • ✅ CSS Modules
  • ✅ Sass/SCSS

"Can I use CSS Grid?"

Not yet - it's coming soon. Use Flexbox for now, which handles most layouts.

Debugging Compatibility Issues

If a feature isn't working:

  1. Check this compatibility guide - Is it supported?
  2. Test in browser first - Does it work in a regular browser?
  3. Check for typos - Correct API names?
  4. Read error messages - WebF provides helpful errors
  5. Use feature detection - Check if API exists before using
// Good practice: feature detection
if (typeof fetch !== 'undefined') {
  // Use fetch
} else {
  // Fallback or error message
  console.error('fetch not available');
}

Resources

Quick Decision Tree

Need storage?
├─ Simple key-value → localStorage ✅
├─ Complex database → Native plugin (sqflite/hive) ✅
└─ IndexedDB → ❌ Not available

Need layout?
├─ Flexible layout → Flexbox ✅
├─ Grid layout → Wait for CSS Grid ⏳ or use Flexbox
├─ Float layout → ❌ Use Flexbox instead
└─ Table layout → ❌ Use Flexbox instead

Need graphics?
├─ 2D canvas → Canvas 2D ✅
├─ SVG → SVG ✅
├─ 3D graphics → ❌ WebGL not available
└─ Complex graphics → Flutter rendering ✅

Need networking?
├─ HTTP requests → fetch ✅
├─ Real-time (bidirectional) → WebSocket ✅
├─ Real-time (server push) → EventSource (SSE) ✅
├─ AI streaming → EventSource or fetch ✅
└─ GraphQL → fetch-based clients ✅

Need native features?
├─ Share → @openwebf/webf-share ✅
├─ Camera → Native plugin ✅
├─ Storage → Native plugin ✅
└─ Custom → Flutter team creates plugin ✅

平台分布

Gemini CLI

25.76%
按下载量换算27

Antigravity

22.89%
按下载量换算24

windsurf

17.15%
按下载量换算18

Claude Code

13.61%
按下载量换算14

Codex

8.41%
按下载量换算9

OpenCode

3.2%
按下载量换算3

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

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

安装前确认

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

继续浏览同类 Skills