edgeone-makers-edge-functions

edgeone-makers-edge-functions is a cursor rule for Cursor from TencentEdgeOne/edgeone-makers-tools. It costs 30 tokens per session (1,250 once invoked), scanned A, original, MIT.

Rules for creating lightweight functions that run at the edge of the network using the V8 JavaScript runtime.

In plain words
What is it for?
They cover routing, reading and writing KV storage, handling requests and responses, and using environment variables in EdgeOne Makers edge functions.
Why use it?
They help keep request handling close to users while providing guidance for the platform-specific parts of edge code.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is Cross-reference: if your code uses `context.store` or KV APIs, also read `../makers-storage/SKILL.md`..

Good fit They cover routing, reading and writing KV storage, handling requests and responses, and using environment variables in EdgeOne Makers edge functions.

Compare 6 cursor rules from other repositories ↓
About the project

EdgeOne Makers Tools is a collection of AI-agent skills and related workflow files for developing and deploying projects on EdgeOne Makers. It covers agent development, deployment, edge and cloud functions, storage, middleware, command-line usage, and project templates. The catalogue entries package these capabilities as skills, rules, instructions, a hook, and a plugin for coding agents.

TencentEdgeOne/edgeone-makers-tools · 1,840 stars · on GitHub

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/TencentEdgeOne/edgeone-makers-tools
agentmods
npx agentmods add rules/tencentedgeone/edgeone-makers-tools/makers-edge-functions

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for edgeone-makers-edge-functions

README.md
[![agentmods](https://agentmods.dev/badge/rules/tencentedgeone/edgeone-makers-tools/makers-edge-functions/github.svg)](https://agentmods.dev/rules/tencentedgeone/edgeone-makers-tools/makers-edge-functions)
Your own site
<a href="https://agentmods.dev/rules/tencentedgeone/edgeone-makers-tools/makers-edge-functions"><img src="https://agentmods.dev/badge/rules/tencentedgeone/edgeone-makers-tools/makers-edge-functions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for edgeone-makers-edge-functions

Your own site · 80×15
<a href="https://agentmods.dev/rules/tencentedgeone/edgeone-makers-tools/makers-edge-functions"><img src="https://agentmods.dev/badge/rules/tencentedgeone/edgeone-makers-tools/makers-edge-functions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,250 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.01250
Opus 5.5 $0.00012 $0.00500
Sonnet 5.5 $0.00006 $0.00250
Haiku 4.5 $0.00003 $0.00125

Measured 22d ago against content hash 7c6558684cb2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

edgeone-makers-edge-functions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 22d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

cursor/rules/makers-edge-functions.mdc · 162 lines

How it starts

The opening of the file, as written. The whole thing — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Edge Functions

V8-based lightweight functions running at the edge. Ideal for simple APIs, KV storage access, and ultra-low latency responses.

Runtime: V8 (like Cloudflare Workers) — NOT Node.js. Do NOT use Node.js built-ins or npm packages.

⚠️ Response.json() is NOT available in this V8 runtime. Always use new Response(JSON.stringify(data), { headers: { 'Content-Type': 'application/json' } }) instead.

Basic function

File: edge-functions/api/hello.js

export default function onRequest(context) {
  return new Response('Hello from Edge Functions!');
}

Access: GET /api/hello

HTTP method handlers

// edge-functions/api/users.js

// Handle all methods
export function onRequest(context) {
  return new Response('Any method');
}

// Or use specific method handlers:
export function onRequestGet(context) {
  return new Response(JSON.stringify({ users: [] }), {
    headers: { 'Content-Type': 'application/json' },
  });
}

export async function onRequestPost(context) {
  const body = await context.request.json();
  return new Response(JSON.stringify({ created: true }), {
    status: 201,
    headers: { 'Content-Type': 'application/json' },
  });
}

EventContext object

export function onRequest(context) {
  const {
    request,    // Standard Request object
    params,     // Dynamic route params, e.g. { id: "123" }
    env,        // Environment variables from Makers console
    waitUntil,  // Extend function lifetime for async tasks
  } = context;

  // GEO info available via:
  const geo = context.request.eo;
  // geo.geo.countryName, geo.geo.cityName, geo.geo.latitude, etc.

  return new Response('OK');
}

Dynamic routes

// edge-functions/api/users/[id].js
// Matches: /api/users/123, /api/users/abc

export function onRequestGet(context) {
  const userId = context.params.id;
  return new Response(JSON.stringify({ userId }), {
    headers: { 'Content-Type': 'application/json' },
  });
}

Read the full file on GitHub · 162 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 22d ago Changed 7c6558684cb2
  2. 3mo ago First seen · 162 lines · 30 tokens per session scan A fce8359f8dd6

Subscribe to this mod's changes

edgeone-makers-edge-functions is a cursor rule published in the GitHub repository TencentEdgeOne/edgeone-makers-tools (1,840 stars, last pushed yesterday), licensed MIT. It adds 30 tokens to every session and 1,250 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

edgeone-makers-edge-functions compared with cursor rules from other repositories

edgeone-makers-edge-functions next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
edgeone-makers-edge-functionsTencentEdgeOne/edgeone-makers-toolsCursor rule1.8kyesterdayMITA30Cursor
cloudflare-email-telegram-cursorrules-prompt-filePatrickJS/awesome-cursorrulesCursor rule41k6mo agoCC0-1.0A720Cursor
service-bindingslouisbrulenaudet/monorepo-templateCursor rule19yesterdayApache-2.0A775Cursor
implement-graceful-shutdown-for-your-applicationPaulJPhilp/EffectPatternsCursor rule8075mo agoMITA702Cursor
hatch3r-scalabilityhatch3r/hatch3rCursor rule262mo agoMITA0Cursor
cloudflare-workers-hono-angular-saas-cursorrules-prompt-fileXD3an/awesome-ai-coding-all-in-oneCursor rule144d agononeA1,335Cursor
knative-istio-typesense-gpu-cursorrules-prompt-filXD3an/awesome-ai-coding-all-in-oneCursor rule144d agononeA613Cursor