commit-categories

Quy tắc phân loại commit cho changelog và tóm tắt "có gì mới". PHẢI được tải trước khi phân loại commit trong changelog hoặc lệnh whats-new. Cung cấp…

npx skills add https://github.com/cloudflare/workerd --skill commit-categories

Commit Categories

Categorize commits by the files they touch, using the primary area for commits spanning multiple categories.

CategoryPath patterns
APIsrc/workerd/api/ (excluding node/ and pyodide/)
Node.js compatsrc/workerd/api/node/, src/node/
Pythonsrc/workerd/api/pyodide/, src/pyodide/
Rustsrc/rust/
Cloudflare APIssrc/cloudflare/
I/Osrc/workerd/io/
JSGsrc/workerd/jsg/
Serversrc/workerd/server/
Buildbuild/, MODULE.bazel, BUILD.bazel
Typestypes/
Docs / ConfigDocumentation, agent/tool configs, .md files
TestsChanges exclusively in test files
OtherAnything that doesn't fit above

Cross-cutting callouts

These are not primary categories — they are additional callout sections that appear alongside the main categories whenever a commit touches the relevant files. A single commit can appear in both a primary category and one or more callouts.

CalloutTrigger
New/Updated Compat FlagsChanges to src/workerd/io/compatibility-date.capnp or new compatibilityFlags references in code
New/Updated AutogatesChanges to src/workerd/io/supported-autogates.h or new autogate registrations

When either callout applies, add a dedicated section after the main categories listing each new or modified flag/gate with a brief description. These must never be buried inside a general category bullet — they are high-visibility items that reviewers and release-note readers need to spot immediately.

How to categorize

  1. For each commit, run git diff-tree --no-commit-id --name-only -r <hash> to list files changed.
  2. Match changed files against the path patterns above.
  3. Assign the commit to whichever category covers the majority of its changes.
  4. For commits touching multiple areas, list under the primary area (the one with the most changed files or the most significant change).
  5. Check every commit against the cross-cutting callout triggers. If a commit adds or modifies compat flags or autogates, note it in the corresponding callout section in addition to its primary category.
  6. Omit empty categories and unused callout sections from output.

Thêm skills từ cloudflare

workerd-api-review
cloudflare
Tối ưu hóa hiệu suất, thiết kế & tương thích API, lỗ hổng bảo mật và tuân thủ đặc tả tiêu chuẩn cho việc xem xét mã workerd. Bao gồm nhận biết tcmalloc…
official
workerd-safety-review
cloudflare
Các mẫu phát hiện về an toàn bộ nhớ, an toàn luồng, đồng thời và quan trọng cho việc xem xét mã workerd. Bao gồm các rủi ro ranh giới V8/KJ, quản lý vòng đời,…
official
module-registry
cloudflare
Tải khi làm việc với module registry trong workerd — đọc, sửa đổi, gỡ lỗi hoặc xem xét việc phân giải, biên dịch, đánh giá hoặc đăng ký module…
official
reproduce
cloudflare
Tái tạo một vấn đề GitHub của cloudflare/agents bằng cách tạo khung một dự án Agents/Worker tối thiểu và triển khai nó lên một tài khoản Cloudflare tạm thời, sau đó báo cáo…
official
local-explorer
cloudflare
Cách thêm sản phẩm/tài nguyên vào local explorer hoặc local API. Sử dụng khi triển khai các local API mới hoặc các route UI trong…
official
architecture
cloudflare
Sử dụng khi lần đầu điều hướng cơ sở mã, thêm một phương thức client mới, thêm một trình xử lý/dịch vụ container mới, hoặc hiểu cách một yêu cầu luân chuyển…
official
changesets
cloudflare
Sử dụng khi tạo changeset, chuẩn bị phát hành hoặc nâng phiên bản. Bao gồm các gói cần tham chiếu, cách viết mô tả changeset hướng đến người dùng,…
official
pr
cloudflare
Tạo và cập nhật các pull request GitHub cho các thay đổi cloudflare-docs. Tải khi được yêu cầu mở, tạo, gửi, cập nhật, chỉnh sửa, hoặc viết tiêu đề hoặc mô tả…
official