Automated code review skill focusing on financial security, token leakage detection, concurrency bugs, EF Core performance traps, and architectural compliance.
60
71%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./.agents/skills/code-review/SKILL.mdUse this skill when auditing, reviewing, or analyzing C# code, pull requests, or diffs in the FinanceHub repository. This skill provides an automated multi-layer code review framework specifically designed for high-precision financial microservices.
decimal for all monetary amounts, interest rates, balances, and fees. NEVER use float or double.Math.Round(val, 2, MidpointRounding.ToEven)) on financial operations. Never rely on implicit rounding.Idempotency-Key or compute SHA256 HashUnico for transaction deduplication in Redis/DB.ILogger templates or structured parameters.FinanceHub.Shared.Certificates) are handled securely without disabling certificate validation in HTTP clients.[Timestamp] or uint RowVersion). Catch and handle DbUpdateConcurrencyException.CancellationToken propagation across call chains. Avoid async void, .Result, or .Wait() which cause thread starvation or deadlocks.FinanceHub.Shared.Messaging) to prevent phantom messages or dual-write inconsistencies.foreach loops. Ensure explicit .Include(), .ThenInclude(), or DTO projection with .Select()..AsNoTracking() on all read-only queries.IQueryable filtering (Where, Select) is not evaluated client-side after .ToList() or .ToListAsync()..Take() and .Skip() limits.ExecuteUpdateAsync / ExecuteDeleteAsync for mass updates instead of loading entities into memory and calling SaveChangesAsync() in a loop.Result<T> or explicit error models over throwing exceptions for anticipated business logic failures.field keyword if applicable, collection expressions).When generating code review feedback, structure findings systematically:
AsNoTracking(), unhandled exceptions, missing logging sanitization.### [SEVERITY] Finding Title
- **Location**: [Filename.cs](file:///path/to/Filename.cs#L45-L52)
- **Category**: [Financial Security / EF Core Performance / Concurrency / Token Leakage / Architecture]
- **Problem**: Explanation of why the code breaks FinanceHub guidelines or risks system failure.
- **Recommended Fix**:
```diff
- Decimal balance = amount * 1.05f;
+ decimal balance = Math.Round(amount * 1.05m, 2, MidpointRounding.ToEven);---
## 3. Step-by-Step Code Review Workflow
1. **Fetch Changes**: Run `git diff` or inspect target files/PR branches.
2. **Execute Checklist**: Evaluate code against all 5 Review Checklist layers.
3. **Classify Findings**: Categorize findings by severity (CRITICAL, HIGH, MEDIUM, LOW).
4. **Generate Report**: Output the structured review markdown report with precise line links and recommended fixes.a8dbf2a
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.