Plugin Creator
useLexora/Lexora
创建、修改并验证可安装的 Lexora 桌面插件,包括工作台装饰、导航与面板、文件阅读工具、控件样式、网络查询、通知和定时命令。也响应 $plugin-creator。普通任务执行、使用现有插件、其他产品的插件开发不属于此技能。
Guide for writing Apollo Router native Rust plugins. An agent skill from apollographql/skills.
$ npx skills add apollographql/skills --skill apollo-router-plugin-creator -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install apollographql/skills apollo-router-plugin-creator --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/apollographql/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/apollo-router-plugin-creator .claude/skills/apollo-router-plugin-creator && rm -rf skills-srcUse ~/.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/
Install the "apollo-router-plugin-creator" agent skill from https://github.com/apollographql/skills/tree/main/skills/apollo-router-plugin-creator into .claude/skills/apollo-router-plugin-creator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "apollo-router-plugin-creator", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/apollographql/skills/tree/main/skills/apollo-router-plugin-creatorType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add apollographql/skills --skill apollo-router-plugin-creator -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install apollographql/skills apollo-router-plugin-creator --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/apollographql/skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/apollo-router-plugin-creator .agents/skills/apollo-router-plugin-creator && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "apollo-router-plugin-creator" agent skill from https://github.com/apollographql/skills/tree/main/skills/apollo-router-plugin-creator into .agents/skills/apollo-router-plugin-creator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "apollo-router-plugin-creator", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add apollographql/skills --skill apollo-router-plugin-creator -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install apollographql/skills apollo-router-plugin-creator --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/apollographql/skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/apollo-router-plugin-creator .cursor/skills/apollo-router-plugin-creator && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "apollo-router-plugin-creator" agent skill from https://github.com/apollographql/skills/tree/main/skills/apollo-router-plugin-creator into .cursor/skills/apollo-router-plugin-creator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "apollo-router-plugin-creator", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/apollographql/skills.git --path skills/apollo-router-plugin-creator--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add apollographql/skills --skill apollo-router-plugin-creator -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install apollographql/skills apollo-router-plugin-creator --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/apollographql/skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/apollo-router-plugin-creator .gemini/skills/apollo-router-plugin-creator && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "apollo-router-plugin-creator" agent skill from https://github.com/apollographql/skills/tree/main/skills/apollo-router-plugin-creator into .gemini/skills/apollo-router-plugin-creator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "apollo-router-plugin-creator", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install apollographql/skills apollo-router-plugin-creatorInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add apollographql/skills --skill apollo-router-plugin-creator -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/apollographql/skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/apollo-router-plugin-creator .github/skills/apollo-router-plugin-creator && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "apollo-router-plugin-creator" agent skill from https://github.com/apollographql/skills/tree/main/skills/apollo-router-plugin-creator into .github/skills/apollo-router-plugin-creator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "apollo-router-plugin-creator", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add apollographql/skills --skill apollo-router-plugin-creator -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install apollographql/skills apollo-router-plugin-creator --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/apollographql/skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/apollo-router-plugin-creator .opencode/skills/apollo-router-plugin-creator && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "apollo-router-plugin-creator" agent skill from https://github.com/apollographql/skills/tree/main/skills/apollo-router-plugin-creator into .opencode/skills/apollo-router-plugin-creator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "apollo-router-plugin-creator", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
apollo-router-plugin-creatorGuide for writing Apollo Router native Rust plugins. An agent skill from apollographql/skills.
Apollo Router Plugin Creator is an agent skill from apollographql/skills. Guide for writing Apollo Router native Rust plugins. Use this skill when: (1) users want to create a new router plugin, (2) users want to add service hooks (routerservice, supergraphservice, executionservice, subgraphservice), (3) users want to modify an existing router plugin, (4) users need to understand router plugin patterns or the request lifecycle. (5) triggers on requests like "create a new plugin", "add a router plugin", "modify the X plugin", or "add subgraphservice hook".
Its SKILL.md is about 4.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/examples.md`, `references/existing-plugins.md` and `references/service-hooks.md`).
It sits in Agent Workflows, covering Hooks and plugins. It works with Apollo GraphQL and Rust. The repository describes itself as: Apollo GraphQL Agent Skills. The licence is MIT.
8 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 5f02fcf. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
ReadWriteEditGlobGrepFrom allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are rust and yaml).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
github.comskills.shFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Apollo Router Plugin Creator loads about 4.1k tokens when it runs, and up to ~7.6k if it reads all its reference files. Until then it costs about 130 tokens; SKILL.md has 579 words of instructions outside code blocks.
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.
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.
The full file from apollographql/skills at commit 5f02fcf, republished under its MIT licence (© apollographql). 579 words, ~4,125 tokens.
.claude/skills/apollo-router-plugin-creator/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.Create native Rust plugins for Apollo Router.
┌────────┐ ┌────────────────┐ ┌────────────────────┐ ┌───────────────────┐ ┌─────────────────────┐
│ Client │ │ Router Service │ │ Supergraph Service │ │ Execution Service │ │ Subgraph Service(s) │
└────┬───┘ └────────┬───────┘ └──────────┬─────────┘ └─────────┬─────────┘ └──────────┬──────────┘
│ │ │ │ │
│ Sends request │ │ │ │
│──────────────────────────▶ │ │ │
│ │ │ │ │
│ │ Converts raw HTTP request to GraphQL/JSON request │ │ │
│ │──────────────────────────────────────────────────────▶ │ │
│ │ │ │ │
│ │ │ Initiates query plan execution │ │
│ │ │───────────────────────────────────▶ │
│ │ │ │ │
│ │ │ ┌par [Initiates sub-operation]───────┐
│ │ │ │ │ │ │
│ │ │ │ │ Initiates sub-operation │ │
│ │ │ │ │────────────────────────────▶ │
│ │ │ │ │ │ │
│ │ │ ├[Initiates sub-operation]╌╌╌╌╌╌╌╌╌╌╌┤
│ │ │ │ │ │ │
│ │ │ │ │ Initiates sub-operation │ │
│ │ │ │ │────────────────────────────▶ │
│ │ │ │ │ │ │
│ │ │ ├[Initiates sub-operation]╌╌╌╌╌╌╌╌╌╌╌┤
│ │ │ │ │ │ │
│ │ │ │ │ Initiates sub-operation │ │
│ │ │ │ │────────────────────────────▶ │
│ │ │ │ │ │ │
│ │ │ └────────────────────────────────────┘
│ │ │ │ │
│ │ │ Assembles and returns response │ │
│ │ ◀╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌│ │
│ │ │ │ │
│ │ Returns GraphQL/JSON response │ │ │
│ ◀╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌│ │ │
│ │ │ │ │
│ Returns HTTP response │ │ │ │
◀╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌│ │ │ │
│ │ │ │ │
┌────┴───┐ ┌────────┴───────┐ ┌──────────┴─────────┐ ┌─────────┴─────────┐ ┌──────────┴──────────┐
│ Client │ │ Router Service │ │ Supergraph Service │ │ Execution Service │ │ Subgraph Service(s) │
└────────┘ └────────────────┘ └────────────────────┘ └───────────────────┘ └─────────────────────┘| Service | Description |
|---|---|
router_service | Runs at the very beginning and very end of the HTTP request lifecycle.For example, JWT authentication is performed within the RouterService.Define router_service if your customization needs to interact with HTTP context and headers. It doesn't support access to the body property |
supergraph_service | Runs at the very beginning and very end of the GraphQL request lifecycle.Define supergraph_service if your customization needs to interact with the GraphQL request or the GraphQL response. For example, you can add a check for anonymous queries. |
execution_service | Handles initiating the execution of a query plan after it's been generated.Define execution_service if your customization includes logic to govern execution (for example, if you want to block a particular query based on a policy decision). |
subgraph_service | Handles communication between the router and your subgraphs.Define subgraph_service to configure this communication (for example, to dynamically add HTTP headers to pass to a subgraph).Whereas other services are called once per client request, this service is called once per subgraph request that's required to resolve the client's request. Each call is passed a subgraph parameter that indicates the name of the corresponding subgraph. |
Signatures:
fn router_service(&self, service: router::BoxService) -> router::BoxService
fn supergraph_service(&self, service: supergraph::BoxService) -> supergraph::BoxService
fn execution_service(&self, service: execution::BoxService) -> execution::BoxService
fn subgraph_service(&self, name: &str, service: subgraph::BoxService) -> subgraph::BoxServiceUse ServiceBuilder to compose these hooks within any service:
| Hook | Purpose | Sync/Async |
|---|---|---|
map_request(fn) | Transform request before proceeding | Sync |
map_response(fn) | Transform response before returning | Sync |
checkpoint(fn) | Validate/filter, can short-circuit | Sync |
checkpoint_async(fn) | Async validation, can short-circuit | Async |
buffered() | Enable service cloning (needed for async) | - |
instrument(span) | Add tracing span around service | - |
rate_limit(num, period) | Control request throughput | - |
timeout(duration) | Set operation time limit | - |
By data needed:
router_servicesupergraph_serviceexecution_servicesubgraph_serviceBy timing:
router_service requestsupergraph_service requestexecution_service requestsubgraph_servicerouter_service responseSee references/service-hooks.md for implementation patterns.
Create a new file src/plugins/my_plugin.rs with required imports:
use std::ops::ControlFlow;
use apollo_router::plugin::{Plugin, PluginInit};
use apollo_router::register_plugin;
use apollo_router::services::{router, subgraph, supergraph};
use schemars::JsonSchema;
use serde::Deserialize;
use tower::{BoxError, ServiceBuilder, ServiceExt};
const PLUGIN_NAME: &str = "my_plugin";Every plugin needs a configuration struct with Deserialize and JsonSchema derives. The JsonSchema enables configuration validation in editors:
#[derive(Debug, Clone, Default, Deserialize, JsonSchema)]
struct MyPluginConfig {
/// Enable the plugin
enabled: bool,
// Add other configuration fields as needed
}#[derive(Debug)]
struct MyPlugin {
configuration: MyPluginConfig,
}Implement the Plugin trait with the required Config type and new constructor:
#[async_trait::async_trait]
impl Plugin for MyPlugin {
type Config = MyPluginConfig;
async fn new(init: PluginInit<Self::Config>) -> Result<Self, BoxError> {
Ok(MyPlugin { configuration: init.config })
}
// Add service hooks based on your needs (see "Choosing a Service Hook" section)
}Choose which service(s) to hook based on your requirements, see Service Overview for details.
Example service hook:
fn supergraph_service(&self, service: supergraph::BoxService) -> supergraph::BoxService {
if !self.configuration.enabled {
return service;
}
ServiceBuilder::new()
.map_request(|req| { /* transform request */ req })
.map_response(|res| { /* transform response */ res })
.service(service)
.boxed()
}At the bottom of your plugin file, register it with the router:
register_plugin!("acme", "my_plugin", MyPlugin);In src/plugins/mod.rs, add your module:
pub mod my_plugin;Enable your plugin in the router configuration:
plugins:
acme.my_plugin:
enabled: trueFor implementation patterns and code examples, see references/service-hooks.md:
map_request, map_response)checkpoint_async, buffered)Located in the Apollo Router plugins directory:
| Plugin | Service Hook | Pattern | Description |
|---|---|---|---|
forbid_mutations.rs | execution_service | checkpoint | Simple gate on query plan |
expose_query_plan.rs | execution + supergraph | Context passing | Multi-service coordination |
cors.rs | router_service | HTTP layer | CORS handling at HTTP level |
headers/ | subgraph_service | Layer composition | Complex header manipulation |
For full code examples and testing patterns, see references/examples.md.
It is advised to have the rust-best-practices skill installed for writing idiomatic Rust code when developing router plugins. If installed, follow those best practices when generating or modifying plugin code.
© apollographql, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 3 other files (references) in skills/apollo-router-plugin-creator of apollographql/skills.
Open the folder on GitHubat commit 5f02fcf
Apollo Router Plugin Creator 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Apollo Router Plugin Creator this skillapollographql/skills | 117 | — | ~4.1k | Automated safety check: Pass | MIT | |
| Plugin CreatoruseLexora/Lexora | 566 | — | ~1k | Automated safety check: Pass | AGPL-3.0 | |
| Creating Zed Extensionspr-pm/prpm | 122 | — | ~3.1k | Automated safety check: Notes | MIT | |
| Rust Best Practicesfarm-fe/farm | 5.6k | 3 repos | ~1.1k | Automated safety check: Pass | MIT | |
| Tabularis Database Driver PluginTabularisDB/tabularis | 5.1k | — | ~2.1k | Automated safety check: Pass | Apache-2.0 | |
| Rust Best Practicesscott-fryxell/brayness | 125 | — | ~888 | Automated safety check: Pass | MIT |
useLexora/Lexora
创建、修改并验证可安装的 Lexora 桌面插件,包括工作台装饰、导航与面板、文件阅读工具、控件样式、网络查询、通知和定时命令。也响应 $plugin-creator。普通任务执行、使用现有插件、其他产品的插件开发不属于此技能。
pr-pm/prpm
A skill your agent uses when creating Zed extensions with custom slash commands, language support, themes, or MCP servers - provides Rust/WASM extension structure, slash command API…
farm-fe/farm
Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook.
TabularisDB/tabularis
Guides building or updating a Tabularis database driver plugin in Rust that speaks JSON-RPC over stdio and follows the repository's rules.
scott-fryxell/brayness
Idiomatic Rust guide based on Apollo GraphQL's best practices handbook.
anthropics/claude-plugins-official
Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.
apollographql/skills
Build and iterate on an Apollo Connectors subgraph for a GraphOS supergraph from a REST API, with or without an OpenAPI or Swagger spec, in a dedicated git workspace that records what the API…
apollographql/skills
Guide for building React applications with Apollo Client 4.x.
apollographql/skills
DEPRECATED: superseded by the graphos-factory skill (npx skills add apollographql/skills@graphos-factory), which builds and maintains a Connectors subgraph from a REST API with recorded decisions…
apollographql/skills
Guide for authoring Apollo Federation subgraph schemas. An agent skill from apollographql/skills.
apollographql/skills
Guide for building Apple-platform applications with Apollo iOS, the strongly-typed GraphQL client for Swift.
apollographql/skills
Guide for building GraphQL servers with Apollo Server 5.x. An agent skill from apollographql/skills.
Works with
Categories
Guide for writing Apollo Router native Rust plugins. An agent skill from apollographql/skills. Apollo Router Plugin Creator is an agent skill from apollographql/skills. Guide for writing Apollo Router native Rust plugins.
Apollo Router Plugin Creator fits situations like: users want to create a new router plugin; users want to add service hooks (routerservice; supergraphservice; executionservice.
Run `npx skills add apollographql/skills --skill apollo-router-plugin-creator -a claude-code`. Or copy the skill folder (skills/apollo-router-plugin-creator in apollographql/skills) into .claude/skills/apollo-router-plugin-creator in your project. Claude Code loads it when a task matches its description.
Run `npx skills add apollographql/skills --skill apollo-router-plugin-creator -a codex`. Or copy the skill folder (skills/apollo-router-plugin-creator in apollographql/skills) into .agents/skills/apollo-router-plugin-creator in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add apollographql/skills --skill apollo-router-plugin-creator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/apollo-router-plugin-creator, .gemini/skills/apollo-router-plugin-creator, .github/skills/apollo-router-plugin-creator and .opencode/skills/apollo-router-plugin-creator in your project.
SKILL.md names no scripts, command-line tools or credentials: Apollo Router Plugin Creator is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Write, Edit, Glob, Grep.
SKILL.md names 2 domains. As links in the text: github.com and skills.sh. This is read from the text; nothing was executed.
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.
Apollo Router Plugin Creator is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 4.1k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.5k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Apollo Router Plugin Creator: Plugin Creator (useLexora/Lexora, 566 stars), Creating Zed Extensions (pr-pm/prpm, 122 stars), Rust Best Practices (farm-fe/farm, 5.6k stars) and Tabularis Database Driver Plugin (TabularisDB/tabularis, 5.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
apollographql (a GitHub organization) maintains it in apollographql/skills, which has 117 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 7, 2026.
Source: apollographql/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.