Skip to content
Prev Previous commit
Next Next commit
Add open PR check to upgrade-pylib-next command
  • Loading branch information
moreal committed Jan 30, 2026
commit 79babbcdeec82ee9230a6e848881cc9435e37154
8 changes: 7 additions & 1 deletion .claude/commands/upgrade-pylib-next.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
allowed-tools: Skill(upgrade-pylib)
allowed-tools: Skill(upgrade-pylib), Bash(gh pr list:*)
---

# Upgrade Next Python Library
Expand All @@ -10,6 +10,10 @@ Find the next Python library module ready for upgrade and run `/upgrade-pylib` f

!`cargo run --release -- scripts/update_lib todo 2>/dev/null`

## Open Upgrade PRs

!`gh pr list --search "Update in:title" --json number,title --template '{{range .}}#{{.number}} {{.title}}{{"\n"}}{{end}}'`

## Instructions

From the TODO list above, find modules matching these patterns (in priority order):
Expand All @@ -19,6 +23,8 @@ From the TODO list above, find modules matching these patterns (in priority orde

These patterns indicate modules that are ready to upgrade without blocking dependencies.

**Important**: Skip any modules that already have an open PR in the "Open Upgrade PRs" list above.

**After identifying a suitable module**, run:
```
/upgrade-pylib <module_name>
Expand Down