Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问许可证需确认审计通过

edgeone-pages-devEdgeone 页面开发

Agent Skill

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

总安装

1,670

周安装

71

GitHub Stars

17

下载量

585
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/edgeone-pages/edgeone-pages-skills --skill edgeone-pages-dev

简介

用于开发全栈应用,支持边缘函数、中间件及后端逻辑搭建。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中构建 API 或调试 EdgeOne 页面。
  • 通过 GitHub 安装,可结合 KV Storage 和 WebSocket 实现数据持久化与实时通信。
  • 需确认运行时环境与权限,避免在生产环境中直接修改核心配置。
  • edgeone-pages-dev 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

EdgeOne Pages Development Guide

Develop full-stack applications on EdgeOne Pages — Edge Functions, Cloud Functions (Node.js / Go / Python), and Middleware.

When to use this skill

  • Creating APIs, serverless functions, or backend logic on EdgeOne Pages
  • Adding middleware for request interception, redirects, auth guards, or A/B testing
  • Building full-stack apps with static frontend + server-side functions
  • Using KV Storage for edge-side persistent data
  • Setting up WebSocket endpoints (Node.js runtime)
  • Integrating Express, Koa, Gin, Echo, Flask, FastAPI, or Django on EdgeOne Pages
  • Debugging EdgeOne Pages runtime errors (function failures, middleware issues, KV problems)

Do NOT use for:

  • Deployment → use edgeone-pages-deploy skill
  • Next.js / Nuxt middleware or API routes → use the framework's own API, NOT the platform middleware.js
  • Generic Express/Koa/Gin/Flask development outside an EdgeOne Pages project
  • Cloudflare Workers, Vercel Functions, or other platforms

How to use this skill (for a coding agent)

  1. Read the Decision Tree below to pick the correct runtime
  2. Follow the Routing table to load the relevant reference file
  3. Use the code patterns from that reference to implement the user's request

⛔ Critical Rules (never skip)

  1. Choose the right runtime for the task. Follow the Decision Tree — never guess.
  2. Edge Functions run on V8, NOT Node.js. Never use Node.js built-in modules (fs, path, crypto from Node) or npm packages in Edge Functions.
  3. Cloud Functions support three runtimes: Node.js, Go, and Python. Place all function files under cloud-functions/ directory. The platform detects the language by file extension (.js/.ts → Node.js, .go → Go, .py → Python).
  4. Node.js functions return a standard Web Response object, not res.send() — unless using Express/Koa via the [[default]].js pattern.
  5. Go Handler mode requires http.HandlerFunc signature; Framework mode uses standard framework code with auto port/path adaptation.
  6. Python entry files are identified by class/app patterns (class handler(BaseHTTPRequestHandler), app = Flask(...), app = FastAPI(...)). Other .py files are treated as helper modules.
  7. Middleware is for lightweight request interception only. Never put heavy computation or database calls in middleware.
  8. Always use edgeone pages dev for local development. Never run a separate dev server for functions — the CLI handles everything on port 8088.
  9. Never configure edgeone pages dev as the devCommand in edgeone.json or as the dev script in package.json — this causes infinite recursion.
  10. For framework projects (Next.js, Nuxt, etc.), use the framework's own middleware — NOT the platform middleware.js.

Technology Decision Tree

Request interception / redirect / rewrite / auth guard / A/B test?
  → Middleware                                        → read references/middleware.md

Lightweight API with ultra-low latency (simple logic, no npm)?
  → Edge Functions                                    → read references/edge-functions.md

KV persistent storage? (⚠️ enable KV in console first)
  → Edge Functions + KV Storage                       → read references/kv-storage.md

Complex backend with npm packages / database / WebSocket?
  → Cloud Functions (Node.js)                         → read references/node-functions.md

Express or Koa framework?
  → Cloud Functions (Node.js) with [[default]].js     → read references/node-functions.md

High-performance API with Go (Gin / Echo / Chi / Fiber)?
  → Cloud Functions (Go)                              → read references/go-functions.md

Python API with Flask / FastAPI / Django / Sanic?
  → Cloud Functions (Python)                          → read references/python-functions.md

Pure static site with no server-side logic?
  → No functions needed — just deploy static files

Need a project structure template?
  → read references/recipes.md

Runtime Comparison

FeatureEdge FunctionsCloud Functions (Node.js)Cloud Functions (Go)Cloud Functions (Python)Middleware
RuntimeV8 (like CF Workers)Node.js v20.xGo 1.26+Python 3.10V8 (edge)
npm/packages❌ Not supported✅ Full npm ecosystem✅ Go modules✅ pip (auto-detect)❌ Not supported
Max code size5 MB128 MB128 MB128 MB (incl. deps)Part of edge bundle
Max request body1 MB6 MB6 MB6 MBN/A (passes through)
Max CPU / wall time200 ms CPU120 s wall clock120 s wall clock120 s wall clockLightweight only
KV Storage✅ Yes (global variable)❌ No❌ No❌ No❌ No
WebSocket❌ No✅ Yes❌ No❌ No❌ No
Framework supportExpress, KoaGin, Echo, Chi, FiberFlask, FastAPI, Django, Sanic
Use caseLightweight APIs, edge computeComplex APIs, full-stackHigh-perf APIs, compiled speedData science, ML, rapid prototypingRequest preprocessing

Cloud Functions — Language Comparison

FeatureNode.jsGoPython
File extension.js / .ts.go.py
Handler styleexport function onRequest(ctx)Responsefunc Handler(w, r) (Handler) or func main() (Framework)class handler(BaseHTTPRequestHandler) or framework app instance
Framework modeExpress/Koa via [[default]].jsGin/Echo/Chi/Fiber via entry .go fileFlask/FastAPI/Django via entry .py file
Dependency managementpackage.json (npm)go.mod (auto)requirements.txt + auto-detect
Dev modesHandler / FrameworkHandler / FrameworkHandler / WSGI / ASGI

Routing

TaskRead
Edge Functions (lightweight APIs, V8 runtime, KV Storage)references/edge-functions.md
KV Storage (persistent key-value storage on edge)references/kv-storage.md
Cloud Functions — Node.js (npm, database, Express/Koa, WebSocket)references/node-functions.md
Cloud Functions — Go (Gin, Echo, Chi, Fiber, net/http)references/go-functions.md
Cloud Functions — Python (Flask, FastAPI, Django, Sanic, Handler)references/python-functions.md
Middleware (redirects, rewrites, auth guards, A/B testing)references/middleware.md
Project structure templates and common recipesreferences/recipes.md
Debugging and troubleshootingreferences/troubleshooting.md

Project Setup (Quick Start)

Initialize the project:

edgeone pages init

Start local development:

edgeone pages dev            # Serves everything on http://localhost:8088/

Link project (required for KV & env vars):

edgeone pages link

Manage environment variables:

edgeone pages env pull       # Pull from console to local .env

Access env vars in functions via context.env.KEY (Node.js), os.Getenv("KEY") (Go), or os.environ.get("KEY") (Python).

For detailed project structures and recipes, see references/recipes.md.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.16%
按下载量换算212

Claude

27.98%
按下载量换算164

Cursor

18.87%
按下载量换算110

Gemini CLI

9.63%
按下载量换算56

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills