@groupby/ai-dev 0.1.0
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/dist/index.js +612 -0
- package/package.json +44 -0
- package/skills/README.md +61 -0
- package/skills/archived/README.md +3 -0
- package/skills/library/README.md +3 -0
- package/skills/library/frontend-design/LICENSE.txt +177 -0
- package/skills/library/frontend-design/SKILL.md +42 -0
- package/skills/skills/README.md +61 -0
- package/skills/skills/archived/README.md +3 -0
- package/skills/skills/library/README.md +3 -0
- package/skills/skills/library/frontend-design/LICENSE.txt +177 -0
- package/skills/skills/library/frontend-design/SKILL.md +42 -0
- package/teams/brain-studio/skills/code-review/SKILL.md +46 -0
- package/teams/teams/brain-studio/skills/code-review/SKILL.md +46 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: 'code-review'
|
|
3
|
+
description: 'Perform a standardized code review on the current changes. Use this when needing to evaluate how well the code matches our architecture docs, code quality, and so on.'
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- execute/runInTerminal
|
|
6
|
+
- edit/editFiles
|
|
7
|
+
- edit/createFile
|
|
8
|
+
- atlassian-rovo/*
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Brain Studio — Code Review
|
|
12
|
+
|
|
13
|
+
## Setup
|
|
14
|
+
|
|
15
|
+
1. Use #tool:execute/runInTerminal to run `git diff origin/main...HEAD`. If that yields nothing, fall back to `git diff HEAD`. Use this output as the set of changes under review.
|
|
16
|
+
2. Use #tool:execute/runInTerminal to run `git branch --show-current` and extract the Jira ticket key from the branch name (e.g. `BS-1056` from `BS-1056-my-feature`). If a ticket key is found, use the Atlassian Rovo MCP to fetch the issue and use its description and acceptance criteria to evaluate whether the code fulfils the ticket's intent.
|
|
17
|
+
3. Inspect the diff to understand what types of changes are involved.
|
|
18
|
+
4. Apply the **Doc Routing Table** in `.github/copilot-instructions.md` — use the change types you identified to determine which architecture docs to load. Use those docs as your source of truth throughout the review.
|
|
19
|
+
5. If the codebase contradicts the docs, the **docs represent the target state** — flag the discrepancy rather than normalising the legacy pattern.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Review
|
|
24
|
+
|
|
25
|
+
Evaluate the changes across these areas. Let the loaded architecture docs govern the specific standards — do not invent rules not found there.
|
|
26
|
+
|
|
27
|
+
1. **Code Quality** — single responsibility principle, clarity, naming, redundancy, complexity, consistency with documented patterns
|
|
28
|
+
2. **Regressions** — silent breakage, unexpected behaviour changes, altered logic outside of the stated scope of the ticket, downstream impact
|
|
29
|
+
3. **Security** — input validation, sensitive data handling, auth correctness
|
|
30
|
+
4. **Performance** — inefficient or unnecessarily expensive code, unnecessary re-renders, missing cleanups, over-importing
|
|
31
|
+
5. **Error handling** — async error paths covered, error messaging in place, graceful degradation, no swallowed errors
|
|
32
|
+
6. **Accessibility** — semantic HTML, ARIA attributes, keyboard navigation, focus management
|
|
33
|
+
7. **Testing** — coverage of new logic, edge cases, error paths; flag superfluous tests
|
|
34
|
+
8. **Documentation** — non-obvious logic commented; JSDoc updated where needed, architecture docs updated if the change introduces a new pattern or deviates from existing ones
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Output Format
|
|
39
|
+
|
|
40
|
+
- **Inline comments** for specific lines or blocks.
|
|
41
|
+
- **Top-level observations** for broad themes or praise.
|
|
42
|
+
- Prioritise by severity: 🔴 blocking / 🟡 important / 🔵 minor.
|
|
43
|
+
- Do **not** include your reasoning steps or to-do list.
|
|
44
|
+
- Close with a witty quatrain summarising the PR. 🎭
|
|
45
|
+
|
|
46
|
+
Save the review to `docs/code-reviews/<branch-name>-code-review.md` (use the full branch name from Setup step 2). Confirm the file has been written.
|