원클릭으로
sp-recommends
Review code quality and packaging usuing sp-repo-review for Scientific Python projects
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Review code quality and packaging usuing sp-repo-review for Scientific Python projects
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use when dropping a Python version from a project
Use when exploring, triaging, or categorizing all of a repository's GitHub issues, like finding verifiable bugs or grouping issues by topic
Use when a branch and PR is requested explicitly
Use when user asks to secure a repo's CI
Add a minimum version test job to a noxfile
| name | sp-recommends |
| description | Review code quality and packaging usuing sp-repo-review for Scientific Python projects |
| license | BSD-3-Clause |
This skill uses the sp-repo-review tool and helps users address common issues.
To use this skill, you need uv (specifically, the uvx runner that uv
ships with).
Look for some basic things that repos should be doing, and report to the user if needed:
pyproject.toml.pre-commit-config.yamlThese are recommendations from the Scientific Python guide that don't have automated checks. Apply these first:
uv|virtualenv as the default backend (or uv only)FORCE_COLOR: 3 or --forcecolor for color output. Don't worry aboud changing it if already set.re-actors/alls-green for auto-merge support.github/release.yml for changelog generationbuild[uv] as the build frontend for faster buildsvalidate-pyproject, check-jsonschema)If there is no [dependency-groups] section (described in PEP 723) in
pyproject.toml, you should see if there are developer-focused extras
([project.optional-dependencies]) that can be moved, like docs, tests, or
dev. For dependency-groups, one can reference another with an inline table,
like dev = [{ include-group = "test" }]. It's quite common to want the dev
group to be built from other groups.
All mentions of developer extras like [tests], [docs], and [dev] need to
be converted to --group tests and the like. Most tools have integrated
support for dependency groups in their configuration, like tox and
cibuildwheel. Nox supports --group if pip/uv is new enough, which is probably
fine.
Run the tool to see what recommendations apply:
# Get structured JSON output for easier parsing
uvx "sp-repo-review[cli]" --format json | jq -r '.checks | to_entries[] | select(.value.result == false) | "\(.key): \(.value.description)"'
# Or see the human-readable output
uvx --with "sp-repo-review[cli]" sp-repo-review --show err .
Focus on checks with result: false - these need fixes. Checks with empty
result and skip_reason are skipped because a prerequisite failed (fix the
prerequisite first).
Only fix things that are fairly easy, and report any harder failures to the user.
A few notes to keep in mind with certain issues:
uvx --from "sp-repo-review[cli]" sp-ruff-checks
If the user is using "ALL", then this suggests some optional ignores that are
just sometimes needed.
An example dependabot file is in assets/dependabot.yml.
An example release file is in assets/release.yml.
If you add a dependencies at the top, remember to use nox.needs_version's
version as the minimum version there.
After making changes, verify:
# Run the full check
uvx "sp-repo-review[cli]" --show err
# Run the pre-commit checks
prek -a --quiet