edgeone-makers-migration

edgeone-makers-migration is a cursor rule for Cursor from TencentEdgeOne/edgeone-makers-tools. It costs 90 tokens per session (4,310 once invoked), scanned A, original, MIT.

Rules for moving AI agent projects to the EdgeOne Makers platform, including projects built with several common agent frameworks.

In plain words
What is it for?
They support adapting LangChain, LangGraph, OpenAI Agents SDK, Claude Agent SDK, and CrewAI projects, as well as converting Express or Next.js API routes to Makers handlers and adding platform capabilities.
Why use it?
They help resolve differences between an existing project and the platform's required conventions and request-handling model.

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 See [makers-agents/references/python-frameworks/crewai.md](../makers-agents/references/python-frameworks/crewai.md) for the complete pattern..

Good fit They support adapting LangChain, LangGraph, OpenAI Agents SDK, Claude Agent SDK, and CrewAI projects, as well as converting Express or Next.js API routes to Makers handlers and adding platform capabilities.

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,851 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-migration

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-migration

README.md
[![agentmods](https://agentmods.dev/badge/rules/tencentedgeone/edgeone-makers-tools/makers-migration/github.svg)](https://agentmods.dev/rules/tencentedgeone/edgeone-makers-tools/makers-migration)
Your own site
<a href="https://agentmods.dev/rules/tencentedgeone/edgeone-makers-tools/makers-migration"><img src="https://agentmods.dev/badge/rules/tencentedgeone/edgeone-makers-tools/makers-migration/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-migration

Your own site · 80×15
<a href="https://agentmods.dev/rules/tencentedgeone/edgeone-makers-tools/makers-migration"><img src="https://agentmods.dev/badge/rules/tencentedgeone/edgeone-makers-tools/makers-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,310 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00090 $0.04310
Opus 5.5 $0.00036 $0.01724
Sonnet 5.5 $0.00018 $0.00862
Haiku 4.5 $0.00009 $0.00431

Measured 1mo ago against content hash 0d1ab859f248, 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-migration scanned grade A with 1 finding 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 1mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

const response = await fetch(context.env.AI_GATEWAY_BASE_URL + '/v1/chat/completions', {
cursor/rules/makers-migration.mdc · 472 lines

How it starts

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

EdgeOne Makers Migration Guide

Migrate existing AI agent projects to the EdgeOne Makers platform format. Covers structural conversion, API adaptation, and platform capability injection.


Migration Decision Tree

What type of project are you migrating?
├── Python project
│   ├── Using CrewAI → See §2 CrewAI
│   ├── Using LangChain/LangGraph/DeepAgents → See §3 LangGraph (Python)
│   ├── Using OpenAI Agents SDK → See §4 OpenAI Agents (Python)
│   └── Using Claude Agent SDK → See §5 Claude SDK (Python)
└── Node/TS project
    ├── Using Express/Next.js API routes → See §6 Express → Makers
    ├── Using LangGraph/DeepAgents → See §3 LangGraph (Node)
    ├── Using OpenAI Agents SDK → See §4 OpenAI Agents (Node)
    └── Using Claude Agent SDK → See §5 Claude SDK (Node)

⚠️ Migration Checklist (common to all frameworks)

Before starting framework-specific changes, check these global items:

  • Create edgeone.json with correct agents.framework and buildCommand/outputDirectory
  • Move backend code from Express routes / Next.js API routes into agents/ directory
  • Replace process.env / os.environ with context.env / ctx.env
  • Replace req.headers.get('x') with context.request.headers['x'] (Node) or plain dict access (Python)
  • Replace await req.json() with context.request.body (already parsed)
  • Replace direct model API calls (OpenAI, Anthropic) with AI_GATEWAY_* env vars
  • Add SSE streaming for AI endpoints (replace res.json() / return {"data": ...})
  • Add makers-conversation-id header to frontend fetch calls
  • Wire platform tools through context.tools instead of custom tool implementations
  • Wire conversation history through context.store instead of in-memory or custom DB
  • If using web_search, set WSA_API_KEY env var and use context.tools.get("web_search")
  • Set up edgeone makers dev for local development

§1. Standard API Route → Makers Handler

This is the most common migration pattern. Applies to Express/Next.js API routes, plain HTTP handlers, etc.

Read the full file on GitHub · 472 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. 1mo ago First seen · 472 lines · 90 tokens per session scan A 0d1ab859f248

Subscribe to this mod's changes

edgeone-makers-migration is a cursor rule published in the GitHub repository TencentEdgeOne/edgeone-makers-tools (1,851 stars, last pushed 2d ago), licensed MIT. It adds 90 tokens to every session and 4,310 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.