wrxn-reversa 1.11.0 → 1.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agents/reversa-debugger/SKILL.md +2 -2
- package/agents/reversa-debugger-fix/SKILL.md +3 -3
- package/agents/reversa-forward/SKILL.md +2 -2
- package/agents/reversa-refactor/SKILL.md +3 -3
- package/agents/reversa-requirements/SKILL.md +4 -4
- package/locales/en/agents/reversa-debugger/SKILL.md +2 -2
- package/locales/en/agents/reversa-debugger-fix/SKILL.md +3 -3
- package/locales/en/agents/reversa-forward/SKILL.md +2 -2
- package/locales/en/agents/reversa-refactor/SKILL.md +3 -3
- package/locales/en/agents/reversa-requirements/SKILL.md +4 -4
- package/package.json +1 -1
|
@@ -90,7 +90,7 @@ Todo bug pertence a um contexto: a feature, módulo ou caso de uso de que o usu
|
|
|
90
90
|
|
|
91
91
|
1. Liste as pastas de contexto já existentes em `_reversa_bugs/` (todo diretório, exceto arquivos da raiz)
|
|
92
92
|
2. Case a fala do usuário com: pastas existentes primeiro, depois `taxonomy.yaml` (area/module/feature) e nomes de specs em `_reversa_sdd/`
|
|
93
|
-
3. Se o usuário NÃO disse onde está o problema, PERGUNTE via menu (nunca pule esta pergunta):
|
|
93
|
+
3. Se o usuário NÃO disse onde está o problema, PERGUNTE via menu (nunca pule esta pergunta; marque como recomendada a opção que melhor casa com o relato, e resposta em branco, ou `ok`, a aceita):
|
|
94
94
|
|
|
95
95
|
```
|
|
96
96
|
Esse problema é de qual área?
|
|
@@ -109,7 +109,7 @@ Anotar vem ANTES de registrar. Um desabafo do usuário costuma conter vários pr
|
|
|
109
109
|
|
|
110
110
|
1. Crie `_reversa_bugs/<contexto>/intake/relato-<YYYYMMDD-HHMM>.md` e vá anotando cada problema relatado, na ordem, com as palavras do usuário e as suas observações
|
|
111
111
|
2. Toda imagem, print ou documento que o usuário passar: salve em `intake/` ao lado do relato (nomes descritivos, ex.: `intake/teleprompter-retangulo-vermelho.png`) e referencie no ponto certo do relato
|
|
112
|
-
3. Pergunte o que faltar de cada problema (esperado vs observado, passos, frequência), sem repetir o que o usuário já contou
|
|
112
|
+
3. Pergunte o que faltar de cada problema (esperado vs observado, passos, frequência), sem repetir o que o usuário já contou; proponha o que você inferiu para cada item, e `ok` confirma
|
|
113
113
|
4. Continue anotando até o usuário sinalizar que terminou. Só então pergunte severidade e prioridade, via menu com `critical/high/medium/low` e `P0..P3` explicadas, numa ÚNICA mensagem cobrindo todos os problemas anotados (uma linha por problema, com a severidade e a prioridade que você propõe), nunca um turno por problema; uma resposta em branco, ou "ok", confirma as propostas
|
|
114
114
|
|
|
115
115
|
## Etapa 2: registro dos bugs (só depois de anotar tudo)
|
|
@@ -53,7 +53,7 @@ Atualize `phase` no front matter de `bug.md` a cada transição e `updated` a ca
|
|
|
53
53
|
|
|
54
54
|
### 1. Mitigação (quando o dano é corrente)
|
|
55
55
|
|
|
56
|
-
Se `severity` for `critical`/`high` e o sistema estiver em uso, ofereça ANTES de investigar:
|
|
56
|
+
Se `severity` for `critical`/`high` e o sistema estiver em uso, ofereça ANTES de investigar, com a opção [1] marcada como recomendada (resposta em branco, ou `ok`, a aceita):
|
|
57
57
|
|
|
58
58
|
```
|
|
59
59
|
O dano está acontecendo agora. Quer mitigar antes de investigar?
|
|
@@ -81,7 +81,7 @@ Mitigação aplicada é registrada em `mitigation:` (kind, applied_at, temporary
|
|
|
81
81
|
### 4. Risco da mudança e estratégia
|
|
82
82
|
|
|
83
83
|
1. Avalie `change_risk` (baixa/média/alta) com motivos: blast radius, contrato externo, dados, concorrência, reversibilidade
|
|
84
|
-
2. Apresente o menu de estratégia:
|
|
84
|
+
2. Apresente o menu de estratégia, com a opção [1] marcada como recomendada, ou a [2] quando você recomendar o debate (resposta em branco, ou `ok`, aceita a recomendada):
|
|
85
85
|
|
|
86
86
|
```
|
|
87
87
|
Causa raiz: <resumo> (estado: <state>). Risco da mudança: <classificação> (<motivos>).
|
|
@@ -131,7 +131,7 @@ Apresente o caminho do `plan.html`, peça para o usuário abrir e **aguarde a ap
|
|
|
131
131
|
|
|
132
132
|
### 7. Veredito de spec (obrigatório)
|
|
133
133
|
|
|
134
|
-
Compare o comportamento corrigido com a **spec efetiva** (original + adendos vigentes) e recomende com evidências. **A decisão é do usuário** (menu):
|
|
134
|
+
Compare o comportamento corrigido com a **spec efetiva** (original + adendos vigentes) e recomende com evidências, marcando a opção recomendada. **A decisão é do usuário** (menu; resposta em branco, ou `ok`, aceita a recomendada):
|
|
135
135
|
|
|
136
136
|
1. `spec-correta`: a spec já definia o certo, o código divergiu. Nada muda na spec.
|
|
137
137
|
2. `spec-desatualizada`: o comportamento correto mudou ou a spec descrevia errado. Gere adendo versionado e imutável `_reversa_sdd/addenda/bug-<ID>-vNNN.md` com: seção alvo, delta (trecho antes / como deve ser lido agora), vigência, evidências, aprovação registrada. A spec original NUNCA é editada. O adendo entra no change set como `kind: specification`.
|
|
@@ -68,7 +68,7 @@ Mesmo no caminho greenfield, o pipeline precisa saber como as specs serão organ
|
|
|
68
68
|
|
|
69
69
|
### 2. Apresentar o menu
|
|
70
70
|
|
|
71
|
-
No caminho greenfield NÃO há `surface.json` (Scout não rodou). Pré-marque a opção 1 como `(recomendado)`. Se for legado e existir `.reversa/context/surface.json` com `organization_suggestion.granularity`, pré-marque a sugestão e mostre a `rationale`.
|
|
71
|
+
No caminho greenfield NÃO há `surface.json` (Scout não rodou). Pré-marque a opção 1 como `(recomendado)`, também em legado sem `surface.json`. Se for legado e existir `.reversa/context/surface.json` com `organization_suggestion.granularity`, pré-marque a sugestão e mostre a `rationale`.
|
|
72
72
|
|
|
73
73
|
Use exatamente este formato (idioma seguindo `chat_language`):
|
|
74
74
|
|
|
@@ -170,7 +170,7 @@ O próximo skill é decidido pela combinação entre estágio físico e argument
|
|
|
170
170
|
> 1. Se quer continuar a feature ativa, digite **CONTINUAR** e eu encaminho para `/reversa-<próximo-do-estágio-atual>`, ignorando o argumento.
|
|
171
171
|
> 2. Se quer criar uma nova feature em paralelo ou abandonar a atual, digite **NOVA** e eu encaminho para `/reversa-requirements <descrição>`, que tem a política de re-execução adequada.
|
|
172
172
|
|
|
173
|
-
|
|
173
|
+
Marque a opção 2 como recomendada, porque o pedido descreve uma ideia nova e a política de re-execução não descarta nada; resposta em branco, ou `ok`, aceita a opção 2. A opção 1 só vale com **CONTINUAR** digitado.
|
|
174
174
|
|
|
175
175
|
## Etapas opcionais (audit, quality, add, express)
|
|
176
176
|
|
|
@@ -33,7 +33,7 @@ O registro é organizado por **contexto**: cada feature, módulo ou caso de uso
|
|
|
33
33
|
Se `_reversa_refactor/` não existir:
|
|
34
34
|
|
|
35
35
|
1. Crie `_reversa_refactor/README.md` a partir de `references/refactor-readme-template.md`
|
|
36
|
-
2. Pergunte o `control_mode` e o `safety_net_policy` (menu com os valores do template explicados). Registre no README.
|
|
36
|
+
2. Pergunte o `control_mode` e o `safety_net_policy` (menu com os valores do template explicados; marque os padrões do template como recomendados, e resposta em branco, ou `ok`, aceita os dois). Registre no README.
|
|
37
37
|
|
|
38
38
|
Se existir, apenas leia o `README.md` e siga.
|
|
39
39
|
|
|
@@ -43,7 +43,7 @@ Toda oportunidade pertence a um contexto. O usuário fala natural ("o cálculo d
|
|
|
43
43
|
|
|
44
44
|
1. Liste as pastas de contexto já existentes em `_reversa_refactor/`
|
|
45
45
|
2. Case a fala do usuário com: pastas existentes primeiro, depois nomes de módulos/specs em `_reversa_sdd/`
|
|
46
|
-
3. Se o usuário não disse a área, PERGUNTE via menu (label + descrição + "Outro"), nunca pule
|
|
46
|
+
3. Se o usuário não disse a área, PERGUNTE via menu (label + descrição + "Outro"), nunca pule; marque como recomendada a opção que melhor casa com a fala do usuário, e resposta em branco, ou `ok`, a aceita
|
|
47
47
|
4. Resolvido, crie a pasta se não existir: `_reversa_refactor/<contexto>/` com `opportunities/` e `transformations/` dentro
|
|
48
48
|
5. Slug em kebab-case curto e reconhecível na linguagem do usuário
|
|
49
49
|
|
|
@@ -68,7 +68,7 @@ Toda oportunidade pertence a um contexto. O usuário fala natural ("o cálculo d
|
|
|
68
68
|
|
|
69
69
|
## Etapa 3: roteamento (menu, decisão do usuário)
|
|
70
70
|
|
|
71
|
-
Apresente as oportunidades priorizadas em menu padrão Reversa e roteie a escolhida para o especialista, passando o `OPP-id`, o alvo e o contexto:
|
|
71
|
+
Apresente as oportunidades priorizadas em menu padrão Reversa e roteie a escolhida para o especialista, passando o `OPP-id`, o alvo e o contexto. Marque a primeira, de maior retorno estimado, como recomendada; resposta em branco, ou `ok`, a escolhe:
|
|
72
72
|
|
|
73
73
|
```
|
|
74
74
|
Oportunidades de melhoria em <contexto>, por retorno estimado:
|
|
@@ -70,7 +70,7 @@ A política de o que fazer quando há feature em andamento está descrita na pr
|
|
|
70
70
|
|
|
71
71
|
## Política de re-execução
|
|
72
72
|
|
|
73
|
-
Se a detecção identificou feature anterior em andamento (estágio físico em `requirements`, `plan` ou `coding-em-progresso`), **pergunte sempre ao usuário** antes de qualquer escrita.
|
|
73
|
+
Se a detecção identificou feature anterior em andamento (estágio físico em `requirements`, `plan` ou `coding-em-progresso`), **pergunte sempre ao usuário** antes de qualquer escrita. O único padrão é a opção 2, que não descarta nada; o objetivo é eliminar surpresa.
|
|
74
74
|
|
|
75
75
|
Apresente o bloco abaixo ao usuário:
|
|
76
76
|
|
|
@@ -83,12 +83,12 @@ Apresente o bloco abaixo ao usuário:
|
|
|
83
83
|
> Como você quer proceder?
|
|
84
84
|
>
|
|
85
85
|
> **1. Continuar a anterior**, vou abortar este `/reversa-requirements` e você retoma a feature em curso.
|
|
86
|
-
> **2. Criar nova em paralelo
|
|
86
|
+
> **2. Criar nova em paralelo** (recomendado: nada se perde), a feature anterior fica pausada num campo `paused-features` e a nova vira ativa.
|
|
87
87
|
> **3. Abandonar a anterior**, a pasta antiga fica em disco intocada mas `active-requirements.json` vai apontar pra nova.
|
|
88
88
|
>
|
|
89
|
-
> Digite 1, 2 ou 3.
|
|
89
|
+
> Digite 1, 2 ou 3. Resposta em branco, ou `ok`, aceita a opção 2.
|
|
90
90
|
|
|
91
|
-
Aguarde a resposta. NÃO escolha por conta própria
|
|
91
|
+
Aguarde a resposta. Resposta em branco, ou `ok`, vale só para a opção 2, que não descarta nada. NÃO escolha a opção 1 nem a 3 por conta própria: elas só valem com o número digitado.
|
|
92
92
|
|
|
93
93
|
### Opção 1, continuar a anterior
|
|
94
94
|
|
|
@@ -90,7 +90,7 @@ Every bug belongs to a context: the feature, module, or use case the user is tal
|
|
|
90
90
|
|
|
91
91
|
1. List the context folders that already exist in `_reversa_bugs/` (every directory, except the root files)
|
|
92
92
|
2. Match the user's words against: existing folders first, then `taxonomy.yaml` (area/module/feature) and spec names in `_reversa_sdd/`
|
|
93
|
-
3. If the user did NOT say where the problem is, ASK via a menu (never skip this question):
|
|
93
|
+
3. If the user did NOT say where the problem is, ASK via a menu (never skip this question; mark as recommended the option that best matches the report, and a blank reply, or `ok`, accepts it):
|
|
94
94
|
|
|
95
95
|
```
|
|
96
96
|
Which area does this problem belong to?
|
|
@@ -109,7 +109,7 @@ Annotating comes BEFORE registering. A user's venting usually contains several p
|
|
|
109
109
|
|
|
110
110
|
1. Create `_reversa_bugs/<context>/intake/relato-<YYYYMMDD-HHMM>.md` and annotate each reported problem, in order, with the user's words and your observations
|
|
111
111
|
2. Every image, screenshot, or document the user passes: save it in `intake/` next to the report (descriptive names, e.g., `intake/teleprompter-retangulo-vermelho.png`) and reference it at the right point of the report
|
|
112
|
-
3. Ask for whatever is missing for each problem (expected vs. observed, steps, frequency), without repeating what the user already told you
|
|
112
|
+
3. Ask for whatever is missing for each problem (expected vs. observed, steps, frequency), without repeating what the user already told you; propose what you inferred for each item, and `ok` confirms it
|
|
113
113
|
4. Keep annotating until the user signals that they are done. Only then ask for severity and priority, via a menu with `critical/high/medium/low` and `P0..P3` explained, in a SINGLE message covering all the annotated problems (one line per problem, with the severity and priority that you propose), never one turn per problem; a blank reply, or "ok", confirms the proposals
|
|
114
114
|
|
|
115
115
|
## Step 2: registering the bugs (only after annotating everything)
|
|
@@ -53,7 +53,7 @@ Update `phase` in the front matter of `bug.md` on every transition and `updated`
|
|
|
53
53
|
|
|
54
54
|
### 1. Mitigation (when the damage is ongoing)
|
|
55
55
|
|
|
56
|
-
If `severity` is `critical`/`high` and the system is in use, offer this BEFORE you investigate:
|
|
56
|
+
If `severity` is `critical`/`high` and the system is in use, offer this BEFORE you investigate, with option [1] marked as recommended (a blank reply, or `ok`, accepts it):
|
|
57
57
|
|
|
58
58
|
```
|
|
59
59
|
The damage is happening now. Do you want to mitigate before investigating?
|
|
@@ -81,7 +81,7 @@ An applied mitigation is recorded in `mitigation:` (kind, applied_at, temporary)
|
|
|
81
81
|
### 4. Change risk and strategy
|
|
82
82
|
|
|
83
83
|
1. Assess `change_risk` (`baixa`/`média`/`alta`, that is low/medium/high) with reasons: blast radius, external contract, data, concurrency, reversibility
|
|
84
|
-
2. Present the strategy menu:
|
|
84
|
+
2. Present the strategy menu, with option [1] marked as recommended, or [2] when you recommend the debate (a blank reply, or `ok`, accepts the recommended one):
|
|
85
85
|
|
|
86
86
|
```
|
|
87
87
|
Root cause: <summary> (state: <state>). Change risk: <classification> (<reasons>).
|
|
@@ -131,7 +131,7 @@ Present the path of `plan.html`, ask the user to open it, and **wait for the app
|
|
|
131
131
|
|
|
132
132
|
### 7. Spec verdict (mandatory)
|
|
133
133
|
|
|
134
|
-
Compare the fixed behavior with the **effective spec** (original + addenda in effect) and recommend with evidence. **The decision is the user's** (menu):
|
|
134
|
+
Compare the fixed behavior with the **effective spec** (original + addenda in effect) and recommend with evidence, marking the recommended option. **The decision is the user's** (menu; a blank reply, or `ok`, accepts the recommended one):
|
|
135
135
|
|
|
136
136
|
1. `spec-correta`: the spec already defined the right behavior, the code diverged. Nothing changes in the spec.
|
|
137
137
|
2. `spec-desatualizada`: the correct behavior changed or the spec described it wrong. Generate a versioned, immutable addendum `_reversa_sdd/addenda/bug-<ID>-vNNN.md` with: target section, delta (excerpt before / how it must be read now), validity, evidence, recorded approval. The original spec is NEVER edited. The addendum enters the change set as `kind: specification`.
|
|
@@ -68,7 +68,7 @@ Even on the greenfield path, the pipeline needs to know how the specs will be or
|
|
|
68
68
|
|
|
69
69
|
### 2. Present the menu
|
|
70
70
|
|
|
71
|
-
On the greenfield path there is NO `surface.json` (the Scout did not run). Preselect option 1 as `(recommended)`. If it is legacy and `.reversa/context/surface.json` exists with `organization_suggestion.granularity`, preselect the suggestion and show the `rationale`.
|
|
71
|
+
On the greenfield path there is NO `surface.json` (the Scout did not run). Preselect option 1 as `(recommended)`, also in a legacy project without `surface.json`. If it is legacy and `.reversa/context/surface.json` exists with `organization_suggestion.granularity`, preselect the suggestion and show the `rationale`.
|
|
72
72
|
|
|
73
73
|
Use exactly this format (language following `chat_language`):
|
|
74
74
|
|
|
@@ -170,7 +170,7 @@ The next skill is decided by the combination of the physical stage and the free-
|
|
|
170
170
|
> 1. If you want to continue the active feature, type **CONTINUE** and I will route to `/reversa-<next-for-the-current-stage>`, ignoring the argument.
|
|
171
171
|
> 2. If you want to create a new feature in parallel or abandon the current one, type **NEW** (`NOVA` also works) and I will route to `/reversa-requirements <description>`, which has the appropriate re-run policy.
|
|
172
172
|
|
|
173
|
-
|
|
173
|
+
Mark option 2 as recommended, because the request describes a new idea and the re-run policy discards nothing; a blank reply, or `ok`, accepts option 2. Option 1 counts only when the owner types **CONTINUE**.
|
|
174
174
|
|
|
175
175
|
## Optional steps (audit, quality, add, express)
|
|
176
176
|
|
|
@@ -33,7 +33,7 @@ The registry is organized by **context**: each feature, module, or use case gets
|
|
|
33
33
|
If `_reversa_refactor/` does not exist:
|
|
34
34
|
|
|
35
35
|
1. Create `_reversa_refactor/README.md` from `references/refactor-readme-template.md`
|
|
36
|
-
2. Ask for the `control_mode` and the `safety_net_policy` (menu with the template values explained). Record them in the README.
|
|
36
|
+
2. Ask for the `control_mode` and the `safety_net_policy` (menu with the template values explained; mark the template defaults as recommended, and a blank reply, or `ok`, accepts both). Record them in the README.
|
|
37
37
|
|
|
38
38
|
If it exists, just read the `README.md` and proceed.
|
|
39
39
|
|
|
@@ -43,7 +43,7 @@ Every opportunity belongs to a context. The user speaks naturally ("the shipping
|
|
|
43
43
|
|
|
44
44
|
1. List the context folders that already exist in `_reversa_refactor/`
|
|
45
45
|
2. Match the user's words against: existing folders first, then module/spec names in `_reversa_sdd/`
|
|
46
|
-
3. If the user did not say the area, ASK via a menu (label + description + "Other"), never skip
|
|
46
|
+
3. If the user did not say the area, ASK via a menu (label + description + "Other"), never skip; mark as recommended the option that best matches what the user said, and a blank reply, or `ok`, accepts it
|
|
47
47
|
4. Once resolved, create the folder if it does not exist: `_reversa_refactor/<context>/` with `opportunities/` and `transformations/` inside
|
|
48
48
|
5. Slug in short kebab-case, recognizable in the user's language
|
|
49
49
|
|
|
@@ -68,7 +68,7 @@ Every opportunity belongs to a context. The user speaks naturally ("the shipping
|
|
|
68
68
|
|
|
69
69
|
## Step 3: routing (menu, the user decides)
|
|
70
70
|
|
|
71
|
-
Present the prioritized opportunities in a standard Reversa menu and route the chosen one to the specialist, passing the `OPP-id`, the target, and the context:
|
|
71
|
+
Present the prioritized opportunities in a standard Reversa menu and route the chosen one to the specialist, passing the `OPP-id`, the target, and the context. Mark the first one, with the highest estimated return, as recommended; a blank reply, or `ok`, chooses it:
|
|
72
72
|
|
|
73
73
|
```
|
|
74
74
|
Improvement opportunities in <context>, by estimated return:
|
|
@@ -70,7 +70,7 @@ The policy for what to do when a feature is in progress is described in the next
|
|
|
70
70
|
|
|
71
71
|
## Re-run policy
|
|
72
72
|
|
|
73
|
-
If the detection identified a previous feature in progress (physical stage `requirements`, `plan`, or `coding-em-progresso`), **always ask the user** before any write.
|
|
73
|
+
If the detection identified a previous feature in progress (physical stage `requirements`, `plan`, or `coding-em-progresso`), **always ask the user** before any write. The only default is option 2, which discards nothing; the goal is to eliminate surprise.
|
|
74
74
|
|
|
75
75
|
Present the block below to the user:
|
|
76
76
|
|
|
@@ -83,12 +83,12 @@ Present the block below to the user:
|
|
|
83
83
|
> How do you want to proceed?
|
|
84
84
|
>
|
|
85
85
|
> **1. Continue the previous one**: I will abort this `/reversa-requirements` and you resume the feature in progress.
|
|
86
|
-
> **2. Create a new one in parallel
|
|
86
|
+
> **2. Create a new one in parallel** (recommended: nothing is lost): the previous feature is paused in a `paused-features` field and the new one becomes active.
|
|
87
87
|
> **3. Abandon the previous one**: the old folder stays on disk untouched, but `active-requirements.json` will point to the new one.
|
|
88
88
|
>
|
|
89
|
-
> Type 1, 2, or 3.
|
|
89
|
+
> Type 1, 2, or 3. A blank reply, or `ok`, accepts option 2.
|
|
90
90
|
|
|
91
|
-
Wait for the answer. Do NOT choose on your own
|
|
91
|
+
Wait for the answer. A blank reply, or `ok`, stands only for option 2, which discards nothing. Do NOT choose option 1 or option 3 on your own: they count only when the owner types the number.
|
|
92
92
|
|
|
93
93
|
### Option 1, continue the previous one
|
|
94
94
|
|