How this skill is triggered — by the user, by Claude, or both
Slash command
/mutils:automation-advisorThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
リポジトリの「意図された設計(ドキュメント・設定)」と「実際に起きていること(AI活動履歴・git log・コード重複)」を交差分析し、まだ自動化されていない繰り返しパターンを発見して提案レポートとして出力する。
リポジトリの「意図された設計(ドキュメント・設定)」と「実際に起きていること(AI活動履歴・git log・コード重複)」を交差分析し、まだ自動化されていない繰り返しパターンを発見して提案レポートとして出力する。
$ARGUMENTS
「このリポジトリで繰り返されている作業のうち、まだ自動化されていないものは何か」
function analyze(repo):
designed = scan_existing_automation(repo)
actual = scan_actual_patterns(repo)
findings = []
for pattern in actual:
if pattern in designed and designed[pattern].behavior != actual[pattern].behavior:
findings.append({type: "drift", pattern, designed: designed[pattern], actual: actual[pattern]})
else if pattern not in designed:
findings.append({type: "unwritten", pattern, frequency: actual[pattern].count})
return findings
リポジトリ内の以下を走査し、「何が自動化済みか」の全体像を構築する:
.claude/settings.json, settings.local.json, プラグインの hook 定義).claude/skills/, プラグインの skill 定義).claude/rules/, プラグインの rule 定義).github/workflows/, etc.)以下のデータソースから「何が繰り返し発生しているか」を抽出する。データソースの選択と優先順位はエージェントが状況に応じて判断する:
/insights の出力)データソースへのアクセス方法は references/ 配下を参照。
探索の深さはデータソースごとに制御する。目安として:
function calibrate_exploration(data_source):
if data_source == "ccsight":
// stats 1回 + sessions 一覧 1回 + セッション詳細 最大5件 + search 最大3クエリ
// 合計 ~10 MCP コール以内に収める
// stats.top_tools と stats.mcp_servers で仮説を立て、search で検証する流れ
max_mcp_calls = 10
if data_source == "git_log":
// git log --oneline -100 で傾向を掴み、深掘りは最大2回
max_commands = 3
if data_source == "session_files":
// セッションファイル直接参照は ccsight のフォールバック
// 詳細分析が必要なためサブエージェントに委譲し、メインの context 圧迫を避ける
// サブエージェントがセッションファイルを読み、繰り返しパターンを抽出して返す
delegation = "subagent"
if data_source == "similarity-ts":
// 1回実行、結果をそのまま使う
max_commands = 1
ドキュメントや設定に記述されているが、実際の挙動や運用が異なるもの。
例:
どこにも書かれていないが、繰り返し発生しているパターン。
例:
発見に対して、以下のいずれかの自動化手段を提案する:
.claude/rules/ に置くエージェント向けの行動規範function run(repo):
// Phase 1: 収集(並列実行可能)
designed = scan_existing_automation(repo)
actual = scan_actual_patterns(repo)
// Phase 2: 交差分析
findings = cross_analyze(designed, actual)
// Phase 3: 提案生成
proposals = []
for finding in findings:
proposal = {
observation: finding.description,
classification: finding.type, // "drift" or "unwritten"
suggested_means: select_automation_type(finding),
evidence: finding.data_sources,
}
proposals.append(proposal)
// Phase 4: レポート出力
report_path = ".local-agents/automation-advisor-<YYYYMMDD-HHmmss>.md"
write_report(report_path, proposals)
return report_path
.local-agents/automation-advisor-<YYYYMMDD-HHmmss>.md各提案には以下を含めること:
.local-agents/ 配下に出力するnpx claudepluginhub masseater/claude-code-plugin --plugin mutilsGuides collaborative design exploration before implementation: explores context, asks clarifying questions, proposes approaches, and writes a design doc for user approval.
Creates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.
Implements work from a spec or tickets using TDD at agreed seams, with regular typechecking and test runs, followed by code review.