一键导入
copilot-cost-install
Enable the Copilot CLI Cost /cost command and panel by installing the user-scoped SDK extension shim that imports the installed plugin.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Enable the Copilot CLI Cost /cost command and panel by installing the user-scoped SDK extension shim that imports the installed plugin.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | copilot-cost-install |
| description | Enable the Copilot CLI Cost /cost command and panel by installing the user-scoped SDK extension shim that imports the installed plugin. |
Use this skill when the user asks to install, enable, set up, or repair the Copilot CLI Cost /cost command or cost panel after installing the plugin.
Goal:
copilot-cli-cost plugin under the user's Copilot installed plugins directory.copilot-cli-cost user extension in /extensions if it is not already running.Use the command for the user's shell.
PowerShell:
$installer = Get-ChildItem "$env:USERPROFILE\.copilot\installed-plugins" -Directory -Recurse |
Where-Object { Test-Path (Join-Path $_.FullName "scripts\install-extension-shim.mjs") } |
Select-Object -First 1 -ExpandProperty FullName
if (-not $installer) {
throw "Could not find the installed copilot-cli-cost plugin. Run install.ps1 or install.sh first."
}
node (Join-Path $installer "scripts\install-extension-shim.mjs")
Bash/zsh:
installer="$(find "$HOME/.copilot/installed-plugins" -type f -path '*/scripts/install-extension-shim.mjs' | head -n 1)"
if [ -z "$installer" ]; then
echo "Could not find the installed copilot-cli-cost plugin. Run install.ps1 or install.sh first." >&2
exit 1
fi
node "$installer"
After the script succeeds, instruct the user:
/extensions.copilot-cli-cost under User, or toggle it off and on if it was already enabled./cost help to confirm the command is available.Do not overwrite unrelated user extensions. If the installer reports that it refused to overwrite an existing non-Copilot-Cost extension, stop and explain that the user already has a user extension named copilot-cli-cost.