Token导航 LogoToken导航

Agent Skill · 前端设计

salesforce-developer(Salesforce 开发者)

salesforce-developer 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

salesforce-developer 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 6,944。

总安装 441周安装 18GitHub Stars 24下载 141核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:salesforce-developer(Salesforce 开发者)
来源仓库:https://github.com/salesforcediariesbysanket/copilot-skills-salesforce
仓库路径:skills/salesforce-developer
安装命令:
npx skills add https://github.com/salesforcediariesbysanket/copilot-skills-salesforce --skill salesforce-developer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/salesforcediariesbysanket/copilot-skills-salesforce --skill salesforce-developer

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。适合围绕仓库状态、代码变更或协作事项进行整理。可结合来源仓库和原始 README 继续核验具体用法。安装前建议确认权限范围和维护状态。salesforce-developer 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

注意是否会触发联网、命令执行或文件读写。

来源仓库内路径:skills/salesforce-developer

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/salesforcediariesbysanket/copilot-skills-sales…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

salesforce-developer 怎么安装?

在终端执行 npx skills add https://github.com/salesforcediariesbysanket/copilot-skills-salesforce --sk…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

salesforce-developer 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

salesforce-developer 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

salesforce-developer 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

salesforce-developer 用的人多吗?

公开数据是累计安装 441 次,近一周安装 18 次,下载 141 次,GitHub 24 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

salesforce-developer 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
salesforce-developer

Salesforce 开发者 · 本页

44124需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Salesforce Developer Skill

How to Use This Skill

Read the appropriate reference file(s) AND the corresponding coding ruleset before generating code:

Step 1: Read the Coding Rulesets (MANDATORY for all code generation)

Code TypeRuleset File
Apex (classes, triggers, tests, async, integrations)../../Blogs/salesforce-apex-coding-rules.md
LWC (components, templates, JS, events, Jest tests)../../Blogs/salesforce-lwc-coding-rules.md

These rulesets contain comprehensive coding standards, anti-patterns, PMD/ESLint rules, and code examples. Always apply these rules to all generated code.

Step 2: Read the Appropriate Reference File(s)

User's TaskReference File
Apex classes, triggers, testing, DML, async, dynamic Apex, JSON, wrappers, interfaces, debuggingreferences/apex-patterns.md
SOQL/SOSL, query optimization, dynamic SOQL, Big Objects, LDV, cursorsreferences/soql-optimization.md
LWC, Aura, dynamic components, lazy loadingreferences/lwc-guide.md
REST/Bulk/SOAP API, integrations, OAuth, Named Credentialsreferences/api-integration.md
Formulas, validation rulesreferences/formulas-validation.md
Flows, screen flows, record-triggered flows, process automationreferences/flows-automation.md
Security, sharing, CRUD/FLS, permissions, encryptionreferences/security-sharing.md
Deployment, sf CLI, scratch orgs, CI/CD, packagingreferences/deployment-devops.md
Agentforce, AI agents, Prompt Builder, platform events, CDCreferences/agentforce-ai.md

Step 3: Cross-Reference the Architect Skill (for design questions)

For tasks involving architecture, data modeling, integration patterns, or solution design, also read:

  • Architect Skill: ../salesforce-architect-skill/SKILL.md — Well-Architected framework, decision guides, integration patterns
  • Then read the relevant reference files inside ../salesforce-architect-skill/references/ (e.g., data-model-patterns.md, integration-patterns.md, well-architected-checklist.md)

For complex tasks (e.g., "build an LWC that calls Apex with integration"), read multiple reference files from both skills AND both rulesets.


Mandatory Rules

  1. Bulkify all Apex — no SOQL/DML inside loops. Handle 200+ records in triggers.
  2. Governor limits — 100 SOQL (sync), 150 DML, 50k rows, 10s CPU, 6 MB heap.
  3. One trigger per object — handler class with switch on Trigger.operationType.
  4. Security — with sharing on classes, WITH SECURITY_ENFORCED in SOQL, Security.stripInaccessible() for DML.
  5. Testing — 200-record bulk tests, positive/negative/edge, @TestSetup, Test.startTest()/Test.stopTest().
  6. Error handling — try-catch on DML, AuraHandledException for LWC, Database.insert(records, false) for partial success.
  7. Latest GA API version (currently 66.0) on all new metadata. Update when Salesforce releases a new version.
  8. Always include -meta.xml for classes, triggers, LWC.
  9. Use sf CLI (not deprecated sfdx).
  10. Layered architecture — Trigger → Handler → Service → Selector.

