prr-kit 1.0.0 → 1.1.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.
Files changed (29) hide show
  1. package/README.md +235 -226
  2. package/package.json +60 -60
  3. package/src/prr/workflows/2-analyze/describe-pr/templates/pr-description.template.md +51 -51
  4. package/src/prr/workflows/3-review/architecture-review/workflow.yaml +18 -18
  5. package/src/prr/workflows/3-review/general-review/workflow.yaml +18 -18
  6. package/src/prr/workflows/3-review/performance-review/workflow.yaml +18 -18
  7. package/src/prr/workflows/3-review/security-review/workflow.yaml +19 -19
  8. package/src/prr/workflows/4-improve/improve-code/workflow.yaml +18 -18
  9. package/src/prr/workflows/6-report/generate-report/templates/review-report.template.md +78 -78
  10. package/tools/cli/installers/lib/core/installer.js +162 -162
  11. package/tools/cli/installers/lib/ide/_config-driven.js +70 -0
  12. package/tools/cli/installers/lib/ide/codex.js +128 -0
  13. package/tools/cli/installers/lib/ide/github-copilot.js +262 -0
  14. package/tools/cli/installers/lib/ide/kilo.js +132 -0
  15. package/tools/cli/installers/lib/ide/manager.js +37 -1
  16. package/tools/cli/installers/lib/ide/platform-codes.yaml +104 -4
  17. package/tools/cli/installers/lib/ide/templates/combined/antigravity-agent.md +15 -0
  18. package/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow.md +8 -0
  19. package/tools/cli/installers/lib/ide/templates/combined/gemini-agent.md +16 -0
  20. package/tools/cli/installers/lib/ide/templates/combined/gemini-workflow.md +7 -0
  21. package/tools/cli/installers/lib/ide/templates/combined/kiro-agent.md +16 -0
  22. package/tools/cli/installers/lib/ide/templates/combined/kiro-workflow.md +9 -0
  23. package/tools/cli/installers/lib/ide/templates/combined/opencode-agent.md +15 -0
  24. package/tools/cli/installers/lib/ide/templates/combined/opencode-workflow.md +6 -0
  25. package/tools/cli/installers/lib/ide/templates/combined/rovodev-agent.md +10 -0
  26. package/tools/cli/installers/lib/ide/templates/combined/rovodev-workflow.md +9 -0
  27. package/tools/cli/installers/lib/ide/templates/combined/trae-agent.md +11 -0
  28. package/tools/cli/installers/lib/ide/templates/combined/trae-workflow.md +9 -0
  29. package/tools/cli/prr-cli.js +36 -36
