Add backend tool

From diegosouzapw/awesome-omni-skill · View interactive version

Add backend tool is an AI agent skill from the GitHub repository diegosouzapw/awesome-omni-skill. 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.

How to use this skill

Skill file

Add Backend Tool

Instructions

  1. Read backend/main.py to understand existing tool patterns:
  1. 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)}"

```

  1. 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"]

}

}

}

```

  1. Add tool invocation handler in the WebSocket message loop:

```python

elif func_name == "new_tool_name":

result = new_tool_name(**args)

```

  1. Update mode restrictions if needed:

Examples

Guardrails

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.