โ† Back to list
Zuytan

critical-review

by Zuytan

Algorithmic trading bot in Rust with multi-agent architecture, 10 strategies, risk management, and native egui UI. Supports Alpaca & Binance. ๐Ÿšง Work in progress

โญ 0๐Ÿด 0๐Ÿ“… Jan 24, 2026

SKILL.md


name: Critical Review description: Critical and uncompromising review of work done

Skill: Critical Review

When to use this skill

  • After every implementation - Validate work quality
  • Before a significant commit - Ensure no technical debt is introduced
  • Before a release - Full audit of modified code
  • When in doubt - Objectively evaluate an approach

Available templates

TemplateUsage
templates/quick_checklist.mdQuick validation checklist
templates/review_report.mdDetailed review report

Critical posture

Fundamental rule: Never accept mediocre code. Be your own harshest critic.

Questions to ask SYSTEMATICALLY

1. Code quality

  • Is the code readable by another developer without explanation?
  • Is there duplicate code that could be factored?
  • Are variable/function names explicit?
  • Is cyclomatic complexity reasonable?
  • Do functions do one thing only (SRP)?

2. Error handling

  • Are all error cases handled properly?
  • Are there hidden .unwrap()?
  • Are error messages informative?
  • Are errors propagated correctly?

3. Tests

  • Do tests cover nominal AND edge cases?
  • Are tests independent from each other?
  • Do tests document expected behavior?
  • Would tests fail if the code was broken?

4. Architecture

  • Does the code respect DDD architecture?
  • Are there dependencies in the wrong direction (domain โ†’ infrastructure)?
  • Is coupling minimal between modules?
  • Is the code easily testable?

5. Performance

  • Are there unnecessary allocations in hot paths?
  • Are data structures appropriate?
  • Are there blocking operations in async code?

Evaluation grid

After each implementation, self-evaluate honestly:

CriterionScoreDescription
Readability1-5Does the code read like prose?
Robustness1-5Does it handle all edge cases?
Testability1-5Are tests complete and relevant?
Maintainability1-5Could another dev modify it easily?
Performance1-5Is the code efficient?

Minimum acceptable score: 3/5 on each criterion

Red flags to detect

Critical code smells

// โŒ RED FLAG: unwrap without context
let value = some_option.unwrap();

// โŒ RED FLAG: potential hidden panic
let index = vec[user_input];

// โŒ RED FLAG: f64 for money
let total: f64 = price * quantity;

// โŒ RED FLAG: excessive clone
for item in collection.clone() { ... }

// โŒ RED FLAG: function too long (>50 lines)
fn do_everything() { /* 200 lines */ }

// โŒ RED FLAG: comment explaining obscure code
// This does X because Y (code should be self-explanatory)

Architectural anti-patterns

Anti-patternSymptomSolution
God classFile >500 linesDecompose into modules
SpaghettiCircular dependenciesInvert dependencies
Anemic domainEntities without behaviorEnrich domain model
Leaky abstractionImplementation details exposedEncapsulate correctly

Critical review checklist

Before considering work as complete:

Mandatory

  • No .unwrap() in production
  • No f64 for monetary calculations
  • Tests pass and are relevant
  • Clippy without warnings
  • Documentation up to date
  • Review diff before commit
  • Re-read after a break
  • Manual test of happy path

Critical report format

After a review, document findings:

## Critical Review - [Feature/Module]

### Positive points
- ...

### Points to improve
- **P0 (blocking)**: ...
- **P1 (important)**: ...
- **P2 (desirable)**: ...

### Technical debt identified
- ...

### Score: X/5

Reference

For an in-depth analysis of the complete project, see: .agent/CRITICAL_ANALYSIS_PROMPT.md

Score

Total Score

75/100

Based on repository quality metrics

โœ“SKILL.md

SKILL.mdใƒ•ใ‚กใ‚คใƒซใŒๅซใพใ‚Œใฆใ„ใ‚‹

+20
โœ“LICENSE

ใƒฉใ‚คใ‚ปใƒณใ‚นใŒ่จญๅฎšใ•ใ‚Œใฆใ„ใ‚‹

+10
โœ“่ชฌๆ˜Žๆ–‡

100ๆ–‡ๅญ—ไปฅไธŠใฎ่ชฌๆ˜ŽใŒใ‚ใ‚‹

+10
โ—‹ไบบๆฐ—

GitHub Stars 100ไปฅไธŠ

0/15
โœ“ๆœ€่ฟ‘ใฎๆดปๅ‹•

1ใƒถๆœˆไปฅๅ†…ใซๆ›ดๆ–ฐ

+10
โ—‹ใƒ•ใ‚ฉใƒผใ‚ฏ

10ๅ›žไปฅไธŠใƒ•ใ‚ฉใƒผใ‚ฏใ•ใ‚Œใฆใ„ใ‚‹

0/5
โœ“Issue็ฎก็†

ใ‚ชใƒผใƒ—ใƒณIssueใŒ50ๆœชๆบ€

+5
โœ“่จ€่ชž

ใƒ—ใƒญใ‚ฐใƒฉใƒŸใƒณใ‚ฐ่จ€่ชžใŒ่จญๅฎšใ•ใ‚Œใฆใ„ใ‚‹

+5
โœ“ใ‚ฟใ‚ฐ

1ใคไปฅไธŠใฎใ‚ฟใ‚ฐใŒ่จญๅฎšใ•ใ‚Œใฆใ„ใ‚‹

+5

Reviews

๐Ÿ’ฌ

Reviews coming soon