crush-config
できること
このスキルは、設定ファイルを通じて、コーディングツールのCrushを設定するのに役立ちます。プロバイダー、モデル、MCPサーバー、フック、権限を扱います。Crushの動作を変えたい人向けです。
使う場面
- ✓Crushのプロバイダーやモデルを設定したいとき。
- ✓CrushにMCPサーバー、言語サーバー、スキルを追加したいとき。
- ✓設定ファイルで、Crushの権限や動作を変えたいとき。
スキルのリンク
https://github.com/charmbracelet/crush/blob/main/internal/skills/builtin/crush-config/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のAPIプロバイダーでCrushを設定し、プロジェクト内のcrushrcファイルを使ってMCPサーバーを追加してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、Bashベースのcrushrcスクリプトか、crush.jsonファイルを書きます。Crushは、ホームフォルダとプロジェクトの設定ファイルを統合します。スクリプトは、provider、model、mcpなどの組み込みコマンドを使って設定を作ります。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Crush Configuration
Crush supports two config formats:
crushrc— a Bash script that builds config by calling Crush builtins. Preferred. Because it is real Bash you get includes, secrets, conditionals, and variables for free.crush.json— static JSON. Fully supported; see Legacy JSON format.
Both are discovered together and deep-merged. Priority (highest to lowest):
.crushrc/crushrc/.crush.json/crush.json(project-local, closer-to-cwd wins; Windows uses.\.crushrc/.\crushrc)$XDG_CONFIG_HOME/crush/crushrcor~/.config/crush/crushrc(%XDG_CONFIG_HOME%\crush\crushrcor%USERPROFILE%\.config\crush\crushrcon Windows)
Data directories (~/.local/share/crush and %LOCALAPPDATA%\crush) contain
machine-owned JSON state only; Crush does not discover or execute a crushrc
from those locations.
If a directory has both crushrc and crush.json, they merge (crushrc wins
on conflicts) and Crush logs a warning.
crushrc at a glance
A crushrc is a plain Bash script executed at load time with the same embedded
shell the bash tool uses. It builds config by calling builtins (provider,
model, mcp, lsp, hook, permissions, option). Statements run top to
bottom; later statements win, and remove/reset operate on anything defined
earlier or pulled in via source.
#!/usr/bin/env bash
# Includes and secrets are just Bash.
source ~/.config/crush/shared.sh
provider add anthropic --api-key "$ANTHROPIC_API_KEY"
model large anthropic/claude-sonnet-4-20250514 --max-tokens 16384
model small anthropic/claude-haiku-4-20250514
option skill-path ./skills
permissions allow view ls grep edit
Values are ordinary Bash — quote and expand normally ("$VAR", $(cmd),
${VAR:?required}). A failing $(command) aborts the load.
CRUSH_VERSION is exported into the script so you can feature-detect the
running Crush (it is the literal devel for local builds):
[[ "$CRUSH_VERSION" != devel ]] && lsp add gopls --command gopls
Commands
All entity commands are verb-first. remove accepts rm as an alias. Booleans
accept true/false/1/0/yes/no, case-insensitive.
providers
provider add <id> [flags] # define/update; repeated calls merge
provider remove <id> # alias: rm — removes the provider and its models
Flags: --name, --type (completions, responses, messages, or a local
type like ollama, lmstudio, llamacpp; legacy values openai, openai-compat,
anthropic are migrated automatically), --api-key, --base-url,
--disable BOOL, --flat-rate BOOL, --discover-models BOOL,
--system-prompt-prefix TEXT, --extra-header KEY VALUE (repeatable),
--extra-body JSON, --provider-options JSON.
provider add deepseek \
--type completions \
--base-url "https://api.deepseek.com/v1" \
--api-key "${DEEPSEEK_API_KEY:?set DEEPSEEK_API_KEY}"
models
model add <provider>/<id> [flags] # register a custom model (provider must exist)
model remove <provider>/<id> # alias: rm
model large [<provider>/<id>] [flags] # set the large slot; no arg prints it
model small [<provider>/<id>] [flags] # set the small slot; no arg prints it
<provider>/<id>is the same formcrush modelsprints. A missing slash is an error.model addrequires the provider to already exist.model addflags:--name,--context-window N,--default-max-tokens N,--thinking always|never|toggleable,--supports-images BOOL,--price-input F,--price-output F,--price-cache-create F,--price-cache-hit F,--reasoning-effort low|medium|high,--max-attachments N.model large/model smallflags:--think,--reasoning-effort,--max-tokens N,--temperature F,--top-p F,--top-k N,--frequency-penalty F,--presence-penalty F,--provider-options JSON.model largewith no argument prints the current selection asprovider/id, usable in$(model large).
large is the primary coding model; small is used for summarization.
mcp
mcp add <name> --type stdio|sse|http [flags] # default type is stdio
mcp remove <name> # alias: rm
Flags: --command CMD, --args ARG (repeatable), --env KEY VALUE
(repeatable), --url URL, --header KEY VALUE (repeatable), --timeout N,
--disabled BOOL, --disabled-tools TOOL (repeatable), `--enabled-t
よくある質問
crushrcとは何ですか?
組み込みのコマンドを呼び出してCrushの設定を作る、Bashのスクリプトで、推奨される形式です。
JSONも使えますか?
はい、crush.jsonも完全に対応しており、両方の形式を一緒に使えます。
どの設定を扱いますか?
プロバイダー、モデル、言語サーバー、MCPサーバー、フック、スキル、権限を扱います。
詳細
作者による元の説明
Use when the user needs help configuring Crush — writing crushrc (the Bash config format) or crush.json, setting up providers, models, LSPs, MCP servers, hooks, skills, permissions, or changing Crush behavior.
repo: charmbracelet/crush
人気
- GitHubのスター
- 29k
- ランキング
- #9765
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
crush-hooks
29kエージェントが、crush.jsonの設定を使い、ツールの呼び出しの前に確認、ブロック、変更をするCrushのフックを書き、デバッグできるよう支援します。
jq
29kエージェントが、組み込みのjqコマンドを使って、APIの応答、設定ファイル、ログなどのJSONデータを検索し、組み替えられるよう支援します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。