Token导航 LogoToken导航

Agent Skill · 研究检索

webf-native-plugins(webf 原生插件)

webf-native-plugins 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

webf-native-plugins 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 65,351。

总安装 282周安装 12GitHub Stars 2,416下载 99核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/openwebf/webf --skill webf-native-plugins

这个 Skill 是做什么的

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

本机插件提供对 Web API 之外的平台功能的访问 检查 https://openwebf.com/en/native-plugins 是否有可用的插件 安装 Flutter 包 (pubspec.yaml) 和 npm 包 使用 WebF.defineModule() 注册插件 in main.dart 在 JavaScript 中使用功能检测和错误处理 在所有目标平台上进行测试 如果需要,使用插件开发指南创建自定义插件 每周安装量 12 存储库 openwebf/webf GitHub 之星 2.4K 第一次看到 2026 年 1 月 25 日 安全审计 Gen Agent Trust Hub 通行证 套接字通行证 斯尼克通行证

来源仓库内路径:skills/webf-native-plugins

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

webf-native-plugins 怎么安装?

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

webf-native-plugins 支持哪些 AI 工具?

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

webf-native-plugins 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

webf-native-plugins 是免费的吗?

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

webf-native-plugins 用的人多吗?

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

webf-native-plugins 安全吗?

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

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

值得选的地方

  • 同时适配 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-native-plugins

webf 原生插件 · 本页

2822,416需要联网MIT通过

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

SKILL.md 原文

WebF Native Plugins

When building WebF apps, you often need access to native platform capabilities like sharing content, accessing the camera, handling payments, or using geolocation. WebF provides native plugins that bridge JavaScript code with native platform APIs.

What Are Native Plugins?

Native plugins are packages that:

  • Provide native platform capabilities (share, camera, payments, sensors, etc.)
  • Work across iOS, Android, macOS, and other platforms
  • Use JavaScript APIs in your code
  • Require both Flutter and npm package installation
  • Bridge to native platform APIs through Flutter

When to Use Native Plugins

Use native plugins when you need capabilities that aren't available in standard web APIs:

Use Native Plugins For:

  • Sharing content to other apps
  • Accessing device camera or photo gallery
  • Processing payments
  • Getting geolocation with native accuracy
  • Push notifications
  • Biometric authentication (Face ID, fingerprint)
  • Device sensors (accelerometer, gyroscope)
  • File system access beyond web storage
  • Native calendar/contacts integration

Standard Web APIs Work Without Plugins:

  • fetch() for HTTP requests
  • localStorage for local storage
  • Canvas 2D for graphics
  • Geolocation API (basic)
  • Media queries for responsive design

Finding Available Plugins

Before implementing a feature, always check if a pre-built native plugin exists:

  1. Visit the official plugin registry: https://openwebf.com/en/native-plugins
  2. Browse available plugins by category
  3. Check the plugin documentation for installation steps

Installation Process

Every native plugin requires TWO installations:

  1. Flutter side (in your Flutter host app)
  2. JavaScript side (in your web project)

Step 1: Check Plugin Availability

Visit https://openwebf.com/en/native-plugins and search for the capability you need:

  • Click on the plugin to view details
  • Note the Flutter package name (e.g., webf_share)
  • Note the npm package name (e.g., @openwebf/webf-share)

Step 2: Install Flutter Package

If you have access to the Flutter project hosting your WebF app:

  1. Open the Flutter project's pubspec.yaml
  2. Add the plugin dependency: dependencies: webf_share: ^1.0.0 # Replace with actual plugin name
  3. Run flutter pub get
  4. Register the plugin in your main Dart file: import 'package:webf/webf.dart'; import 'package:webf_share/webf_share.dart'; // Import the plugin void main() {// Initialize WebFControllerManager WebFControllerManager.instance.initialize(WebFControllerManagerConfig(maxAliveInstances: 2, maxAttachedInstances: 1,)); // Register the native plugin module WebF.defineModule((context) => ShareModule(context)); runApp(MyApp());}

Step 3: Install npm Package

In your JavaScript/TypeScript project:

# For the Share plugin example
npm install @openwebf/webf-share

# Or with yarn
yarn add @openwebf/webf-share

Step 4: Use in Your JavaScript Code

Import and use the plugin in your application:

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

// Use the plugin API
const success = await WebFShare.shareText({
  title: 'My App',
  text: 'Check out this amazing content!',
  url: 'https://example.com'
});

Available Plugins

Share Plugin (webf_share)

Description: Share content, text, and images through native platform sharing

Capabilities:

  • Share text, URLs, and titles to other apps
  • Share images using native sharing mechanisms
  • Save screenshots to device storage
  • Create preview images for temporary display

Flutter Package: webf_share: ^1.0.0

npm Package: @openwebf/webf-share

Example Usage:

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

// Share text content
await WebFShare.shareText({
  title: 'Article Title',
  text: 'Check out this article!',
  url: 'https://example.com/article'
});

// Share an image from canvas
const canvas = document.getElementById('myCanvas');
const imageData = ShareHelpers.canvasToArrayBuffer(canvas);
await WebFShare.shareImage(imageData);

// Save screenshot
await WebFShare.saveScreenshot(imageData);

