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

goose

Block社のGooseというAIエージェントを活用し、ソフトウェアのインストール、コマンド実行、ファイル編集、テスト実行、インフラ管理など、コーディング支援を超えた様々なタスクを自動化・効率化するSkill。

📜 元の英語説明(参考)

Use Block's Goose — an open-source, extensible AI agent that goes beyond code suggestions to install software, execute commands, edit files, run tests, and manage infrastructure. Use when: setting up Goose, building custom extensions, adding MCP tool support, configuring multi-LLM backends, creating task-specific agents (DevOps, data pipelines, incident response), or comparing Goose to other AI coding agents.

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

一言でいうと

Block社のGooseというAIエージェントを活用し、ソフトウェアのインストール、コマンド実行、ファイル編集、テスト実行、インフラ管理など、コーディング支援を超えた様々なタスクを自動化・効率化するSkill。

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

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

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

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

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

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して goose.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → goose フォルダができる
  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 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Goose — Block による拡張可能な AI エージェント

概要

Goose は、Block (旧 Square) が開発したオープンソースの AI エージェントです。単なるコードアシスタントではなく、完全なシステムエージェントとして動作します。パッケージのインストール、シェルコマンドの実行、ファイルの編集、テストの実行、ウェブの閲覧、拡張機能による外部サービスとの連携が可能です。

リポジトリ: block/goose
主な差別化要因: 拡張システム + MCP ツールサポート = 無限の可能性

インストール

# macOS (Homebrew)
brew install block/tap/goose

# クロスプラットフォーム (pipx)
pipx install goose-ai

# ソースから
git clone https://github.com/block/goose.git
cd goose && cargo build --release

インストールを確認します:

goose --version

基本概念

Goose の特徴

コードのみを扱う AI ツールとは異なり、Goose は完全なシステムエージェンシーを備えています。

機能 コードアシスタント Goose
コードの提案
ファイル編集 限定的 ✅ フルファイルシステム
コマンド実行 ✅ シェルアクセス
パッケージインストール
ウェブ閲覧 ✅ 拡張機能経由
外部 API ✅ MCP ツール
カスタムワークフロー ✅ 拡張機能

セッション

Goose は、インタラクション間でセッションのコンテキストを維持します。

# 新しいセッションを開始
goose session

# 前回のセッションを再開
goose session --resume

# 名前付きセッション
goose session --name "deploy-v2"

CLI の使用方法

# インタラクティブセッション
goose session

# ワンショットタスク
goose run "src/auth.py のユニットテストを作成し、実行してください"

# 特定のプロファイルを使用
goose session --profile devops

# パイプ入力
echo "このエラーログを説明してください" | goose run --stdin

プロファイル

~/.config/goose/profiles.yaml を作成します:

devops:
  provider: anthropic
  model: claude-sonnet-4-20250514
  extensions:
    - name: ssh-tools
    - name: developer
    - name: jira-mcp

coding:
  provider: openai
  model: gpt-4o
  extensions:
    - name: developer

複数 LLM のサポート

Goose は複数の LLM プロバイダーをサポートしています。

# プロバイダーを設定
goose configure

# サポートされているプロバイダー
# - Anthropic (Claude)
# - OpenAI (GPT-4o, o1)
# - Google (Gemini)
# - Ollama (ローカルモデル)
# - Azure OpenAI
# - AWS Bedrock

環境変数で設定します:

export GOOSE_PROVIDER=anthropic
export ANTHROPIC_API_KEY=sk-...

拡張システム

拡張機能は Goose に新しい機能を与えます。これらは、Model Context Protocol (MCP) を介して通信する個別のプロセスとして実行されます。

組み込み拡張機能

拡張機能 機能
developer シェル、ファイル編集、コード分析
web ページの閲覧、コンテンツの抽出
computeruse GUI 操作、スクリーンショット
memory セッション間の永続的なメモリ

