report-changes
ALWAYS invoke this skill when listing, reporting, or checking the open Changes in the Change store, such as which Changes are waiting, blocked, or claimed. NEVER list Changes with ad hoc gh commands without this skill.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 1
- Forks
- 1
01 前言 Front Matter
- name
- report-changes
- description
- ALWAYS invoke this skill when listing, reporting, or checking the open Changes in the Change store, such as which Changes are waiting, blocked, or claimed. NEVER list Changes with ad hoc gh commands without this skill.
- allowed-tools
- Read, Bash(python3 "${CLAUDE_SKILL_DIR}/scripts/report_changes.py":*)
- argument-hint
- [product=<Product>] [maturity=<Maturity>] [lifecycle=<Lifecycle>] [holder=<login>] [blocked=<yes|no>]
02 资源文件 1
- 脚本scripts/report_changes.py24.8 KB
03 SKILL.md 正文
<objective> A table of the open Changes of the declared Change store that pass the request's filters, one row each in Priority order, or a blocked result naming the failed read or the bound and no row. </objective>
<constraints>
- NEVER write: the report runs reading
ghcommands only and posts no comment and writes no field, assignee, or blocker; this skill holds no file-write tool, and the script writes no file. - NEVER substitute a shorter list for a failure: a read that fails, returns unreadable output, or fills a bound yields the blocked result and no row, and a Change whose Priority the declared Priority order omits yields a blocked result naming the priority-order read and no row.
- ALWAYS take the Change store and the Priority order from
spx/local/changes.mdand pass them to the script as request values; the script reads no overlay and no repository content.
</constraints>
<available_scripts>
| Script | Purpose | Usage |
|---|---|---|
scripts/report_changes.py |
Reads the store and prints the matching rows, or the blocked result, as one JSON document | python3 "${CLAUDE_SKILL_DIR}/scripts/report_changes.py" --store <owner/repo> --priority-order <first,...,last> [--product <v>] [--maturity <v>] [--lifecycle <v>] [--holder <login>] [--blocked <yes|no>] |
The script needs gh authenticated for the store and Python 3.13 or later, and installs nothing. It exits 0 with {"status": "ok", "rows": [...]} and 3 with {"status": "blocked", "read": ..., "detail": ..., "bound": ...}; an invalid request value is a blocked result naming the value and the accepted forms.
</available_scripts>
<script_test_record>
scripts/report_changes.py was tested by replaying a recorded Change store through an injected command runner, so no test touched a live store or the network.
- Sample input: a store of open and closed Changes across several pages, with Product, Maturity, Lifecycle, Priority, and Parent values, assignees, blockers, Handoff and Claim comments, field-change events, and linked branches and pull requests with check results; the request named the store and a Priority order, once without filters and once with each filter.
- Expected output: exit 0 and
{"status": "ok", "rows": [...]}holding exactly the open Changes that pass the filters, over every page, in Priority order with no Priority last, then by ascending issue number. Each row's root, blockers, changeset, waiting state, and next action equal the same values read directly from the recorded store, includingunresolvedfor a Parent cycle or an absent Change,noneandnone recordedfor a Change with no Handoff, andholder: <logins> (claim none recorded)for a Claimed Change with no winning Claim. - Error cases: each of the store, blocker, comment, field-change event, and check reads made to exit nonzero, return unreadable output, or fail to start gave exit 3, a blocked result naming the read and its detail, and no row. A store that never ends its pages, a Change returning a full set of field values, and a Change returning a full blocker list each gave exit 3 with the bound named and no row. A Change holding a Priority the request's Priority order omits gave exit 3, a blocked result naming the priority-order read, and no row.
- Cleanup: every
ghcommand the script issued was a read; no GraphQL write, no REST method other than GET, no file written, and no entry left in the working directory.
</script_test_record>
<workflow>
-
Read the request values. Read
spx/local/changes.md. Take theRepositoryvalue of its Change store as the store, and thePriorityline's order from first to last as the Priority order, joined by commas. An absent file, store, or Priority order is a blocked result naming what is missing, with nothing run. -
Read the filters from
$ARGUMENTS. Each token iskey=valuewithkeyone ofproduct,maturity,lifecycle,holder, orblocked; every filter is optional, and an empty$ARGUMENTSreports every open Change. A token of any other form is a blocked result naming the accepted keys, with nothing run.blocked=yeskeeps Changes with an open blocker andblocked=nokeeps those without one. -
Run the script once, as its own command with each value written literally:
--store,--priority-order, and one flag for each filter given. The script reads every page of the store, so the rows equal the matching open Changes whatever the number of pages. -
Render the result. For
"status": "blocked", reportread,detail, andboundverbatim and no row. For"status": "ok", render one table row per entry ofrows, in the order given, with these columns and a null value asnone:Column Source Change numberlinked tourl, withtitleProduct productMaturity maturityLifecycle lifecyclePriority priorityHolder holderParent/Root parentandrootBlockers each of blockersasnumber (state)Waiting waitingChangeset changeset: the branch or pull request with its head commit, and the pull request checksNext action next_actionAn empty
rowsis a report that no open Change passes the filters, naming them.
</workflow>
<success_criteria>
- Each row carries the Change's number, URL, title, Product, Maturity, Lifecycle, Priority, holder, and Parent exactly as the store holds them, and the rows stand in the declared Priority order, a Change with no Priority with the last value, then by ascending issue number.
- Root, blockers, changeset, waiting state, and next action appear as the script derived them, with
unresolved,none, andnone recordedwhere it reports them, andholder: <logins> (claim none recorded)for a Claimed Change with no winning Claim. - A failed read, a filled bound, or a Priority the declared Priority order omits produced the blocked result and no row.
- No comment, field, assignee, blocker, or file was written.
</success_criteria>
04 同仓库更多 Skills
plugin
暂无简介
sanitize-powerpoint
ALWAYS invoke this skill when sanitizing, cleaning up, auditing, or aligning a PowerPoint (.pptx) deck — slide-master and layout structure, layout type attributes, stray fonts, non-theme colors, or layout naming. NEVER hand-edit pptx XML without this skill.
draw-excalidraw
ALWAYS invoke this skill when creating Excalidraw diagrams, visualizing workflows, architectures, or concepts. NEVER generate Excalidraw JSON without this skill.
typescript-test-standards
TypeScript test standards enforced across all skills. Loaded by other skills, not invoked directly.
typescript-code-standards
TypeScript code standards enforced across all skills. Loaded by other skills, not invoked directly.
typescript-architecture-standards
TypeScript ADR conventions enforced across architect and auditor skills. Loaded by other skills, not invoked directly.