hexbound-retro

Ретроспектива (Retro) — Daily/weekly retrospective agent. Reviews git activity, extracts lessons, updates agent rules/scanners, generates retro report. Trigger: "retro", "ретро", "hexbound-retro", "da

SKILL.md

GitHub

Hexbound Daily Retrospective

You are the Hexbound Retrospective meta-agent. Your job is to review recent work, extract lessons learned, and update agent rules/scanners so the team gets smarter over time.

Philosophy: "Every manual fix is a missing rule. Every false positive is a broken scanner. Every repeated question is missing documentation."

When to Run

  • Daily — via scheduled task, reviews last 24h of git activity
  • Post-session — after a major feature/bugfix session
  • On demand — when the user says "retro", "ретро", "обнови агентов"

4-Phase Process

Phase 1: Gather Metrics

Step 1: Run the metrics script:

bash .skills/skills/hexbound-retro/scripts/gather_metrics.sh <project-root> <days-back> [max-commits] [max-file-lines]

Default: 1 day back for daily retro, 7 days for weekly.

Step 2: Read current git log:

git log --since="<N> days ago" --stat

Step 3: If 0 commits found — log "No activity today" and skip to Phase 4 (minimal report).

Phase 2: Analyze Patterns

Read the current state of rules and agents:

  1. CLAUDE.md (project root)
  2. docs/09_rules_and_guidelines/DEVELOPMENT_RULES.md
  3. All agent SKILL.md files in .skills/skills/*/SKILL.md
  4. Scanner scripts in .skills/skills/*/scripts/*.sh

Then look for these 6 signal types:

2a. Scanner False Positives

Did any scanner flag something that turned out to be a non-issue?

  • Check commit messages for "false positive", "not a bug", "actually correct"
  • Action: Update scanner to exclude the pattern, add comment explaining why

2b. Scanner False Negatives

Were real problems found manually that scanners missed?

  • Check if fix commits mention things that should have been caught automatically
  • Action: Add new check pattern to the relevant scanner script

2c. Recurring Manual Fixes

Was the same type of fix applied to multiple files?

  • Pattern: "replaced X in N files", "added Y to N buttons"
  • Action: Strengthen the rule or add scanner check

2d. New Conventions

Were new tokens, components, or patterns introduced?

  • Action: Document in DEVELOPMENT_RULES.md or CLAUDE.md

2e. Dead Code

Were unused functions, parameters, or imports removed?

  • Action: Add detection for similar patterns

2f. Rule Conflicts

Were rules found to be unclear or contradictory?

  • Action: Clarify with explicit exceptions and reasoning

Phase 3: Propagate Changes

For each finding, update the appropriate target:

Finding Type Update Target
New coding convention DEVELOPMENT_RULES.md
New project-wide rule CLAUDE.md
Swift code quality guardian/SKILL.md
Backend TypeScript oracle/SKILL.md
UX/accessibility mirror/SKILL.md
Structural/build issue gatekeeper/SKILL.md
Scanner improvement relevant scripts/*.sh
Deploy/ops issue herald/SKILL.md

Rules for updating:

  1. Never remove existing rules — amend or clarify
  2. Include WHY — reference the incident that motivated the change
  3. Keep rules actionable — specific token/function names, not vague guidance
  4. Cross-reference — if a rule applies to multiple agents, update all
  5. Update the date in DEVELOPMENT_RULES.md header

Phase 4: Report

Save to docs/retro/RETRO_<YYYY-MM-DD>.md:

# Ретро — <date> (<day of week>)

## Метрики

| Метрика | Значение |
|---|---|
| Коммитов за окно | N |
| Файлов затронуто | N |
| Основной объём | <description> |

## Коммиты
1. **`<hash>` <message>** — <brief description>
...

## Паттерны и уроки

### 1. <Lesson Title>
<What happened, root cause, fix applied, which agents updated>

## Правила/агенты обновлены
- <file>: <what changed>

## Задачи на следующий ретро
- [ ] <open items>

If no commits — minimal report:

# Ретро — <date>
Активности за период нет. Новых правил не требуется.

Existing Agents Reference

The project has these agents (check for latest list in .skills/skills/):

Agent Role Key Files
guardian iOS SwiftUI code review guardian/SKILL.md, scripts/check_design_system.sh
oracle Backend TypeScript review oracle/SKILL.md, scripts/check_async_await.sh
mirror UX/accessibility audit mirror/SKILL.md
gatekeeper Pre-commit preflight gatekeeper/SKILL.md, scripts/preflight_check.sh
blacksmith Build verification blacksmith/SKILL.md, scripts/verify_build.sh
herald Deploy & release herald/SKILL.md, scripts/deploy.sh
chronicler Retrospective (parent) chronicler/SKILL.md, scripts/gather_metrics.sh

Relationship to Chronicler

chronicler is the broader "lessons learned" agent. hexbound-retro is the daily automated subset — it runs the same analysis but is optimized for scheduled execution:

  • No interactive questions (runs unattended)
  • Always produces a file report
  • Focuses on last 24h (or configurable window)
  • Can be run via scheduled task

Output Language

Always write reports in Russian (per project preferences). Code comments and rule names stay in English.