auto
Smart router - Single entry point with natural language intent detection
[advanced] Generate engineering retrospectives from git history with trends and team analysis
> /plugin marketplace add nyldn/claude-octopusHow it fires
How this command gets triggered: by you, by Claude, or both.
/retroContext preview
What this command does when you run it.
[advanced] Generate engineering retrospectives from git history with trends and team analysis
command: retro disable-model-invocation: true description: "[advanced] Generate engineering retrospectives from git history with trends and team analysis" allowed-tools: Bash, Read, Glob, Grep, Write
**Your first output line MUST be:** `🐙 Octopus Retrospective`
Generate data-driven engineering retrospectives by mining git history. Surfaces commit patterns, contributor breakdown, hotspots, session analysis, and AI-assisted commit tracking.
/octo:retro # Last 7 days (default) /octo:retro 24h # Last 24 hours /octo:retro 14d # Last 14 days /octo:retro 30d # Last 30 days
When the user invokes `/octo:retro`, you MUST follow these steps exactly.
Accept an optional argument for the time window. Default to `7d` if none provided.
Supported formats:
Map the argument to a git `--since` value. If the argument does not match a supported format, warn the user and fall back to `7d`.
Run the following git commands to collect raw data. Each command MUST be executed — do NOT skip any.
**Commit list:**
git log --oneline --since='<window>' --no-merges
**LOC changes (lines added/removed per file):**
git log --numstat --since='<window>' --no-merges --format=''
**Contributor leaderboard:**
git shortlog -sn --since='<window>' --no-merges
**Hotspot analysis (files modified most often):**
git log --format='' --name-only --since='<window>' --no-merges | sort | uniq -c | sort -rn | head -20
**PR merge count (merge commits):**
git log --oneline --since='<window>' --merges | wc -l
**Commit timestamps for session detection:**
git log --format='%at %H %s' --since='<window>' --no-merges
**AI-assisted commit detection:**
git log --since='<window>' --no-merges --format='%b' | grep -ci 'Co-Authored-By:'
**Current user identification:**
git config user.name
Present the retrospective in this structured format:
| Metric | Value | |--------|-------| | Time window | `<window>` | | Total commits | N | | Lines added | +N | | Lines removed | -N | | Net change | +/-N | | PRs merged | N | | Contributors | N | | AI-assisted commits | N (X%) |
For each contributor from `git shortlog`, show:
Format as a table sorted by commit count descending.
Parse commit messages for conventional commit prefixes. Count each type:
Calculate the **test ratio**: test commits / total commits.
Display as a table with counts and percentages.
Show the top 10 most-changed files from the hotspot data. These are files modified across the most commits (not by LOC). Flag any file appearing in more than 30% of commits as a potential refactoring candidate.
Analyze commit timestamps to detect work sessions. A gap of 45 minutes or more between consecutive commits marks a new session.
For each detected session, show:
Show total session count and average session length.
Save a structured JSON snapshot to `.claude-octopus/retros/<date>.json` (where `<date>` is today in YYYY-MM-DD format).
mkdir -p .claude-octopus/retros
The JSON MUST include these fields:
{
"date": "YYYY-MM-DD",
"window": "<window>",
"total_commits": N,
"lines_added": N,
"lines_removed": N,
"prs_merged": N,
"contributors": N,
"ai_assisted_commits": N,
"test_ratio": 0.XX,
"top_hotspots": ["file1", "file2", ...],
"sessions": N,
"avg_session_minutes": N,
"commit_types": {
"feat": N,
"fix": N,
"refactor": N,
"test": N,
"chore": N,
"docs": N,
"other": N
}
}After saving, check if a prior snapshot exists in `.claude-octopus/retros/`. If one is found:
Example:
Compared to <prior-date>: Commits: 42 → 58 (+38%) ↑ Test ratio: 0.12 → 0.18 ↑ Sessions: 8 → 11 ↑ AI-assisted: 24% → 31% ↑
If no prior snapshot exists, note that this is the first retrospective and future runs will include comparisons.
Retro uses only local git commands and Claude (included with Claude Code). No external provider costs.
Every AI model has blind spots. Claude Octopus supports twelve external provider integrations — Codex, Antigravity CLI, Copilot, Qwen, Ollama, Perplexity, OpenRouter, OrcaRouter, OpenCode, Cursor CLI, Grok, and Kimi Code — alongside the built-in Claude Code
Repo: nyldn/claude-octopus
Smart router - Single entry point with natural language intent detection
Start a creative thought partner brainstorming session
Switch Octopus model routing to the configured budget tier
[advanced] Activate destructive command warnings for the session
[advanced] Compatibility view of the deterministic Octopus usage report
Multi-LLM council for advice, decision support, implementation plans, and gated implementation