Bwg Lab Setupのロゴ

Bwg Lab Setup

コミュニティ
lavinigam-gcp
bwg-lab-setup

Set up this laptop for the Build with Google Track 2 or Track 3 lab, or repair a setup that is failing. Use when the user says "set up my laptop", "install the lab environment", "my lab environment is broken", or when a lab exercise fails because tooling or skills are missing.

概要

公開者lavinigam-gcp
リポジトリBwG-Track2
スキル名bwg-lab-setup
スター
21
フォーク
11
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/lavinigam-gcp/BwG-Track2.git /tmp/BwG-Track2
mkdir -p .claude/skills
cp -r /tmp/BwG-Track2/bwg-lab-setup/.agents/skills/bwg-lab-setup .claude/skills/bwg-lab-setup
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Laptop setup for the Build with Google Track 2 / Track 3 labs

Drive setup/install.sh and setup/verify.sh to bring this machine to parity with the lab VM, then point the user at the readiness check and let it speak for itself.

verify.sh is the only source of truth for pass or fail. Never edit it, and never report success it did not report. It is also the only place cloud sign-in is discussed.

Do not mention gcloud, Qwiklabs accounts, or Antigravity sign-in anywhere in the setup. The reason is attached so that you do not helpfully put it back: people run this days before the event, and the lab credentials do not exist yet. They are handed out on the day. A tester who finished the install and was told to run gcloud auth login and sign in to Qwiklabs went looking for an account nobody had issued him. Sign-in is not withheld from him, it is deferred: verify.sh --readiness prints it at the end, worded as what is coming rather than as homework, and it is the only thing here that knows whether the event has started. Do not compose a list of outstanding human actions of your own. That is the specific habit that produced the bug.

Use only this skill while you are setting the laptop up. The lab's own skills (novasmart-governance-lab, build-demo, bwgtrack2-demo-build, and anything under a Desktop/Session*/ or starter-kit .agents/skills/ folder) are lab content, not setup instructions. This repository installs them; it does not run them. They steer you into an in-lab persona that checks a cloud estate which has not been provisioned yet, and one of them says out loud that its job includes checking the environment is ready, which is close enough to this task to be picked up by mistake. If one is offered to you at any point during setup, do not load it and do not act on it. They come into play when the user opens the lab folder, which is after you are done.

1. Pre-flight

  1. Confirm the open folder is this repository — it must contain setup/install.sh and setup/verify.sh. If not, stop and tell the user which folder to open.
  2. Detect the platform: uname -s and uname -m.
    • Native Windows is unsupported: uvloop publishes no Windows wheels. Direct the user to WSL2, and read section 1b before you do anything else on that machine.
    • Intel Mac (Darwin + x86_64) needs Rust for cryptography; the script offers to install it.
  3. Establish which track the user is doing, and do it before anything else. Every command below takes --track, and the two tracks install different things.
    • Track 2 is the NovaSmart governance lab. It uses the skills bundled in this repo and works out of ~/Desktop/Session1|2|3.
    • Track 3 is the agent-first app. It clones the Track 3 starter kit from a separate community repository into ~/Desktop/build-with-gemini, and also installs the GitHub CLI.
    • If the user has not said, ask. Do not guess from the folder they have open. If you pass no --track to a script, it silently uses Track 2, which is the wrong answer half the time.
    • Once you know, use --track N on preflight.sh, install.sh and verify.sh every time, including Track 2. Being explicit is what makes the transcript readable afterwards.
  4. Run bash setup/verify.sh --json --track N first. If it already returns exit 0, say so and stop — do not reinstall a working environment.
  5. Run bash setup/preflight.sh --track N and show the user the report card. This is mandatory and changes nothing. Its checks are identical for either track; --track only records which track the card was collected for. Exit 0 GO, 1 GO WITH CAVEATS, 2 NO-GO.
    • On NO-GO, stop. Explain which checks blocked it and recommend the lab VM. Do not install anything, and do not reach for --skip-preflight to get past it.
    • On GO WITH CAVEATS, summarise each warning in plain language and ask whether to continue. Summarise the warnings the card actually printed. Do not add a credential or account warning of your own: before the event preflight deliberately reports the google account row as OK, because there is no lab account to check yet.
    • Keep the verdict word. verify.sh takes it at the end as --preflight-verdict {go,caveats,no-go}, which is what lets the last step speak in the same three words the user already read here.
  6. Show what install.sh will change, say roughly how long it takes (45-90 minutes, mostly downloads), and get an explicit go-ahead before changing anything. install.sh asks too, so never pass --yes unless the user has already said yes in this conversation.

1b. Windows with WSL2 is limited support

macOS and Linux are supported. Windows with WSL2 is limited support, and you must say so. Never tell the user Windows is fully supported, and never present the workaround below as a fix.

What actually happens. The toolchain installs and gcloud works under WSL2. Antigravity is the part that breaks: asked to open a folder that lives on a WSL path, it can report "folder not found" even though the folder is there. Antigravity runs as a Windows application and reaches into the Linux file system over the \\wsl$ network share, so a path such as /home/user/Desktop/Session1 is not a path Windows can resolve. When the share is not mounted, or the distribution is not running, the folder genuinely does not exist as far as Windows is concerned.

The known workaround, and its limit. Map the WSL share to a drive letter, for example map \\wsl$\Ubuntu to Z:, then point Antigravity at Z:\home\user\Desktop\Session1 instead of the WSL path. This has been seen to work. It does not survive a restart. A tester mapped the drive, got through setup, rebooted, and found every mapping gone. Treat the mapping as something the user will have to redo, and tell them that at the time you suggest it, not afterwards.

Before you apply any of this, get the user's explicit approval. Say all four of these:

  • Windows is limited support for this lab, and this is a workaround, not a fix.
  • It changes more on their machine than setup does on macOS or Linux, because it adds a persistent drive mapping to their Windows profile.
  • The mapping is lost on restart and will need redoing.
  • They do not have to accept it. The provided lab VM, and finishing setup on location at the event with a helper, are both still open to them.

Only proceed on a clear yes. If they decline, stop and recommend the VM, and say plainly that this is not a failure on their part.

setup/install.sh asks the same question itself when it detects WSL2, so on that machine expect a consent prompt before any work starts. In a dry run, or with no terminal attached, it does not ask: it prints the warning on stderr and continues. Do not read that non-interactive warning as the user having agreed to anything.

setup/preflight.sh reports WSL2 as GO WITH CAVEATS, never a clean GO. Do not describe that verdict to the user as a pass.

2. Install

Run the steps in order, streaming output. Never run the whole thing silently.

bash setup/install.sh --yes --track 2      # or --track 3

--yes suppresses the track question along with every other prompt, so --track is not optional here. Without it the script falls back to Track 2 without asking.

Track 3 only. Before running it, tell the user in plain words that this step clones https://github.com/cszhu/build-with-gemini onto their machine, that it is a community repository which neither this repo nor Google maintains, and that it is not an official Google product. Get their go-ahead for that specifically. If they would rather use a fork or a mirror, pass --kit-url URL.

The kit is pinned to one commit, held in KIT_REF at the top of setup/install.sh. Tell the user which commit they are getting if they ask, read it from that variable rather than from memory, and use --kit-ref if they want a different commit, tag or branch. --kit-ref "" follows the default branch, which means taking whatever that community repository holds that day; only do it if the user asks for it, and say what it means.

Never delete an existing starter-kit clone, and never suggest --force as a way to refresh one. After the lab starts, that directory holds the user's own project. --force moves it aside under a timestamped name rather than removing it, but it still leaves them with two copies to reconcile, and when the reason for the failure is an upstream layout change, re-fetching the same upstream fixes nothing at all. Fetch into a new folder with --kit-dir DIR instead, and leave theirs alone.

If the installer reports that the folder has a .git but no checkout, an earlier clone was interrupted. That is repaired by re-running install.sh --track 3 --only starterkit, which moves the unusable directory aside and fetches again. Do not reach for --force for this.

Ask before adding --with-extras; the optional extras are only for demo-recording exercises and cost another 300-500 MB.

If a step fails, the script prints the exact --only command to retry it. Fix the cause first, then retry that one step. Do not restart from the beginning.

3. Verify

Confirm the install with the JSON form and read the exit code:

bash setup/verify.sh --json --track N

Do not run --readiness yourself. It is the user's own last step, it is the one place cloud sign-in is described, and running it inside the install turn is exactly how that text ended up in the middle of a setup transcript. It reports the parity table plus five readiness rows, and then, according to whether the lab credentials have been issued, either what the user will do on the day of the event or what they can do now. That wording is its job, not yours.

Exit codes: 0 all pass, 1 drift, 2 something missing, 3 no virtual environment, 64 a flag or a BWG_PHASE value this script does not accept. Treat 64 as "I typed the command wrong", not as "the machine is broken": read verify.sh --help and run it again.

