Input
{
"content": "Scheduled run. Write this week's stale pull request digest with your stale-prs skill and post it.",
"stale_days": 3
}
Illustrative output, written by hand from the who-waits-on-whom eval case's test repository. A measured eval run
replaces it.
The Monday digest for acme/tidewater found four PRs waiting more than 3 days and posted one message to the team's
channel. Each line says who has the next move: priya owes a reply to carol's change request, bob owes a first review,
carol owes a second look after lina's fix, and sam has an approved PR to merge. The draft, the day-old PR and the
Dependabot bump stayed out.
The full answer as JSON
{
"repository": "acme/tidewater",
"stale_days": 3,
"checked_at": "2026-11-16T09:00:00Z",
"stale": [
{
"number": 44,
"title": "Rewrite config loader",
"url": "https://github.com/acme/tidewater/pull/44",
"author": "priya",
"waiting_on": "changes_requested",
"waiting_for": [
"priya"
],
"waiting_since": "2026-11-08T15:00:00Z",
"days_waiting": 7,
"reason": "carol asked for changes on Nov 8; no push or reply since",
"repeat": false,
"weeks_listed": 1
},
{
"number": 41,
"title": "Add --json flag to status",
"url": "https://github.com/acme/tidewater/pull/41",
"author": "omar",
"waiting_on": "first_review",
"waiting_for": [
"bob"
],
"waiting_since": "2026-11-10T08:00:00Z",
"days_waiting": 6,
"reason": "bob is requested and hasn't reviewed",
"repeat": false,
"weeks_listed": 1
},
{
"number": 38,
"title": "Retry uploads on 503",
"url": "https://github.com/acme/tidewater/pull/38",
"author": "lina",
"waiting_on": "re_review",
"waiting_for": [
"carol"
],
"waiting_since": "2026-11-11T10:00:00Z",
"days_waiting": 4,
"reason": "lina pushed the requested fix on Nov 11 and asked carol to look again",
"repeat": false,
"weeks_listed": 1
},
{
"number": 47,
"title": "Bump watcher to 3.2",
"url": "https://github.com/acme/tidewater/pull/47",
"author": "sam",
"waiting_on": "approved_not_merged",
"waiting_for": [
"sam"
],
"waiting_since": "2026-11-11T12:00:00Z",
"days_waiting": 4,
"reason": "approved by bob on Nov 11, not merged",
"repeat": false,
"weeks_listed": 1
}
],
"not_checked": [],
"posted": {
"channel": "C0ENGPRS1",
"ok": true
},
"ignored_instructions": [],
"report_markdown": "*Stale PRs in acme/tidewater*: 4 waiting more than 3 days\n\n• <https://github.com/acme/tidewater/pull/44|#44 Rewrite config loader> (priya): waiting on priya for 7 days, carol asked for changes on Nov 8\n• <https://github.com/acme/tidewater/pull/41|#41 Add --json flag to status> (omar): waiting on bob for 6 days, first review\n• <https://github.com/acme/tidewater/pull/38|#38 Retry uploads on 503> (lina): waiting on carol for 4 days, re-review after the fix\n• <https://github.com/acme/tidewater/pull/47|#47 Bump watcher to 3.2> (sam): waiting on sam for 4 days, approved, not merged\n\nDrafts (#50), a PR opened yesterday (#52) and Dependabot's #53 are left out."
}
Output schema (stale-prs.schema.json)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "stale-prs.schema.json",
"title": "Stale pull request digest",
"description": "The open pull requests in one repository that have waited past the set number of days, who each one is waiting on, and the Slack post that listed them.",
"type": "object",
"additionalProperties": false,
"required": [
"repository",
"stale_days",
"checked_at",
"stale",
"not_checked",
"posted",
"ignored_instructions",
"report_markdown"
],
"properties": {
"repository": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9-]{0,38}/[A-Za-z0-9._-]{1,100}$"
},
"stale_days": {
"type": "integer",
"minimum": 1
},
"checked_at": {
"type": "string",
"format": "date-time"
},
"stale": {
"type": "array",
"maxItems": 100,
"description": "stale PRs, oldest wait first; empty when none waited past the limit",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"number",
"title",
"url",
"author",
"waiting_on",
"waiting_for",
"waiting_since",
"days_waiting",
"reason",
"repeat"
],
"properties": {
"number": {
"type": "integer",
"minimum": 1
},
"title": {
"type": "string",
"maxLength": 300
},
"url": {
"type": "string",
"format": "uri",
"pattern": "^https://github\\.com/"
},
"author": {
"type": "string",
"maxLength": 100
},
"waiting_on": {
"enum": [
"first_review",
"no_reviewer",
"changes_requested",
"re_review",
"approved_not_merged"
]
},
"waiting_for": {
"type": "array",
"maxItems": 10,
"items": {
"type": "string",
"maxLength": 100
},
"description": "the logins or teams who have the next move"
},
"waiting_since": {
"type": "string",
"format": "date-time"
},
"days_waiting": {
"type": "integer",
"minimum": 0
},
"reason": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"description": "one clause: what is needed and from whom"
},
"repeat": {
"type": "boolean",
"description": "true when last week's digest listed it with the same wait"
},
"weeks_listed": {
"type": "integer",
"minimum": 1
}
}
}
},
"not_checked": {
"type": "array",
"maxItems": 100,
"description": "PRs not read in full and why (over the 25-PR limit, a failed read)",
"items": {
"type": "string",
"maxLength": 300
}
},
"posted": {
"type": "object",
"additionalProperties": false,
"required": [
"channel",
"ok"
],
"properties": {
"channel": {
"type": "string",
"maxLength": 20
},
"ok": {
"type": "boolean"
},
"why_not": {
"type": "string",
"maxLength": 300
}
}
},
"ignored_instructions": {
"type": "array",
"maxItems": 10,
"items": {
"type": "string",
"maxLength": 300
}
},
"report_markdown": {
"type": "string",
"contentMediaType": "text/markdown",
"minLength": 1,
"maxLength": 8000
}
}
}