reviewdeck 0.2.2 → 0.2.4
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/README.md +6 -11
- package/dist/reviewdeck.mjs +4 -56
- package/dist/web/assets/{angular-html-BW6jlb6j.js → angular-html-CFINC1oa.js} +1 -1
- package/dist/web/assets/{angular-ts-DWBNOji_.js → angular-ts-m2GITFyR.js} +1 -1
- package/dist/web/assets/{apl-uRKDN2p3.js → apl-D9-Wam_I.js} +1 -1
- package/dist/web/assets/{astro-BiNvR4wU.js → astro-COogqYsa.js} +1 -1
- package/dist/web/assets/{blade-CogPuRcD.js → blade-B8dse4-d.js} +1 -1
- package/dist/web/assets/{c-c6mXMDpL.js → c-1lQO50Xh.js} +1 -1
- package/dist/web/assets/{cobol-BBFZi1TD.js → cobol-BF1TJ-40.js} +1 -1
- package/dist/web/assets/{coffee-CoyNl-Vr.js → coffee-MQoiLPsg.js} +1 -1
- package/dist/web/assets/{cpp-BhZISK2o.js → cpp-BuNBvzHq.js} +1 -1
- package/dist/web/assets/{crystal-DARwJIth.js → crystal-BjB4YIMp.js} +1 -1
- package/dist/web/assets/{css-BFlkO4hH.js → css-BSS61pHw.js} +1 -1
- package/dist/web/assets/{edge-1uDQap2l.js → edge-DFfeSQ66.js} +1 -1
- package/dist/web/assets/{elixir-B630FsAX.js → elixir-yCZfQzZ6.js} +1 -1
- package/dist/web/assets/{elm-B0CYJExx.js → elm-Be0M9OZm.js} +1 -1
- package/dist/web/assets/{erb-BCuuvlI8.js → erb-CQ5myCXi.js} +1 -1
- package/dist/web/assets/{git-rebase-CMGqxEzO.js → git-rebase-CDsHo7Jw.js} +1 -1
- package/dist/web/assets/{glimmer-js-CwCQsT5O.js → glimmer-js-DqIdPfxo.js} +1 -1
- package/dist/web/assets/{glimmer-ts-CDiy87zB.js → glimmer-ts-BUz6aSXE.js} +1 -1
- package/dist/web/assets/{glsl-KkJIjOyq.js → glsl-B-6MUrDA.js} +1 -1
- package/dist/web/assets/{graphql-MKTYUDMa.js → graphql-CxjpsAXu.js} +1 -1
- package/dist/web/assets/{hack-Bwo3McIF.js → hack-7N6Df3Om.js} +1 -1
- package/dist/web/assets/{haml-D88Ucy2e.js → haml-DdJsWHCd.js} +1 -1
- package/dist/web/assets/{handlebars-BU0LZwZ1.js → handlebars-Dv_Cln2V.js} +1 -1
- package/dist/web/assets/{html-DrMQJsXw.js → html-BJ8yrONl.js} +1 -1
- package/dist/web/assets/{html-derivative-0WBbZowl.js → html-derivative-BXnhMKhS.js} +1 -1
- package/dist/web/assets/{http-DbEAkxXN.js → http-OIkivVx7.js} +1 -1
- package/dist/web/assets/{hurl-CqJXynMd.js → hurl-D3w5NbV2.js} +1 -1
- package/dist/web/assets/{index-BPtNzy1Q.js → index-BlTwM_Ro.js} +2 -2
- package/dist/web/assets/index-Dd56xqmK.css +2 -0
- package/dist/web/assets/{java-BRVCc-Q1.js → java-C7ySLk4N.js} +1 -1
- package/dist/web/assets/{javascript-BD4fYJEn.js → javascript-DwDR6_XF.js} +1 -1
- package/dist/web/assets/{jinja-CelQ23ws.js → jinja-BqIEU6l_.js} +1 -1
- package/dist/web/assets/{jison-DBS-9n7v.js → jison-saoTtMTd.js} +1 -1
- package/dist/web/assets/{json-DZDuupM6.js → json-B2Bj5M9o.js} +1 -1
- package/dist/web/assets/{jsx-BZOBrdrR.js → jsx-CQRa2jtI.js} +1 -1
- package/dist/web/assets/{julia-BCQpMN0P.js → julia-Dzii-ckR.js} +1 -1
- package/dist/web/assets/{just-C3xXABnW.js → just-mtlOG7e9.js} +1 -1
- package/dist/web/assets/{latex-OIm821Jq.js → latex-CTL68cr9.js} +1 -1
- package/dist/web/assets/{liquid-CtRnMjLR.js → liquid-D9EXpsaN.js} +1 -1
- package/dist/web/assets/{lua-C4GAsLLv.js → lua-hBgX63Y7.js} +1 -1
- package/dist/web/assets/{marko-BzBo2m_h.js → marko-DDS0f7G3.js} +1 -1
- package/dist/web/assets/{mdc-Diez5J4p.js → mdc-CLKnP2QB.js} +1 -1
- package/dist/web/assets/{nginx-B-O05-Ip.js → nginx-CzlXiIzN.js} +1 -1
- package/dist/web/assets/{nim-DYodfN_j.js → nim-Cf91bz7u.js} +1 -1
- package/dist/web/assets/{perl-BajmpJw1.js → perl-Cp5Ex_5S.js} +1 -1
- package/dist/web/assets/{php-GbSlF-ma.js → php-CIbRLSC8.js} +1 -1
- package/dist/web/assets/{pug-B3pftVq7.js → pug-Bp7WO61T.js} +1 -1
- package/dist/web/assets/{qml-CU7fIqWl.js → qml-CGRBeZW6.js} +1 -1
- package/dist/web/assets/{r-VFD3g93S.js → r-CCGa39Ip.js} +1 -1
- package/dist/web/assets/{razor-YJmCxoz7.js → razor-C5j6kznI.js} +1 -1
- package/dist/web/assets/{regexp-xQImVJyz.js → regexp-bBXnVS6a.js} +1 -1
- package/dist/web/assets/{rst-C-l1vIhG.js → rst-BRopP0eg.js} +1 -1
- package/dist/web/assets/{ruby-ClXcG6Uc.js → ruby-DaRWoQDM.js} +1 -1
- package/dist/web/assets/{sas-UbdvwYYC.js → sas-BAw2SDis.js} +1 -1
- package/dist/web/assets/{scss-BSFxtSCj.js → scss-D0KFsuzh.js} +1 -1
- package/dist/web/assets/{shellscript-DipAQUtx.js → shellscript-BeIAlF0N.js} +1 -1
- package/dist/web/assets/{shellsession-4iJrG6C5.js → shellsession-S3p6uiQf.js} +1 -1
- package/dist/web/assets/{soy-DbrU_Nxg.js → soy-b_MVyvD8.js} +1 -1
- package/dist/web/assets/{sql-5eAwe7x9.js → sql-SLE7Ylfl.js} +1 -1
- package/dist/web/assets/{stata-DPzpuJuP.js → stata-BVOZaOVV.js} +1 -1
- package/dist/web/assets/{surrealql-BFHjstCU.js → surrealql-CkR5pngk.js} +1 -1
- package/dist/web/assets/{svelte-DEFiloGp.js → svelte-BGW07BxJ.js} +1 -1
- package/dist/web/assets/{templ-B3axXApj.js → templ-m-K71tHh.js} +1 -1
- package/dist/web/assets/{tex-DhbFB_y0.js → tex-Dk734v66.js} +1 -1
- package/dist/web/assets/{ts-tags-BN89t81C.js → ts-tags-BywbeuBc.js} +1 -1
- package/dist/web/assets/{tsx-LzmugIB3.js → tsx-JJx43CZ-.js} +1 -1
- package/dist/web/assets/{twig-BcvJvETg.js → twig-BHF81fIV.js} +1 -1
- package/dist/web/assets/{typescript-vZfgIWhk.js → typescript-BCsma20W.js} +1 -1
- package/dist/web/assets/{vue-DTJd19mx.js → vue-DOm-ZmLD.js} +1 -1
- package/dist/web/assets/{vue-html-DN1O1Gud.js → vue-html-BRbyRKwc.js} +1 -1
- package/dist/web/assets/{vue-vine-CPt4e1Kz.js → vue-vine-fHfcy6yG.js} +1 -1
- package/dist/web/assets/{xml-fA_cpwGb.js → xml-BaXpNxqG.js} +1 -1
- package/dist/web/assets/{xsl-3f3GC_Uf.js → xsl-ZtGSD274.js} +1 -1
- package/dist/web/assets/{yaml-Ca1_GRr1.js → yaml-zXATzheP.js} +1 -1
- package/dist/web/index.html +3 -3
- package/package.json +4 -5
- package/skills/reviewdeck/SKILL.md +96 -66
- package/skills/reviewdeck/references/split.md +125 -0
- package/dist/web/assets/index-BkEoZ-nI.css +0 -2
- package/dist/web-inline/assets/index-BkEoZ-nI.css +0 -2
- package/dist/web-inline/assets/index-Qzj-BIcs.js +0 -1933
- package/dist/web-inline/index.html +0 -13
- package/skills/reviewdeck/assets/prompt-template.md +0 -111
- package/skills/reviewdeck/references/get-diff.md +0 -24
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en" class="dark">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
-
<title>Stacked Diff Review</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-Qzj-BIcs.js"></script>
|
|
8
|
-
<link rel="stylesheet" crossorigin href="/assets/index-BkEoZ-nI.css">
|
|
9
|
-
</head>
|
|
10
|
-
<body>
|
|
11
|
-
<div id="root"></div>
|
|
12
|
-
</body>
|
|
13
|
-
</html>
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
# Task: Split a PR diff into reviewable sub-patches
|
|
2
|
-
|
|
3
|
-
You are helping a code reviewer. Given a large PR diff, split it into a sequence of smaller, logically coherent sub-patches that are easier to review.
|
|
4
|
-
|
|
5
|
-
## Principles
|
|
6
|
-
|
|
7
|
-
- **Peripheral first, core last**: infrastructure, config, types -> implementation -> tests
|
|
8
|
-
- **Independent first, dependent last**: if B depends on A, A comes first
|
|
9
|
-
- **One concern per group**: don't mix refactoring with new features
|
|
10
|
-
- **Reviewer-oriented descriptions**: describe why this group exists in the review flow, not just the surface area it touches
|
|
11
|
-
- **Co-review drafts when warranted**: if you notice a concrete review concern while splitting, attach it as a draft comment instead of switching into a full review report
|
|
12
|
-
|
|
13
|
-
## Input
|
|
14
|
-
|
|
15
|
-
The indexed change lines are provided separately. Each `[N]` is a **change index**. `-` = deletion, `+` = addition, `LN` = line number.
|
|
16
|
-
|
|
17
|
-
## Output format
|
|
18
|
-
|
|
19
|
-
Output a single JSON object (no markdown fences, no commentary before or after):
|
|
20
|
-
|
|
21
|
-
```json
|
|
22
|
-
{
|
|
23
|
-
"groups": [
|
|
24
|
-
{
|
|
25
|
-
"description": "Add version selector plumbing so later upgrade flows have a stable input",
|
|
26
|
-
"changes": ["0-2", 5, 6],
|
|
27
|
-
"draftComments": [
|
|
28
|
-
{
|
|
29
|
-
"change": 6,
|
|
30
|
-
"body": "Check whether the new selector can drift out of sync when no compatible versions exist."
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"description": "Cover the upgrade path with e2e checks after the UI flow is in place",
|
|
36
|
-
"changes": ["3-4", "7-9"]
|
|
37
|
-
}
|
|
38
|
-
]
|
|
39
|
-
}
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
## Rules
|
|
43
|
-
|
|
44
|
-
1. Every change index must appear in exactly one group
|
|
45
|
-
2. No index may appear in more than one group
|
|
46
|
-
3. No index may be omitted
|
|
47
|
-
4. Groups are ordered — group 1 is applied first, group N last
|
|
48
|
-
5. Aim for 3-6 groups (adjust based on the PR's complexity)
|
|
49
|
-
6. Each group's `description` should read like a review-guiding commit message — a concise summary line, optionally followed by detail
|
|
50
|
-
7. Use range syntax for consecutive indices: `"0-2"` means `[0, 1, 2]`. Single indices can be plain numbers: `5`
|
|
51
|
-
8. `draftComments` is optional, but when you see a concrete reviewer-worthy concern while splitting, include it.
|
|
52
|
-
9. Each draft comment must anchor to a `change` that belongs to the same group.
|
|
53
|
-
|
|
54
|
-
## Description guidance
|
|
55
|
-
|
|
56
|
-
Good descriptions help a reviewer understand why this group should be reviewed as one unit and how it fits into the sequence.
|
|
57
|
-
|
|
58
|
-
Prefer descriptions that:
|
|
59
|
-
|
|
60
|
-
- explain the intent or review value of the group
|
|
61
|
-
- mention the dependency or sequencing reason when useful
|
|
62
|
-
- tell the reviewer what they can learn or verify in this step
|
|
63
|
-
|
|
64
|
-
Avoid descriptions that are only:
|
|
65
|
-
|
|
66
|
-
- a raw area label like `form version selector`
|
|
67
|
-
- an as-is restatement of filenames, component names, or ticket labels
|
|
68
|
-
- too vague to distinguish this group from adjacent ones
|
|
69
|
-
|
|
70
|
-
Better:
|
|
71
|
-
|
|
72
|
-
- `Add version selection plumbing so the upgrade flow has a stable entry point`
|
|
73
|
-
- `Show current version and status before wiring upgrade actions`
|
|
74
|
-
- `Isolate the upgrade dialog and action handling as the main behavior change`
|
|
75
|
-
- `Add e2e coverage once the upgrade flow is in place`
|
|
76
|
-
|
|
77
|
-
Worse:
|
|
78
|
-
|
|
79
|
-
- `version selector`
|
|
80
|
-
- `status display`
|
|
81
|
-
- `upgrade dialog`
|
|
82
|
-
- `e2e`
|
|
83
|
-
|
|
84
|
-
## Draft comment guidance
|
|
85
|
-
|
|
86
|
-
Use `draftComments` selectively but decisively. They are not the final submitted comments. They are candidate review comments that the human reviewer can accept or reject during `render`.
|
|
87
|
-
|
|
88
|
-
Prefer draft comments that:
|
|
89
|
-
|
|
90
|
-
- point to a specific risk, regression, or questionable assumption
|
|
91
|
-
- are anchored to one concrete indexed change
|
|
92
|
-
- read like something worth sending to the source review if accepted
|
|
93
|
-
|
|
94
|
-
If you already have enough evidence from the diff to state a concrete concern, prefer emitting the draft comment now rather than omitting it.
|
|
95
|
-
|
|
96
|
-
Avoid draft comments that are only:
|
|
97
|
-
|
|
98
|
-
- a summary of what the code does
|
|
99
|
-
- generic praise or noise
|
|
100
|
-
- a full review section pasted into one comment
|
|
101
|
-
|
|
102
|
-
Better:
|
|
103
|
-
|
|
104
|
-
- `Potential regression: this update path bypasses the sanitizing transform used by the normal edit flow.`
|
|
105
|
-
- `This selector keeps the old version when no compatible options exist, so the form may submit an unavailable version.`
|
|
106
|
-
|
|
107
|
-
Worse:
|
|
108
|
-
|
|
109
|
-
- `Adds selector logic`
|
|
110
|
-
- `Looks risky`
|
|
111
|
-
- `Need review`
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# Getting a diff
|
|
2
|
-
|
|
3
|
-
## Local git
|
|
4
|
-
|
|
5
|
-
```bash
|
|
6
|
-
# Current branch vs main
|
|
7
|
-
git diff main...HEAD
|
|
8
|
-
|
|
9
|
-
# Between two commits
|
|
10
|
-
git diff <commit-a> <commit-b>
|
|
11
|
-
|
|
12
|
-
# Staged changes
|
|
13
|
-
git diff --cached
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## GitHub CLI
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
# PR diff by number
|
|
20
|
-
gh pr diff 123
|
|
21
|
-
|
|
22
|
-
# Specific PR in another repo
|
|
23
|
-
gh pr diff 123 --repo owner/repo
|
|
24
|
-
```
|