generate-digestlisted
Install: claude install-skill tomharris/engineer-agent
# Generate Daily Digest
Create a comprehensive summary of all agent activity for the day, grouped by project.
## Tools Needed
- `Read` — read config, queue items
- `Glob` — find queue items by date
- `Bash` — count and aggregate
- `Write` — write draft digest
## Steps
### 1. Load Config
Read `~/.local/share/engineer-agent/engineer.yaml`. Extract the `projects` map and `agent.digest_channel`.
### 2. Gather All Activity
Scan all queue directories for items from the current day (or since the last digest):
**Completed items** (`~/.local/share/engineer-agent/queue/completed/`):
- Count by type and by project (pr-review, slack-question, ticket, doc-review)
- List each with title, source, and project
**Rejected items** (`~/.local/share/engineer-agent/queue/rejected/`):
- Count and list with rejection reasons and project
**Pending items** (`~/.local/share/engineer-agent/queue/drafts/`):
- Count by type and project
- Note any aging items (older than 24h)
**Incoming items** (`~/.local/share/engineer-agent/queue/incoming/`):
- Count any unprocessed items (shouldn't normally be any)
### 3. Calculate Metrics
- Total items processed today
- Approval rate (completed / (completed + rejected))
- Items by type breakdown
- Items by project breakdown
- Average time from detection to approval (if timestamps allow)
- Any items still pending from previous days
### 4. Write the Draft
Create a queue item in `~/.local/share/engineer-agent/queue/drafts/`:
**Filename:** `{YYYYMMDD-HHmms