encore-code-review

Review Encore.ts services for code quality, anti-patterns, and security risks.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Ottric/LINE-DEV-LAB-V2 --skill encore-code-review-ottric
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: encore-code-review
Source: https://github.com/Ottric/LINE-DEV-LAB-V2/tree/main/apps/services/.agents/skills/encore-code-review
Command: npx skills add https://github.com/Ottric/LINE-DEV-LAB-V2 --skill encore-code-review-ottric

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams identify and fix Encore.ts code quality issues, anti-patterns, and potential security risks early in the development lifecycle, reducing bugs and maintenance costs.

Core Features & Use Cases

  • Checklist-driven review: Apply a comprehensive rule set to Encore.ts services for consistent quality.
  • Anti-pattern detection: Flag issues such as infrastructure inside functions, improper imports, and unsafe secret usage.
  • Security and reliability guidance: Recommend safe error handling, proper exposure controls, and idempotent handlers to improve robustness.

Quick Start

Review an Encore.ts service with the provided checklist and generate a structured report of issues and recommended fixes.

Frequently Asked Questions about encore-code-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review Encore.ts code for anti-patterns and security risks?

Encore.ts code review involves checking for explicit types, ES6 imports over require, and safe cross-service calls via ~encore/clients. It flags infrastructure placed inside functions and ensures robust error handling with APIError to improve service reliability.

What are common Encore.ts anti-patterns related to imports and infrastructure?

Encore.ts anti-patterns involve using require instead of ES6 imports and placing infrastructure inside functions. Unsafe cross-service calls bypassing ~encore/clients also trigger review flags for violating standard service architecture.

How should API errors be handled in Encore.ts services?

Handle Encore.ts API errors robustly using APIError to ensure consistent error reporting and proper exposure controls. This approach prevents unreliable runtime behavior when services encounter execution failures.

Can I use this checklist to enforce explicit types and safe secret access in Encore.ts?

Yes, the review checklist enforces explicit TypeScript types and runtime-only secret access controls. It verifies that secrets are accessed safely at runtime, preventing static exposure and reducing potential security vulnerabilities.

Does Encore.ts code review check for idempotent handlers and proper exposure controls?

Yes, Encore.ts code review checks for idempotent handlers and proper exposure controls to improve service robustness. It evaluates data handling and exposure configurations to prevent duplicate processing and secure API endpoints.