Update 0xMiden Work Log
Use this skill when the user wants last week's 0xMiden GitHub activity appended to /Users/green/Documents/miden/work_log.md, plus a This week: section generated from the open PRs/issues in 0xMiden project 7 that currently have status Next.
Workflow
- •Read the last roughly 200 lines of
/Users/green/Documents/miden/work_log.mdto match the existing formatting, spacing, bullet style, and link style. - •Define "last week" as the last 7 full UTC days using the half-open range
[from, to):- •
to: today at00:00:00Z - •
from: 7 days beforetoat00:00:00ZUse exactYYYY-MM-DDdates for the GitHub search qualifiers.
- •
- •Collect authored activity in
org:0xMidenwithgh api search/issues, paginating as needed. Ignore comments, reviews, and other noise.- •Prefer explicit query-string routes like
gh api 'search/issues?q=...'; this is more reliable thangh api search/issues -f q=...in this environment. - •Landed PRs:
org:0xMiden is:pr author:greenhat merged:FROM..TO sort:merged-asc - •Opened PRs:
org:0xMiden is:pr author:greenhat created:FROM..TO sort:created-asc - •Opened issues:
org:0xMiden is:issue author:greenhat created:FROM..TO sort:created-asc
- •Prefer explicit query-string routes like
- •Exclude any PR from "Opened PRs" if it already appears in "Landed PRs".
- •Collect
This week:items fromhttps://github.com/orgs/0xMiden/projects/7/views/1.- •The intent is to include open PRs and issues whose project status is
Next. Do not intersect this list with the last-week authored activity; the project is the source of truth forThis week:. - •Use
gh project item-list 7 --owner 0xMiden --query 'status:Next is:open' --format jsonas the primary retrieval path. - •
gh projectrequires a token with theread:projectscope. If access fails with a missing-scope error, refresh auth withgh auth refresh -s read:project. - •Keep only items backed by GitHub issues or pull requests. Exclude draft items, notes, and any closed content that slips through the query.
- •Preserve the project order when available, since it carries planning priority.
- •The intent is to include open PRs and issues whose project status is
- •Append a new section to the end of
work_log.mdin this shape while preserving the surrounding spacing conventions:
md
Last week: Landed PRs: - <title> [#<number>](<url>) Opened PRs: - <title> [#<number>](<url>) Opened issues: - <title> [#<number>](<url>) This week: - <title> [#<number>](<url>)
Output Rules
- •Keep the group headers even when a group is empty.
- •Do not include commented-on items, review activity, or commit-only summaries.
- •Keep the
This week:header even when there are no matchingNextitems. - •
This week:should contain only open PR/issue items from project7with statusNext; it may include items opened before the last-week window. - •Match the file's existing markdown style instead of introducing a new format.