Files
skillshare/website/i18n/ja/docusaurus-plugin-content-docs/current/learn/with-devcontainer.md
T
Willie 21ae12c792 feat(website): translate how-to, learn, reference, and troubleshooting docs
Completes zh-Hant, zh-Hans, ja, and ko translation of the final 50
pages (how-to/, learn/, reference/targets/, reference/appendix/,
reference/filtering.md, reference/index.md, troubleshooting/),
bringing all four locales to full parity with the English docs tree.
Anchor ids added in the previous commit are propagated to every
translated heading they land on, and one zh-Hans same-file link that
pointed at the pre-translation auto-slug is repointed at the pinned
id.
2026-09-20 12:15:13 +08:00

3.7 KiB

sidebar_position
sidebar_position
5

Dev Container で skillshare を使う

VS Code で開けば、Skill はすぐに使える準備が整います — ローカルインストールは不要です。

前提条件

仕組み

VS Code の Dev Containers は Docker コンテナ内で開発できるようにします。.devcontainer/ に環境を 定義しておけば、あとは VS Code が処理します — プロジェクトを開いて「Reopen in Container」をクリック すれば、すべてが準備完了です。

skillshare はこのワークフローに自然に組み込めます。postCreateCommand に追加しておけば、コンテナの 起動時に Skill がインストールされ Sync されます。

セットアップ

.devcontainer/devcontainer.json に2つのことを追加します。

{
  "postCreateCommand": "curl -fsSL https://raw.githubusercontent.com/runkids/skillshare/main/install.sh | sh && skillshare init --no-copy --all-targets --no-skill && skillshare sync"
}

これだけです。チームメンバーが VS Code でプロジェクトを開き「Reopen in Container」をクリックすると:

  1. skillshare が自動的にインストールされる
  2. init が非インタラクティブに実行される — 検出されたすべての AI CLI Target を追加し、コピーの プロンプトと組み込み Skill のインストールをスキップする
  3. sync がすべての Target に Skill を配布する

プロジェクトの Skill を追加する

チームで共有する Skill には、.skillshare/ の設定をリポジトリにコミットします。

# コンテナ内で
skillshare init -p
skillshare install your-org/team-skills -p

その後コミットし、プロジェクトの Skill も Sync するよう postCreateCommand を更新します。

{
  "postCreateCommand": "curl -fsSL https://raw.githubusercontent.com/runkids/skillshare/main/install.sh | sh && skillshare init --no-copy --all-targets --no-skill && skillshare sync && skillshare sync -p"
}

これで、コンテナを開いたすべてのチームメンバーが同じ Skill を得られます。

GitHub Codespaces

同じ .devcontainer/ の設定が変更なしで Codespaces でも動作します。Codespaces は VS Code と同じ 方法で postCreateCommand を実行します。

ssenv による隔離テスト

Devcontainer 内では、ssenv を使って並列テスト用の隔離された skillshare 環境を作成できます。 各環境は、別々の config、Skill、Target を持つ独自の HOME ディレクトリを得ます。

コマンド 何をするか
ssnew <name> 新しい隔離環境を作成する
ssuse <name> 環境を切り替える
ssback 元の環境に戻る
ssls すべての環境を一覧表示する
ssrm <name> 環境を削除する
ssnew demo && ssuse demo    # 作成して切り替える
ss init && ss sync          # コマンドは隔離された状態で実行される
ssback                      # 元に戻る

これはメインのセットアップに影響を与えずに、設定変更や Skill のインストールをテストするのに便利です。

次のステップ