ワンクリックで
session-insights
Analyze past Claude Code sessions to extract patterns, metrics, and recommendations.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Analyze past Claude Code sessions to extract patterns, metrics, and recommendations.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Audits the Claude Code configuration of a project against the dotforge template. Generates a report with score and gaps.
Sync all GitHub-backed git repos on this machine with origin. Pulls behind repos, pushes ahead repos, reports dirty/non-main/conflict cases for Claude to resolve.
Generate a Claude Code plugin package from the current project's dotforge configuration, ready for marketplace submission.
Fetch official Anthropic/Claude Code docs, detect changes relevant to dotforge, report deltas.
Process the practices inbox, evaluate, incorporate into dotforge, and suggest propagation to projects.
Restore a project's .claude/ directory to the dotforge template from scratch, with backup and rollback option.
| name | session-insights |
| description | Analyze past Claude Code sessions to extract patterns, metrics, and recommendations. |
Analyze the current project's Claude Code usage patterns and generate actionable recommendations.
Collect data from available sources in the current project:
~/.claude/metrics/{project-slug}/*.json (structured JSON from session-report hook)$DOTFORGE_DIR/registry/projects.ymlIf a source doesn't exist, skip it and note as "unavailable".
When ~/.claude/metrics/{project-slug}/ is empty or doesn't exist, reconstruct a pseudo-historical picture:
git log --name-only --since="60 days ago" to identify:
git log --grep="fix" --oneline | wc -l)git log --name-only against .claude/rules/*.md globs to estimate historical rule coverageMark all retroactive data clearly as:
⚠ Inferred from git history — no session metrics available yet.
Session metrics will accumulate automatically after /forge sync.
From available data, calculate:
When JSON metrics files exist, aggregate across the last N sessions (default 20):
Based on metrics, produce actionable recommendations:
.claude/rules/ targeting that area/forge sync to update configurationFor the top 3 most impactful recommendations:
$DOTFORGE_DIR/practices/inbox/ or active/practices/inbox/:
source_type: session-insightstags: [insights, <area>]Output format:
═══ SESSION INSIGHTS: {{project}} ═══
Fecha: {{YYYY-MM-DD}}
Data sources: {{list of available sources}}
── SESSION METRICS ──
Sessions tracked: {{N}} (since {{first date}})
Avg files/session: {{N}} | Avg commits/session: {{N}}
Hook blocks: {{N}} destructive, {{N}} lint (total across sessions)
Rule coverage: {{trend}} ({{current}}% — last 5: {{values}})
Error rate: {{N}} errors/session
{{if retroactive: "⚠ Inferred from git history"}}
── ERROR PATTERNS ──
Top areas: {{area}} ({{count}} errors), ...
Type distribution: logic {{N}}, config {{N}}, ...
Repeat offenders: {{areas with 3+ errors}}
── FILE ACTIVITY ──
Hot files (last 30 days):
1. {{file}} — {{N}} edits
2. ...
Untested hot files: {{list or "none"}}
High churn (>5 edits): {{list or "none"}}
── AGENT USAGE ──
Active: {{agents with learnings}}
Underused: {{agents with empty memory}}
── SCORE TREND ──
Current: {{score}}/10
Trend: {{improving|stable|declining}} ({{last 3 scores}})
── RECOMMENDATIONS ──
1. {{recommendation}} — impact: {{high|medium|low}}
2. ...
── PRACTICES CREATED ──
{{list of new practices or "none"}}