add-backend-tool

Add a new tool to the backend OpenAI function calling system. Use when user mentions "new tool", "add tool", "backend function", "agent capability", or wants to extend what the AI agent can do.

181 stars

Best use case

add-backend-tool is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Add a new tool to the backend OpenAI function calling system. Use when user mentions "new tool", "add tool", "backend function", "agent capability", or wants to extend what the AI agent can do.

Teams using add-backend-tool should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/add-backend-tool/SKILL.md --create-dirs "https://raw.githubusercontent.com/majiayu000/claude-skill-registry/main/skills/data/add-backend-tool/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/add-backend-tool/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How add-backend-tool Compares

Feature / Agentadd-backend-toolStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Add a new tool to the backend OpenAI function calling system. Use when user mentions "new tool", "add tool", "backend function", "agent capability", or wants to extend what the AI agent can do.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Add Backend Tool

## Instructions
1. Read `backend/main.py` to understand existing tool patterns:
   - Find the `tools` list with function definitions
   - Review helper functions (read_file, write_file, run_terminal_command, web_search)

2. Create the helper function:
   ```python
   def new_tool_name(param1: str, param2: int = 10) -> str:
       """Docstring explaining the tool."""
       try:
           # Implementation
           return result
       except Exception as e:
           return f"Error: {str(e)}"
   ```

3. Add tool definition to the `tools` list:
   ```python
   {
       "type": "function",
       "function": {
           "name": "new_tool_name",
           "description": "What this tool does and when to use it",
           "parameters": {
               "type": "object",
               "properties": {
                   "param1": {"type": "string", "description": "..."},
                   "param2": {"type": "integer", "description": "..."}
               },
               "required": ["param1"]
           }
       }
   }
   ```

4. Add tool invocation handler in the WebSocket message loop:
   ```python
   elif func_name == "new_tool_name":
       result = new_tool_name(**args)
   ```

5. Update mode restrictions if needed:
   - Agent mode: full access
   - Chat mode: add to allowed list only if read-only/safe

## Examples
- "Add a tool to list directory contents"
- "Create a tool for git operations"
- "Add web scraping capability"

## Guardrails
- Include proper error handling with try/except
- Add timeout for any long-running operations
- Consider security implications (Chat mode restrictions)
- Never hardcode API keys or secrets
- Document the tool's purpose in the function docstring

Related Skills

add-backend-testing

181
from majiayu000/claude-skill-registry

Add backend integration testing with Vitest to an existing app. Sets up isolated test database schema and writes tests for tRPC routers.

add-awesome-tool

181
from majiayu000/claude-skill-registry

This skill should be used when analyzing a link to an AI tool and adding it to the awesome-ai-tools readme with proper categorization

ace-tool

181
from majiayu000/claude-skill-registry

Semantic codebase search and prompt enhancement via standalone CLI. Use when: (1) Semantic code search with natural language queries, (2) Prompt enhancement with codebase context, (3) Before grep/find/glob operations for better accuracy, (4) Complex requirements clarification, (5) Large codebase navigation. Triggers: "search context", "enhance prompt", "find code that", "clarify requirements". IMPORTANT: Always use ace-tool BEFORE grep/find/glob for semantic-level code location.

Backend Python Expert

181
from majiayu000/claude-skill-registry

专注于 Python 后端开发,涵盖 FastAPI、异步编程和性能优化。

Backend Node.js Expert

181
from majiayu000/claude-skill-registry

专注于 Node.js 后端开发模式与最佳实践。

Backend Database Expert

181
from majiayu000/claude-skill-registry

专注于数据库设计、SQL 优化和迁移策略。

whisper-transcribe

159
from majiayu000/claude-skill-registry

Transcribes audio and video files to text using OpenAI's Whisper CLI, enhanced with contextual grounding from local markdown files for improved accuracy.

Media Processing

modal-deployment

159
from majiayu000/claude-skill-registry

Run Python code in the cloud with serverless containers, GPUs, and autoscaling using Modal. This skill enables agents to generate code for deploying ML models, running batch jobs, serving APIs, and scaling compute-intensive workloads.

DevOps & Infrastructure

ontopo

159
from majiayu000/claude-skill-registry

An AI agent skill to search for Israeli restaurants, check table availability, view menus, and retrieve booking links via the Ontopo platform, acting as an unofficial interface to its data.

General Utilities

chrome-debug

159
from majiayu000/claude-skill-registry

This skill empowers AI agents to debug web applications and inspect browser behavior using the Chrome DevTools Protocol (CDP), offering both collaborative (headful) and automated (headless) modes.

Coding & DevelopmentClaude

astro

159
from majiayu000/claude-skill-registry

This skill provides essential Astro framework patterns, focusing on server-side rendering (SSR), static site generation (SSG), middleware, and TypeScript best practices. It helps AI agents implement secure authentication, manage API routes, and debug rendering behaviors within Astro projects.

Coding & Development

thor-skills

159
from majiayu000/claude-skill-registry

An entry point and router for AI agents to manage various THOR-related cybersecurity tasks, including running scans, analyzing logs, troubleshooting, and maintenance.

SecurityClaude