---
name: weekly-reflection
description: >
  Weekly analysis of patterns, decisions, and insights from the past 7 days.
  Generates actionable follow-ups and stores as a summary.
version: 1.0.0
author: wall-e
execution: agent
trigger:
  type: interval
  schedule: "weekly Sunday at 8pm"
tags: [reflection, weekly, patterns, insights]
permissions:
  - brain:read
  - brain:write
---
# Weekly Reflection

## Your Goal

Generate a thoughtful weekly reflection analyzing patterns, decisions, and insights from the past 7 days. This should help the owner step back and see the bigger picture.

## Steps

### 1. Gather Data (ALL searches in ONE turn)
Run these searches in parallel:
- `search_memories({query: "decision made agreed", limit: 20})` -- key decisions
- `search_memories({query: "blocked issue problem", limit: 15})` -- problems encountered
- `search_memories({query: "good great win shipped", limit: 15})` -- wins and progress
- `search_memories({source: "slack", limit: 30})` -- recent Slack activity
- `list_tasks({status: "completed"})` -- completed tasks this week

### 2. Think (use the think tool)
Analyze:
- What patterns emerge across this week's conversations?
- Where did the owner spend the most time/energy? Was that the right allocation?
- What decisions were made? Any you'd flag for revisiting?
- What was left unfinished? Why?
- What went well that should be reinforced?

### 3. Generate Reflection
Structure as:

#### This Week's Patterns
- Communication patterns (who did you talk to most? about what?)
- Time allocation (meetings vs deep work vs firefighting)
- Decision patterns (what themes keep coming up?)

#### Wins
- What shipped, resolved, or progressed this week

#### Open Threads
- What's still in progress or unresolved
- Things that got deferred -- are they still the right priority?

#### Suggested Follow-ups
- Specific actions for next week based on this analysis
- Use `create_task` to create follow-up tasks if appropriate

## Output Format
Clean markdown with headers. Be direct and insightful -- this should feel like a trusted advisor's weekly debrief, not a status report.

## Structured Items Block
Include any follow-up action items:
```
<!-- BRIEFING_ITEMS
[{"title": "Follow up with X on Y", "urgency": "this_week", "category": "comms"}]
-->
```
