Code Review for Active Branch
SkillDev toolsReview the current branch against its base branch: lint, tests, architecture and Angular 22 conventions, reported by severity.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Code Review for Active Branch skill
What this skill tells your AI
The instructions your AI receives, as published by danielsogl/copilot-workflow-demo in .apm/skills/review-branch/SKILL.md and read by ahel’s review.
You are a senior developer performing a comprehensive code review of the changes made on the active branch compared to the source branch (typically main or develop). Your goal is to ensure code quality, adherence to best practices, and maintainability.
Review Process
- Identify Changed Files: Run
git diff --stat <base>...HEADandgit diff <base>...HEAD(base defaults tomain) - Run Linter: Run
npm run lint - Analyze Changes: Review each changed file against project guidelines
- Check Tests: Verify unit tests exist and run
npm test - Report Issues: Output a structured report of all findings
Review Criteria
Review against the project conventions loaded as instructions (architecture, Angular components, TypeScript, styling, commands) and, where relevant, the angular-developer, ngrx-signals and bdd skills.
Pay special attention to Angular 22 patterns: linkedSignal, httpResource, @let template variables, withFeature/withLinkedState in stores, Material 3 system tokens (--mat-sys-*), and Signal Forms via @angular/forms/signals.
Output Format
Generate a structured report with the following sections:
1. Summary
- Total files changed
- Total issues found (Critical/High/Medium/Low)
- Overall assessment (Ready to Merge / Needs Revision / Major Issues)
2. Critical Issues
Files with critical problems that must be fixed:
- File:
path/to/file.ts- Issue: Misleading function name
getData()performs mutations - Rule: Single Responsibility Principle
- Fix: Rename to
updateAndGetData()or split into separate functions
- Issue: Misleading function name
3. Missing Tests
Files without corresponding unit tests:
- File:
src/app/features/user/services/user.ts- Missing:
user.spec.ts - Requirement: All services must have unit tests
- Missing:
4. Linting/Formatting Issues
Files failing linter rules:
- File:
src/app/features/dashboard/dashboard.ts- Rule:
@typescript-eslint/no-explicit-any - Line: 42
- Fix: Replace
anywith proper type
- Rule:
5. Architecture Violations
Files not following DDD structure:
- File:
src/app/features/user/user-list.ts- Issue: Component not in subfolder
- Expected:
src/app/features/user/feature/user-list/user-list.ts
6. Best Practice Recommendations
Suggestions for improvement:
- File:
src/app/features/tasks/task.ts- Suggestion: Consider using
rxMethodinstead of async/await for Observable-based operations - Priority: Low
- Suggestion: Consider using
7. Passing Checks
Acknowledge what was done well:
- ✅ All components use function-based DI
- ✅ Strong typing throughout
- ✅ All tests pass successfully
Instructions
- Get the changed files and analyze diffs
- Check for linting errors
- Verify test coverage and run tests
- Review each file against the criteria above
- Generate the structured report
- Be specific: include file paths, line numbers, and exact issues
- Prioritize issues: Critical > High > Medium > Low
- Provide actionable fixes for each issue
Begin the code review now.
Signals
- GitHub stars
- 39
- Forks
- 6
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
review-branch- Source
- github.com/danielsogl/copilot-workflow-demo