Encore Code Review

•
25
•
Official
协作工具

Reviews Encore.ts backend code to enforce best practices, secure infrastructure declarations, and prevent architectural anti-patterns.

The Encore Code Review skill is a specialized quality assurance tool designed to audit Encore.ts applications before deployment or merging. It systematically scans pull requests and existing codebases to detect critical framework-specific issues, such as declaring infrastructure inside functions, using incorrect service import patterns, and throwing raw errors instead of APIErrors. By highlighting both critical architectural bugs and standard warnings like exposed endpoints or non-idempotent subscription handlers, this skill helps developers maintain secure, reliable, and high-performance cloud-native backends.

主要功能

01Flags architectural warnings like non-idempotent event subscribers and module-level secrets
0225 GitHub stars
03Ensures proper API error handling using standard Encore APIError classes
04Detects dangerous SQL injection risks and enforces template literal escaping
05Audits cross-service communication to ensure the correct use of client imports
06Identifies infrastructure-as-code declared inside local function scopes

使用场景

01Conducting automated pull request reviews and pre-merge audits on backend codebases
02Refactoring legacy Encore.ts microservices to adhere to modern framework best practices
03Onboarding developers by running interactive code-smell and pattern checks