Review with kb
Skill antonioshaman/aura-companion/.agents/skills/review-with-kb
Code review that cross-references changes against the knowledge base — catches known gotchas, validates compliance with recorded decisions, and flags anti-pattern violations.From its SKILL.md
npx -y skills add antonioshaman/aura-companion --skill review-with-kbAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.7 KB, 606 tokens by cl100k_base, as published. Nobody here has run it
Review code changes using accumulated project knowledge as a checklist.
Process
1. Get the Diff
Based on the target argument:
staged(default) →git diff --cached- Branch name →
git diff main...<branch> - PR number →
gh pr diff <number>
2. Load Relevant Knowledge
For each file in the diff:
- Find all KB entries where
affectedFilesincludes this file - Find all KB entries where
tagsmatch the file's directory or feature area - Prioritize: anti-patterns first, then gotchas, then patterns
3. Cross-Reference Review
For each changed file, check against loaded knowledge:
Anti-pattern violations:
- Does any change match a known anti-pattern? Flag with 🔴
- Include the original KB entry's recommendation
Gotcha awareness:
- Are there known gotchas for this area? Flag with ⚠️
- Even if the change looks fine, surface the gotcha as a reminder
Decision compliance:
- Does the change respect recorded architectural decisions? Flag violations with 📐
- E.g., "Zustand state must be session-scoped" → check new state isn't global
Pattern adherence:
- Does the change follow established patterns? Suggest improvements with 🟢
- E.g., "Every component needs .test.tsx" → check if test was added
4. Standard Review (beyond KB)
Also check for:
- TypeScript type safety
- Error handling completeness
- Accessibility (for components)
- Test coverage
- Security concerns (XSS, injection)
5. Output
## KB-Informed Code Review
### Files Reviewed
- `path/to/file.ts` — N KB entries matched
### Findings
🔴 **Anti-pattern violation** in `file.ts:42`
> [What was found]
> KB: [original anti-pattern entry]
> Fix: [recommendation]
⚠️ **Known gotcha** for `area`
> [Gotcha description]
> Applies because: [why this change is affected]
📐 **Decision check** — [decision name]
> Status: ✅ Compliant / ❌ Violation
> [Details]
🟢 **Pattern suggestion** for `file.ts`
> [Established pattern that could improve this code]
### Summary
- Anti-pattern violations: N
- Gotcha warnings: N
- Decision compliance: N/N passed
- Pattern suggestions: N
- New learnings to capture: N (run /learn to save)
6. Capture New Learnings
If the review reveals something new (a gotcha not in the KB, a pattern worth recording):
- Suggest running
/learnto capture it - Or auto-capture if confidence is high
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.