add-endpoint — community add-endpoint, switcher_webapi, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for API-focused Agents needing endpoint customization and extension capabilities. Gain containerized access to your local Switcher smart devices

TomerFi TomerFi
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The add-endpoint skill by TomerFi is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for API-focused Agents needing endpoint customization and extension capabilities.

Core Value

Empowers agents to expose new aioswitcher API methods and create custom query endpoints using Python's async handler functionality and the `@routes.get` decorator.

Capabilities Granted for add-endpoint

Adding new device control functionality
Exposing new API methods for Switcher smart devices
Creating custom query endpoints for data analysis

! Prerequisites & Limits

  • Requires access to `app/webapp.py` file
  • Python async handler functionality required
  • Limited to aioswitcher API
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

add-endpoint

Install add-endpoint, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Adding a New Endpoint

When to Use

  • Adding new device control functionality
  • Exposing new aioswitcher API methods
  • Creating new query endpoints

Step 1: Define Endpoint Constant

In app/webapp.py, add the endpoint path constant (around line 54-71):

python
1ENDPOINT_YOUR_ENDPOINT = "/switcher/your_endpoint"

Step 2: Create Handler Function

Add the async handler with the appropriate decorator:

python
1@routes.get(ENDPOINT_YOUR_ENDPOINT) # or .post, .patch, .delete 2async def your_endpoint(request: web.Request) -> web.Response: 3 """Describe what this endpoint does.""" 4 device_type = DEVICES[request.query[KEY_TYPE]] 5 if KEY_LOGIN_KEY in request.query: 6 login_key = request.query[KEY_LOGIN_KEY] 7 else: 8 login_key = "00" 9 async with SwitcherApi( 10 device_type, request.query[KEY_IP], request.query[KEY_ID], login_key 11 ) as swapi: 12 result = await swapi.your_method() 13 return web.json_response(_serialize_object(result))

Step 3: Add Tests

In app/tests/test_web_app.py, add test cases:

python
1@mark.parametrize("url", [ 2 "/switcher/your_endpoint?type=plug&id=ab1c2d&ip=1.2.3.4", 3 "/switcher/your_endpoint?type=plug&id=ab1c2d&ip=1.2.3.4&key=18", 4]) 5async def test_successful_your_endpoint_get_request(api_client, url): 6 with patch("app.webapp.SwitcherApi") as mock_api: 7 mock_api.return_value.__aenter__.return_value.your_method = AsyncMock( 8 return_value=expected_response 9 ) 10 resp = await api_client.get(url) 11 assert resp.status == 200

Step 4: Update Documentation

Create or update the relevant docs file in docs/:

  • Add endpoint to the appropriate endpoints_*.md file
  • Include method, path, description, and query parameters

Step 5: Run Tests

Use the /test command to run tests with coverage.

Reference

Look at existing endpoints for patterns:

  • get_state - Simple GET returning device state
  • turn_on - POST with optional body parameters
  • control_breeze_device - PATCH with complex body handling

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is add-endpoint?

Perfect for API-focused Agents needing endpoint customization and extension capabilities. Gain containerized access to your local Switcher smart devices

How do I install add-endpoint?

Run the command: npx killer-skills add TomerFi/switcher_webapi/add-endpoint. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for add-endpoint?

Key use cases include: Adding new device control functionality, Exposing new API methods for Switcher smart devices, Creating custom query endpoints for data analysis.

Which IDEs are compatible with add-endpoint?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for add-endpoint?

Requires access to `app/webapp.py` file. Python async handler functionality required. Limited to aioswitcher API.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add TomerFi/switcher_webapi/add-endpoint. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use add-endpoint immediately in the current project.

Related Skills

Looking for an alternative to add-endpoint or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

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
AI

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
AI