Extension Developmentのロゴ

Extension Development

組織人気
nimbalyst
extension-development

Build, install, and hot-reload Nimbalyst extensions using MCP tools. Use when developing, testing, or iterating on Nimbalyst extensions.

概要

公開者nimbalyst
リポジトリnimbalyst
スキル名extension-development
スター
1.9K
フォーク
300
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    nimbalystがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Extension Development」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/nimbalyst/nimbalyst/tree/main/packages/extensions/extension-dev-kit/claude-plugin/skills/extension-development
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nimbalyst/nimbalyst.git /tmp/nimbalyst
mkdir -p .claude/skills
cp -r /tmp/nimbalyst/packages/extensions/extension-dev-kit/claude-plugin/skills/extension-development .claude/skills/extension-development
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでExtension Developmentを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にExtension Developmentを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Extension Developmentは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Extension Development in Nimbalyst

Nimbalyst provides MCP tools for building, installing, and hot-reloading extensions directly from within the running app. This enables rapid iteration on extension development without manually running build commands.

The recommended in-app scaffold flow uses File > New Extension Project, Developer > New Extension Project, or the Extension Developer Kit's /new-extension command. Enable Extension Dev Tools in Settings > Advanced before using the build/install workflow.

Available MCP Tools

Build Extension

mcp__nimbalyst-extension-dev__extension_build

Runs the project's build script (usually vite build) with pnpm if the project uses pnpm, npm otherwise.

Parameters:

  • path: Absolute path to the extension project root (directory containing package.json and manifest.json)

Returns: Build output including any errors or warnings.

Install Extension

mcp__nimbalyst-extension-dev__extension_install

Installs a built extension into the running Nimbalyst instance. The extension must be built first.

Parameters:

  • path: Absolute path to the extension project root

Returns: Installation status and any validation warnings.

Hot Reload Extension

mcp__nimbalyst-extension-dev__extension_reload

Rebuilds and reinstalls an extension in one step. This is the most common tool for iterating on extension development.

Parameters:

  • extensionId: The extension ID from manifest.json (e.g., "com.nimbalyst.my-extension")
  • path: Absolute path to the extension project root

Returns: Build and reload status.

Uninstall Extension

mcp__nimbalyst-extension-dev__extension_uninstall

Removes an installed extension from the running Nimbalyst instance.

Parameters:

  • extensionId: The extension ID to uninstall

Get Extension Status

mcp__nimbalyst-extension-dev__extension_get_status

Gets the current status of an installed extension, including whether it loaded successfully and what it contributes.

Parameters:

  • extensionId: The extension ID to query

Restart Nimbalyst

mcp__nimbalyst-extension-dev__restart_nimbalyst

Restarts the entire Nimbalyst application. Only use when explicitly requested by the user.

Testing Tools

Run Playwright Tests

mcp__nimbalyst-extension-dev__extension_test_run

Execute Playwright scripts against the running Nimbalyst instance via CDP. Supports inline scripts or .spec.ts file paths.

Parameters:

  • script: Inline Playwright code (runs inside an async test with page connected to Nimbalyst)
  • testFile: Absolute path to a .spec.ts file
  • timeout: Max execution time in ms (default: 30000)

Provide either script or testFile, not both.

Open File for Testing

mcp__nimbalyst-extension-dev__extension_test_open_file

Opens a file in Nimbalyst and waits for the editor to mount. Use before running tests that need a specific file open.

Parameters:

  • filePath: Absolute path to the file to open
  • waitForExtension: Extension ID to wait for (waits until the extension's editor container renders)
  • timeout: Max wait time in ms (default: 5000)

Test AI Tool Handler

mcp__nimbalyst-extension-dev__extension_test_ai_tool

Execute an extension's AI tool handler directly and return the result. Bypasses full MCP routing.

Parameters:

  • extensionId: The extension ID
  • toolName: Tool name without extension prefix (e.g., "get_elements")
  • args: Arguments object to pass to the handler
  • filePath: For editor-scoped tools: file path for context

Development Workflow

Initial Setup

  1. Create extension project with /new-extension <path> <name> [file-patterns]
  2. Implement the extension code
  3. Build with extension_build
  4. Install with extension_install
  5. Test in Nimbalyst

Iteration Loop with Testing

  1. Make code changes
  2. Run extension_reload to rebuild and reinstall
  3. Run extension_get_status to verify it loaded
  4. Run extension_test_open_file to open a sample file
  5. Run extension_test_run with Playwright scripts to verify behavior
  6. Use capture_editor_screenshot for visual verification
  7. Check get_renderer_debug_logs for runtime errors
  8. Fix issues and repeat from step 1

Inline test example:

extension_test_run({
  script: `
    const editor = page.locator('[data-extension-id="com.nimbalyst.my-ext"]');
    await expect(editor).toBeVisible();
    await editor.locator('.save-btn').click();
    await expect(editor.locator('.status')).toHaveText('Saved');
  `
})

Test file example:

extension_test_run({ testFile: "/path/to/extension/tests/basics.spec.ts" })

Debugging

  1. Check extension status with extension_get_status
  2. Read logs with mcp__nimbalyst-extension-dev__get_main_process_logs (filter by component: "EXTENSION")
  3. Check renderer logs with mcp__nimbalyst-extension-dev__get_renderer_debug_logs

Important Notes

  • Always build before install - extension_install requires a pre-built extension
  • Use extension_reload for iteration - It combines build + reinstall in one step
  • Check manifest validation - Build and install tools validate manifest.json and report warnings
  • Extensions load on app start - For full reload, user may need to restart Nimbalyst
  • Never restart without permission - Only use restart_nimbalyst when the user explicitly asks

Common Issues

"Extension not found" after install

  • Check that the extension ID in manifest.json matches what you're querying
  • Verify the build output exists in dist/index.js

Build fails

  • Check that dependencies were installed in the extension directory (pnpm install or npm install, matching its lockfile)
  • Verify vite.config.ts is properly configured
  • Check for TypeScript errors in the output

Extension doesn't appear

  • Use extension_get_status to check if it's loaded
  • Check the release channel - some extensions require "alpha" channel
  • Verify the extension is enabled in Settings > Extensions

よくある質問

AIスキル「Extension Development」では何ができますか?

Build, install, and hot-reload Nimbalyst extensions using MCP tools. Use when developing, testing, or iterating on Nimbalyst extensions.

TypingMindでExtension Developmentを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Extension Developmentはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにExtension Developmentをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/nimbalyst/nimbalyst/tree/main/packages/extensions/extension-dev-kit/claude-plugin/skills/extension-developmentを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Extension Developmentを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Extension Developmentで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもExtension Developmentを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Extension Development」は無料ですか?

はい。nimbalystがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