Storage Locations:

  • Android: Downloads folder (/storage/emulated/0/Download/)
  • iOS: App documents directory (accessible via Files app)
  • macOS: Application documents directory (accessible via Finder)

See the Native Plugins Reference for more available plugins.

Common Patterns

1. Feature Detection

Always check if a plugin is available before using it:

// Check if plugin is loaded
if (typeof WebFShare !== 'undefined') {
  await WebFShare.shareText({ text: 'Hello' });
} else {
  // Fallback or show message
  console.log('Share plugin not available');
}

2. Error Handling

Wrap plugin calls in try-catch blocks:

try {
  const success = await WebFShare.shareText({
    title: 'My App',
    text: 'Check this out!'
  });

  if (success) {
    console.log('Content shared successfully');
  }
} catch (error) {
  console.error('Failed to share:', error);
  // Show error message to user
}

3. TypeScript Type Safety

All plugins include TypeScript definitions:

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

const shareOptions: ShareTextOptions = {
  title: 'Article',
  text: 'Read this article',
  url: 'https://example.com'
};

await WebFShare.shareText(shareOptions);

Creating Custom Plugins

If you need capabilities not provided by existing plugins, you can create your own:

  1. Read the Plugin Development Guide: https://openwebf.com/en/docs/developer-guide/native-plugins
  2. Study existing plugins: https://github.com/openwebf/webf/tree/main/webf_modules
  3. Follow the plugin architecture:

- Create a Flutter package implementing the native functionality - Create an npm package exposing JavaScript APIs - Use WebF's module system to bridge between them

Troubleshooting

Issue: Plugin Not Found in JavaScript

Cause: Flutter package not installed or module not registered

Solution:

  1. Check that the Flutter package is in pubspec.yaml
  2. Verify the module is registered with WebF.defineModule() in main.dart
  3. Run flutter pub get
  4. Rebuild the Flutter app
  5. Restart WebF Go or your app

Issue: TypeScript Errors

Cause: npm package not installed correctly

Solution:

# Reinstall the package
npm install @openwebf/webf-share --save

# Clear cache and reinstall
rm -rf node_modules package-lock.json
npm install

Issue: Plugin Works on iOS but Not Android

Cause: Platform-specific permissions or configuration missing

Solution:

  1. Check the plugin documentation for required permissions
  2. Add necessary permissions to AndroidManifest.xml or Info.plist
  3. Some plugins require additional native configuration

Issue: "Module is not defined" Error

Cause: Plugin module not registered in Flutter

Solution: Make sure you're calling WebF.defineModule() in your Flutter main() function before runApp():

void main() {
  WebF.defineModule((context) => ShareModule(context));
  runApp(MyApp());
}

Best Practices

1. Check Plugin Availability First

Before implementing a feature, visit https://openwebf.com/en/native-plugins to see if a plugin already exists. Don't reinvent the wheel.

2. Test on Multiple Platforms

Native plugins may behave differently on iOS vs Android vs macOS:

  • Test on all target platforms
  • Handle platform-specific behavior gracefully
  • Read plugin docs for platform differences

3. Provide Fallbacks

Not all users may have the plugin installed (especially during development):

if (typeof WebFShare !== 'undefined') {
  // Use native sharing
  await WebFShare.shareText({ text: 'Hello' });
} else {
  // Fallback: copy to clipboard or show a link
  navigator.clipboard.writeText('Hello');
}

4. Handle Permissions Properly

Some plugins require user permissions (camera, location, etc.):

  • Request permissions at appropriate times
  • Explain why you need the permission
  • Handle permission denial gracefully
  • Check plugin docs for permission requirements

5. Keep Plugins Updated

Native plugins are updated to support new platform features and fix bugs:

  • Check for plugin updates regularly
  • Read changelogs before updating
  • Test thoroughly after updating

Production Deployment

When deploying to production:

  1. Flutter App: Make sure all required plugins are in pubspec.yaml
  2. npm Packages: Include all plugin packages in package.json
  3. Permissions: Configure all required permissions in app manifests
  4. Testing: Test on real devices for all target platforms
  5. Documentation: Document which plugins your app requires

Resources

Next Steps

After installing native plugins:

  1. Read plugin documentation: Each plugin has specific APIs and requirements
  2. Test on devices: Native features work differently than web APIs
  3. Handle errors: Native calls can fail due to permissions or platform limitations
  4. Consider alternatives: Check webf-api-compatibility for web API alternatives

Summary

  • Native plugins provide access to platform capabilities beyond web APIs
  • Check https://openwebf.com/en/native-plugins for available plugins
  • Install BOTH Flutter package (pubspec.yaml) AND npm package
  • Register plugins with WebF.defineModule() in main.dart
  • Use feature detection and error handling in JavaScript
  • Test on all target platforms
  • Create custom plugins if needed using the Plugin Development Guide

平台分布

windsurf

28.5%
按下载量换算28

OpenCode

27.03%
按下载量换算27

Codex

18.22%
按下载量换算18

Claude Code

12.76%
按下载量换算13

Antigravity

8.4%
按下载量换算8

Gemini CLI

3.86%
按下载量换算4

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

继续浏览同类 Skills