Salesforce Apex 代码质量

原名:salesforce-apex-quality

检查 Apex 的批量安全、共享模型、CRUD/FLS 和 SOQL 注入风险。

中文 Skills 技能说明

适合 Salesforce 开发和代码评审。只在授权仓库内分析,建议要给出具体位置和平台依据;生产类、权限和数据变更必须经过沙箱测试与管理员审批。

上游能力依据

上游原始适用说明:Apex code quality guardrails for Salesforce development. Enforces bulk-safety rules (no SOQL/DML in loops), sharing model requirements, CRUD/FLS security, SOQL injection prevention, PNB test coverage (Positive / Negative / Bulk), and modern Apex idioms. Use this skill when reviewing or generating Apex classes, trigger handlers, batch jobs, or test classes to catch governor limit risks, security gaps, and quality issues before deployment.

上游 SKILL.md 主要章节(保留原文标题):

使用边界

先复现问题并固定测试范围,再生成或执行测试。测试通过只能证明已覆盖的场景,不能代替生产环境验收。

作者、翻译与许可证

原作者
GitHub, Inc. 与 awesome-copilot contributors
中文翻译
CEOFans翻译
许可证
MIT
上游来源
https://github.com/github/awesome-copilot/tree/bbaa5872640e6cbae953beb22a71ae337398ca12/skills/salesforce-apex-quality

适用范围

平台:linux、macos、windows;标签:测试与质量、Salesforce Apex 代码质量

安全提示

基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。

如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。