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

Aberta
#19,369 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
58/100
Tipo de issue
Refatoração
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
javascript, shell
Domínio
testing, tooling

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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).
Linguagem predominante
Shell
Estrelas
22
Forks
2
Merge médio
2h 1min
PRs com merge (30d)
972

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de melodic-software/claude-code-plugins

Todas as issues de melodic-software/claude-code-plugins

Issues semelhantes

Mais issues de Shell/Bash

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.