一键导入
cc-optimizer-inventory
v2: Analyze MCP/plugin/connector usage: compare what's exposed vs. what's actually used, generate per-project cleanup recommendations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
v2: Analyze MCP/plugin/connector usage: compare what's exposed vs. what's actually used, generate per-project cleanup recommendations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Analyze Claude Code transcripts: aggregate token usage, models, cache metrics per project (zero model tokens spent, pure arithmetic).
Preview or apply per-project config optimizations: model choice, subagent models, cache tuning (dry-run default, use --apply to write).
Run full cc-optimizer pipeline: analyze Claude Code logs, identify quota waste, generate findings report with $ estimates. Auto-detects ~/.claude/projects (zero-config).
| name | cc-optimizer:inventory |
| description | v2: Analyze MCP/plugin/connector usage: compare what's exposed vs. what's actually used, generate per-project cleanup recommendations. |
| argument-hint | [path/to/sessions] [output.json] |
| allowed-tools | Bash, Read |
v2 feature: Analyze exposed vs. used MCP servers, plugins, and Claude AI connectors per project.
tool_use and Skill calls from your transcripts/cc-optimizer:inventory ~/.claude/projects optimizer/out/inventory.json
{
"projects": {
"dev-squad": {
"exposed_connectors": ["gmail", "slack"],
"used_connectors": ["slack"],
"unused_connectors": ["gmail"],
"exposed_plugins": ["@foo/mcp-server", "@bar/skills"],
"used_plugins": ["@bar/skills"],
"unused_plugins": ["@foo/mcp-server"],
"recommendations": [
{ "type": "connector", "id": "gmail", "action": "disable" },
{ "type": "plugin", "id": "@foo/mcp-server", "action": "disable" }
]
}
}
}
Apply recommendations with /cc-optimizer:apply --apply (writes settings.local.json per project).
~/.claude/plugins/cache/