refactor(improvement): share find's filing rules with the architecture-scan lane

Đang mở
#19,369 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
58/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, shell
Lĩnh vực
testing, tooling

Hướng nghiên cứu

Start with plugins/improvement/README.md, plugins/improvement/reference/config.md, and .github/scripts/maintenance-scan-architecture/file-findings.mjs to locate the duplicated filing rules and each path's filing step. Then identify the existing test setup and add coverage feeding the same sample items through both paths. Done means both paths make the same decisions for the per-label cap, duplicate check, and label creation.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

session-owned
Context

The daily architecture-scan lane (#18862, PR #19361) runs /improvement:find in its model job but files the returned items with .github/scripts/maintenance-scan-architecture/file-findings.mjs, so the model never holds an issue-writing token. That script carries its own copy of three filing rules /improvement:find also states: the per-label cap (find_open_item_cap), the duplicate check, and never creating a label. The owner accepted the split and asked for the shared rules as a follow-up (2026-11-27T03:47Z, "go w/ recommendations" on Q5). Two copies can drift: a change to find's duplicate rule would not reach the lane.

Proposed work
  • Put the three rules in one module that both /improvement:find's filing step and file-findings.mjs call, or have file-findings.mjs call find's existing helper if one exists.
  • Add a test that fails when the two paths disagree on a sample input.
Acceptance criteria
  • The per-label cap, duplicate check and never-create-a-label rule have one implementation, called by both /improvement:find and file-findings.mjs.
  • A test feeds the same items to both paths and asserts the same filing decisions.
References
  • #18862, PR #19361.
  • plugins/improvement/README.md (find's filing rules), plugins/improvement/reference/config.md (find_open_item_cap).
Ngôn ngữ chính
Shell
Star
22
Fork
2
Merge trung bình
2 giờ 1 phút
Pull request đã merge (30 ngày)
972

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của melodic-software/claude-code-plugins

Tất cả issue của melodic-software/claude-code-plugins

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.