newapi-plugin-dev
БесплатноБез исполняемых скриптовНе проверенDevelop, test and publish plugins for New API (new-api), the open-source AI gateway. A plugin is one plugin.js file that adapts an async task API (video…
от QuantumNous★ 103 звезды на GitHubОб этом скилле
SKILL: newapi-plugin-dev
New API plugins extend the new-api gateway. A plugin is a single plugin.js file. The gateway owns HTTP, authentication, task storage, polling and billing; the plugin only transforms data and reports usage facts. Authors publish plugins from their own public GitHub repositories on the community marketplace at https://www.newapi.ai (also https://www.newapi.pro).
Sources of truth
The plugin contract is still evolving. These files define it and win over this skill when they disagree. Fetch them; do not write from memory.
- Spec: https://raw.githubusercontent.com/QuantumNous/new-api/main/docs/plugin-api/v1.md (long: read the sections listed in
docs/plugin-basics.mdfor the parts you build, plus Usage guide, Changelog and Marketplace checks) - Types: https://raw.githubusercontent.com/QuantumNous/new-api/main/docs/plugin-api/v1.d.ts
- Schema: https://raw.githubusercontent.com/QuantumNous/new-api/main/docs/plugin-api/v1.schema.json
- Developer guide with a complete minimal task plugin: https://docs.newapi.ai/en/docs/plugins/development
- Official plugins to copy patterns from: https://github.com/QuantumNous/new-api-plugins/tree/main/plugins/tasks (each version directory holds
plugin.jsandCHANGELOG.md; each plugin directory holdsREADME.md)
Workflow
- Gather the facts. You need the upstream API documentation, the models, the endpoints clients will call on the gateway, which endpoint clients call (the generic
/v1/tasks/<key>, the vendor's own paths viameta.routes, or OpenAI-compatible video, image or Responses endpoints viameta.protocols), what one billable unit is (request, second, image, token, credit), and the user's GitHub username. Ask for whatever is missing instead of guessing; never invent upstream fields. - Pick the parts and read the spec. Follow
${CLAUDE_SKILL_DIR}/docs/plugin-basics.md. - Write
plugin.js. Start from the closest official plugin or the developer guide example. - Write the release files
README.mdandCHANGELOG.mdnext toplugin.js, plusREADME.zh-CN.mdandCHANGELOG.zh-CN.mdwhen the user wants Chinese. Follow${CLAUDE_SKILL_DIR}/docs/release-files.md. - Validate with
new-api plugin lintand a fixture. Follow${CLAUDE_SKILL_DIR}/docs/testing.md. Fix every error before going on. - Publish on the community marketplace. Follow
${CLAUDE_SKILL_DIR}/docs/community-marketplace.md. Commit, tag and push only after the user agrees. - Report to the user:
meta.key,meta.version, the tag, the repository path to submit, and what a gateway administrator still has to do (channel setup, model prices for the usage fields).
Rules that are easy to miss
plugin.jsis synchronous, self-contained ECMAScript: noimport,require,async/await, globalfetch, file system or environment variables. Hooks return request descriptors and the gateway sends them; the synchronous host tools onutils(signing,utils.fetchfor an extra lookup) are listed in the spec under Host utilities. Keep the file under 1 MiB.export const meta = { ... }must be a plain literal: strings, numbers, booleans,null, arrays and objects only. No variables, function calls, spreads, computed keys or template literals, or the marketplace cannot read it.meta.apiVersionis1. A community plugin'smeta.keyis the author's lowercase GitHub username, an underscore, then a name (alice_myvideo), using onlya-z,0-9,_and-, at most 30 characters in total (gateways reject longer keys). The key can never change after the first published version.meta.versionis semver and equals the tag version. A published version never changes: fix a released version by publishing a new one.meta.author.nameis required. Givemeta.nameandmeta.descriptionin English, plus Chinese when the user wants it; descriptions are short phrases without trailing punctuation and never mention vendor prices.- Treat hook arguments as read-only and keep no request data in module globals; per-task data goes in the returned task data or
state. parseTaskResultmaps unknown upstream statuses toUNKNOWN, never toIN_PROGRESS.- Report usage facts, never prices or quota. Do not turn missing usage into zero.
README.mdhas no HTML and no images.CHANGELOG.mddescribes only the version it ships with.
Установить newapi-plugin-dev в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл newapi-plugin-dev?
Develop, test and publish plugins for New API (new-api), the open-source AI gateway. A plugin is one plugin.js file that adapts an async task API (video, image, music generation), relays ordinary API requests on a Task Plugin channel, or processes requests on their way upstream. Use when the user asks to write, update, debug or publish a New API plugin, its plugin.js, README.md or CHANGELOG.md, or to fix a version tag the newapi.ai community marketplace rejected.
Как установить скилл newapi-plugin-dev?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл newapi-plugin-dev запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic