Agent skill

Edgeone Makers Middleware

by TencentEdgeOne in TencentEdgeOne/edgeone-makers-tools

Edge middleware for EdgeOne Makers — request interception, redirects, rewrites, auth guards, A/B testing, and header injection at the edge (V8 runtime).

MITAuto-check passedMarketing & SEO

Install Edgeone Makers Middleware

skills CLI
$ npx skills add TencentEdgeOne/edgeone-makers-tools --skill edgeone-makers-middleware -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install TencentEdgeOne/edgeone-makers-tools edgeone-makers-middleware --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/TencentEdgeOne/edgeone-makers-tools.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/edgeone-makers-tools/references/makers-middleware .claude/skills/edgeone-makers-middleware && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
edgeone-makers-middleware
GitHub stars
1.9k
Used in
1 other repo
Token cost
~1.2k tokens
SKILL.md length
168 words
Files
1
Skills in repo
12
Repo updated
First seen
Licence
MIT

At a glance

Edge middleware for EdgeOne Makers — request interception, redirects, rewrites, auth guards, A/B testing, and header injection at the edge (V8 runtime).

  • Tasks that involve A/B testing
  • SKILL.md covers Basic middleware, Context API, Route matching and Common patterns, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Edgeone Makers Middleware is an agent skill from TencentEdgeOne/edgeone-makers-tools. Edge middleware for EdgeOne Makers — request interception, redirects, rewrites, auth guards, A/B testing, and header injection at the edge (V8 runtime).

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Marketing & SEO, covering A/B testing. The licence is MIT.

When your agent uses it

  • Tasks that involve A/B testing

Example prompts

  • “/edgeone-makers-middleware”

What it can do on your machine

Read from SKILL.md and the folder at commit e6ead94. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Edgeone Makers Middleware loads about 1.2k tokens when it runs. Until then it costs about 45 tokens; SKILL.md has 168 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~45
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from TencentEdgeOne/edgeone-makers-tools at commit e6ead94, republished under its MIT licence (© TencentEdgeOne). 168 words, ~1,227 tokens.

