コマンドラインからGitHub issueの本文やコメントを読み取り専用で確認し、URLや番号から対象リポジトリを指定する手順を案内します。
- issueの本文とコメントを読みたいとき
- URLからissueの内容を確認したいとき
- 別リポジトリのissueを参照したいとき
CarbonリポジトリでJujutsu(jj)を使い、変更の確認やコミット、リモートとの同期、変更スタックの管理を行うための基本操作を案内します。
Instructions for using Jujutsu (jj) for version control in the Carbon repository.
実行スコア 未検証
インストール方法を見るCarbonリポジトリでJujutsu(jj)を使う際の基本操作を確認できます。リモートからの取得、trunk上での作業開始、状態や履歴、差分の確認、変更のコミットなどを扱います。複数の変更を積み重ねてプルリクエストにする場合は、ブックマークからスタックの基点を見つけ、対象範囲を絞って操作する方法も説明します。作業中の変更を既存の変更にまとめる操作や、変更説明の付け方も案内されています。
Carbonの作業環境がJujutsuを使っているときに、日常的なバージョン管理の操作を確認できます。変更がどのブックマークを基点としているか判断したい場合や、レビュー中の変更を含むスタックを扱う場合にも役立ちます。履歴を書き換える操作の前に、影響を確認するための指針も含まれます。
リポジトリのルートに.jjディレクトリがある場合はjjを使い、ない場合は使いません。コマンドには--no-pagerを付けます。プルリクエストに提出済みの変更の履歴を書き換えてはいけません。その他の既存変更を squash、rebase、abandon、describeする場合は、実行するコマンドを提示して確認を待つよう定めています。
この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。
SKILL.md の記述から、注意が要る操作と導入の前提を AI が確認しました。点数は実際に動かした結果(実行検証)だけで付けています。
点数には入れていません。 2026年10月26日 時点で AI(OpenAI Codex)が判定しました。目安なので、入れる前に原文も確認してください。
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Jujutsu is a Git-compatible version control system that may be used in Carbon checkouts.
[!IMPORTANT] You can detect if Jujutsu is in use by checking for a
.jjdirectory in the repository root. If present, you must usejjand must not usegit. If absent, you must not usejj.
Always use the --no-pager flag when invoking jj to prevent the command from
blocking or waiting for terminal paging.
jj --no-pager git fetchjj --no-pager new trunkjj --no-pager statusjj --no-pager logjj --no-pager diffjj --no-pager commit
jj commit over the combination of jj describe
and jj new.jj --no-pager abandonjj --no-pager rebase -o trunkA change is often built as a stack of commits sent up as a single pull request.
The stack is not necessarily based on trunk; it may be based on another change
that is itself still in flight.
[!WARNING] Never rewrite the history of a change that has been submitted as a pull request. Reviewers track a PR by its commits, and squashing, reordering, or abandoning them discards review that is already in progress. This cannot be undone from their side.
Before rewriting history in any other case, propose the exact command and wait for confirmation. This applies to
squash,rebase,abandon, anddescribeon an existing change.
Bookmarks delimit the stack. List the bookmarks that are ancestors of the working copy, nearest first:
jj --no-pager log -r '::@ & bookmarks()'
Reading the result takes care, because two situations produce similar output:
trunk is only ever a base. Finding trunk nearest means new work is being
built on top of it, never that trunk itself is being worked on.
The graph does not distinguish the two cases: an unbookmarked or empty commit above a bookmark may be the next commit of that change or the start of a new one. Ask which it is when it is not clear, and ask before choosing where a fix should land rather than after. Guessing wrong means squashing into a change that may already be under review.
Once the base is known, use it to scope commands to the current stack:
jj --no-pager log -r '<base-bookmark>..@'
jj --no-pager squash --into <change-id> [path]. Follow-up fixes and
formatter reflows belong in the change that introduced the code, not in a
trailing "fixes" commit, unless that change has already been submitted.
Naming a path squashes only that part of the working copy, leaving unrelated
work in place.まだレビューはありません。使ってみた感想をお寄せください。
ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。
まだコメントはありません。最初のコメントを書いてみませんか。
コマンドラインからGitHub issueの本文やコメントを読み取り専用で確認し、URLや番号から対象リポジトリを指定する手順を案内します。
AIアシスタントがCarbonのコードベースを扱う際に、専用ツールでファイルを閲覧・検索・編集し、一時ファイルを管理するためのルールを示します。
Bazeliskを使ったCarbonプロジェクトのビルド、テスト、実行、デバッグの基本手順を確認し、対象を絞った検証やASanの利用方法も把握できます。
Carbonコンパイラに組み込み関数を追加する際の登録、型シグネチャ検証、定数評価、LLVMコード生成、テスト方法を案内します。
Carbonツールチェーンのコードを書く際に、言語ごとの整形方法やコメント、命名、ドキュメント、コミットメッセージの基準を確認できます。
Carbonコンパイラのエラーや警告を定義し、書式やソース位置のラベルを整え、テストで網羅性を確かめる方法を案内します。