拡張機能を有効にします:

goose configure extensions
# 拡張機能のインタラクティブな選択

MCP ツール統合

Goose は、MCP (Model Context Protocol) サーバーを拡張機能としてネイティブにサポートし、データベース、API、およびサービスに接続します。

# ~/.config/goose/profiles.yaml
default:
  provider: anthropic
  model: claude-sonnet-4-20250514
  extensions:
    - name: developer
    - name: jira-mcp
      type: mcp
      command: npx
      args: ["-y", "@modelcontextprotocol/server-jira"]
      env:
        JIRA_URL: "https://myteam.atlassian.net"
        JIRA_TOKEN: "${JIRA_TOKEN}"
    - name: postgres-mcp
      type: mcp
      command: npx
      args: ["-y", "@modelcontextprotocol/server-postgres"]
      env:
        DATABASE_URL: "${DATABASE_URL}"

カスタム拡張機能の構築

Python で拡張機能を作成します:

# my_extension.py
from goose.extension import Extension, tool

class HealthChecker(Extension):
    """Check service health endpoints."""

    @tool
    def check_health(self, url: str) -> str:
        """Check if a service is healthy by hitting its /health endpoint."""
        import requests
        try:
            r = requests.get(f"{url}/health", timeout=5)
            return f"Status: {r.status_code}, Response: {r.json()}"
        except Exception as e:
            return f"Health check failed: {e}"

    @tool
    def check_multiple(self, urls: list[str]) -> str:
        """Check health of multiple services."""
        results = []
        for url in urls:
            status = self.check_health(url)
            results.append(f"{url}: {status}")
        return "\n".join(results)

プロファイルに登録します:

default:
  extensions:
    - name: health-checker
      type: mcp
      command: python
      args: ["my_extension.py"]

一般的なワークフロー

DevOps インシデント対応

> goose session --profile devops

You: prod-web-01 に SSH でログインし、過去 1 時間の nginx ログで 5xx エラーを確認し、10 件以上ある場合は Jira チケットを作成してください。

Goose: [ssh-tools を使用して接続]
       [runs: grep "HTTP/1.1\" 5" /var/log/nginx/access.log | tail -60]
       [47 件の 5xx エラーを発見]
       [エラーの概要を含む JIRA チケット OPS-1234 を作成]
       過去 1 時間に 47 件の 5xx エラーが見つかりました。OPS-1234 を作成しました。

ヒント

  • Goose が呼び出しているツールを確認するには、--verbose フラグを使用します。
  • 詳細な拡張機能の通信ログについては、GOOSE_LOG=debug を設定します。
  • 拡張機能はサンドボックス化されたプロセスで実行されます — クラッシュしても Goose は停止しません。
  • プロファイルを使用して、プロバイダー/拡張機能の組み合わせをすばやく切り替えます。
  • Goose は、コンテキストからファイルを除外するために .gooseignore ファイル (.gitignore と同様) を尊重します。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Goose — Extensible AI Agent by Block

Overview

Goose is an open-source AI agent from Block (formerly Square) that operates as a full system agent — not just a code assistant. It can install packages, execute shell commands, edit files, run tests, browse the web, and interact with external services through extensions.

Repo: block/goose
Key differentiator: Extension system + MCP tool support = unlimited capabilities

Installation

# macOS (Homebrew)
brew install block/tap/goose

# Cross-platform (pipx)
pipx install goose-ai

# From source
git clone https://github.com/block/goose.git
cd goose && cargo build --release

Verify installation:

goose --version

Core Concepts

What Makes Goose Different

Unlike code-only AI tools, Goose has full system agency:

Capability Code Assistants Goose
Code suggestions
File editing Limited ✅ Full filesystem
Command execution ✅ Shell access
Package installation
Web browsing ✅ Via extensions
External APIs ✅ MCP tools
Custom workflows ✅ Extensions

Sessions

Goose maintains session context across interactions:

