platform-apex-generate
Pass
Audited by Gen Agent Trust Hub on Oct 30, 2026
Risk Level: SAFE
Full Analysis
- [SAFE]: The skill enforces "Hard-Stop Constraints" for generated code, specifically mandating the use of bind variables for all dynamic SOQL with user input to prevent SOQL injection attacks.
- [SAFE]: It requires an explicit sharing keyword (
with sharing) on every generated class to prevent the defaultwithout sharingbehavior, which could lead to unauthorized data exposure. - [SAFE]: The generation workflow integrates a mandatory validation phase using a static code analyzer (
run_code_analyzer). This process requires the remediation of all high-severity security violations before the agent completes its task. - [SAFE]: The provided templates for Apex classes (e.g.,
rest-resource.cls) utilizeWITH USER_MODEin queries, adhering to modern Salesforce security best practices for enforcing Object and Field Level Security (CRUD/FLS).
Audit Metadata