"Code review — 5 parallel workers reviewing code from different lenses (correctness, style, security, performance, testability), reading the file and cross-checking best practices online."
Resources
1Install
npx skillscat add adilfaisal01/llm-multiagent-swarm/code-review-swarm Install via the SkillsCat registry.
Code Review Swarm
When to Use
Questions that ask to review, critique, or debug a piece of code. Workers each read the code file and review it from a different lens, so the combined review covers correctness, style, security, performance, and testability.
Workflow
- Vera — correctness: does it do what it's supposed to, edge cases, bugs.
- Cyrus — style: readability, naming, structure, idioms.
- Romy — security: injection, unsafe calls, secrets, input validation.
- Ash — performance: algorithmic complexity, wasted work, hot spots.
- Zara — testability: how to test it, missing tests, refactor suggestions.
All 5 run in parallel. Each worker reads the file with read_file, may run/verify with python_exec, consults best practices via web_search when useful, and logs findings with scratchpad_add. The orchestrator synthesizes an ordered, prioritized review.
Running under swarm
python3 -m swarm --skill code-review-swarm --goal "Review /path/to/code.py for bugs, security, and style"Running under Hermes
Delegate 5 parallel review tasks (one per lens above), each reading the code file. Collect the five reports and merge into a prioritized review, or use the swarm directly via --skill code-review-swarm.