diagram
Free描く内容に合った図の種類を選んで図を書く。Mermaid の図、AWS の構成図、 マインドマップ (markmap。Mermaid ではない) を書く、直す、読み直すときに使う。
The English summary is being prepared. Showing the original description.
シェルコマンドの実行、ファイル読み込み、URL の取得、検索、データの解析や変換を行うときに、 経路を通常のツールと context-mode の ctx_ ツールのどちらにするか判断するために使う。context-mode が接続されている場合に適用する。
ctx stats や ctx doctor といった "ctx" コマンドにも使う。
The English summary is being prepared. Showing the original description.
Run score Not tested
See how to installReview the instructions the agent will receive before you install.
個々の ctx_* ツールが何をするか、どんなときに使うかは、MCP ツールの説明文に従う。この方針は、
説明文が扱わない判断だけを定める。
ctx_execute と ctx_execute_file は、投入したスクリプトを stdout の前にコードブロックとして
そのまま返す。つまりスクリプトには 2 回分のコストがかかる。1 回目はツール呼び出しを生成するとき、
2 回目はエコーされた結果としてであり、後者はセッションが終わるまでコンテキストに残り続ける。
git status、ls、wc -l、バージョン表示など) は Bash で実行
する。ctx_execute で包むと、節約できる分より余計にかかる。gh --jq、jq、grep -c、sort | uniq -c など) は、
そのコマンドを実行する。スクリプトとして書き直さない。try/catch と null 処理を入れ、答えだけを出力する。短いスクリプトを
試行錯誤で何度も投げ直すのが、最も割高な使い方である。言語は、HTTP と JSON なら javascript、CSV と統計なら python、ネイティブツールのパイプなら
shell を選ぶ。
curl、wget、WebFetch、巨大な Bash 出力は
何も遮断されない。したがって経路は自分の判断で選ぶ。Web の内容は ctx_fetch_and_index と
ctx_search を通し、出力量が読めない処理は sandbox を通す。mcp__context-mode__ctx_execute になる。upstream の文書では ctx_execute と裸の名前で
書かれている。ctx stats、ctx doctor、ctx upgrade、ctx insight、ctx purge と入力されたら、同名の
ctx_* ツールを呼ぶ指示として扱う。呼び方と結果の扱いは各ツールの説明文に従う。ctx stats だけは
例外で、返された出力を要約せずそのまま全文表示する。
knowledge base とセッション統計は /clear と /compact をまたいで保持される。
詳細な例が必要になったときは、次の場所にある upstream の文書を読む。
P=$(find "$(mise where npm:context-mode)" -maxdepth 4 -type l -name context-mode \
-path '*/node_modules/*' | head -1)
R=$(readlink -f "$P")
$R/configs/claude-code/CLAUDE.md — Claude Code 向けの upstream の routing 規則。$R/skills/context-mode/SKILL.md — upstream のスキル。既定の方針が上記のコスト構造と逆で、
すべてのコマンドを sandbox 経由にする。このファイルの方針を優先する。$R/skills/context-mode/references/ — アンチパターンと言語別のパターン集。No reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
描く内容に合った図の種類を選んで図を書く。Mermaid の図、AWS の構成図、 マインドマップ (markmap。Mermaid ではない) を書く、直す、読み直すときに使う。
The English summary is being prepared. Showing the original description.
文書を書く、置き場所を決める、配置をレビューするときに使う。Markdown の書式、 ADR の作法、文書の層ごとの役割と正本の原則を扱う。
The English summary is being prepared. Showing the original description.
GitHub の Issue の作成、Issue へのコメント、draft PR の作成、PR へのレビューコメントの追加に使う。
The English summary is being prepared. Showing the original description.
PR のレビューコメントを解決する、または対応するときに使う。
The English summary is being prepared. Showing the original description.
コミットを頼まれたとき、plan のタスクを 1 つ終えたとき、まとまったコードの変更を 1 つ終えたときに、 次の作業に移る前に使う。
The English summary is being prepared. Showing the original description.
JavaScript の描画が要るページの取り方を決める。WebFetch や ctx_fetch_and_index が空のシェルや 内容の無い骨組みだけを返したとき、またはサイトが headless の user agent を 403 で弾いたときに使う。
The English summary is being prepared. Showing the original description.