@salesforce/afv-skills 1.38.0 → 1.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/skills/agentforce-architecture-analyze/SKILL.md +1 -0
- package/skills/agentforce-bot-upgrade/SKILL.md +1 -0
- package/skills/agentforce-d360-analyze/README.md +2 -2
- package/skills/agentforce-d360-analyze/SKILL.md +7 -6
- package/skills/agentforce-d360-analyze/references/artifacts.md +1 -1
- package/skills/agentforce-d360-analyze/references/dc_dmo_fields.md +4 -4
- package/skills/agentforce-d360-analyze/references/dc_pipeline_contract.md +2 -2
- package/skills/agentforce-generate/SKILL.md +1 -0
- package/skills/agentforce-observe/SKILL.md +1 -0
- package/skills/agentforce-test/SKILL.md +1 -0
- package/skills/automation-flow-generate/SKILL.md +1 -0
- package/skills/automation-sandbox-post-copy-config-generate/SKILL.md +1 -0
- package/skills/automation-sandbox-post-copy-configure/SKILL.md +1 -0
- package/skills/commerce-b2b-open-code-components-integrate/SKILL.md +11 -10
- package/skills/commerce-b2b-open-code-components-replace/SKILL.md +1 -0
- package/skills/commerce-b2b-store-create/SKILL.md +4 -4
- package/skills/commerce-b2b-store-create/references/store-vs-storefront.md +2 -2
- package/skills/data360-activate/SKILL.md +1 -1
- package/skills/data360-code-extension-generate/SKILL.md +1 -0
- package/skills/data360-connect/SKILL.md +1 -1
- package/skills/data360-harmonize/SKILL.md +1 -1
- package/skills/data360-orchestrate/SKILL.md +1 -1
- package/skills/data360-prepare/SKILL.md +1 -1
- package/skills/data360-query/SKILL.md +1 -1
- package/skills/data360-schema-get/SKILL.md +1 -0
- package/skills/data360-segment/SKILL.md +1 -1
- package/skills/design-systems-slds-apply/SKILL.md +1 -0
- package/skills/design-systems-slds-validate/SKILL.md +1 -0
- package/skills/design-systems-slds-validate/references/quality-checks.md +5 -5
- package/skills/design-systems-slds2-migrate/SKILL.md +5 -4
- package/skills/design-systems-slds2-migrate/references/color-hooks-decision-guide.md +1 -1
- package/skills/design-systems-slds2-migrate/references/examples.md +3 -3
- package/skills/design-systems-slds2-migrate/references/rule-lwc-token-to-slds-hook.md +1 -1
- package/skills/design-systems-slds2-migrate/references/rule-no-deprecated-tokens-slds1.md +2 -2
- package/skills/design-systems-slds2-migrate/references/rule-no-hardcoded-values.md +2 -2
- package/skills/design-systems-slds2-migrate/references/rule-no-slds-class-overrides.md +1 -1
- package/skills/dx-apexguru-scan/SKILL.md +1 -0
- package/skills/dx-app-analytics-query/SKILL.md +1 -0
- package/skills/dx-code-analyzer-configure/SKILL.md +6 -5
- package/skills/dx-code-analyzer-configure/references/ci-cd-templates.md +2 -2
- package/skills/dx-code-analyzer-custom-rule-create/SKILL.md +27 -26
- package/skills/dx-code-analyzer-run/SKILL.md +10 -9
- package/skills/dx-code-analyzer-run/references/post-scan-workflows.md +5 -5
- package/skills/dx-code-analyzer-run/references/vendor-file-handling.md +2 -2
- package/skills/dx-devops-pipeline-manage/SKILL.md +1 -0
- package/skills/dx-devops-promote/SKILL.md +1 -0
- package/skills/dx-devops-test-failures-analyze/SKILL.md +1 -0
- package/skills/dx-devops-test-pipeline-configure/SKILL.md +1 -0
- package/skills/dx-devops-test-suite-assignments-configure/SKILL.md +1 -0
- package/skills/dx-devops-test-suite-run/SKILL.md +1 -0
- package/skills/dx-devops-work-item-manage/SKILL.md +1 -0
- package/skills/dx-org-devhub-configure/SKILL.md +1 -0
- package/skills/dx-org-manage/SKILL.md +1 -0
- package/skills/dx-org-permission-set-assign/SKILL.md +1 -0
- package/skills/dx-org-switch/SKILL.md +1 -1
- package/skills/dx-org-trial-expiration-check/SKILL.md +1 -0
- package/skills/dx-pkg-post-install-configure/SKILL.md +1 -0
- package/skills/experience-aura-lwc-migrate/SKILL.md +1 -0
- package/skills/experience-cms-brand-apply/SKILL.md +1 -1
- package/skills/experience-content-media-search/SKILL.md +18 -18
- package/skills/experience-content-media-stock-image-search/SKILL.md +1 -0
- package/skills/experience-lds-best-practices-apply/SKILL.md +1 -0
- package/skills/experience-lds-data-requirements-generate/SKILL.md +1 -0
- package/skills/experience-lds-graphql-generate/SKILL.md +1 -0
- package/skills/experience-lwc-accessibility-validate/SKILL.md +1 -0
- package/skills/experience-lwc-base-components-integrate/SKILL.md +1 -0
- package/skills/experience-lwc-design-generate/SKILL.md +1 -0
- package/skills/experience-lwc-generate/SKILL.md +1 -0
- package/skills/experience-lwc-rtl-validate/SKILL.md +1 -0
- package/skills/experience-lwc-runtime-observe/SKILL.md +1 -0
- package/skills/experience-lwc-security-validate/SKILL.md +1 -0
- package/skills/experience-lwc-typescript-migrate/SKILL.md +1 -0
- package/skills/experience-lwr-site-generate/SKILL.md +1 -0
- package/skills/experience-ui-bundle-2gp-deploy/SKILL.md +1 -0
- package/skills/experience-ui-bundle-agentforce-client-generate/SKILL.md +1 -0
- package/skills/experience-ui-bundle-app-coordinate/SKILL.md +1 -0
- package/skills/experience-ui-bundle-custom-app-generate/SKILL.md +1 -0
- package/skills/experience-ui-bundle-deploy/SKILL.md +1 -0
- package/skills/experience-ui-bundle-features-generate/SKILL.md +1 -0
- package/skills/experience-ui-bundle-file-upload-generate/SKILL.md +1 -0
- package/skills/experience-ui-bundle-frontend-generate/SKILL.md +1 -0
- package/skills/experience-ui-bundle-localize/SKILL.md +1 -0
- package/skills/experience-ui-bundle-metadata-generate/SKILL.md +1 -0
- package/skills/experience-ui-bundle-mfa-configure/SKILL.md +1 -0
- package/skills/experience-ui-bundle-project-generate/SKILL.md +1 -0
- package/skills/experience-ui-bundle-salesforce-data-access/SKILL.md +1 -0
- package/skills/experience-ui-bundle-site-generate/SKILL.md +1 -0
- package/skills/experience-ui-bundle-site-generate/references/configure-metadata-custom-site.md +1 -1
- package/skills/experience-ui-bundle-site-generate/references/configure-metadata-digital-experience-bundle.md +1 -1
- package/skills/experience-ui-bundle-site-generate/references/configure-metadata-digital-experience-config.md +1 -1
- package/skills/experience-ui-bundle-site-generate/references/configure-metadata-digital-experience.md +1 -1
- package/skills/experience-ui-bundle-site-generate/references/configure-metadata-network.md +1 -1
- package/skills/experience-ui-bundle-site-generate/references/update-site-urls.md +1 -1
- package/skills/external-diagram-mermaid-generate/SKILL.md +1 -1
- package/skills/integration-connectivity-connected-app-configure/SKILL.md +1 -0
- package/skills/integration-connectivity-generate/SKILL.md +1 -0
- package/skills/integration-eventing-cdc-configure/SKILL.md +1 -0
- package/skills/integration-eventing-subscription-configure/SKILL.md +1 -0
- package/skills/integration-eventing-subscription-configure/references/delete-guide.md +1 -1
- package/skills/mobile-apps-create/SKILL.md +1 -0
- package/skills/mobile-platform-native-capabilities-integrate/SKILL.md +1 -0
- package/skills/mobile-platform-offline-validate/SKILL.md +5 -4
- package/skills/omnistudio-callable-apex-generate/SKILL.md +1 -0
- package/skills/omnistudio-datamapper-generate/SKILL.md +1 -0
- package/skills/omnistudio-datapacks-deploy/SKILL.md +1 -0
- package/skills/omnistudio-dependencies-analyze/SKILL.md +1 -0
- package/skills/omnistudio-epc-catalog-generate/SKILL.md +1 -0
- package/skills/omnistudio-flexcard-generate/SKILL.md +1 -0
- package/skills/omnistudio-integration-procedure-generate/SKILL.md +1 -0
- package/skills/omnistudio-omniscript-generate/SKILL.md +1 -0
- package/skills/platform-agentexchange-partner-offers-configure/SKILL.md +1 -0
- package/skills/platform-agentsetup-categories-fetch/SKILL.md +1 -0
- package/skills/platform-apex-generate/SKILL.md +1 -0
- package/skills/platform-apex-logs-debug/SKILL.md +1 -0
- package/skills/platform-apex-test-generate/SKILL.md +1 -0
- package/skills/platform-apex-test-run/SKILL.md +1 -0
- package/skills/platform-custom-application-generate/SKILL.md +1 -0
- package/skills/platform-custom-field-generate/SKILL.md +1 -0
- package/skills/platform-custom-lightning-type-generate/SKILL.md +1 -0
- package/skills/platform-custom-object-generate/SKILL.md +1 -0
- package/skills/platform-custom-report-type-generate/SKILL.md +1 -0
- package/skills/platform-custom-tab-generate/SKILL.md +1 -0
- package/skills/platform-data-and-tooling-api-context-get/SKILL.md +1 -0
- package/skills/platform-data-manage/SKILL.md +1 -0
- package/skills/platform-dataspace-access-configure/SKILL.md +1 -0
- package/skills/platform-docs-get/SKILL.md +1 -0
- package/skills/platform-encryption-configure/SKILL.md +1 -0
- package/skills/platform-flexipage-generate/SKILL.md +1 -0
- package/skills/platform-lightning-app-coordinate/SKILL.md +10 -9
- package/skills/platform-lightning-type-widget-coordinate/SKILL.md +1 -0
- package/skills/platform-list-view-generate/SKILL.md +1 -0
- package/skills/platform-mcp-tool-widget-coordinate/SKILL.md +1 -0
- package/skills/platform-metadata-api-context-get/SKILL.md +1 -0
- package/skills/platform-metadata-deploy/SKILL.md +1 -0
- package/skills/platform-metadata-retrieve/SKILL.md +1 -1
- package/skills/platform-models-api-configure/SKILL.md +1 -0
- package/skills/platform-permission-set-generate/SKILL.md +1 -0
- package/skills/platform-policy-rule-generate/SKILL.md +1 -0
- package/skills/platform-report-generate/SKILL.md +1 -0
- package/skills/platform-sandbox-configure/SKILL.md +1 -0
- package/skills/platform-sharing-owd-configure/SKILL.md +1 -0
- package/skills/platform-sharing-rules-generate/SKILL.md +1 -0
- package/skills/platform-soql-query/SKILL.md +1 -0
- package/skills/platform-tracing-agentforce-configure/SKILL.md +1 -0
- package/skills/platform-tracing-configure/SKILL.md +1 -0
- package/skills/platform-trust-archive-manage/SKILL.md +1 -0
- package/skills/platform-validation-rule-generate/SKILL.md +1 -0
- package/skills/platform-value-set-generate/SKILL.md +1 -0
- package/skills/platform-widget-generate/SKILL.md +1 -0
- package/skills/sales-agentforce-pipeline-management-configure/SKILL.md +1 -0
- package/skills/service-digital-engagement-channel-configure/SKILL.md +1 -0
- package/skills/service-digital-engagement-deployment-configure/SKILL.md +1 -0
- package/skills/service-digital-engagement-messaging-site-integrate/SKILL.md +1 -0
- package/skills/service-helpagent-coordinate/SKILL.md +1 -0
- package/skills/service-itsm-agentic-setup-cmdb-access-assign/SKILL.md +1 -0
- package/skills/service-itsm-agentic-setup-cmdb-bundle-deploy/SKILL.md +1 -0
- package/skills/service-itsm-agentic-setup-cmdb-configure/SKILL.md +1 -0
- package/skills/service-itsm-agentic-setup-cmdb-coordinate/SKILL.md +1 -0
- package/skills/service-itsm-agentic-setup-cmdb-discovery-configure/SKILL.md +1 -0
- package/skills/service-itsm-incident-priority-configure/SKILL.md +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/afv-skills",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.40.0",
|
|
4
4
|
"description": "Salesforce skills for Agentforce Vibes",
|
|
5
5
|
"license": "CC-BY-NC-4.0",
|
|
6
6
|
"files": [
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"registry": "https://registry.npmjs.org"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@salesforce/ui-bundle-template-app-react-sample-b2e": "^
|
|
15
|
-
"@salesforce/ui-bundle-template-app-react-sample-b2x": "^
|
|
14
|
+
"@salesforce/ui-bundle-template-app-react-sample-b2e": "^11.57.2",
|
|
15
|
+
"@salesforce/ui-bundle-template-app-react-sample-b2x": "^11.57.2",
|
|
16
16
|
"@salesforce/webapp-template-app-react-sample-b2e-experimental": "^1.117.1",
|
|
17
17
|
"@salesforce/webapp-template-app-react-sample-b2x-experimental": "^1.117.1",
|
|
18
18
|
"@types/js-yaml": "^4.0.9",
|
|
@@ -3,6 +3,7 @@ name: agentforce-architecture-analyze
|
|
|
3
3
|
description: "Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA plugins. Renders a human-readable architecture document and Mermaid invocation graph from design-time metadata (not runtime audit rows). TRIGGER when user asks to describe, diagram, inventory, audit, document, or diff (e.g. v3 vs v5) the architecture / action tree / topic structure / tool inventory of a specific agent by agent API name in a specific org. DO NOT TRIGGER for runtime session traces, conversation transcripts, generation timings, or gateway audit chains — this skill reads design-time metadata only (use agentforce-d360-analyze for session traces)."
|
|
4
4
|
metadata:
|
|
5
5
|
version: "1.0"
|
|
6
|
+
domains: ["Agentforce"]
|
|
6
7
|
minApiVersion: "64.0"
|
|
7
8
|
relatedSkills:
|
|
8
9
|
- "agentforce-d360-analyze"
|
|
@@ -4,6 +4,7 @@ description: "Use this skill to Upgrade Einstein Bots into Agentforce agents end
|
|
|
4
4
|
argument-hint: "[--mode <online|offline>] [--org-alias <org-alias> --bots <bot1:v1,bot2:v2,...> | --offline-dir <offline-dir> [--bots <bot1,bot2,...>]] [--interactive <true|false>]"
|
|
5
5
|
metadata:
|
|
6
6
|
version: "1.0"
|
|
7
|
+
domains: ["Agentforce"]
|
|
7
8
|
minApiVersion: "63.0"
|
|
8
9
|
relatedSkills:
|
|
9
10
|
- "agentforce-generate"
|
|
@@ -50,7 +50,7 @@ See `SKILL.md` for the full TRIGGER conditions, flag table, and the "DC-only bli
|
|
|
50
50
|
|
|
51
51
|
Three stages, each independently runnable:
|
|
52
52
|
|
|
53
|
-
```
|
|
53
|
+
```text
|
|
54
54
|
fetch_dc.py → 24 dc.<name>.json + dc._session_manifest.json (DC Query REST waterfall)
|
|
55
55
|
assemble_dc.py → dc._session_tree.json (in-memory hierarchical join)
|
|
56
56
|
render_dc.py → dc._session_summary.md (markdown rendering)
|
|
@@ -87,7 +87,7 @@ For design-time architecture questions (topic/action tree, flow inventory, Apex
|
|
|
87
87
|
|
|
88
88
|
## Layout
|
|
89
89
|
|
|
90
|
-
```
|
|
90
|
+
```text
|
|
91
91
|
agentforce-d360-analyze/
|
|
92
92
|
├── SKILL.md ← runtime-parsed entry point (TRIGGER / DO NOT TRIGGER, flags, prompts)
|
|
93
93
|
├── README.md ← this file
|
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
name: agentforce-d360-analyze
|
|
3
3
|
description: "Data Cloud 360° view of a single Agentforce session. TRIGGER when user asks to trace, inspect, summarize, or describe a specific Agentforce session by session id (Agent Session UUID `019d…` or MessagingSession id `0Mw…`). Also triggers on session discovery — find/list/search sessions by time, agent, channel, outcome, or conversation text — when the user has no session id yet. DO NOT TRIGGER for design-time architecture questions (use agentforce-architecture-analyze instead) or for runtime perf/latency/SLO questions that require platform telemetry beyond Data Cloud."
|
|
4
4
|
metadata:
|
|
5
|
+
version: "1.0"
|
|
6
|
+
domains: ["Agentforce", "Data 360"]
|
|
7
|
+
minApiVersion: "66.0"
|
|
8
|
+
relatedSkills:
|
|
9
|
+
- "agentforce-architecture-analyze"
|
|
5
10
|
cliTools:
|
|
6
11
|
- tool: ["python3"]
|
|
7
12
|
semver: ">=3.10.0"
|
|
8
13
|
- tool: ["sf"]
|
|
9
14
|
semver: ">=2.0.0"
|
|
10
|
-
relatedSkills:
|
|
11
|
-
- "agentforce-architecture-analyze"
|
|
12
|
-
version: "1.0"
|
|
13
|
-
minApiVersion: "66.0"
|
|
14
15
|
---
|
|
15
16
|
|
|
16
17
|
# agentforce-d360-analyze — Data Cloud 360° session view
|
|
@@ -72,7 +73,7 @@ python3 "$prefix/discover_sessions.py" --org <alias> [filters...]
|
|
|
72
73
|
|
|
73
74
|
## Pipeline — three stages
|
|
74
75
|
|
|
75
|
-
```
|
|
76
|
+
```text
|
|
76
77
|
fetch_dc.py → 24 dc.<name>.json + dc._session_manifest.json (DC Query REST waterfall, 5 waves)
|
|
77
78
|
assemble_dc.py → dc._session_tree.json (pure in-memory hierarchical join)
|
|
78
79
|
render_dc.py → dc._session_summary.md (human summary, multi-section)
|
|
@@ -92,7 +93,7 @@ Flags: `--verbose` for per-DMO row counts; `--no-assemble` / `--no-render` to st
|
|
|
92
93
|
|
|
93
94
|
Everything lands under `~/.vibe/data/agentforce-d360-analyze/<org_id15>/<agent>__<ver>/<session_id>/` (default; override with `--data-dir <path>`):
|
|
94
95
|
|
|
95
|
-
```
|
|
96
|
+
```text
|
|
96
97
|
dc.sessions.json dc.steps.json dc.gateway_requests.json
|
|
97
98
|
dc.interactions.json dc.messages.json dc.gateway_responses.json
|
|
98
99
|
dc.participants.json dc.generations.json dc.gateway_request_llm.json
|
|
@@ -5,7 +5,7 @@ Every successful trace lands artifacts under
|
|
|
5
5
|
Re-running the same `(org, sid)` overwrites in place. Listed below in
|
|
6
6
|
the order they're produced.
|
|
7
7
|
|
|
8
|
-
```
|
|
8
|
+
```text
|
|
9
9
|
~/.vibe/data/agentforce-d360-analyze/<org_id15>/<agent>__<ver>/<sid>/
|
|
10
10
|
├── dc._session_manifest.json ← per-query counts + session_shape + empties
|
|
11
11
|
├── dc._session_tree.json ← hierarchical join (primary artifact)
|
|
@@ -59,7 +59,7 @@ Per-run row counts, empty reasons, and join paths are recorded in
|
|
|
59
59
|
Legend: ★ = session-FK direct (one hop) ▸ = polymorphic `parent__c`
|
|
60
60
|
⚠ = requires feature provisioning
|
|
61
61
|
|
|
62
|
-
```
|
|
62
|
+
```text
|
|
63
63
|
Session (ssot__AIAgentSession__dlm, PK ssot__Id__c)
|
|
64
64
|
│
|
|
65
65
|
├── ★ Participant (ssot__AiAgentSessionId__c)
|
|
@@ -135,7 +135,7 @@ All 24 entries below are in the `scripts/fetch_dc.py` waterfall — the
|
|
|
135
135
|
join expressions are exactly what the script runs, and each one has a
|
|
136
136
|
`.sql` template under `assets/dc/`.
|
|
137
137
|
|
|
138
|
-
```
|
|
138
|
+
```text
|
|
139
139
|
1. sessions WHERE ssot__Id__c = {sid}
|
|
140
140
|
2. interactions WHERE ssot__AiAgentSessionId__c = {sid}
|
|
141
141
|
3. messages WHERE ssot__AiAgentSessionId__c = {sid}
|
|
@@ -370,7 +370,7 @@ schemas are documented in the per-DMO sections below.
|
|
|
370
370
|
`turnId__c` column (verified via live `describe`; 11 fields total,
|
|
371
371
|
none reference session/trace/turn). The canonical join path is:
|
|
372
372
|
|
|
373
|
-
```
|
|
373
|
+
```text
|
|
374
374
|
Session → Interaction → Step (.ssot__GenerationId__c) → Generation (.generationId__c)
|
|
375
375
|
```
|
|
376
376
|
|
|
@@ -432,7 +432,7 @@ Richer than `GenAIGeneration` — carries prompt text, tokens, model, and
|
|
|
432
432
|
session/user/bot identifiers. **Forward entry point for the entire audit
|
|
433
433
|
chain**, reached from Session via `sessionId__c`:
|
|
434
434
|
|
|
435
|
-
```
|
|
435
|
+
```text
|
|
436
436
|
Session.ssot__Id__c → GatewayRequest.sessionId__c LIKE '%<sid>%'
|
|
437
437
|
```
|
|
438
438
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
The DC pipeline for a single Agentforce session runs as three stages in
|
|
4
4
|
sequence:
|
|
5
5
|
|
|
6
|
-
```
|
|
6
|
+
```text
|
|
7
7
|
fetch_dc.py → 24 dc.<name>.json artifacts + dc._session_manifest.json
|
|
8
8
|
assemble_dc.py → dc._session_tree.json (pure in-memory join)
|
|
9
9
|
render_dc.py → dc._session_summary.md (pure tree reader)
|
|
@@ -71,7 +71,7 @@ Per-field schema for every DMO lives in
|
|
|
71
71
|
The "normal" path that nests a `GatewayRequest` under its owning
|
|
72
72
|
`LLM_STEP` in the tree. Every edge is a platform-sanctioned forward FK:
|
|
73
73
|
|
|
74
|
-
```
|
|
74
|
+
```text
|
|
75
75
|
Step.ssot__GenerationId__c → Generation.generationId__c
|
|
76
76
|
Generation.generationResponseId__c → GatewayResponse.generationResponseId__c
|
|
77
77
|
GatewayResponse.generationRequestId__c → GatewayRequest.gatewayRequestId__c
|
|
@@ -3,6 +3,7 @@ name: agentforce-generate
|
|
|
3
3
|
description: "Build, modify, audit, repair, optimize, debug, and deploy agents with Agentforce Agent Script. TRIGGER when: user creates, reviews, or changes .agent files or aiAuthoringBundle metadata; asks to fix AgentScript, audit an existing agent, run an AgentScript health check, common-pitfall review, or baseline-versus-candidate repair loop; changes a response, action, subagent, route, state flow, or Agent Spec; previews, debugs, deploys, publishes, or tests agents; uses sf agent generate/preview/publish/test; or manages Agentforce MCP servers, tools, assets, or authentication. DO NOT TRIGGER when: Apex, Flow, Prompt Template, Experience Cloud, or general Salesforce CLI work is unrelated to Agent Script; or the primary input is a production session or trace ID rather than an agent artifact."
|
|
4
4
|
metadata:
|
|
5
5
|
version: "0.11"
|
|
6
|
+
domains: ["Agentforce"]
|
|
6
7
|
minApiVersion: "66.0"
|
|
7
8
|
relatedSkills:
|
|
8
9
|
- "agentforce-observe"
|
|
@@ -3,6 +3,7 @@ name: automation-flow-generate
|
|
|
3
3
|
description: "Generate Salesforce Flows using the MCP tool execute_metadata_action. Use when the user asks to create, build, or generate a flow — including Screen, Autolaunched, Record-Triggered (before/after-save), Scheduled. Also trigger for flow-like requests such as \"when a record is created\", \"trigger daily at\", \"send an email when\", \"update the field when\", \"automate\", \"workflow\", or \"flow XML/metadata\". This is the only skill for Salesforce Flow generation."
|
|
4
4
|
metadata:
|
|
5
5
|
version: "1.0"
|
|
6
|
+
domains: ["Automation"]
|
|
6
7
|
minApiVersion: "60.0"
|
|
7
8
|
---
|
|
8
9
|
|
|
@@ -3,6 +3,7 @@ name: automation-sandbox-post-copy-config-generate
|
|
|
3
3
|
description: "Generate the JSON config file that the Salesforce sandbox post-copy automation tool consumes, from a customer SOP in any format (PDF, xlsx, csv, JSON, docx, Markdown, plain text, or a screenshot of an endpoint table). Use when the user asks to create, build, generate, produce, or convert a post-copy or post-refresh automation config — turning a sandbox-refresh SOP into a JSON array of OutboundMessages and RemoteSiteSettings entries with ConfigurationName, Label, Fields, IsActive, and ExecutionOrder. Also trigger for phrasings like \"post-copy config\", \"post-refresh automation JSON\", \"update the outbound message (OBM) endpoints after refresh\", \"convert this SOP to config\", \"remote site settings JSON\", \"refresh planner to JSON\", or \"sandbox refresh config\". DO NOT TRIGGER when: user wants to deploy the generated config to an org (use platform-metadata-deploy), or apply/execute/run/dry-run the post-copy automation JSON against a sandbox (use automation-sandbox-post-copy-configure)."
|
|
4
4
|
metadata:
|
|
5
5
|
version: "1.0"
|
|
6
|
+
domains: ["Automation"]
|
|
6
7
|
---
|
|
7
8
|
|
|
8
9
|
# Automation: Sandbox Post-Copy Config Generate
|
|
@@ -3,15 +3,16 @@ name: commerce-b2b-open-code-components-integrate
|
|
|
3
3
|
description: "Integrate Salesforce B2B Commerce open source components from GitHub into B2B Commerce stores. Use when users mention \"integrate open code components\", \"open source B2B commerce\", \"add open code components\", \"forcedotcom/b2b-commerce-open-source-components\", or want to add open source commerce components to their store. Copies all components and labels so they become available in Experience Builder."
|
|
4
4
|
allowed-tools: Bash(git clone:*) Bash(cp:*) Read
|
|
5
5
|
metadata:
|
|
6
|
+
version: "1.0"
|
|
7
|
+
domains: ["Commerce", "Experience"]
|
|
8
|
+
minApiVersion: "56.0"
|
|
9
|
+
relatedSkills:
|
|
10
|
+
- "commerce-b2b-store-create"
|
|
6
11
|
cliTools:
|
|
7
12
|
- tool: ["git"]
|
|
8
13
|
semver: ">=2.0.0"
|
|
9
14
|
- tool: ["sf"]
|
|
10
15
|
semver: ">=2.0.0"
|
|
11
|
-
relatedSkills:
|
|
12
|
-
- "commerce-b2b-store-create"
|
|
13
|
-
version: "1.0"
|
|
14
|
-
minApiVersion: "56.0"
|
|
15
16
|
---
|
|
16
17
|
|
|
17
18
|
## When to Use This Skill
|
|
@@ -98,8 +99,8 @@ Copy all components and labels from cloned repo to site directory:
|
|
|
98
99
|
5. Report: "Copied X components and Y label sets"
|
|
99
100
|
|
|
100
101
|
**Output:**
|
|
101
|
-
```
|
|
102
|
-
|
|
102
|
+
```text
|
|
103
|
+
Integration Complete!
|
|
103
104
|
|
|
104
105
|
Copied: X components and Y label sets to <store-name>
|
|
105
106
|
|
|
@@ -125,7 +126,7 @@ Next Steps:
|
|
|
125
126
|
**User:** "1"
|
|
126
127
|
|
|
127
128
|
**Agent:** "I'm checking if your project already has B2B store metadata locally..."
|
|
128
|
-
-
|
|
129
|
+
- [done] Found store metadata for My_B2B_Store1
|
|
129
130
|
|
|
130
131
|
**Agent:** "I'm checking if open code components already exist in your store's site metadata..."
|
|
131
132
|
|
|
@@ -138,10 +139,10 @@ Next Steps:
|
|
|
138
139
|
|
|
139
140
|
**Agent:** "I'm now copying all open code LWC components from the cloned repository into your store's site metadata directory..."
|
|
140
141
|
**Agent:** "I'm copying the associated label files that these components need..."
|
|
141
|
-
-
|
|
142
|
+
- [done] Copied 45 components and 38 label sets
|
|
142
143
|
|
|
143
|
-
```
|
|
144
|
-
|
|
144
|
+
```text
|
|
145
|
+
Integration Complete!
|
|
145
146
|
|
|
146
147
|
Copied: 45 components and 38 label sets to My_B2B_Store1
|
|
147
148
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: commerce-b2b-store-create
|
|
3
3
|
description: "Interactive workflow to create Commerce B2B Stores and retrieve storefront metadata. Use when users want to: create B2B Commerce stores, build Commerce storefronts, set up B2B stores from Vibes, retrieve Commerce metadata, deploy Commerce experiences, work with DigitalExperienceBundle for Commerce."
|
|
4
|
-
compatibility: "Requires Commerce licenses, Experience Cloud, Salesforce CLI"
|
|
5
4
|
metadata:
|
|
6
5
|
version: "1.0"
|
|
6
|
+
domains: ["Commerce", "Experience"]
|
|
7
7
|
minApiVersion: "56.0"
|
|
8
8
|
cliTools:
|
|
9
9
|
- tool: ["sf"]
|
|
@@ -101,7 +101,7 @@ sf org list metadata --metadata-type DigitalExperienceConfig --json
|
|
|
101
101
|
- Explain naming (underscores, number suffixes)
|
|
102
102
|
|
|
103
103
|
**Example output:**
|
|
104
|
-
```
|
|
104
|
+
```text
|
|
105
105
|
Available Digital Experience sites:
|
|
106
106
|
1. My_B2B_Store1
|
|
107
107
|
2. Partner_Portal
|
|
@@ -134,7 +134,7 @@ sf project retrieve start -m DigitalExperienceBundle:site/<selected-store-name>
|
|
|
134
134
|
- List retrieved directory structure
|
|
135
135
|
|
|
136
136
|
**Expected output:**
|
|
137
|
-
```
|
|
137
|
+
```text
|
|
138
138
|
Retrieved: force-app/main/default/digitalExperiences/site/My_B2B_Store1/
|
|
139
139
|
├── My_B2B_Store1.digitalExperience-meta.xml
|
|
140
140
|
├── sfdc_cms__view/ (home, current_cart, detail_*, list_*, etc.)
|
|
@@ -149,7 +149,7 @@ Retrieved: force-app/main/default/digitalExperiences/site/My_B2B_Store1/
|
|
|
149
149
|
|
|
150
150
|
**Agent provides:**
|
|
151
151
|
|
|
152
|
-
|
|
152
|
+
**Metadata retrieved successfully!**
|
|
153
153
|
|
|
154
154
|
**Next steps:**
|
|
155
155
|
- Customize with custom LWCs or branding changes
|
|
@@ -121,7 +121,7 @@ Understanding the distinction between Commerce Store and Storefront is critical
|
|
|
121
121
|
|
|
122
122
|
### Step 1: Create Commerce Store (Must Be First)
|
|
123
123
|
|
|
124
|
-
```
|
|
124
|
+
```text
|
|
125
125
|
User Interface (Commerce App)
|
|
126
126
|
↓
|
|
127
127
|
WebStore Record Created
|
|
@@ -144,7 +144,7 @@ Commerce Components Configured
|
|
|
144
144
|
|
|
145
145
|
### Step 2: Retrieve Storefront Metadata
|
|
146
146
|
|
|
147
|
-
```
|
|
147
|
+
```sh
|
|
148
148
|
sf org list metadata --metadata-type DigitalExperienceConfig
|
|
149
149
|
↓
|
|
150
150
|
Select Store from List
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: data360-activate
|
|
3
3
|
description: "Salesforce Data Cloud Act phase. Use this skill when the user manages activations, activation targets, data actions, or downstream delivery of Data Cloud audiences and data. TRIGGER when: user manages activations, activation targets, data actions, or downstream delivery of Data Cloud audiences and data. DO NOT TRIGGER when: the task is segment creation (use data360-segment), data retrieval/search work (use data360-query), or STDM/session tracing (use agentforce-observe)."
|
|
4
|
-
compatibility: "Requires an external community sf data360 CLI plugin and a Data Cloud-enabled org"
|
|
5
4
|
metadata:
|
|
6
5
|
cliTools:
|
|
7
6
|
- tool: ["node"]
|
|
@@ -16,6 +15,7 @@ metadata:
|
|
|
16
15
|
- "data360-query"
|
|
17
16
|
- "data360-segment"
|
|
18
17
|
version: "1.0"
|
|
18
|
+
domains: ["Data 360"]
|
|
19
19
|
---
|
|
20
20
|
|
|
21
21
|
# data360-activate: Data Cloud Act Phase
|
|
@@ -3,6 +3,7 @@ name: data360-code-extension-generate
|
|
|
3
3
|
description: "Develop and deploy Data Cloud Code Extensions using SF CLI plugin. Use this skill when creating custom Python transformations for Data Cloud, deploying code extensions, or testing data transformations. Supports init, run, scan, and deploy operations."
|
|
4
4
|
metadata:
|
|
5
5
|
version: "1.0"
|
|
6
|
+
domains: ["Data 360", "Developer Experience"]
|
|
6
7
|
relatedSkills:
|
|
7
8
|
- "data360-schema-get"
|
|
8
9
|
cliTools:
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: data360-connect
|
|
3
3
|
description: "Salesforce Data Cloud Connect phase. Use this skill when the user manages Data Cloud connections, connectors, or sets up a new source system. TRIGGER when: user manages Data Cloud connections, connectors, connector metadata, tests a connection, browses source objects or databases, or sets up a new source system. DO NOT TRIGGER when: the task is about data streams or DLOs (use data360-prepare), DMOs or identity resolution (use data360-harmonize), retrieval/search (use data360-query), or STDM telemetry (use agentforce-observe)."
|
|
4
|
-
compatibility: "Requires the sf data360 CLI plugin and a Data Cloud-enabled org"
|
|
5
4
|
metadata:
|
|
6
5
|
cliTools:
|
|
7
6
|
- tool: ["node"]
|
|
@@ -15,6 +14,7 @@ metadata:
|
|
|
15
14
|
- "data360-prepare"
|
|
16
15
|
- "data360-query"
|
|
17
16
|
version: "1.0"
|
|
17
|
+
domains: ["Data 360"]
|
|
18
18
|
---
|
|
19
19
|
|
|
20
20
|
# data360-connect: Data Cloud Connect Phase
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: data360-harmonize
|
|
3
3
|
description: "Salesforce Data Cloud Harmonize phase. Use this skill when the user works with DMOs, mappings, relationships, identity resolution, unified profiles, data graphs, or universal IDs. TRIGGER when: user works with DMOs, mappings, relationships, identity resolution, unified profiles, data graphs, or universal IDs. DO NOT TRIGGER when: the task is only about streams/DLOs (use data360-prepare), segments/insights (use data360-segment), retrieval/search (use data360-query), or STDM/session tracing (use agentforce-observe)."
|
|
4
|
-
compatibility: "Requires an external community sf data360 CLI plugin and a Data Cloud-enabled org"
|
|
5
4
|
metadata:
|
|
6
5
|
cliTools:
|
|
7
6
|
- tool: ["node"]
|
|
@@ -15,6 +14,7 @@ metadata:
|
|
|
15
14
|
- "data360-query"
|
|
16
15
|
- "data360-segment"
|
|
17
16
|
version: "1.0"
|
|
17
|
+
domains: ["Data 360"]
|
|
18
18
|
---
|
|
19
19
|
|
|
20
20
|
# data360-harmonize: Data Cloud Harmonize Phase
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: data360-orchestrate
|
|
3
3
|
description: "Salesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. Use this skill when the user needs a multi-step Data Cloud pipeline, cross-phase troubleshooting, or data space and data kit management. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase sf data360 workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching phase-specific skill), the task is STDM/session tracing/parquet telemetry (use agentforce-observe), standard CRM SOQL (use platform-soql-query), or Apex implementation (use platform-apex-generate)."
|
|
4
|
-
compatibility: "Requires an external community sf data360 CLI plugin and a Data Cloud-enabled org"
|
|
5
4
|
metadata:
|
|
6
5
|
cliTools:
|
|
7
6
|
- tool: ["curl"]
|
|
@@ -34,6 +33,7 @@ metadata:
|
|
|
34
33
|
- "platform-metadata-deploy"
|
|
35
34
|
- "platform-soql-query"
|
|
36
35
|
version: "1.0"
|
|
36
|
+
domains: ["Data 360"]
|
|
37
37
|
---
|
|
38
38
|
|
|
39
39
|
# data360-orchestrate: Salesforce Data Cloud Orchestrator
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: data360-prepare
|
|
3
3
|
description: "Salesforce Data Cloud Prepare phase. Use this skill when the user creates or manages Data Cloud data streams, DLOs, transforms, or Document AI configurations. TRIGGER when: user creates or manages Data Cloud data streams, DLOs, transforms, or Document AI configurations, or asks about ingestion into Data Cloud. DO NOT TRIGGER when: the task is connection setup only (use data360-connect), DMOs and identity resolution (use data360-harmonize), or query/search work (use data360-query)."
|
|
4
|
-
compatibility: "Requires an external community sf data360 CLI plugin and a Data Cloud-enabled org"
|
|
5
4
|
metadata:
|
|
6
5
|
cliTools:
|
|
7
6
|
- tool: ["node"]
|
|
@@ -18,6 +17,7 @@ metadata:
|
|
|
18
17
|
- "data360-orchestrate"
|
|
19
18
|
- "data360-query"
|
|
20
19
|
version: "1.0"
|
|
20
|
+
domains: ["Data 360"]
|
|
21
21
|
---
|
|
22
22
|
|
|
23
23
|
# data360-prepare: Data Cloud Prepare Phase
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: data360-query
|
|
3
3
|
description: "Salesforce Data Cloud Retrieve phase. Use this skill when the user runs Data Cloud SQL, async queries, vector search, search-index workflows, or metadata introspection for Data Cloud objects. TRIGGER when: user runs Data Cloud SQL, describe, async queries, vector search, search-index workflows, or metadata introspection for Data Cloud objects. DO NOT TRIGGER when: the task is standard CRM SOQL (use platform-soql-query), segment creation or calculated insight design (use data360-segment), or STDM/session tracing/parquet analysis (use agentforce-observe)."
|
|
4
|
-
compatibility: "Requires an external community sf data360 CLI plugin and a Data Cloud-enabled org"
|
|
5
4
|
metadata:
|
|
6
5
|
cliTools:
|
|
7
6
|
- tool: ["node"]
|
|
@@ -14,6 +13,7 @@ metadata:
|
|
|
14
13
|
- "data360-segment"
|
|
15
14
|
- "platform-soql-query"
|
|
16
15
|
version: "1.0"
|
|
16
|
+
domains: ["Data 360"]
|
|
17
17
|
---
|
|
18
18
|
|
|
19
19
|
# data360-query: Data Cloud Retrieve Phase
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: data360-segment
|
|
3
3
|
description: "Salesforce Data Cloud Segment phase. Use this skill when the user creates or publishes segments, manages calculated insights, or troubleshoots audience SQL in Data Cloud. TRIGGER when: user creates or publishes segments, manages calculated insights, inspects segment counts or membership, or troubleshoots audience SQL in Data Cloud. DO NOT TRIGGER when: the task is DMO/mapping/identity-resolution work (use data360-harmonize), activation work (use data360-activate), query/search-index work (use data360-query), or Standard Data Model (STDM)/session tracing (use agentforce-observe)."
|
|
4
|
-
compatibility: "Requires an external community sf data360 CLI plugin and a Data Cloud-enabled org"
|
|
5
4
|
metadata:
|
|
6
5
|
cliTools:
|
|
7
6
|
- tool: ["node"]
|
|
@@ -15,6 +14,7 @@ metadata:
|
|
|
15
14
|
- "data360-orchestrate"
|
|
16
15
|
- "data360-query"
|
|
17
16
|
version: "1.0"
|
|
17
|
+
domains: ["Data 360"]
|
|
18
18
|
---
|
|
19
19
|
|
|
20
20
|
# data360-segment: Data Cloud Segment Phase
|
|
@@ -3,6 +3,7 @@ name: design-systems-slds-apply
|
|
|
3
3
|
description: "Apply SLDS-compliant UI using the correct blueprints, styling hooks, utility classes, and icons. Use when building any UI that needs SLDS, choosing between Lightning Base Components and SLDS Blueprints, applying styling hooks for theming, using utility classes for layout and spacing, or selecting icons. Triggers include \"build a modal\", \"create a form\", \"data table\", \"SLDS styling\", \"style with hooks\", \"add an icon\"."
|
|
4
4
|
metadata:
|
|
5
5
|
version: "1.1"
|
|
6
|
+
domains: ["Design Systems"]
|
|
6
7
|
relatedSkills:
|
|
7
8
|
- "design-systems-slds-validate"
|
|
8
9
|
cliTools:
|
|
@@ -3,6 +3,7 @@ name: design-systems-slds-validate
|
|
|
3
3
|
description: "Audit Lightning Web Components for SLDS design-system compliance and produce a scored quality report. Runs the SLDS linter and analyzes CSS for theming hook usage and pairing, scoring SLDS findings across categories into an overall grade. Use when asked to \"score my component's SLDS\", \"SLDS scorecard\", \"SLDS quality report\", \"audit SLDS compliance\", \"how good is my SLDS\", \"check SLDS quality\", \"rate my SLDS styling\", \"evaluate my component's SLDS\", \"is this component's SLDS ready to ship?\", \"look at my LWC for SLDS issues\", \"audit SLDS before I submit\", \"review my component's SLDS before code review\", or any time a user wants an SLDS quality assessment or SLDS production-readiness check on an LWC. Not for fixing violations (use design-systems-slds2-migrate), building new components (use design-systems-slds-apply), or accessibility/WCAG/ARIA audits (use experience-lwc-accessibility-validate)."
|
|
4
4
|
metadata:
|
|
5
5
|
version: "1.0"
|
|
6
|
+
domains: ["Design Systems"]
|
|
6
7
|
relatedSkills:
|
|
7
8
|
- "design-systems-slds-apply"
|
|
8
9
|
- "design-systems-slds2-migrate"
|
|
@@ -260,7 +260,7 @@ const NATIVE_SELECT = /<select\s/gi;
|
|
|
260
260
|
|
|
261
261
|
The script outputs individual category scores. It does **not** produce a combined overall grade — the agent computes that using the formula in SKILL.md Step 4:
|
|
262
262
|
|
|
263
|
-
```
|
|
263
|
+
```text
|
|
264
264
|
Overall = (Linter × 0.30) + (Theming × 0.20) + (Accessibility × 0.20)
|
|
265
265
|
+ (CodeQuality × 0.15) + (ComponentUsage × 0.15)
|
|
266
266
|
```
|
|
@@ -273,7 +273,7 @@ The script automates **17 of 53** checks listed above (marked **Script** in the
|
|
|
273
273
|
|
|
274
274
|
### Theming
|
|
275
275
|
|
|
276
|
-
```
|
|
276
|
+
```text
|
|
277
277
|
Score = 100 - (critical issues in category × 10)
|
|
278
278
|
- (warnings in category × 3)
|
|
279
279
|
- (info in category × 1)
|
|
@@ -282,7 +282,7 @@ Min: 0
|
|
|
282
282
|
|
|
283
283
|
### Accessibility
|
|
284
284
|
|
|
285
|
-
```
|
|
285
|
+
```text
|
|
286
286
|
Score = 100 - (critical issues in category × 10)
|
|
287
287
|
- (warnings in category × 3)
|
|
288
288
|
- (info in category × 1)
|
|
@@ -291,7 +291,7 @@ Min: 0
|
|
|
291
291
|
|
|
292
292
|
### Code Quality
|
|
293
293
|
|
|
294
|
-
```
|
|
294
|
+
```text
|
|
295
295
|
Score = 100 - (critical issues in category × 10)
|
|
296
296
|
- (warnings in category × 3)
|
|
297
297
|
- (info in category × 1)
|
|
@@ -300,7 +300,7 @@ Min: 0
|
|
|
300
300
|
|
|
301
301
|
### Component Usage
|
|
302
302
|
|
|
303
|
-
```
|
|
303
|
+
```text
|
|
304
304
|
Score = 100 - (critical issues in category × 10)
|
|
305
305
|
- (warnings in category × 3)
|
|
306
306
|
- (info in category × 1)
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
name: design-systems-slds2-migrate
|
|
3
3
|
description: "Migrate Lightning Web Components from SLDS 1 to SLDS 2 by running the SLDS linter and fixing violations. Use this skill whenever users mention SLDS 2, SLDS uplift, linter violations, LWC token migration, class overrides, hardcoded CSS values that need SLDS hook replacement, or styling hook selection. Covers all styling hook categories — color, spacing, sizing, typography, borders, radius, and shadows. Also use when users mention no-hardcoded-values, no-slds-class-overrides, lwc-to-slds-hooks, no-deprecated-tokens-slds1, or ask about SLDS component migration — even if they don't explicitly say \"uplift\" or \"migration\"."
|
|
4
4
|
metadata:
|
|
5
|
+
version: "1.0"
|
|
6
|
+
domains: ["Design Systems"]
|
|
5
7
|
cliTools:
|
|
6
8
|
- tool: ["npx"]
|
|
7
9
|
semver: ">=7.0.0"
|
|
8
|
-
version: "1.0"
|
|
9
10
|
---
|
|
10
11
|
|
|
11
12
|
# Goal
|
|
@@ -36,7 +37,7 @@ Color hooks require the most judgment (context-dependent selection). Non-color h
|
|
|
36
37
|
|
|
37
38
|
# Workflow
|
|
38
39
|
|
|
39
|
-
```
|
|
40
|
+
```text
|
|
40
41
|
1. **REQUIRED — ALWAYS run first:** npx @salesforce-ux/slds-linter@latest lint --fix . — NEVER skip this step. This handles simple violations automatically.
|
|
41
42
|
2. Review linter output -> Identify remaining manual fixes needed
|
|
42
43
|
3. Fix by violation type -> Use per-rule reference guides
|
|
@@ -57,7 +58,7 @@ The linter analyzes all CSS and markup files (`.html` for LWC, `.cmp` for Aura),
|
|
|
57
58
|
|
|
58
59
|
The linter reports violations in this format:
|
|
59
60
|
|
|
60
|
-
```
|
|
61
|
+
```text
|
|
61
62
|
componentName.css
|
|
62
63
|
15:3 warning Overriding slds-button isn't supported. To differentiate SLDS and
|
|
63
64
|
custom classes, create a CSS class in your namespace.
|
|
@@ -126,7 +127,7 @@ See [rule-no-slds-class-overrides.md](references/rule-no-slds-class-overrides.md
|
|
|
126
127
|
|
|
127
128
|
**Linter feedback loop — repeat until zero errors:**
|
|
128
129
|
|
|
129
|
-
```
|
|
130
|
+
```text
|
|
130
131
|
1. npx @salesforce-ux/slds-linter@latest lint .
|
|
131
132
|
2. Review errors -> fix by type (Step 3)
|
|
132
133
|
3. Re-run linter
|
|
@@ -24,7 +24,7 @@ This guide helps you choose the correct SLDS 2 color hook. Use it when replacing
|
|
|
24
24
|
|
|
25
25
|
**Always try semantic hooks first.** ~85-90% of color decisions should use semantic hooks. System and palette hooks are last resorts, not alternatives.
|
|
26
26
|
|
|
27
|
-
```
|
|
27
|
+
```text
|
|
28
28
|
1. SEMANTIC HOOKS (try first, ~85-90% of decisions)
|
|
29
29
|
surface-*, accent-*, error/warning/success/info/disabled-*
|
|
30
30
|
• Accessibility built-in • Theme-aware • Dark mode ready
|
|
@@ -19,7 +19,7 @@ Before/after examples organized by violation type.
|
|
|
19
19
|
## Class Override Example
|
|
20
20
|
|
|
21
21
|
**Violation:**
|
|
22
|
-
```
|
|
22
|
+
```text
|
|
23
23
|
dataTable.css
|
|
24
24
|
5:1 warning Overriding slds-table isn't supported. To differentiate SLDS and
|
|
25
25
|
custom classes, create a CSS class in your namespace.
|
|
@@ -68,7 +68,7 @@ dataTable.css
|
|
|
68
68
|
## LWC Token Example
|
|
69
69
|
|
|
70
70
|
**Violation:**
|
|
71
|
-
```
|
|
71
|
+
```text
|
|
72
72
|
panelHeader.css
|
|
73
73
|
3:3 error The '--lwc-colorBackgroundAlt' design token is deprecated. Replace it with
|
|
74
74
|
the SLDS 2 styling hook and set the fallback to '--lwc-colorBackgroundAlt'.
|
|
@@ -106,7 +106,7 @@ panelHeader.css
|
|
|
106
106
|
### Tile with Border and Spacing
|
|
107
107
|
|
|
108
108
|
**Violation:**
|
|
109
|
-
```
|
|
109
|
+
```text
|
|
110
110
|
tile.css
|
|
111
111
|
2:20 warning Consider replacing the #ffffff static value with an SLDS 2 styling hook
|
|
112
112
|
that has a similar value:
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
The linter detects deprecated `--lwc-*` tokens and reports them as **errors**. When there is only one suggestion, `--fix` auto-applies it. When there are multiple suggestions, manual selection is required. Here's real linter output for a multiple-suggestion case:
|
|
12
12
|
|
|
13
|
-
```
|
|
13
|
+
```text
|
|
14
14
|
2:14 error The '--lwc-colorBackground' design token is deprecated. Replace it with
|
|
15
15
|
the SLDS 2 styling hook and set the fallback to '--lwc-colorBackground'.
|
|
16
16
|
1. --slds-g-color-surface-2
|
|
@@ -13,13 +13,13 @@ The linter detects `t()` and `token()` function calls in CSS, `.cmp`, and `.html
|
|
|
13
13
|
Two message types:
|
|
14
14
|
|
|
15
15
|
**When a replacement exists:**
|
|
16
|
-
```
|
|
16
|
+
```text
|
|
17
17
|
Consider removing t(colorTextDefault) or replacing it with --slds-g-color-on-surface-3.
|
|
18
18
|
Set the fallback to t(colorTextDefault).
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
**When no replacement exists:**
|
|
22
|
-
```
|
|
22
|
+
```text
|
|
23
23
|
Update outdated design tokens to SLDS 2 styling hooks with similar values.
|
|
24
24
|
```
|
|
25
25
|
|