add-api — how to use add-api how to use add-api, add-api setup guide, add-api vs other API tools, add-api alternative, add-api install, what is add-api, add-api for AI agents, add-api API integration, add-api backend development

v1.0.0
GitHub

About this Skill

Ideal for Full-Stack Agents seeking to expand API capabilities with consistent authentication and error handling. add-api is a skill that allows developers to create and integrate new APIs into their application, ensuring uniform error handling and authentication.

Features

Generates API handlers using JavaScript
Utilizes authMiddleware for login validation
Supports JSON response and error handling
Creates routes for API endpoints in workers/auth/index.js
Encapsulates API calls in src/services/authService.js

# Core Topics

zxj719 zxj719
[0]
[0]
Updated: 3/8/2026

Quality Score

Top 5%
33
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add zxj719/ai_wolf_game/add-api

Agent Capability Analysis

The add-api MCP Server by zxj719 is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use add-api, add-api setup guide, add-api vs other API tools.

Ideal Agent Persona

Ideal for Full-Stack Agents seeking to expand API capabilities with consistent authentication and error handling.

Core Value

Empowers agents to seamlessly integrate new APIs into their application, utilizing authentication middleware and standardized JSON response formats, while maintaining consistent error handling and authorization protocols through libraries like jsonResponse and errorResponse.

Capabilities Granted for add-api MCP Server

Adding custom authentication endpoints
Implementing API routes for data services
Extending backend functionality with new API handlers

! Prerequisites & Limits

  • Requires existing backend infrastructure
  • Dependent on authMiddleware for authentication
  • Limited to JSON response formats
Project
SKILL.md
1.1 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

目标:在后端 workers/auth/* 新增一个 API,并在前端 src/services/authService.js 增加调用封装,保持错误处理与鉴权一致。

步骤

  1. 后端处理函数:workers/auth/handlers.js

    • 新增 export async function handleXxx(request, env) { ... }
    • 复用 authMiddleware 做登录校验
    • 统一用 jsonResponse / errorResponse 返回
  2. 后端路由:workers/auth/index.js

    • import 新增的 handler
    • 在路由表里添加对应 URL 与 HTTP method
  3. 前端封装:src/services/authService.js

    • 新增一个方法调用该 API(复用现有 token/header 逻辑)

参考模板

js
1// workers/auth/handlers.js 2export async function handleNewFeature(request, env) { 3 try { 4 const { user, error } = await authMiddleware(request, env); 5 if (error) return errorResponse(error, 401, env, request); 6 7 // business logic... 8 9 return jsonResponse({ success: true, data: result }, 200, env, request); 10 } catch (err) { 11 return errorResponse('Failed: ' + err.message, 500, env, request); 12 } 13}

Related Skills

Looking for an alternative to add-api or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication