Token导航 LogoToken导航TokenDH.com
开发操作浏览器github未标认证来源可访问clear审计提醒

webf-quickstartwebf 快速入门

Agent Skill

webf-quickstart 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

324

周安装

13

GitHub Stars

2,379

下载量

105
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在需要围绕仓库状态、代码变更或协作事项进行整理时使用。
  • 可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网或文件读写。
  • 涉及敏感操作时应先评估影响范围,避免误删或修改关键资源。

SKILL.md

WebF Quickstart

Note: Building WebF apps is nearly identical to building regular web apps with Vite + React/Vue/Svelte. The only difference is you replace your browser with WebF Go for testing during development. Everything else - project structure, build tools, testing frameworks, and deployment - works the same way.
⚠️ IMPORTANT: WebF Go is for development and testing ONLY. For production, you must build a Flutter app with WebF integration. Do NOT distribute WebF Go to end users.

Get up and running with WebF in minutes. This skill guides you through setting up your development environment, creating your first project, and loading it in WebF Go.

What You Need

Only Node.js is required - that's it!

  • Node.js (LTS version recommended) from nodejs.org
  • You do NOT need: Flutter SDK, Xcode, or Android Studio

WebF lets web developers build native apps using familiar web tools.

Step-by-Step Setup

1. Download WebF Go (For Testing Only)

WebF Go is a pre-built native app containing the WebF rendering engine. It's designed for development and testing purposes only - not for production deployment.

For Desktop Development:

For Mobile Testing:

  • iOS: Download from App Store
  • Android: Download from Google Play

Remember: WebF Go is a testing tool. For production apps, you'll need to build a Flutter app with WebF integration.

Launch WebF Go - you'll see an input field ready to load your app.

2. Create Your Project with Vite

Open your terminal and create a new project:

npm create vite@latest my-webf-app

Vite will prompt you to:

  1. Choose a framework: React, Vue, Svelte, etc.
  2. Choose a variant (JavaScript or TypeScript)

3. Install Dependencies and Start Dev Server

# Move into your project
cd my-webf-app

# Install dependencies
npm install

# Start the dev server
npm run dev

Your terminal will show URLs like:

  VITE v5.0.0  ready in 123 ms

  ➜  Local:   http://localhost:5173/
  ➜  Network: http://192.168.1.100:5173/

4. Load in WebF Go

For Desktop:

  1. Copy the http://localhost:5173/ URL
  2. Paste into WebF Go's input field
  3. Press Enter or click "Go"

For Mobile Device: ⚠️ IMPORTANT: Mobile devices cannot access localhost

You MUST use the Network URL instead:

  1. Make sure your computer and mobile device are on the same WiFi network
  2. Use --host flag to expose the dev server: npm run dev -- --host
  3. Copy the Network URL (e.g., http://192.168.1.100:5173/)
  4. Type it into WebF Go on your mobile device
  5. Press "Go"

Your app will now render in WebF! 🎉

5. Verify Hot Reload

Make a quick change to your code and save. The app should automatically update - this is Vite's Hot Module Replacement (HMR) working with WebF.

6. (Optional) Setup Chrome DevTools

To debug your app:

  1. Click the floating debug button in WebF Go
  2. Click "Copy" to get the DevTools URL (devtools://...)
  3. Paste into desktop Google Chrome browser
  4. You can now use Console, Elements, Network tabs

Note: JavaScript breakpoints don't work yet - use console.log() instead.

Common Issues and Solutions

Issue: "Cannot connect" on mobile device

Causes & Solutions:

  • ✗ Using localhost → ✓ Use Network URL (http://192.168.x.x:5173)
  • ✗ Different WiFi networks → ✓ Put both devices on same network
  • ✗ Missing --host flag → ✓ Use npm run dev -- --host
  • ✗ Firewall blocking port → ✓ Allow port 5173 through firewall

Issue: "Connection refused"

  • Dev server not running → Run npm run dev
  • Wrong port number → Check terminal output for correct port
  • Firewall blocking → Temporarily disable to test

Issue: App loads but doesn't update

  • HMR not working → Refresh the page manually
  • Dev server error → Check terminal for errors
  • Network connection lost → Reconnect WiFi

Production Deployment

⚠️ WebF Go is NOT for production use. It's a testing tool for developers.

For Production Apps

When you're ready to deploy to end users, you need to:

1. Build Your Web Bundle

npm run build

2. Host Your Bundle

  • Deploy to any web hosting (Vercel, Netlify, CDN, etc.)
  • Your bundle will be accessible via URL (e.g., https://your-app.com)

3. Create a Flutter App with WebF Integration

You or your Flutter team needs to:

  • Set up a Flutter project
  • Add the WebF Flutter package to pubspec.yaml
  • Configure the app (name, icon, splash screen, permissions)
  • Load your web bundle URL in the WebF widget

Example Flutter Integration:

import 'package:webf/webf.dart';

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return WebF(
      bundle: WebFBundle.fromUrl('https://your-app.com'),
    );
  }
}

4. Build and Deploy Flutter App

  • Build for iOS and Android
  • Submit to App Store and Google Play

Resources:

Development vs Production

AspectDevelopmentProduction
ToolWebF GoCustom Flutter app
PurposeTesting & iterationEnd-user distribution
SetupDownload and runBuild Flutter app
DistributionDon't distributeApp Store/Google Play
RequirementsNode.js onlyFlutter SDK required

Next Steps

Now that you have a working dev environment:

  1. Learn the #1 difference: WebF uses async rendering - see the webf-async-rendering skill
  2. Check API compatibility: Not all web APIs work in WebF - see webf-api-compatibility skill
  3. Add navigation: Multi-screen apps use WebF routing - see webf-routing-setup skill

Quick Reference

# Create new project
npm create vite@latest my-app

# Start dev server (desktop)
npm run dev

# Start dev server (mobile - with network access)
npm run dev -- --host

# Install dependencies
npm install

# Build for production
npm run build

Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

windsurf

31.47%
按下载量换算33

OpenCode

24.65%
按下载量换算26

Codex

16.66%
按下载量换算17

Claude Code

11.72%
按下载量换算12

Antigravity

7.23%
按下载量换算8

Gemini CLI

3.35%
按下载量换算4

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills