コマンドラインからGitHub issueの本文やコメントを読み取り専用で確認し、URLや番号から対象リポジトリを指定する手順を案内します。
- issueの本文とコメントを読みたいとき
- URLからissueの内容を確認したいとき
- 別リポジトリのissueを参照したいとき
Bazeliskを使ったCarbonプロジェクトのビルド、テスト、実行、デバッグの基本手順を確認し、対象を絞った検証やASanの利用方法も把握できます。
Instructions that **MUST** be followed when using Bazel or Bazelisk to build, test, and debug in the Carbon repository.
実行スコア 未検証
インストール方法を見るCarbonプロジェクトでBazelを使ってビルドやテスト、実行を行う手順を確認できます。このプロジェクトではバージョンをそろえるため、bazelを直接呼び出さず、bazeliskを使います。全体またはツールチェーン、サンプルなど対象を指定したビルド・テストのコマンドが示されており、まず関連する範囲を検証してから必要に応じて広げる進め方も分かります。Bazelで作成したバイナリはbazelisk runで起動し、ASanを有効にしたテストや、環境変更後にキャッシュを作り直す方法も扱います。
Carbonのコードを変更し、ビルドやテストで確かめたいときに役立ちます。どのコマンドを使うか迷う場合や、システム側の依存関係を変更した後の再ビルド方法を知りたい場合にも向いています。
Carbonプロジェクトではbazeliskを使います。未導入の場合は./scripts/run_bazelisk.pyを利用できます。Jujutsu向けの特別な手順は記載されていません。
この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。
SKILL.md の記述から、注意が要る操作と導入の前提を AI が確認しました。点数は実際に動かした結果(実行検証)だけで付けています。
点数には入れていません。 2026年10月26日 時点で AI(OpenAI Codex)が判定しました。目安なので、入れる前に原文も確認してください。
インストールする前に、エージェントに与えられる指示の中身を確認できます。
This skill documents how best to use Bazel when building, testing, or manipulating the Carbon repository's Bazel in any way.
Carbon uses Bazel for its build system. To ensure consistent versions, the project uses Bazelisk.
[!IMPORTANT] Always use
bazeliskwhenever you want to run Bazel. Never runbazeldirectly in the Carbon project. Anything you want to do withbazelcan be done with thebazeliskcommand instead.
bazelisk in your existing $PATH if available.
run_bazelisk.py: If bazelisk isn't available, use
./scripts/run_bazelisk.py to run bazelisk without it being installed.bazelisk build //...bazelisk build //toolchain/...bazelisk build //toolchain:carbonbazelisk test //...:allbazelisk test //toolchain/...bazelisk test //examples/...[!TIP] Running all of the tests can be slow, so try to narrowly test the immediately relevant parts of the project first, and only expand coverage as necessary to be confident in the changes.
[!TIP] For specialized instructions on testing and developing the Carbon toolchain, consult these skills:
- Toolchain tests: For authoring, structuring, and running
file_testtests.- Toolchain development: For architecture, essential commands, and debugging the toolchain.
[!IMPORTANT] Always manually run binaries built by Bazel using the
bazelisk runcommand. Never run the binary directly frombazel-bin/.
You can run the Carbon driver or command line directly via Bazel:
bazelisk run //toolchain -- compile --phase=parse toolchain/parse/testdata/basics/empty.carbonTo enable ASan for local testing:
--config=asan: bazelisk test --config=asan //...bazel cleanChanges to packages installed on your system (like changing LLVM versions or
installing libc++) may not be noticed by Bazel.
bazelisk clean to force cached state to be rebuilt when environment
changes occur.まだレビューはありません。使ってみた感想をお寄せください。
ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。
まだコメントはありません。最初のコメントを書いてみませんか。
コマンドラインからGitHub issueの本文やコメントを読み取り専用で確認し、URLや番号から対象リポジトリを指定する手順を案内します。
AIアシスタントがCarbonのコードベースを扱う際に、専用ツールでファイルを閲覧・検索・編集し、一時ファイルを管理するためのルールを示します。
Carbonコンパイラに組み込み関数を追加する際の登録、型シグネチャ検証、定数評価、LLVMコード生成、テスト方法を案内します。
Carbonツールチェーンのコードを書く際に、言語ごとの整形方法やコメント、命名、ドキュメント、コミットメッセージの基準を確認できます。
Carbonコンパイラのエラーや警告を定義し、書式やソース位置のラベルを整え、テストで網羅性を確かめる方法を案内します。
`gh`でGitHubのIssue、プルリクエスト、リポジトリを読み取り専用で検索・確認し、必要な情報を絞り込む方法を案内します。