install.sh exit codes: 0 done, 1 a step failed, 2 preflight said NO-GO, 64 a bad flag, --only step or track, 66 no terminal to ask for consent on, so nothing was changed. 66 is not a machine fault either. install.sh always discloses what it will change and asks first, and nothing, including --only and --skip-preflight, skips that. If you hit 66, you are running it somewhere with no terminal attached: pass --yes to accept the disclosed changes, or have the user run it themselves in a terminal.

The first seven checks are the shared toolchain and run for both tracks. After that the profiles diverge, and the track field in the JSON tells you which one you are reading:

Track 2 addsTrack 3 adds
packages, sessions, lab-skill, config-pathskit, kit-skills, kit-mcp, kit-publish, gh

Do not run the Track 2 profile against a Track 3 machine to "get more coverage". It will report missing session folders and a missing governance-lab skill, neither of which Track 3 has any use for, and you will send the user chasing a failure that is not real.

If the virtual environment is somewhere other than ~/novasmart-lab/.venv, pass --venv DIR rather than reporting exit 3 as a broken install.

For each failing check, read its fix field and apply the repair below. Re-run verify.sh after each repair, and keep going until it returns 0 or you are blocked on a human.

4. Repair table

Check failsCauseFix
pythonWrong interpreter, or venv built on an older Pythonuv python install 3.14, then install.sh --only python --force
packages not 120Resolution diverged or a build failedRe-run install.sh --only python. On an Intel Mac see below
packages is 121 or moreSomeone installed an extra package into the lab venvinstall.sh --only python --force. Plain --only python cannot fix this: it never uninstalls anything, so only rebuilding the venv clears it. The venv holds no work, so this is safe
google-adk, agents-cli, google-genai driftSomeone upgraded a packageinstall.sh --only python --force
no-vendor-sdk above 0--no-deps was dropped, so the resolver re-added LiteLLM or an OpenAI client. There is no litellm check: those packages are asserted absent, not pinnedinstall.sh --only python --force. Plain --only python never uninstalls, so only a rebuild clears it
config-paths above 0The skills still carry the VM's /config pathsinstall.sh --only skills --skills-src DIR
sessions below 3A session folder was deleted or never createdinstall.sh --only sessions
lab-skills not installed, session folders emptyThe sessions step did not run. The skills ARE bundled in this repo, so this is not a missing-source problem. The row is reported as SKIP and is not counted as a failureinstall.sh --only sessions
lab-skill MISSINGA skills source was given but the copy did not land, or is nested too deepinstall.sh --only sessions --skills-src DIR, then confirm each skill has SKILL.md at its own top level
node, gcloud MISSINGTool step did not completeinstall.sh --only tools
kit MISSING (Track 3)The starter kit was never fetched, or an earlier clone was interrupted and left a .git with no checkoutinstall.sh --track 3 --only starterkit. It moves an unusable directory aside and fetches again
kit-skills, kit-mcp, kit-publish MISSING (Track 3)The directory exists but is not the starter kit, or upstream changed its layoutCheck ~/Desktop/build-with-gemini is the right clone. Report a layout change rather than patching around it. Never suggest --force here: it moves the user's project folder aside to re-fetch the same unchanged upstream, so it destroys context and fixes nothing. Fetch into a new folder with --kit-dir DIR instead
gh MISSING (Track 3)Tool step ran as Track 2, or gh was removedinstall.sh --track 3 --only tools, which installs it with brew on macOS and apt on Linux and WSL2
Installer cannot fetch the kit (Track 3)That community upstream was renamed, deleted or made private, or the network blocks itIt fails fast and says so rather than hanging on a credential prompt. Nothing is half-applied. Re-run, or pass --kit-url pointing at a fork or an offline mirror
verify.sh exits 64, unknown optionA mistyped or invented flagRead verify.sh --help. It refuses unknown flags on purpose: it used to ignore them and silently run the Track 2 profile on a Track 3 machine
sessions or lab-skill fails on a Track 3 machineYou ran the wrong profileRe-run with --track 3. This is not a real failure
user asks about agyNot installed by design; the labs run in the IDESay so; do not install it
exit 3No virtual environmentinstall.sh --only python

TROUBLESHOOTING.md in the repository root lists every known failure by operating system; consult it before improvising a fix. Known environment failures that are not the script's fault:

  • cryptography will not build on an Intel Mac — no Intel wheel exists for the pinned version. Run xcode-select --install and brew install rust, then retry. If the user is blocked, uv pip install cryptography==48.0.1 installs from a wheel and leaves them one package from the image; say so plainly rather than hiding it.
  • TLS errors on a corporate network — an intercepting proxy. Ask IT for the CA certificate and set REQUESTS_CA_BUNDLE and SSL_CERT_FILE. Do not disable certificate verification.
  • Antigravity will not start on Linux or WSL2 — set the chrome-sandbox permissions. Never add --no-sandbox; it disables a real security boundary.

