Produce PR-ready output for redis-py — a one-line commit message and a copy-pasteable Markdown PR description (Change summary + Test coverage, 5–6 paragraphs) covering all staged changes plus the commits already on the current branch. Trigger whenever the user's message mentions any of these keywords or phrases: "PR", "pr", "PR description", "PR draft", "pull request", "the PR block", "commit msg", "commit message", or otherwise asks for a commit message or PR write-up for their local changes.
npx skills add https://github.com/redis/node-redis --skill pr-draft-summary
After eligible work is complete, produce exactly two things for redis-py:
the GitHub PR UI with all formatting preserved. Keep it to **5–6 short
paragraphs** that explain what the changes do.
By default, emit both as text in the chat. Write them to a .md file only
if the user explicitly asks for a file.
By default, cover staged changes and **commits already on the current
branch** (relative to the PR base) — that is what the commit/PR will actually
contain. Include unstaged changes and untracked files only when the user
explicitly asks for them; note that untracked files do not appear in
git diff --stat, so pick them up from git status -sb (the ?? entries). Use
commit messages as supporting context, not as a substitute for reading the
diffs. If the in-scope set is empty, reply briefly that no changes were detected
and skip emitting the blocks.
git status -sb (one shot: branch name, ahead/behind,and staged/unstaged/untracked entries, with ?? marking untracked files).
git diff --stat --cached for stagedchanges (stats include file names, so a separate --name-only is not needed);
read the staged diff to write the summary. Run git diff --stat (unstaged)
only when the user asks to include unstaged/untracked work.
the base branch the user names (which may be a feature/integration branch, not
master). When none is given, default to origin/master (fall back to
master). Then set BASE_REF to that branch and
BASE_COMMIT=$(git merge-base "$BASE_REF" HEAD).
git diff --stat "${BASE_COMMIT}..HEAD" andgit log --oneline --no-merges "${BASE_COMMIT}..HEAD".
Classify the change from the touched paths: runtime (redis/,
redis/asyncio/), tests (tests/, tests/test_asyncio/), docs/examples
(docs/, doctests/, benchmarks/), build/test config (pyproject.toml,
tasks.py, dockers/, …), or repo-meta (AGENTS.md, CLAUDE.md, .agents/,
.github/).
default to origin/master (fall back to master). Compute
BASE_REF/BASE_COMMIT, then run the commands above. The base may be a
feature or integration branch when the change targets one rather than
master.
default; add unstaged and untracked changes only when the user explicitly
asks. Use commit messages as supporting context, not as a substitute for
inspecting the diff itself.
docs-with-impact). Pick the commit-message prefix accordingly: feat:,
fix:, refactor:, perf:, docs:, test:, build:, chore:.
changes the public API (signatures, argument names, defaults, return types),
command semantics, error/exception types, wire-protocol (RESP2/RESP3)
handling, or persisted/connection config. Judge that risk against the latest
released version, not unreleased branch-only churn.
redis/ without a mirrored change under redis/asyncio/ (or vice versa, and
likewise tests/ vs tests/test_asyncio/), call it out, since this repo
requires both stacks to stay aligned.
issue-<number> (digits only) or an issue numberis otherwise known, reference
https://github.com/redis/redis-py/issues/<number> and add an auto-closing
line such as Resolves #<number>. Do not block if the issue cannot be fetched.
"Change summary" and a "Test coverage" section. Keep it to 5–6 short
paragraphs total; do not pad. In "Test coverage", describe the tests added or
updated; if none were added, say so briefly and explain why.
explicitly requested a file, also write them to a .md file and report its
path.
Emit the commit message first, then the PR description. The description must be
a single fenced Markdown block so it can be copied into the GitHub UI with
formatting intact.
<single-line imperative commit message; conventional prefix preferred, e.g. fix: release async pool lock only after pool mutation>
<3–4 paragraphs of prose, starting with "This pull request resolves/updates/adds ..."
using a verb that matches the change. Explain what the change does and the
background — for bugs, the symptom/repro; for features, what is needed and why —
then the concrete changes: the main files/areas touched, the approach, and notable
edge cases. Call out public-API or backward-compatibility impact and any sync/async
parity considerations here. Bullets are allowed.>
<1–2 paragraphs (bullets allowed) describing the tests added or updated and what
behavior they exercise (sync and async, edge/failure cases). If the change is not
testable or no tests were added, say so briefly and explain why.>
Resolves #<number>. <!-- include only when an issue number is known -->
Keep it tight — 5–6 paragraphs total across both sections, no redundant prose
around the blocks, and no repeating the same detail in both sections.
PostgreSQL-specific code review assistant focusing on PostgreSQL best practices, anti-patterns, and unique quality standards. Covers JSONB operations, array usage, custom types, schema design, function optimization, and PostgreSQL-exclusive security features like Row Level Security (RLS).
Extract the inner ELF from a ClickHouse self-extracting `clickhouse` binary, including when its architecture differs from the host (e.g. to load an aarch64 CI core dump on an x86 workstation). Use when gdb/lldb needs real symbols from a downloaded CI/release binary, or when self-extraction by running the binary is not possible because of an architecture mismatch.
> Fix CI failures and address code-review comments on a pull request that targets the protected `release` branch of `ClickHouse/clickhouse-js`. Release PRs are snapshots of `main` (their head branch is usually `main` itself) and cannot be edited directly — branch protection blocks pushing fixes onto them. Use this skill whenever the work is "fix the CI / address the review comments separate PR to `main`, then closes the loop on the original release PR by replying to and resolving the review threads. Triggers on phrasing like "fix this release PR", "the release PR is failing CI", "address the review comments but it's a release branch", or after checking out a PR whose base is `release`. Do NOT use this for ordinary feature/fix PRs that target `main` — for those, just push to the PR's own branch.
Django performance code review. Use when asked to "review Django performance", "find N+1 queries", "optimize Django", "check queryset performance", "database performance", "Django ORM issues", or audit Django code for performance problems.
WordPress performance code review and optimization analysis. Use when reviewing WordPress PHP code for performance issues, auditing themes/plugins for scalability, optimizing WP_Query, analyzing caching strategies, checking code before launch, or detecting anti-patterns, or when user mentions "performance review", "optimization audit", "slow WordPress", "slow queries", "high-traffic", "scale WordPress", "code review", "timeout", "500 error", "out of memory", or "site won't load". Detects anti-patterns in database queries, hooks, object caching, AJAX, and template loading.
> Review a ClickHouse docs page before shipping. Runs the self-review checklist, Vale linting, and PR review rubric. Use when doing a final check, running Vale, or when asked "is this ready to ship."
Reviews sqlx database code for compile-time query checking, connection pool management, migration patterns, and PostgreSQL-specific usage. Use when reviewing Rust code that uses sqlx, database queries, connection pools, or migrations. Covers offline mode, type mapping, and transaction patterns.
Universal SQL code review assistant that performs comprehensive security, maintainability, and code quality analysis across all SQL databases (MySQL, PostgreSQL, SQL Server, Oracle). Focuses on SQL injection prevention, access control, code standards, and anti-pattern detection. Complements SQL optimization prompt for complete development coverage.
Take redis/pr-draft-summary from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.