@@ -1,51 +1,51 @@
1
- ---
2
- pr_branch: "{{target_branch}}"
3
- base_branch: "{{base_branch}}"
4
- pr_number: "{{pr_number}}"
5
- pr_type: "{{pr_type}}"
6
- risk_level: "{{risk_level}}"
7
- date: "{{date}}"
8
- generated_by: "prr-describe-pr"
9
- stepsCompleted: []
10
- ---
11
-
12
- # PR Review: {{pr_title}}
13
-
14
- **Branch:** `{{target_branch}}` → `{{base_branch}}`
15
- {{#if pr_number}}**PR #{{pr_number}}** | {{/if}}**Type:** {{pr_type}} | **Risk:** {{risk_level}} | **Date:** {{date}}
16
-
17
- ---
18
-
19
- ## Executive Summary
20
-
21
- {{executive_summary}}
22
-
23
- ---
24
-
25
- ## PR Statistics
26
-
27
- - **Commits:** {{commit_count}}
28
- - **Files Changed:** {{files_changed_count}}
29
- - **Lines:** +{{lines_added}} / -{{lines_removed}}
30
-
31
- ### Changed Files Overview
32
-
33
- ```
34
- {{diff_stats}}
35
- ```
36
-
37
- ---
38
-
39
- ## File-by-File Walkthrough
40
-
41
- {{walkthrough}}
42
-
43
- ---
44
-
45
- ## Recommended Reviews
46
-
47
- {{recommended_reviews}}
48
-
49
- ---
50
-
51
- *Generated by PR Review Framework*
1
+ ---
2
+ pr_branch: "{{target_branch}}"
3
+ base_branch: "{{base_branch}}"
4
+ pr_number: "{{pr_number}}"
5
+ pr_type: "{{pr_type}}"
6
+ risk_level: "{{risk_level}}"
7
+ date: "{{date}}"
8
+ generated_by: "prr-describe-pr"
9
+ stepsCompleted: []
10
+ ---
11
+
12
+ # PR Review: {{pr_title}}
13
+
14
+ **Branch:** `{{target_branch}}` → `{{base_branch}}`
15
+ {{#if pr_number}}**PR #{{pr_number}}** | {{/if}}**Type:** {{pr_type}} | **Risk:** {{risk_level}} | **Date:** {{date}}
16
+
17
+ ---
18
+
19
+ ## Executive Summary
20
+
21
+ {{executive_summary}}
22
+
23
+ ---
24
+
25
+ ## PR Statistics
26
+
27
+ - **Commits:** {{commit_count}}
28
+ - **Files Changed:** {{files_changed_count}}
29
+ - **Lines:** +{{lines_added}} / -{{lines_removed}}
30
+
31
+ ### Changed Files Overview
32
+
33
+ ```
34
+ {{diff_stats}}
35
+ ```
36
+
37
+ ---
38
+
39
+ ## File-by-File Walkthrough
40
+
41
+ {{walkthrough}}
42
+
43
+ ---
44
+
45
+ ## Recommended Reviews
46
+
47
+ {{recommended_reviews}}
48
+
49
+ ---
50
+
51
+ *Generated by PR Review Kit*
@@ -1,18 +1,18 @@
1
- name: architecture-review
2
- description: "Architecture-focused review: SOLID principles, layering, coupling, codebase consistency"
3
- author: "PR Review Framework"
4
-
5
- config_source: "{project-root}/_prr/prr/config.yaml"
6
- user_name: "{config_source}:user_name"
7
- communication_language: "{config_source}:communication_language"
8
- target_repo: "{config_source}:target_repo"
9
- review_output: "{config_source}:review_output"
10
- date: system-generated
11
-
12
- installed_path: "{project-root}/_prr/prr/workflows/3-review/architecture-review"
13
- instructions: "{installed_path}/instructions.xml"
14
- validation: "{installed_path}/checklist.md"
15
-
16
- pr_context: "{review_output}/current-pr-context.yaml"
17
- project_context: "{review_output}/project-context.yaml"
18
- output_file: "{review_output}/architecture-review-{date}.md"
1
+ name: architecture-review
2
+ description: "Architecture-focused review: SOLID principles, layering, coupling, codebase consistency"
3
+ author: "PR Review Kit"
4
+
5
+ config_source: "{project-root}/_prr/prr/config.yaml"
6
+ user_name: "{config_source}:user_name"
7
+ communication_language: "{config_source}:communication_language"
8
+ target_repo: "{config_source}:target_repo"
9
+ review_output: "{config_source}:review_output"
10
+ date: system-generated
11
+
12
+ installed_path: "{project-root}/_prr/prr/workflows/3-review/architecture-review"
13
+ instructions: "{installed_path}/instructions.xml"
14
+ validation: "{installed_path}/checklist.md"
15
+
16
+ pr_context: "{review_output}/current-pr-context.yaml"
17
+ project_context: "{review_output}/project-context.yaml"
18
+ output_file: "{review_output}/architecture-review-{date}.md"
@@ -1,18 +1,18 @@
1
- name: general-review
2
- description: "General code quality review: logic, naming, readability, error handling, DRY, test coverage"
3
- author: "PR Review Framework"
4
-
5
- config_source: "{project-root}/_prr/prr/config.yaml"
6
- user_name: "{config_source}:user_name"
7
- communication_language: "{config_source}:communication_language"
8
- target_repo: "{config_source}:target_repo"
9
- review_output: "{config_source}:review_output"
10
- date: system-generated
11
-
12
- installed_path: "{project-root}/_prr/prr/workflows/3-review/general-review"
13
- instructions: "{installed_path}/instructions.xml"
14
- validation: "{installed_path}/checklist.md"
15
-
16
- pr_context: "{review_output}/current-pr-context.yaml"
17
- project_context: "{review_output}/project-context.yaml"
18
- output_file: "{review_output}/general-review-{date}.md"
1
+ name: general-review
2
+ description: "General code quality review: logic, naming, readability, error handling, DRY, test coverage"
3
+ author: "PR Review Kit"
4
+
5
+ config_source: "{project-root}/_prr/prr/config.yaml"
6
+ user_name: "{config_source}:user_name"
7
+ communication_language: "{config_source}:communication_language"
8
+ target_repo: "{config_source}:target_repo"
9
+ review_output: "{config_source}:review_output"
10
+ date: system-generated
11
+
12
+ installed_path: "{project-root}/_prr/prr/workflows/3-review/general-review"
13
+ instructions: "{installed_path}/instructions.xml"
14
+ validation: "{installed_path}/checklist.md"
15
+
16
+ pr_context: "{review_output}/current-pr-context.yaml"
17
+ project_context: "{review_output}/project-context.yaml"
18
+ output_file: "{review_output}/general-review-{date}.md"
@@ -1,18 +1,18 @@
1
- name: performance-review
2
- description: "Performance-focused code review: N+1 queries, memory leaks, async patterns, bundle size, caching"
3
- author: "PR Review Framework"
4
-
5
- config_source: "{project-root}/_prr/prr/config.yaml"
6
- user_name: "{config_source}:user_name"
7
- communication_language: "{config_source}:communication_language"
8
- target_repo: "{config_source}:target_repo"
9
- review_output: "{config_source}:review_output"
10
- date: system-generated
11
-
12
- installed_path: "{project-root}/_prr/prr/workflows/3-review/performance-review"
13
- instructions: "{installed_path}/instructions.xml"
14
- validation: "{installed_path}/checklist.md"
15
-
16
- pr_context: "{review_output}/current-pr-context.yaml"
17
- project_context: "{review_output}/project-context.yaml"
18
- output_file: "{review_output}/performance-review-{date}.md"
1
+ name: performance-review
2
+ description: "Performance-focused code review: N+1 queries, memory leaks, async patterns, bundle size, caching"
3
+ author: "PR Review Kit"
4
+
5
+ config_source: "{project-root}/_prr/prr/config.yaml"
6
+ user_name: "{config_source}:user_name"
7
+ communication_language: "{config_source}:communication_language"
8
+ target_repo: "{config_source}:target_repo"
9
+ review_output: "{config_source}:review_output"
10
+ date: system-generated
11
+
12
+ installed_path: "{project-root}/_prr/prr/workflows/3-review/performance-review"
13
+ instructions: "{installed_path}/instructions.xml"
14
+ validation: "{installed_path}/checklist.md"
15
+
16
+ pr_context: "{review_output}/current-pr-context.yaml"
17
+ project_context: "{review_output}/project-context.yaml"
18
+ output_file: "{review_output}/performance-review-{date}.md"
@@ -1,19 +1,19 @@
1
- name: security-review
2
- description: "Security-focused code review: OWASP top 10, injection, auth, secrets, dependencies"
3
- author: "PR Review Framework"
4
-
5
- config_source: "{project-root}/_prr/prr/config.yaml"
6
- user_name: "{config_source}:user_name"
7
- communication_language: "{config_source}:communication_language"
8
- target_repo: "{config_source}:target_repo"
9
- review_output: "{config_source}:review_output"
10
- date: system-generated
11
-
12
- installed_path: "{project-root}/_prr/prr/workflows/3-review/security-review"
13
- instructions: "{installed_path}/instructions.xml"
14
- validation: "{installed_path}/checklist.md"
15
- owasp_data: "{installed_path}/data/owasp-checklist.csv"
16
-
17
- pr_context: "{review_output}/current-pr-context.yaml"
18
- project_context: "{review_output}/project-context.yaml"
19
- output_file: "{review_output}/security-review-{date}.md"
1
+ name: security-review
2
+ description: "Security-focused code review: OWASP top 10, injection, auth, secrets, dependencies"
3
+ author: "PR Review Kit"
4
+
5
+ config_source: "{project-root}/_prr/prr/config.yaml"
6
+ user_name: "{config_source}:user_name"
7
+ communication_language: "{config_source}:communication_language"
8
+ target_repo: "{config_source}:target_repo"
9
+ review_output: "{config_source}:review_output"
10
+ date: system-generated
11
+
12
+ installed_path: "{project-root}/_prr/prr/workflows/3-review/security-review"
13
+ instructions: "{installed_path}/instructions.xml"
14
+ validation: "{installed_path}/checklist.md"
15
+ owasp_data: "{installed_path}/data/owasp-checklist.csv"
16
+
17
+ pr_context: "{review_output}/current-pr-context.yaml"
18
+ project_context: "{review_output}/project-context.yaml"
19
+ output_file: "{review_output}/security-review-{date}.md"
@@ -1,18 +1,18 @@
1
- name: improve-code
2
- description: "Generate concrete inline code suggestions with before/after diffs — focused on actionable improvements"
3
- author: "PR Review Framework"
4
-
5
- config_source: "{project-root}/_prr/prr/config.yaml"
6
- user_name: "{config_source}:user_name"
7
- communication_language: "{config_source}:communication_language"
8
- target_repo: "{config_source}:target_repo"
9
- review_output: "{config_source}:review_output"
10
- date: system-generated
11
-
12
- installed_path: "{project-root}/_prr/prr/workflows/4-improve/improve-code"
13
- instructions: "{installed_path}/instructions.xml"
14
- validation: "{installed_path}/checklist.md"
15
-
16
- pr_context: "{review_output}/current-pr-context.yaml"
17
- project_context: "{review_output}/project-context.yaml"
18
- output_file: "{review_output}/improve-code-{date}.md"
1
+ name: improve-code
2
+ description: "Generate concrete inline code suggestions with before/after diffs — focused on actionable improvements"
3
+ author: "PR Review Kit"
4
+
5
+ config_source: "{project-root}/_prr/prr/config.yaml"
6
+ user_name: "{config_source}:user_name"
7
+ communication_language: "{config_source}:communication_language"
8
+ target_repo: "{config_source}:target_repo"
9
+ review_output: "{config_source}:review_output"
10
+ date: system-generated
11
+
12
+ installed_path: "{project-root}/_prr/prr/workflows/4-improve/improve-code"
13
+ instructions: "{installed_path}/instructions.xml"
14
+ validation: "{installed_path}/checklist.md"
15
+
16
+ pr_context: "{review_output}/current-pr-context.yaml"
17
+ project_context: "{review_output}/project-context.yaml"
18
+ output_file: "{review_output}/improve-code-{date}.md"
@@ -1,78 +1,78 @@
1
- ---
2
- pr_branch: "{{target_branch}}"
3
- base_branch: "{{base_branch}}"
4
- pr_number: "{{pr_number}}"
5
- date: "{{date}}"
6
- verdict: "{{verdict}}"
7
- reviews_completed:
8
- {{reviews_completed_list}}
9
- stepsCompleted: []
10
- ---
11
-
12
- # Code Review Report: {{pr_title}}
13
-
14
- **PR:** `{{target_branch}}` → `{{base_branch}}`
15
- {{#if pr_number}}**GitHub PR #{{pr_number}}** | {{/if}}**Date:** {{date}} | **Reviewer:** {{user_name}}
16
-
17
- ---
18
-
19
- ## Executive Summary
20
-
21
- {{executive_summary}}
22
-
23
- **Verdict:** {{verdict}}
24
-
25
- | Category | 🔴 Blockers | 🟡 Warnings | 🟢 Suggestions |
26
- |----------|------------|------------|----------------|
27
- | 🔒 Security | {{security_blockers}} | {{security_warnings}} | {{security_suggestions}} |
28
- | ⚡ Performance | {{perf_blockers}} | {{perf_warnings}} | {{perf_suggestions}} |
29
- | 🏗️ Architecture | {{arch_blockers}} | {{arch_warnings}} | {{arch_suggestions}} |
30
- | 👁️ General | {{general_blockers}} | {{general_warnings}} | {{general_suggestions}} |
31
- | **Total** | **{{total_blockers}}** | **{{total_warnings}}** | **{{total_suggestions}}** |
32
-
33
- ---
34
-
35
- ## 🔴 Blockers — Must Fix Before Merge
36
-
37
- {{blockers_section}}
38
-
39
- ---
40
-
41
- ## 🟡 Warnings — Should Fix
42
-
43
- {{warnings_section}}
44
-
45
- ---
46
-
47
- ## 🟢 Suggestions — Nice to Have
48
-
49
- {{suggestions_section}}
50
-
51
- ---
52
-
53
- ## 📌 Questions for Author
54
-
55
- {{questions_section}}
56
-
57
- ---
58
-
59
- ## 💡 Code Improvement Suggestions
60
-
61
- {{improvements_section}}
62
-
63
- ---
64
-
65
- ## Files with Multiple Issues
66
-
67
- {{files_with_issues}}
68
-
69
- ---
70
-
71
- ## ✅ Positive Observations
72
-
73
- {{positive_observations}}
74
-
75
- ---
76
-
77
- *Generated by PR Review Framework*
78
- *Reviews completed: {{reviews_completed}}*
1
+ ---
2
+ pr_branch: "{{target_branch}}"
3
+ base_branch: "{{base_branch}}"
4
+ pr_number: "{{pr_number}}"
5
+ date: "{{date}}"
6
+ verdict: "{{verdict}}"
7
+ reviews_completed:
8
+ {{reviews_completed_list}}
9
+ stepsCompleted: []
10
+ ---
11
+
12
+ # Code Review Report: {{pr_title}}
13
+
14
+ **PR:** `{{target_branch}}` → `{{base_branch}}`
15
+ {{#if pr_number}}**GitHub PR #{{pr_number}}** | {{/if}}**Date:** {{date}} | **Reviewer:** {{user_name}}
16
+
17
+ ---
18
+
19
+ ## Executive Summary
20
+
21
+ {{executive_summary}}
22
+
23
+ **Verdict:** {{verdict}}
24
+
25
+ | Category | 🔴 Blockers | 🟡 Warnings | 🟢 Suggestions |
26
+ |----------|------------|------------|----------------|
27
+ | 🔒 Security | {{security_blockers}} | {{security_warnings}} | {{security_suggestions}} |
28
+ | ⚡ Performance | {{perf_blockers}} | {{perf_warnings}} | {{perf_suggestions}} |
29
+ | 🏗️ Architecture | {{arch_blockers}} | {{arch_warnings}} | {{arch_suggestions}} |
30
+ | 👁️ General | {{general_blockers}} | {{general_warnings}} | {{general_suggestions}} |
31
+ | **Total** | **{{total_blockers}}** | **{{total_warnings}}** | **{{total_suggestions}}** |
32
+
33
+ ---
34
+
35
+ ## 🔴 Blockers — Must Fix Before Merge
36
+
37
+ {{blockers_section}}
38
+
39
+ ---
40
+
41
+ ## 🟡 Warnings — Should Fix
42
+
43
+ {{warnings_section}}
44
+
45
+ ---
46
+
47
+ ## 🟢 Suggestions — Nice to Have
48
+
49
+ {{suggestions_section}}
50
+
51
+ ---
52
+
53
+ ## 📌 Questions for Author
54
+
55
+ {{questions_section}}
56
+
57
+ ---
58
+
59
+ ## 💡 Code Improvement Suggestions
60
+
61
+ {{improvements_section}}
62
+
63
+ ---
64
+
65
+ ## Files with Multiple Issues
66
+
67
+ {{files_with_issues}}
68
+
69
+ ---
70
+
71
+ ## ✅ Positive Observations
72
+
73
+ {{positive_observations}}
74
+
75
+ ---
76
+
77
+ *Generated by PR Review Kit*
78
+ *Reviews completed: {{reviews_completed}}*