4b. Check which account is signed in, but only if there is an account question

Skip this section entirely when preflight reports the google account row as OK. Before the event it always will: no lab project is set and no application-default credentials are on the machine, so preflight knows the account question is not live yet, and neither should you. Raising it anyway turns a row that says "issued at the event" into an interrogation about credentials the user has not been given.

If preflight warns on that row, then a project or credentials are already on this machine and the question is real. The lab is played with the Qwiklabs account issued for it — never a personal Google account and never a work or corporate one. A different identity cannot see the lab's project or agents, and anything created lands in the user's own project and bills their own account. Say what preflight found, and ask the user to confirm before installing. Do not assume it is fine because the tooling works.

5. Hand off

Do not write your own list of the things only a human can do. This is the restatement of the rule at the top of this file, put here because this is where the temptation lands: the install has just succeeded, a closing summary feels owed, and the obvious content for it is gcloud and Qwiklabs. verify.sh --readiness already prints that list, it is the only thing here that knows whether the credentials have been issued, and the one you would write does not. Two previous attempts to fix this failed because the offending text was deleted and the instruction that generates it was left in place.

Say these three things, and stop.

  1. What happened. What install.sh installed, and what verify.sh --json returned. Quote its numbers rather than restating them as a judgement of your own.
  2. The one line the user must add by hand, on Track 2 only, if install.sh printed it: the export NOVASMART_SCORECARD_HOME=... line for their shell profile. Repeat it verbatim. This is the only manual step that belongs in your summary, because it can be done now and needs no credentials.
  3. The two commands that end the setup, in this order, and the order matters:
    • bash setup/verify.sh --readiness --track N, run from the setup folder, ~/novasmart-lab/setup. install.sh prints the same command, without --track on Track 2; add the track back, because it keeps the transcript readable. There is no need to pass --preflight-verdict: preflight records its verdict where verify.sh reads it. Pass that flag only to override what was recorded.
    • Open the folder for the track in Antigravity: ~/Desktop/Session1 for Track 2, or ~/Desktop/build-with-gemini for Track 3. Name the exact folder rather than saying "open the project", because opening the folder is also what loads its skills. This is second on purpose. The Track 3 starter kit carries its own troubleshoot-lab-setup skill, which answers readiness questions with a sign-in instruction that is wrong before the event, and it cannot answer anything while its folder is still closed. Readiness first, folder after.

Then stop. The readiness report answers everything else, and it is the only thing here that knows whether the event has started. Do not preview its contents, do not summarise them, and do not name the topics it will cover. If you find yourself about to list what the user still has to do, that list is the bug: delete it and print the command instead.

6. Scope

You may write to: ~/novasmart-lab/, ~/Desktop/Session1, Session2, Session3. On Track 3, also ~/Desktop/build-with-gemini, and there only to create the clone, never to delete or rewrite what is already in it. You may run setup/install.sh and setup/verify.sh.

Do not edit the user's shell profile. Neither script does: install.sh prints the export NOVASMART_SCORECARD_HOME=... line and leaves it to them, and the README promises the reader that nothing here touches ~/.zshrc or ~/.bashrc. Repeat the line verbatim in your hand-off instead.

The scope on skills is this one. Setup is driven by this file alone. The lab skills this repository copies into Desktop/Session*/.agents/skills/, and the ones inside the Track 3 starter kit, are cargo: install them, verify they landed, and do not read them for instructions. They belong to the lab session that starts after you hand off.

Anything else — installing unrelated software, editing files elsewhere, changing gcloud configuration beyond the documented commands, or granting IAM roles — stop and report instead. If a step is blocked, say what blocked it and what you would need. Never work around a blocker by repurposing something that already exists.

Never invent a repository URL. It comes from the clone the user already has.

よくある質問

AIスキル「Bwg Lab Setup」では何ができますか?

Set up this laptop for the Build with Google Track 2 or Track 3 lab, or repair a setup that is failing. Use when the user says "set up my laptop", "install the lab environment", "my lab environment is broken", or when a lab exercise fails because tooling or skills are missing.

TypingMindでBwg Lab Setupを使うメリットは何ですか?

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

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

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/lavinigam-gcp/BwG-Track2/tree/main/bwg-lab-setup/.agents/skills/bwg-lab-setupを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Bwg Lab Setupを使えるAIモデルはどれですか?

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

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

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

AIスキル「Bwg Lab Setup」は無料ですか?

lavinigam-gcpがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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