# Start new session
goose session

# Resume last session
goose session --resume

# Named session
goose session --name "deploy-v2"

CLI Usage

# Interactive session
goose session

# One-shot task
goose run "Write unit tests for src/auth.py and run them"

# With specific profile
goose session --profile devops

# Pipe input
echo "Explain this error log" | goose run --stdin

Profiles

Create ~/.config/goose/profiles.yaml:

devops:
  provider: anthropic
  model: claude-sonnet-4-20250514
  extensions:
    - name: ssh-tools
    - name: developer
    - name: jira-mcp

coding:
  provider: openai
  model: gpt-4o
  extensions:
    - name: developer

Multi-LLM Support

Goose supports multiple LLM providers:

# Configure provider
goose configure

# Supported providers
# - Anthropic (Claude)
# - OpenAI (GPT-4o, o1)
# - Google (Gemini)
# - Ollama (local models)
# - Azure OpenAI
# - AWS Bedrock

Set via environment:

export GOOSE_PROVIDER=anthropic
export ANTHROPIC_API_KEY=sk-...

Extension System

Extensions give Goose new capabilities. They run as separate processes communicating via the Model Context Protocol (MCP).

Built-in Extensions

Extension Capabilities
developer Shell, file editing, code analysis
web Browse pages, extract content
computeruse GUI interaction, screenshots
memory Persistent memory across sessions

Enable extensions:

goose configure extensions
# Interactive selection of extensions

MCP Tool Integration

Goose natively supports MCP (Model Context Protocol) servers as extensions, connecting it to databases, APIs, and services:

# ~/.config/goose/profiles.yaml
default:
  provider: anthropic
  model: claude-sonnet-4-20250514
  extensions:
    - name: developer
    - name: jira-mcp
      type: mcp
      command: npx
      args: ["-y", "@modelcontextprotocol/server-jira"]
      env:
        JIRA_URL: "https://myteam.atlassian.net"
        JIRA_TOKEN: "${JIRA_TOKEN}"
    - name: postgres-mcp
      type: mcp
      command: npx
      args: ["-y", "@modelcontextprotocol/server-postgres"]
      env:
        DATABASE_URL: "${DATABASE_URL}"

Building Custom Extensions

Create an extension in Python:

# my_extension.py
from goose.extension import Extension, tool

class HealthChecker(Extension):
    """Check service health endpoints."""

    @tool
    def check_health(self, url: str) -> str:
        """Check if a service is healthy by hitting its /health endpoint."""
        import requests
        try:
            r = requests.get(f"{url}/health", timeout=5)
            return f"Status: {r.status_code}, Response: {r.json()}"
        except Exception as e:
            return f"Health check failed: {e}"

    @tool
    def check_multiple(self, urls: list[str]) -> str:
        """Check health of multiple services."""
        results = []
        for url in urls:
            status = self.check_health(url)
            results.append(f"{url}: {status}")
        return "\n".join(results)

Register in profile:

default:
  extensions:
    - name: health-checker
      type: mcp
      command: python
      args: ["my_extension.py"]

Common Workflows

DevOps Incident Response

> goose session --profile devops

You: SSH into prod-web-01, check the nginx logs for 5xx errors
     in the last hour, and create a Jira ticket if there are more than 10

Goose: [uses ssh-tools to connect]
       [runs: grep "HTTP/1.1\" 5" /var/log/nginx/access.log | tail -60]
       [finds 47 5xx errors]
       [creates JIRA ticket OPS-1234 with error summary]
       Found 47 5xx errors in the last hour. Created OPS-1234.

Tips

  • Use --verbose flag to see what tools Goose is calling
  • Set GOOSE_LOG=debug for detailed extension communication logs
  • Extensions run in sandboxed processes — a crash won't kill Goose
  • Use profiles to switch between provider/extension combos quickly
  • Goose respects .gooseignore files (like .gitignore) to exclude files from context