LLM Anti-Patterns — NEVER Generate These

These are the most common AI mistakes in Salesforce code. For full code examples of each rule, see references/apex-patterns.md.

Apex Compilation Errors

  • A1: SOQL Field Coverage — Every field referenced in Apex MUST be in the SOQL SELECT clause. This is the #1 AI mistake.
  • A2: Relationship Fields — Parent = dot notation (Account.Name), child = subquery ((SELECT Id FROM Contacts)). Never mix them.
  • A3: Non-Existent Methods — Datetime.addMilliseconds(), String.contains() with regex, List.sort(comparator), Map.values().sort() do NOT exist.
  • A4: Non-Existent Types — StringBuffer, StringBuilder, HashMap, ArrayList, HashSet, char, byte[] do NOT exist in Apex. Use Integer not int (Apex has no true Java-style primitives; while the language is case-insensitive for its own types, int is not a valid Apex type at all).
  • A5: Static vs Instance — String.toLowerCase() is wrong (instance method). myString.valueOf() is wrong (static method).
  • A6: String Utilities — Use String.isBlank() for user input (handles null, empty, whitespace). isEmpty() misses whitespace.

LWC Template Errors

  • L1: No Inline Expressions — LWC templates do NOT support {a + b}, ternary, negation, or object literals. Use JavaScript getters.
  • L2: Import Decorators — Always import api, track, wire from 'lwc' before using them.
  • L3: Event Naming — Custom events must be all lowercase, no hyphens. Parent uses on prefix: onmyevent.

Runtime Errors

  • R1: Null Checks — Always query into a List, then check !isEmpty() before accessing [0].
  • R2: Map.containsKey() — Check before Map.get() to avoid NPE.
  • R3: Recursive Trigger Prevention — Use static Set<Id>, NOT static Boolean. Boolean blocks all subsequent records.
  • R4: Guard DML — Check !list.isEmpty() before DML. Saves CPU even though empty DML doesn't consume limits.
  • R5: MIXED_DML — Cannot DML setup objects (User, Profile) and non-setup objects in same transaction. Use @future or Queueable.

Deployment Errors

  • D1: Permission Set Fields — Only include FLS for fields on the correct object. Skip standard non-FLS fields (Name, Id, CreatedDate).
  • D2: Permission Set Apex Access — Include classAccesses for Apex classes used by LWC via @AuraEnabled.
  • D3: package.xml Order — CustomObject → CustomField → ApexClass → ApexTrigger → Layout → PermissionSet → Profile.

Integration Errors

  • I1: Same-Org Endpoints — Use org's instance URL, not api.salesforce.com.
  • I2: Callout After DML — Cannot make HTTP callout after DML in same transaction. Callout first, or use @future(callout=true).

Agentforce & Flow Errors

  • AF1: @AuraEnabled — Must be public static. With @wire, must have cacheable=true. Class must be with sharing.
  • AF2: @InvocableVariable Types — Primitives, List<String>, List<Id>, SObject, List<SObject>, Apex-defined types. NO Maps.
  • AF3: @JsonAccess — Custom return types for Agentforce actions need @JsonAccess(serializable='always').

Naming Conventions

ElementConventionExample
ClassesPascalCase + suffixAccountTriggerHandler, OrderService, ContactSelector
Test ClassesPascalCase + TestAccountServiceTest
MethodscamelCase, verb-firstgetAccountsByIds(), calculateTotal()
VariablescamelCaseaccountList, totalRevenue
ConstantsUPPER_SNAKE_CASEMAX_RETRY_COUNT, DEFAULT_PAGE_SIZE
Triggers{Object}TriggerAccountTrigger
LWCcamelCase folder, kebab-case markupaccountList → <c-account-list>
Custom ObjectsPascalCase + __cInvoice_Line_Item__c
Custom FieldsPascalCase + __cTotal_Amount__c
Platform EventsPascalCase + __eOrder_Placed__e
Custom MetadataPascalCase + __mdtIntegration_Config__mdt

Governor Limits Quick Reference

ResourceSync LimitAsync Limit
SOQL queries100200
SOQL rows50,00050,000
DML statements150150
DML rows10,00010,000
CPU time10,000 ms60,000 ms
Heap size6 MB12 MB
Callouts100100
Future calls500 (in future)
Queueable jobs501

