self-review

作者: huggingface

Use before opening a PR, or whenever asked to self-review a diffusers contribution. Applies the same rubric as the `@claude` CI (checks the diff against…

npx skills add https://github.com/huggingface/diffusers --skill self-review

Self-review

Runs the same rubric as the @claude CI reviewer, so you catch issues before a maintainer does — but over your whole PR diff. (The CI scopes itself to src/diffusers/, tests/, and .ai/; for your own PR, also review your docs and scripts.) You're already on the branch with the conventions loaded, so: get the diff → review it against the rubric → report → iterate with the contributor until it's ready, then remind them to share the final notes on the PR.

1. Get the diff

git diff main...HEAD          # use your target branch if not main

If the branch trails main and the diff looks polluted with unrelated merged files, scope to your own commits: git log main..HEAD --oneline, then git show <commit>.

2. Read the rubric

references/review-rules.md is the canonical rubric (the CI pins it from main) — read it and review against it; don't rely on a remembered copy. For the areas you touched, also read references/code_style.md, references/models.md, references/pipelines.md, references/modular.md, references/testing.md, or references/pitfalls.md.

3. Report

  • Blocking issues — numbered. Each: title → explanation → file.py:line → impact. Cite the rule, e.g. Per references/models.md: "…only keep the inference path."
  • Non-blocking issues — same format, lower severity.
  • Dead code (advisory) — a table: path:line · Likely-dead / Used · reason.
  • Summary — short synthesis and a verdict (READY / NEEDS CHANGES), spelling out:
    • Fix before submitting — all blocking issues, and remove the flagged dead code.
    • Leave for the actual review — non-blocking issues that aren't obviously correct; raise these with the reviewer rather than guessing at them now.

Report only — do not edit files. Be concrete, cite the rule, review the whole diff, and don't invent issues or flag pure style.

4. Iterate until ready, then share

Expect several rounds: the contributor addresses findings, you review again. Keep working with them to fix as much as possible until the verdict is READY — the Leave for the actual review items are the only ones that should reach the reviewer unresolved. End the final round's report by reminding the contributor to share it on the PR (description or a comment) — it saves the reviewer a few rounds of back-and-forth. Never commit the notes as part of the diff.

来自 huggingface 的更多技能

sync-models
huggingface
将chat-ui的模型配置与HuggingFace路由器同步——为新模型添加描述,标记支持推理的模型,为32B及以上的模型启用artifacts……
custom-blocks
huggingface
Use when the user has written (or wants to write) a `ModularPipelineBlocks` subclass in a local Python file and needs to package it into a Hub-uploadable…
hf-cloud-sagemaker-production-defaults
huggingface
创建一个SageMaker端点(实时或异步),默认启用自动扩缩、CloudWatch告警和标签功能。每当要创建…时,使用此技能。
hf-cloud-serving-image-selection
huggingface
为SageMaker模型部署选择合适的服务容器,并查找其当前镜像URI。在即将部署模型到……时使用此技能。
Hugging Face Cli
huggingface
Execute Hugging Face Hub operations using the `hf` CLI. Use when the user needs to download models/datasets/spaces, upload files to Hub repositories, create repos, manage local cache, or run compute jobs on HF infrastructure. Covers authentication, file transfers, repository creation, cache operations, and cloud compute.
Hugging Face Datasets
huggingface
在 Hugging Face Hub 上创建和管理数据集。支持初始化仓库、定义配置/系统提示、流式更新行数据,以及基于 SQL 的数据集查询与转换。设计为与 HF MCP 服务器协同工作,实现完整的数据集工作流。
Hugging Face Evaluation
huggingface
在Hugging Face模型卡片中添加和管理评估结果。支持从README内容中提取评估表格、从Artificial Analysis API导入分数,以及使用vLLM/lighteval运行自定义模型评估。兼容model-index元数据格式。
Hugging Face Jobs
huggingface
在Hugging Face Jobs基础设施上运行任意工作负载。涵盖UV脚本、基于Docker的任务、硬件选择、成本估算、令牌认证、密钥管理、超时配置及结果持久化。专为通用计算工作负载设计,包括数据处理、推理、实验、批处理任务及任何基于Python的任务。