Upgrade Pylib Next
Productivityupgrade-pylib-nextUpgrade Pylib Next is an Agent Skill for productivity published in the RustPython/RustPython repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Pick the next CPython stdlib module ready for upgrade based on update_lib todo output and skip modules with open upgrade PRs.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/RustPython/RustPython/blob/HEAD/.agents/skills/upgrade-pylib-next/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/upgrade-pylib-next, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Upgrade Next Python Library
Find the next Python library module ready for upgrade and then run the upgrade-pylib workflow for it.
Workflow
- Get current TODO status:
cargo run --release -- scripts/update_lib todo 2>/dev/null
- Get open upgrade PRs:
gh pr list --search "Update in:title" --json number,title --template '{{range .}}#{{.number}} {{.title}}{{"\\n"}}{{end}}'
- From TODO output, select modules in this priority order:
[ ] [no deps][ ] [0/n]where dependencies are all upgraded (for example[0/3],[0/5])
-
Skip modules that already have an open upgrade PR.
-
Run upgrade for selected module using the
upgrade-pylibworkflow.
If no modules match, report that eligible modules are blocked by dependencies.