Download SKILL.mdSave it as .claude/skills/edgeone-makers-middleware/SKILL.md (or your agent's skills folder).
name
edgeone-makers-middleware
description
Edge middleware for EdgeOne Makers — request interception, redirects, rewrites, auth guards, A/B testing, and header injection at the edge (V8 runtime).
pathPatterns
middleware.js, middleware.ts
metadata.author
edgeone
metadata.version
1.0.0

Middleware

Lightweight request interception running at the edge (V8 runtime). Use for redirects, rewrites, auth guards, A/B testing, and header injection.

⚠️ Framework projects (Next.js, Nuxt, etc.): Do NOT use this platform middleware format. Use the framework's built-in middleware instead (e.g. Next.js middleware.ts with NextRequest/NextResponse). The patterns below are for non-framework or pure static projects only.

Basic middleware

File: middleware.js (project root)

javascript
export function middleware(context) {
  const { request, next, redirect, rewrite } = context;

  // Pass through — no modification
  return next();
}

Context API

PropertyTypeDescription
requestRequestCurrent request object
next(options?)FunctionContinue to origin; optionally modify headers
redirect(url, status?)FunctionRedirect (default 307)
rewrite(url)FunctionRewrite request path (transparent to client)
geoGeoPropertiesClient geolocation
clientIpstringClient IP address

Route matching

By default middleware runs on ALL routes. Use config.matcher to limit scope:

javascript
// Only run on /api/* routes
export const config = {
  matcher: ['/api/:path*'],
};

export function middleware(context) {
  // Auth check for API routes only
  const token = context.request.headers.get('Authorization');
  if (!token) {
    return new Response('Unauthorized', { status: 401 });
  }
  return context.next();
}

Matcher patterns:

javascript
// Single path
export const config = { matcher: '/about' };

// Multiple paths
export const config = { matcher: ['/api/:path*', '/admin/:path*'] };

// Regex
export const config = { matcher: ['/api/.*', '^/user/\\d+$'] };

Common patterns

URL Redirect
javascript
export function middleware(context) {
  const url = new URL(context.request.url);

  if (url.pathname === '/old-page') {
    return context.redirect('/new-page', 301);
  }
  return context.next();
}
URL Rewrite (transparent proxy)
javascript
export function middleware(context) {
  const url = new URL(context.request.url);

  if (url.pathname.startsWith('/blog')) {
    return context.rewrite('/content' + url.pathname);
  }
  return context.next();
}
Add request headers
javascript
export function middleware(context) {
  return context.next({
    headers: {
      'x-request-id': crypto.randomUUID(),
      'x-client-ip': context.clientIp,
      'x-country': context.geo.countryCodeAlpha2,
    },
  });
}
Auth guard
javascript
export const config = {
  matcher: ['/api/:path*', '/admin/:path*'],
};

export function middleware(context) {
  const token = context.request.headers.get('Authorization');
  if (!token || !token.startsWith('Bearer ')) {
    return new Response(JSON.stringify({ error: 'Unauthorized' }), {
      status: 401,
      headers: { 'Content-Type': 'application/json' },
    });
  }
  return context.next();
}
Geo-based routing
javascript
export function middleware(context) {
  const country = context.geo.countryCodeAlpha2;

  if (country === 'CN') {
    return context.rewrite('/zh' + new URL(context.request.url).pathname);
  }
  return context.next();
}
A/B Testing
javascript
export function middleware(context) {
  const url = new URL(context.request.url);

  if (url.pathname === '/landing') {
    const variant = Math.random() < 0.5 ? '/landing-a' : '/landing-b';
    return context.rewrite(variant);
  }
  return context.next();
}
Direct JSON response
javascript
export function middleware(context) {
  const url = new URL(context.request.url);

  if (url.pathname === '/api/health') {
    return new Response(JSON.stringify({ status: 'ok', timestamp: Date.now() }), {
      headers: { 'Content-Type': 'application/json' },
    });
  }
  return context.next();
}

GeoProperties

Available on context.geo:

PropertyTypeExample
countryNamestringSingapore
countryCodeAlpha2stringSG
countryCodeAlpha3stringSGP
regionNamestring—
cityNamestringSingapore
latitudenumber1.29027
longitudenumber103.851959
asnnumber132203

© TencentEdgeOne, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/edgeone-makers-tools/references/makers-middleware of TencentEdgeOne/edgeone-makers-tools.

Open the folder on GitHubat commit e6ead94

Used in 1 other repository

We found 3 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in TencentEdgeOne/edgeone-makers-tools, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Edgeone Makers Middleware next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Edgeone Makers Middleware compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Edgeone Makers Middleware this skillTencentEdgeOne/edgeone-makers-tools1.9k1 repos~1.2kAutomated safety check: PassMIT
Ab Testingcoreyhaines31/marketingskills54k3 repos~3.1kAutomated safety check: PassMIT
AnalyticsNexus-JPF/note-companion8707 repos~2.2kAutomated safety check: PassMIT
Ad Test Designeraaron-he-zhu/aaron-marketing-skills2.9k2 repos~2.8kAutomated safety check: PassApache-2.0
Ab Test Analyzeririnabuht12-oss/marketing-skills4.1k—~1.4kAutomated safety check: PassNone
Ab Test Store Listingappeeky/aso-skills2.2k—~1.8kAutomated safety check: PassMIT

Similar skills

  • Ab Testing

    coreyhaines31/marketingskills

    When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program.

    54k GitHub starsUsed in 3 repos~3.1k tokens
    Marketing & SEOAuto-check passed
  • Analytics

    Nexus-JPF/note-companion

    When the user wants to set up, improve, or audit analytics tracking and measurement.

    870 GitHub starsUsed in 7 repos~2.2k tokens
    Marketing & SEOAuto-check passed
  • Ad Test Designer

    aaron-he-zhu/aaron-marketing-skills

    A skill your agent uses when the user asks to "design an A/B test", "set up a creative/landing test", "run an incrementality test", or "is this result statistically and practically material?"…

    2.9k GitHub starsUsed in 2 repos~2.8k tokens
    Marketing & SEOAuto-check passed
  • Ab Test Analyzer

    irinabuht12-oss/marketing-skills

    Statistical significance calculator for A/B test results with sample size requirements, segment breakdowns, and hypothesis generation.

    4.1k GitHub stars~1.4k tokensUpdated 16 days ago
    Marketing & SEOAuto-check passed
  • Ab Test Store Listing

    appeeky/aso-skills

    When the user wants to A/B test App Store product page elements to improve conversion rate.

    2.2k GitHub stars~1.8k tokensUpdated 3 days ago
    Marketing & SEOAuto-check passed
  • Ab Test Setup

    freekmurze/dotfiles

    When the user wants to plan, design, or implement an A/B test or experiment.

    1k GitHub starsUsed in 14 repos~1.8k tokens
    Marketing & SEOAuto-check passed

More from TencentEdgeOne/edgeone-makers-tools

All 12 skills in this repo
  • Edgeone Makers Migration

    TencentEdgeOne/edgeone-makers-tools

    Migrate existing AI agent projects (LangChain, LangGraph, OpenAI Agents SDK, Claude Agent SDK, CrewAI) to EdgeOne Makers platform conventions.

    1.9k GitHub starsUsed in 1 repo~4.1k tokens
    Auto-check passed
  • Edgeone Makers Agents

    TencentEdgeOne/edgeone-makers-tools

    This skill guides building AI agent endpoints on EdgeOne Makers — five framework routes (DeepAgents, LangGraph, CrewAI, OpenAI Agents SDK, Claude Agent SDK), platform-injected context.store /…

    1.9k GitHub starsUsed in 1 repo~5.8k tokens
    Auto-check: notes
  • Edgeone Makers CLI

    TencentEdgeOne/edgeone-makers-tools

    EdgeOne Makers CLI command reference. An agent skill from TencentEdgeOne/edgeone-makers-tools.

    1.9k GitHub starsUsed in 1 repo~739 tokens
    Auto-check: notes
  • Edgeone Makers Env Adaption

    TencentEdgeOne/edgeone-makers-tools

    Environment-specific adaptation rules for EdgeOne Makers Skills running in sandboxed or restricted AI coding environments (e.g.

    1.9k GitHub starsUsed in 1 repo~4.8k tokens
    Auto-check passed
  • Edgeone Makers Recipes

    TencentEdgeOne/edgeone-makers-tools

    Project structure templates and scaffolding recipes for typical EdgeOne Makers applications — full-stack apps, static sites, API services, and AI agent projects.

    1.9k GitHub starsUsed in 1 repo~2.8k tokens
    Auto-check passed
  • Edgeone Makers Storage

    TencentEdgeOne/edgeone-makers-tools

    KV and Blob storage services on EdgeOne Makers. An agent skill from TencentEdgeOne/edgeone-makers-tools.

    1.9k GitHub starsUsed in 1 repo~930 tokens
    Auto-check passed

Categories

Questions about Edgeone Makers Middleware

What does Edgeone Makers Middleware do?

Edge middleware for EdgeOne Makers — request interception, redirects, rewrites, auth guards, A/B testing, and header injection at the edge (V8 runtime). Edgeone Makers Middleware is an agent skill from TencentEdgeOne/edgeone-makers-tools. Edge middleware for EdgeOne Makers — request interception, redirects, rewrites, auth guards, A/B testing, and header injection at the edge (V8 runtime).

When should I use Edgeone Makers Middleware?

Edgeone Makers Middleware fits situations like: tasks that involve A/B testing.

How do I install Edgeone Makers Middleware in Claude Code?

Run `npx skills add TencentEdgeOne/edgeone-makers-tools --skill edgeone-makers-middleware -a claude-code`. Or copy the skill folder (skills/edgeone-makers-tools/references/makers-middleware in TencentEdgeOne/edgeone-makers-tools) into .claude/skills/edgeone-makers-middleware in your project. Claude Code loads it when a task matches its description.

How do I install Edgeone Makers Middleware in Codex?

Run `npx skills add TencentEdgeOne/edgeone-makers-tools --skill edgeone-makers-middleware -a codex`. Or copy the skill folder (skills/edgeone-makers-tools/references/makers-middleware in TencentEdgeOne/edgeone-makers-tools) into .agents/skills/edgeone-makers-middleware in your project. Codex loads it when a task matches its description.

Can I use Edgeone Makers Middleware in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add TencentEdgeOne/edgeone-makers-tools --skill edgeone-makers-middleware -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/edgeone-makers-middleware, .gemini/skills/edgeone-makers-middleware, .github/skills/edgeone-makers-middleware and .opencode/skills/edgeone-makers-middleware in your project.

What does Edgeone Makers Middleware need to run?

SKILL.md names no scripts, command-line tools or credentials: Edgeone Makers Middleware is instructions for the agent only.

Does Edgeone Makers Middleware access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Edgeone Makers Middleware safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Edgeone Makers Middleware use?

Edgeone Makers Middleware is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Edgeone Makers Middleware use?

About 1.2k tokens (SKILL.md is roughly 4.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Edgeone Makers Middleware?

Skills that share tags, products or a category with Edgeone Makers Middleware: Ab Testing (coreyhaines31/marketingskills, 54k stars), Analytics (Nexus-JPF/note-companion, 870 stars), Ad Test Designer (aaron-he-zhu/aaron-marketing-skills, 2.9k stars) and Ab Test Analyzer (irinabuht12-oss/marketing-skills, 4.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Edgeone Makers Middleware?

TencentEdgeOne (a GitHub organization) maintains it in TencentEdgeOne/edgeone-makers-tools, which has 1,861 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 8, 2026.

Source: TencentEdgeOne/edgeone-makers-tools on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.