jpskill.com
🛠️ 開発・MCP コミュニティ

add-backend-tool

ユーザーが「新しいツール」「機能追加」などAIエージェントの能力拡張を求めている場合に、バックエンドのOpenAI関数呼び出しシステムに新しいツールを追加設定する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.

🇯🇵 日本人クリエイター向け解説

一言でいうと

ユーザーが「新しいツール」「機能追加」などAIエージェントの能力拡張を求めている場合に、バックエンドのOpenAI関数呼び出しシステムに新しいツールを追加設定するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o add-backend-tool.zip https://jpskill.com/download/17221.zip && unzip -o add-backend-tool.zip && rm add-backend-tool.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17221.zip -OutFile "$d\add-backend-tool.zip"; Expand-Archive "$d\add-backend-tool.zip" -DestinationPath $d -Force; ri "$d\add-backend-tool.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して add-backend-tool.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → add-backend-tool フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

バックエンドツールの追加

手順

  1. backend/main.py を読んで、既存のツールのパターンを理解してください。

    • 関数定義を含む tools リストを見つけてください。
    • ヘルパー関数(read_file, write_file, run_terminal_command, web_search)を確認してください。
  2. ヘルパー関数を作成してください。

    def new_tool_name(param1: str, param2: int = 10) -> str:
        """ツールの説明を記述するドキュメンテーション文字列。"""
        try:
            # 実装
            return result
        except Exception as e:
            return f"Error: {str(e)}"
  3. ツールの定義を tools リストに追加してください。

    {
        "type": "function",
        "function": {
            "name": "new_tool_name",
            "description": "このツールが何をするのか、いつ使用するのか",
            "parameters": {
                "type": "object",
                "properties": {
                    "param1": {"type": "string", "description": "..."},
                    "param2": {"type": "integer", "description": "..."}
                },
                "required": ["param1"]
            }
        }
    }
  4. WebSocket メッセージループにツールの呼び出しハンドラーを追加してください。

    elif func_name == "new_tool_name":
        result = new_tool_name(**args)
  5. 必要に応じて、モード制限を更新してください。

    • Agent モード: フルアクセス
    • Chat モード: 読み取り専用/安全な場合にのみ許可リストに追加

  • 「ディレクトリの内容をリストするツールを追加する」
  • 「git 操作のためのツールを作成する」
  • 「Web スクレイピング機能を追加する」

ガードレール

  • try/except を使用して適切なエラー処理を含めてください。
  • 長時間実行される操作にはタイムアウトを追加してください。
  • セキュリティへの影響を考慮してください(Chat モードの制限)。
  • API キーやシークレットをハードコードしないでください。
  • 関数のドキュメンテーション文字列にツールの目的を記述してください。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

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:

    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:

    {
        "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:

    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