·
Last changedVersion:
This version passed the hardening gate. Hardening applied 4 targeted changes and preserved all other text. Classified findings before hardening: 0. Classified findings closed: 0. Classified findings remaining: 0. Unclassified scanner findings remaining: 0. Review findings closed: 6. Review findings remaining: 1.
None
None
Expand | File | Group | Subtype | Severity | Status |
|---|
No findings available
0 findings
Before creating any files, confirm that the project is an Encore.ts project and that an encore.app file exists. Confirm the target directory with the user before creating encore.service.ts or db.ts files or migrations, especially at the application root.
Every Encore service needs an encore.service.ts file:
A service can be defined at the application root:
Each service lives in its own directory:
Group related services into systems:
Import other services from ~encore/clients. The api helper used below must also be imported from the Encore API package:
This example shows only the call pattern. The order lookup helper and the combined result type are placeholders to define in your own service. For any endpoint exposed publicly, require authentication, check that the caller owns the requested order, and return only the user fields the caller needs rather than the full user record. Give the id parameter an explicit type and validate it, return a not found error when the order is missing, and run the ownership check before calling the other service.
~encore/clients for cross-service calls (never direct imports)encore-architecture when the service boundaries have not been decidedGet started with chainctlchainctl skill install public/encoredev/service:latest
Bring Chainguard's hardening pipeline to your first-party skills — custom rulesets, automated remediation, full audit trail.
skills.cgr.dev/public/github.com/encoredev/encore/service:latest
Apache-2.0
HARDENING.md
LICENSE
SKILL.md