Async Apex Decision Guide

PatternUse WhenKey Notes
@futureFire-and-forget, calloutsPrimitives only, max 50/txn, can't chain
QueueableChaining, complex types, job ID50/txn sync, 1 child async, Transaction Finalizers
Batch Apex50k+ records200/execute, QueryLocator up to 50M rows
SchedulableRecurring CRON jobs100 scheduled jobs/org
Platform EventsEvent-driven, decoupledEventBus.publish(), RetryableException for retry

For full async patterns, see references/apex-patterns.md.


Order of Execution

  1. Load original record / initialize for insert
  2. Overwrite with new field values
  3. System validation (required fields, formats)
  4. Before-save record-triggered flows
  5. Before triggers
  6. System validation + custom validation rules
  7. Duplicate rules
  8. Record saved to DB (not yet committed)
  9. After triggers
  10. Assignment/auto-response rules
  11. Workflow rules (field updates re-fire triggers ONCE)
  12. Process Builder / flow trigger workflow actions
  13. After-save record-triggered flows
  14. Roll-up summary calculations
  15. Criteria-based sharing evaluation
  16. DML committed
  17. Post-commit: email, async Apex, async flow paths

Key: Before triggers can modify Trigger.new without DML. After triggers CANNOT.


Code Generation Checklist

  1. Every field referenced in code MUST be in the SOQL SELECT clause (Rule A1)
  2. Include -meta.xml for all new classes, triggers, LWC
  3. Latest GA API version (currently 66.0) on all metadata
  4. Include JSDoc in LWC JavaScript and ApexDoc in Apex
  5. Wrap DML in try-catch, use AuraHandledException for LWC
  6. Use WITH SECURITY_ENFORCED in SOQL
  7. Use Database.insert(records, false) for partial success
  8. Null-check query results, Map.get() returns, parent relationship fields
  9. Guard DML with !list.isEmpty()
  10. Use with sharing on user-facing classes, inherited sharing on utilities
  11. Use switch on Trigger.operationType in handlers
  12. Never hardcode IDs — use Schema.describe, Custom Metadata, or Custom Labels
  13. Prefer Assert.areEqual() (modern Assert class) over System.assertEquals() for new code
  14. Test methods use Arrange-Act-Assert with descriptive names

Common Error Solutions

ErrorFix
Too many SOQL queries: 101Move query outside loop, use Maps
MIXED_DML_OPERATIONUse @future or Queueable for setup object DML
Non-selective queryAdd indexed filter, request custom index
You have uncommitted workMove callout before DML or use @future(callout=true)
NullPointerExceptionAdd null checks; query into List + isEmpty()
SObject row was retrieved via SOQL without querying the requested fieldAdd field to SOQL SELECT (Rule A1)
Too many DML statements: 151Collect records in lists, single DML outside loop
UNABLE_TO_LOCK_ROWUse FOR UPDATE or implement retry
Apex CPU time limit exceededOptimize loops, use async Apex

For full error patterns and JSON/debugging details, see references/apex-patterns.md.


Metadata XML Templates

Apex Class

<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>66.0</apiVersion>
    <status>Active</status>
</ApexClass>

Apex Trigger

<?xml version="1.0" encoding="UTF-8"?>
<ApexTrigger xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>66.0</apiVersion>
    <status>Active</status>
</ApexTrigger>

LWC Component

<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>66.0</apiVersion>
    <isExposed>true</isExposed>
    <targets>
        <target>lightning__RecordPage</target>
        <target>lightning__AppPage</target>
        <target>lightning__HomePage</target>
    </targets>
</LightningComponentBundle>

Project Structure

force-app/main/default/
├── classes/         # Handler, Service, Selector, Controller, Test classes + -meta.xml
├── triggers/        # One trigger per object + -meta.xml
├── lwc/             # camelCase folders with html/js/css/js-meta.xml + __tests__/
├── objects/         # fields/, validationRules/, listViews/
├── permissionsets/
├── customMetadata/
└── labels/

Architecture: Trigger (thin) → Handler (routing, recursion guard) → Service (business logic, DML) → Selector (SOQL, with sharing)


Quick Reference Pointers

平台分布

Codex

35.21%
按下载量换算50

Claude

30.89%
按下载量换算44

Cursor

17.06%
按下载量换算24

Gemini CLI

9.6%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills