Repository navigation
feat(update-summary): rename daily-summary and add range/filter support #917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,91 @@ | ||
| --- | ||
| name: update-summary | ||
| description: Standup digest from memsearch activity logs, grouped by repo. Supports date ranges and project filters. | ||
| disable-model-invocation: true | ||
| argument-hint: "[YYYY-MM-DD | YYYY-MM-DD:YYYY-MM-DD] [--project <pattern>]" | ||
| --- | ||
|
|
||
| # Update Summary | ||
|
|
||
| Produce a **standup** from the memsearch memory log for the requested date or date range, | ||
| optionally filtered to a project pattern. | ||
|
|
||
| ## Argument parsing | ||
|
|
||
| Parse `$ARGUMENTS` with these rules (order-independent): | ||
|
|
||
| - **Date / range**: accepts either ISO dates or natural language. Examples: | ||
| - `YYYY-MM-DD` — single date | ||
| - `YYYY-MM-DD:YYYY-MM-DD` — inclusive ISO range | ||
| - `past 2 weeks`, `last week`, `past 5 days` — relative natural language; resolve | ||
| against today's date to produce a concrete start and end date | ||
| - `this sprint` / `past sprint` — treat as 2-week window ending today / ending 14 days ago | ||
| - Default (no date arg): yesterday | ||
| - Reject with an error if end < start or the expression is unrecognisable. | ||
| - **Project filter**: `--project <pattern>` (or `-p <pattern>`) — a case-insensitive | ||
| substring matched against the repo/directory path. When present, only tasks whose | ||
| path contains the pattern are included. Example: `--project aiap` keeps only repos | ||
| under any path containing "aiap". | ||
|
|
||
| Examples: | ||
|
|
||
| - `/update-summary` → yesterday, all projects | ||
| - `/update-summary 2026-07-20` → single date, all projects | ||
| - `/update-summary 2026-07-07:2026-07-20` → range, all projects | ||
| - `/update-summary past 2 weeks --project aiap` → last 14 days, AIAP projects only | ||
| - `/update-summary last week` → Mon–Sun of last calendar week, all projects | ||
|
|
||
| ## Steps | ||
|
|
||
| 1. **Resolve dates** — expand the range into an ordered list of calendar dates | ||
| (start…end inclusive). For a single date, the list has one entry. | ||
|
|
||
| 2. **Load memory** — for each date in the list, read `~/.memsearch/memory/<date>.md`. | ||
| Silently skip missing files. Concatenate all loaded content in chronological order. | ||
|
|
||
| 3. **Load shell history** — run a single atuin query spanning the full range: | ||
|
|
||
| ```sh | ||
| atuin search --after "<start-date> 00:00:00" --before "<end-date+1> 00:00:00" \ | ||
| --format "{time} {directory} {command}" --limit 5000 2>/dev/null | ||
|
yxtay marked this conversation as resolved.
Outdated
|
||
| ``` | ||
|
|
||
| Filter to meaningful commands only: | ||
| - **Keep**: git, brew, gh, ssh, docker, uv, npx, databricks, aws, az, claude, | ||
| pre-commit, chezmoi, and any command with substantive args (file paths, flags) | ||
| - **Drop**: bare navigational/inspection commands (ls, cat, cd, echo, pwd, | ||
| which, man, history, atuin with no args) | ||
| - **Deduplicate**: collapse repeated identical or near-identical commands | ||
| (e.g. multiple `az login` variants → one entry noting it was attempted); | ||
| keep only the last successful variant when a command was retried | ||
|
|
||
| 4. **Merge** — combine memory log tasks with shell history signals. Shell | ||
| history fills gaps when memory is missing; memory provides intent/context | ||
| that raw commands lack. Deduplicate: one bullet per logical task regardless | ||
| of source. | ||
|
|
||
| 5. **Map** — assign each task to the repo/dir where the change happened. Tasks | ||
| with no repo go under `Other`. | ||
|
|
||
| 6. **Filter** — if `--project` was given, drop all repos whose path does not | ||
| contain the pattern (case-insensitive). Also drop the `Other` bucket unless | ||
| no project filter is active. | ||
|
|
||
| 7. **Output** the standup in a fenced code block. No preamble. One bullet per | ||
| task, ≤12 words. Under each task, nest sub-tasks one level deep only when | ||
| they are genuinely distinct steps, not elaborations. Skip sessions with only | ||
| exploration and no resulting change or decision. Aggregate all tasks across | ||
| the entire date range — do not split or label by date. | ||
|
|
||
| ````text | ||
| ``` | ||
| - `<repo-path>` | ||
| - <task> | ||
| - <sub-task if distinct> | ||
| - <task> | ||
| - `<repo-path-2>` | ||
| - <task> | ||
| - Other ← omitted when --project filter is active | ||
| - <task not tied to a repo> | ||
| ``` | ||
| ```` | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../../.agents/skills/update-summary |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.