Back to list
5dlabs

code-review

by 5dlabs

Cognitive Task Orchestrator - GitOps on Bare Metal or Cloud for AI Agents

2🍴 1📅 Jan 24, 2026

SKILL.md


name: code-review description: Code quality review patterns including quality gates, checklists, and language-specific checks. agents: [cleo] triggers: [quality, review, lint, coverage, code smell]

Code Quality Review

Quality analysis patterns for maintaining healthy, maintainable codebases.

Execution Rules

  1. Quality gates. All checks must pass before approval
  2. Constructive feedback. Be specific and actionable
  3. Test coverage. Aim for 80%+, 100% on critical paths
  4. Documentation. Code should be self-documenting with good names
  5. Consistency. Follow project conventions

Review Checklist

Code Quality

  • Clear, meaningful names
  • Small, focused functions (< 40 lines)
  • No code duplication (DRY)
  • Proper error handling
  • No magic numbers/strings

Testing

  • Unit tests for logic
  • Integration tests for workflows
  • Edge cases covered
  • Mocks used appropriately

Security

  • No secrets in code
  • Input validation
  • Output encoding
  • Auth/authz checks

Performance

  • No N+1 queries
  • Appropriate caching
  • Efficient algorithms

Language-Specific Checks

Rust

cargo fmt --all -- --check
cargo clippy --workspace --all-targets -- -D warnings -W clippy::pedantic
cargo test --workspace
cargo tarpaulin --out Html  # Coverage

Rust-Specific:

  • Verify #[must_use] attributes on functions returning values
  • Check for proper error handling with anyhow/thiserror
  • Ensure no unwrap() in production code paths
  • Verify tracing macros used instead of println!
  • Check clippy pedantic lints are satisfied

TypeScript

pnpm lint
pnpm typecheck || npx tsc --noEmit
pnpm test --coverage
pnpm build

Effect-Specific:

  • Verify Effect.Schema is used for validation (not Zod)
  • Check that errors use Schema.TaggedError for type safety
  • Ensure services use Context.Tag for dependency injection
  • Verify Effect.retry uses proper Schedule patterns
  • Check that Effect.gen is used for complex pipelines

React/Next.js:

  • Verify proper use of use client / use server directives
  • Check for proper error boundaries
  • Ensure accessibility attributes present

Go

go fmt ./...
golangci-lint run
go test ./... -cover
go vet ./...

Go-Specific:

  • Verify proper error handling (no ignored errors)
  • Check for goroutine leaks
  • Ensure context propagation
  • Verify interface segregation

Complexity Analysis

# Line counts by language
tokei .

# Check complexity
scc --complexity .

Quality Guidelines

  • Follow project style guide
  • Keep functions small and focused (< 40 lines)
  • Use meaningful names
  • Write self-documenting code
  • Maintain high test coverage
  • Address tech debt incrementally

Definition of Done

Before approving:

  • All quality checks pass (lint, format, type check)
  • Test coverage meets project threshold
  • No critical code smells or complexity issues
  • Documentation is complete and accurate
  • Review comments have been addressed
  • Changes follow project conventions

Score

Total Score

65/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon