newapi-plugin-dev
Installation
SKILL.md
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)