jpskill.com
🛠️ 開発・MCP コミュニティ 🟡 少し慣れが必要 👤 幅広いユーザー

📦 VscodeExtensionガイドEn

vscode-extension-guide-en

VS Code(Visual Studio Code)の拡張機能を、

⏱ この作業 数時間 → 数分

📺 まず動画で見る(YouTube)

▶ 【Claude Code完全入門】誰でも使える/Skills活用法/経営者こそ使うべき ↗

※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。

📜 元の英語説明(参考)

Guide for VS Code extension development from scaffolding to Marketplace publication

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

一言でいうと

VS Code(Visual Studio Code)の拡張機能を、

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

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

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

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

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

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して vscode-extension-guide-en.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → vscode-extension-guide-en フォルダができる
  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-17
取得日時
2026-05-17
同梱ファイル
1

💬 こう話しかけるだけ — サンプルプロンプト

  • Vscode Extension Guide En の使い方を教えて
  • Vscode Extension Guide En で何ができるか具体例で見せて
  • Vscode Extension Guide En を初めて使う人向けにステップを案内して

これをClaude Code に貼るだけで、このSkillが自動発動します。

📖 Skill本文(日本語訳)

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

VS Code 拡張機能ガイド (英語)

概要

VS Code 拡張機能の構築に関する英語ガイドです。足場作りから Marketplace への公開まで、ライフサイクル全体をカバーしています。Webview パターン、CSP セキュリティ、TreeView、テスト、パッケージング、トラブルシューティングに関するリファレンス資料が含まれています。VS Code 1.74 以降の API に対応しています。

aktsmm/agent-skills (CC BY-NC-SA 4.0) を元に、現在の VS Code API に合わせて修正し、英語に翻訳しました。

このスキルを使用する場面

  • VS Code 拡張機能をゼロから作成する場合に使用します
  • 拡張機能にコマンド、キーバインディング、または設定を追加する場合に使用します
  • 拡張機能で TreeView または Webview UI を構築する場合に使用します
  • VS Code Marketplace に拡張機能を公開する場合に使用します
  • 拡張機能のアクティベーションまたはパッケージングの問題をトラブルシューティングする場合に使用します

仕組み

クイックスタート

npm install -g yo generator-code
yo code

プロジェクト構造

my-extension/
├── package.json          # 拡張機能マニフェスト
├── src/extension.ts      # エントリポイント
├── out/                  # コンパイル済み JS
├── images/icon.png       # Marketplace 用の 128x128 PNG
└── .vscodeignore         # VSIX から除外するファイル

ビルドとパッケージング

npm run compile           # 一度ビルド
npm run watch             # ウォッチモード (F5 でデバッグ起動)
npx @vscode/vsce package  # .vsix を作成

リファレンストピック

このスキルには、以下の詳細なリファレンスドキュメントが含まれています。

  • CSP セキュリティとメッセージパッシングを備えた Webview パターン
  • TreeView データプロバイダーとドラッグアンドドロップ
  • @vscode/test-electron を使用した テスト セットアップ
  • VS Code Marketplace への 公開
  • 拡張機能プロジェクトの AI カスタマイズ
  • 拡張機能コードの コードレビュープロンプト
  • 一般的な拡張機能の問題の トラブルシューティング

完全なスキルをインストールする

すべてのリファレンスドキュメントを含む完全なガイドについては、以下を実行してください。

npx skills add lewiswigmore/agent-skills --skill vscode-extension-guide-en

ベストプラクティス

  • 公開前に、パッケージ名、設定キー、コマンド ID、ビュー ID を統一してください
  • .vscodeignore を使用してパッケージサイズを 5MB 未満に保ってください
  • VS Code 1.74 以降、activationEvents はコントリビュートされたコマンドとビューに対して自動検出されます
  • パッケージングする前に、常に拡張機能開発ホスト (F5) でテストしてください

よくある落とし穴

  • 問題: 拡張機能が読み込まれない 解決策: activationEvents を確認してください。VS Code 1.74 以降、これらはコントリビュートされたコマンド/ビューに対して自動検出されます。

  • 問題: コマンドが見つからない 解決策: package.json とコードの間でコマンド ID が完全に一致していることを確認してください。

  • 問題: Webview のコンテンツが表示されない 解決策: コンテンツセキュリティポリシーを確認してください。webview の cspSource プロパティを使用してください。

関連スキル

  • @test-driven-development - 拡張機能の機能を実装する前にテストを作成します
  • @debugging-strategies - 拡張機能の問題に対する体系的なトラブルシューティング

制限事項

  • このスキルは、タスクが上記で説明されている範囲と明確に一致する場合にのみ使用してください。
  • 出力を、環境固有の検証、テスト、または専門家によるレビューの代わりとして扱わないでください。
  • 必要な入力、権限、安全境界、または成功基準が不足している場合は、停止して説明を求めてください。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

VS Code Extension Guide (English)

Overview

An English guide for building VS Code extensions, covering the full lifecycle from scaffolding to Marketplace publication. Includes reference material on webview patterns, CSP security, TreeView, testing, packaging and troubleshooting. Updated for VS Code 1.74+ APIs.

Adapted from aktsmm/agent-skills (CC BY-NC-SA 4.0), translated to English with corrections for current VS Code APIs.

When to Use This Skill

  • Use when creating a new VS Code extension from scratch
  • Use when adding commands, keybindings or settings to an extension
  • Use when building TreeView or Webview UI in an extension
  • Use when publishing an extension to the VS Code Marketplace
  • Use when troubleshooting extension activation or packaging issues

How It Works

Quick Start

npm install -g yo generator-code
yo code

Project Structure

my-extension/
├── package.json          # Extension manifest
├── src/extension.ts      # Entry point
├── out/                  # Compiled JS
├── images/icon.png       # 128x128 PNG for Marketplace
└── .vscodeignore         # Exclude files from VSIX

Building and Packaging

npm run compile           # Build once
npm run watch             # Watch mode (F5 to launch debug)
npx @vscode/vsce package  # Creates .vsix

Reference Topics

The full skill includes detailed reference documents on:

  • Webview patterns with CSP security and message passing
  • TreeView data providers and drag-and-drop
  • Testing setup with @vscode/test-electron
  • Publishing to the VS Code Marketplace
  • AI customization for extension projects
  • Code review prompts for extension code
  • Troubleshooting common extension issues

Install the Full Skill

For the complete guide with all reference documents:

npx skills add lewiswigmore/agent-skills --skill vscode-extension-guide-en

Best Practices

  • Unify package name, setting keys, command IDs and view IDs before publishing
  • Keep package size under 5MB using .vscodeignore
  • Since VS Code 1.74, activationEvents are auto-detected for contributed commands and views
  • Always test with the Extension Development Host (F5) before packaging

Common Pitfalls

  • Problem: Extension not loading Solution: Check activationEvents. Since VS Code 1.74, these are auto-detected for contributed commands/views.

  • Problem: Command not found Solution: Match the command ID exactly between package.json and your code.

  • Problem: Webview content not displaying Solution: Check your Content Security Policy. Use the webview's cspSource property.

Related Skills

  • @test-driven-development - Write tests before implementing extension features
  • @debugging-strategies - Systematic troubleshooting for extension issues

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.