@salesforce/afv-skills 1.67.0 → 1.69.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/README.md +55 -5
- package/package.json +1 -1
- package/skills/afcc-setup-coordinate/SKILL.md +348 -0
- package/skills/afcc-setup-coordinate/assets/console-app/AFCC_Service_Console.app-meta.xml +19 -0
- package/skills/afcc-setup-coordinate/assets/console-app/Admin.profile-meta.xml +8 -0
- package/skills/afcc-setup-coordinate/assets/console-app/Standard.profile-meta.xml +8 -0
- package/skills/afcc-setup-coordinate/assets/gap_report_template.md +35 -0
- package/skills/afcc-setup-coordinate/assets/org_profile_template.json +16 -0
- package/skills/afcc-setup-coordinate/references/gotchas.md +22 -0
- package/skills/afcc-setup-coordinate/scripts/audit_org.sh +159 -0
- package/skills/agentforce-bot-upgrade/SKILL.md +117 -66
- package/skills/agentforce-bot-upgrade/assets/_vendored/agent-spec-template.md +139 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/agent-design-and-spec-creation.md +1211 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/agent-script-core-language.md +1390 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/agent-subagent-map-diagrams.md +341 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/agent-user-setup.md +672 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/agent-validation-and-debugging.md +904 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/agentscript-toolchain.md +112 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/architecture-patterns.md +277 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/common-control-flow-pitfalls.md +255 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/control-flow-actions-sequencing.md +198 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/control-flow-lifecycle-side-effects.md +87 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/data-library-reference.md +891 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/instruction-resolution.md +658 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/org-setup-for-adl.md +551 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/patterns-by-requirement.md +88 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/posture-and-determinism.md +215 -0
- package/skills/agentforce-bot-upgrade/references/extraction-blueprint.md +11 -4
- package/skills/agentforce-bot-upgrade/references/generate-agent-spec.md +19 -3
- package/skills/agentforce-bot-upgrade/references/handoff-output-format.md +82 -52
- package/skills/agentforce-bot-upgrade/references/input-contract.md +8 -8
- package/skills/agentforce-bot-upgrade/references/mapping-rules.md +19 -6
- package/skills/agentforce-bot-upgrade/references/post-conversion-enhancements-reference.md +65 -6
- package/skills/agentforce-bot-upgrade/references/quality-checklist.md +4 -4
- package/skills/agentforce-bot-upgrade/references/sf-cli-bot-reference.md +17 -3
- package/skills/agentforce-hyperclassifier-configure/README.md +24 -0
- package/skills/agentforce-hyperclassifier-configure/SKILL.md +111 -0
- package/skills/agentforce-hyperclassifier-configure/assets/customer-org.env.example +4 -0
- package/skills/agentforce-hyperclassifier-configure/assets/sample_descriptions.json +8 -0
- package/skills/agentforce-hyperclassifier-configure/assets/sample_evals.csv +17 -0
- package/skills/agentforce-hyperclassifier-configure/references/api-contract.md +41 -0
- package/skills/agentforce-hyperclassifier-configure/references/authentication.md +35 -0
- package/skills/agentforce-hyperclassifier-configure/references/evaluation.md +46 -0
- package/skills/agentforce-hyperclassifier-configure/references/installation.md +35 -0
- package/skills/agentforce-hyperclassifier-configure/references/onboarding.md +93 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/__init__.py +1 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/client.py +219 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/eca.py +178 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/evaluation.py +207 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/onboarding.py +191 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/optimizer.py +187 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hyperclassifier.py +111 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/report_hyperclassifier.py +149 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/setup_hyperclassifier.py +74 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/tests/test_hyperclassifier_skill.py +887 -0
- package/skills/agentforce-offline-experimentation-run/SKILL.md +14 -22
- package/skills/agentforce-offline-experimentation-run/scripts/bt_compare.py +81 -0
- package/skills/agentforce-offline-experimentation-run/scripts/bt_fetch.py +358 -0
- package/skills/agentforce-offline-experimentation-run/scripts/bt_patch_agent.py +110 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/__init__.py +34 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/agentpatch.py +483 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/agentsrc.py +565 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/cache.py +95 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/compare.py +617 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/fetch.py +1012 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/judge.py +140 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/messages.py +93 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/patch.py +327 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/redact.py +40 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/results.py +288 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/scoring.py +340 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/sfap.py +354 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/splits.py +136 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/stdm.py +98 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/tokens.py +173 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/units.py +199 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/versions.py +194 -0
- package/skills/agentforce-offline-experimentation-run/scripts/build_report.py +367 -379
- package/skills/agentforce-offline-experimentation-run/scripts/resolve-token.sh +23 -6
- package/skills/agentforce-offline-experimentation-run/scripts/sfap_replay.py +483 -796
- package/skills/commerce-react-storefront-create/SKILL.md +54 -21
- package/skills/dx-lifecycle-center/SKILL.md +22 -13
- package/skills/dx-lifecycle-center/examples/workflows.md +54 -17
- package/skills/dx-lifecycle-center/references/connect-api.md +33 -4
- package/skills/dx-lifecycle-center/references/connect-org.md +62 -12
- package/skills/dx-lifecycle-center/references/deploy.md +3 -3
- package/skills/dx-lifecycle-center/references/hub-org.md +19 -3
- package/skills/dx-lifecycle-center/references/list-orgs.md +50 -24
- package/skills/dx-lifecycle-center/references/troubleshooting.md +22 -1
- package/skills/dx-lifecycle-center/scripts/hub-get.sh +41 -0
- package/skills/dx-lifecycle-center/scripts/resolve-environment.sh +151 -4
- package/skills/dx-org-devhub-configure/SKILL.md +85 -84
- package/skills/dx-org-devhub-configure/examples/status-output.md +25 -2
- package/skills/dx-org-devhub-configure/scripts/devhub.sh +265 -140
- package/skills/dx-org-devhub-configure/scripts/test-devhub.sh +100 -15
- package/skills/dx-packaging-convert-1gp-to-2gp-create/SKILL.md +63 -0
- package/skills/dx-packaging-convert-1gp-to-2gp-create/references/conversion-operations.md +252 -0
- package/skills/dx-packaging-move-to-2gp-migrate/SKILL.md +88 -0
- package/skills/dx-packaging-move-to-2gp-migrate/references/api-operations.md +167 -0
- package/skills/dx-packaging-push-upgrade-configure/README.md +47 -0
- package/skills/dx-packaging-push-upgrade-configure/SKILL.md +355 -0
- package/skills/dx-packaging-push-upgrade-configure/references/best-practices.md +61 -0
- package/skills/dx-packaging-push-upgrade-configure/references/cli-reference.md +148 -0
- package/skills/dx-packaging-push-upgrade-configure/references/objects.md +106 -0
- package/skills/dx-packaging-push-upgrade-configure/references/soql-recipes.md +144 -0
- package/skills/dx-scratch-def-configure/SKILL.md +163 -0
- package/skills/dx-scratch-def-configure/examples/confirm-card.md +53 -0
- package/skills/dx-scratch-def-configure/examples/report-recipes.md +100 -0
- package/skills/dx-scratch-def-configure/references/features.json +3270 -0
- package/skills/dx-scratch-def-configure/references/project-scratch-def.schema.json +1841 -0
- package/skills/dx-scratch-def-configure/references/settings-map.json +682 -0
- package/skills/dx-scratch-def-configure/scripts/lib_scratch_def.py +1306 -0
- package/skills/dx-scratch-def-configure/scripts/requirements.txt +3 -0
- package/skills/dx-scratch-def-configure/scripts/scrape_config_values.py +848 -0
- package/skills/education-cloud-domain-configure/SKILL.md +1 -1
- package/skills/education-cloud-multi-campus-configure/SKILL.md +1 -1
- package/skills/education-cloud-student-recruitment-agent-configure/SKILL.md +1 -1
- package/skills/experience-afv-analytics-query/SKILL.md +239 -0
- package/skills/experience-afv-analytics-query/references/references.md +176 -0
- package/skills/experience-app-mcp-delivery-generate/SKILL.md +142 -0
- package/skills/experience-app-mcp-delivery-generate/references/eca-consumer-key.md +26 -0
- package/skills/experience-app-mcp-delivery-generate/references/mcp-config-delivery.md +38 -0
- package/skills/experience-app-mcp-delivery-generate/references/plugin-format-and-publishing.md +80 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/developer_name.mjs +9 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/discover_mcp_context.mjs +114 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/generate_mcp_config.mjs +27 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/generate_plugin.mjs +184 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/mcp_config.mjs +57 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/preflight.mjs +109 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/retrieve_eca_consumer_key.mjs +143 -0
- package/skills/experience-app-mcp-generate/SKILL.md +174 -0
- package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.eca-meta.xml +7 -0
- package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaGlblOauth-meta.xml +15 -0
- package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaOauth-meta.xml +6 -0
- package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaOauthPlcy-meta.xml +12 -0
- package/skills/experience-app-mcp-generate/assets/__ECA_NAME___defaultPolicy.ecaPlcy-meta.xml +7 -0
- package/skills/experience-app-mcp-generate/assets/__MCP_SERVER_NAME__.mcpServerDefinition-meta.xml +5 -0
- package/skills/experience-app-mcp-generate/references/eca-fields.md +76 -0
- package/skills/experience-app-mcp-generate/references/mcp-objects.md +66 -0
- package/skills/experience-app-mcp-generate/references/tool-bindings.md +85 -0
- package/skills/experience-app-mcp-generate/references/troubleshooting.md +41 -0
- package/skills/experience-app-mcp-generate/references/ui-frameworks.md +19 -0
- package/skills/experience-app-mcp-generate/references/widget-resources.md +96 -0
- package/skills/experience-app-mcp-generate/scripts/activate_server.mjs +166 -0
- package/skills/experience-app-mcp-generate/scripts/check_setup_progress.mjs +212 -0
- package/skills/experience-app-mcp-generate/scripts/list_sites.mjs +211 -0
- package/skills/experience-app-mcp-generate/scripts/merge_tools.mjs +407 -0
- package/skills/experience-app-mcp-generate/scripts/preflight.mjs +127 -0
- package/skills/experience-app-mcp-generate/scripts/render_eca.mjs +144 -0
- package/skills/experience-app-mcp-generate/scripts/render_mcp_server.mjs +64 -0
- package/skills/experience-app-mcp-generate/scripts/retrieve_existing_prompts.mjs +145 -0
- package/skills/experience-app-mcp-generate/scripts/retrieve_existing_tools.mjs +72 -0
- package/skills/experience-app-mcp-generate/scripts/scan_tool_candidates.mjs +195 -0
- package/skills/experience-app-mcp-generate/scripts/utils/callback_url.mjs +36 -0
- package/skills/experience-app-mcp-generate/scripts/utils/developer_name.mjs +9 -0
- package/skills/experience-app-mcp-generate/scripts/utils/eca_check.mjs +156 -0
- package/skills/experience-app-mcp-generate/scripts/utils/metadata_path.mjs +13 -0
- package/skills/experience-app-mcp-generate/scripts/verify_server.mjs +118 -0
- package/skills/experience-cms-content-type-generate/SKILL.md +1 -1
- package/skills/experience-design-validate/SKILL.md +1 -1
- package/skills/experience-search-coordinate/SKILL.md +18 -12
- package/skills/experience-search-coordinate/references/content-route.md +79 -1
- package/skills/field-service-data-capture-migrate/SKILL.md +1 -1
- package/skills/nonprofit-fundraising-configure/SKILL.md +1 -1
- package/skills/nonprofit-fundraising-configure/references/mcp-invocation.md +52 -4
- package/skills/nonprofit-fundraising-configure/references/permission-targeting.md +19 -2
- package/skills/platform-apex-generate/SKILL.md +14 -11
- package/skills/platform-apex-test-generate/SKILL.md +2 -1
- package/skills/platform-custom-field-generate/SKILL.md +24 -16
- package/skills/platform-custom-metadata-type-generate/SKILL.md +1 -0
- package/skills/platform-custom-setting-generate/SKILL.md +1 -0
- package/skills/platform-datamask-run/SKILL.md +52 -71
- package/skills/platform-datamask-run/references/api-surface.md +10 -4
- package/skills/platform-datamask-run/references/policy-authoring.md +56 -7
- package/skills/platform-datamask-run/references/run-and-abort.md +17 -10
- package/skills/platform-datamask-run/scripts/poll-job.sh +15 -25
- package/skills/platform-dataspace-access-configure/SKILL.md +43 -10
- package/skills/platform-flexipage-generate/SKILL.md +7 -10
- package/skills/platform-flexipage-generate/references/mcp_action_examples.md +42 -38
- package/skills/platform-metadata-discovery-get/SKILL.md +185 -0
- package/skills/platform-metadata-discovery-get/references/api-map.md +25 -0
- package/skills/platform-metadata-discovery-get/references/h360-routes.md +30 -0
- package/skills/platform-metadata-discovery-get/references/scoped-soql.md +52 -0
- package/skills/platform-metadata-grounding-get/SKILL.md +170 -0
- package/skills/platform-policy-rule-generate/SKILL.md +85 -231
- package/skills/platform-policy-rule-generate/references/condition-model.md +47 -0
- package/skills/platform-policy-rule-generate/references/condition-templates.md +89 -0
- package/skills/platform-policy-rule-generate/references/conjunction-compiler.md +25 -0
- package/skills/platform-policy-rule-generate/references/conjunction-expression.md +30 -0
- package/skills/platform-policy-rule-generate/references/consumer-all.md +9 -0
- package/skills/platform-policy-rule-generate/references/consumer-datacloud-ui.md +99 -0
- package/skills/platform-policy-rule-generate/references/deploy-errors.md +24 -36
- package/skills/platform-policy-rule-generate/references/examples/ExistsJoinRLS/package.xml +12 -0
- package/skills/platform-policy-rule-generate/references/examples/ExistsJoinRLS/policyRuleDefinitionSets/ExistsJoinRLS.policyRuleDefinitionSet +5 -0
- package/skills/platform-policy-rule-generate/references/examples/ExistsJoinRLS/policyRuleDefinitions/ExistsJoinRLS_Rule_1.policyRuleDefinition +91 -0
- package/skills/platform-policy-rule-generate/references/examples/FieldReadDeny/package.xml +12 -0
- package/skills/platform-policy-rule-generate/references/examples/FieldReadDeny/policyRuleDefinitionSets/FieldReadDeny.policyRuleDefinitionSet +5 -0
- package/skills/platform-policy-rule-generate/references/examples/FieldReadDeny/policyRuleDefinitions/FieldReadDeny_Rule_1.policyRuleDefinition +72 -0
- package/skills/platform-policy-rule-generate/references/examples/LastCharactersFieldMasking/package.xml +12 -0
- package/skills/platform-policy-rule-generate/references/examples/LastCharactersFieldMasking/policyRuleDefinitionSets/LastCharactersFieldMasking.policyRuleDefinitionSet +5 -0
- package/skills/platform-policy-rule-generate/references/examples/LastCharactersFieldMasking/policyRuleDefinitions/LastCharactersFieldMasking_Rule_1.policyRuleDefinition +77 -0
- package/skills/platform-policy-rule-generate/references/examples/PrincipalFieldMatchRLS/package.xml +12 -0
- package/skills/platform-policy-rule-generate/references/examples/PrincipalFieldMatchRLS/policyRuleDefinitionSets/PrincipalFieldMatchRLS.policyRuleDefinitionSet +5 -0
- package/skills/platform-policy-rule-generate/references/examples/PrincipalFieldMatchRLS/policyRuleDefinitions/PrincipalFieldMatchRLS_Rule_1.policyRuleDefinition +77 -0
- package/skills/platform-policy-rule-generate/references/examples/TaggedObjectAccess/package.xml +12 -0
- package/skills/platform-policy-rule-generate/references/examples/TaggedObjectAccess/policyRuleDefinitionSets/TaggedObjectAccess.policyRuleDefinitionSet +5 -0
- package/skills/platform-policy-rule-generate/references/examples/TaggedObjectAccess/policyRuleDefinitions/TaggedObjectAccess_Rule_1.policyRuleDefinition +65 -0
- package/skills/platform-policy-rule-generate/references/headless-transport.md +87 -0
- package/skills/platform-policy-rule-generate/references/policy-schema-full.md +18 -11
- package/skills/platform-policy-rule-generate/references/policy-shapes.md +107 -0
- package/skills/platform-policy-rule-generate/references/principal-expression.md +31 -0
- package/skills/platform-policy-rule-generate/references/reference-resolution.md +51 -0
- package/skills/platform-policy-rule-generate/references/resource-expression.md +48 -0
- package/skills/platform-policy-rule-generate/references/runtime-context.md +9 -0
- package/skills/platform-policy-rule-generate/references/templates-access.md +11 -9
- package/skills/platform-policy-rule-generate/references/templates-advanced.md +5 -3
- package/skills/platform-policy-rule-generate/references/templates-record.md +37 -22
- package/skills/platform-policy-rule-generate/references/templates-transform.md +10 -8
- package/skills/platform-policy-rule-generate/references/templates.md +2 -2
- package/skills/platform-policy-rule-generate/references/ui-compatibility.md +36 -18
- package/skills/platform-report-generate/SKILL.md +29 -5
- package/skills/platform-report-generate/references/chart-types.md +26 -2
- package/skills/platform-report-generate/references/column-names.md +43 -0
- package/skills/platform-report-generate/references/errors-and-troubleshooting.md +1 -1
- package/skills/platform-report-generate/references/summary-formulas-sorting-limits.md +118 -0
- package/skills/platform-report-generate/references/verification-checklist.md +22 -2
- package/skills/service-digital-engagement-channel-configure/SKILL.md +49 -110
- package/skills/service-digital-engagement-channel-configure/assets/messaging_channel_template.xml +35 -0
- package/skills/service-digital-engagement-channel-configure/examples/asa_agent_channel.xml +2 -2
- package/skills/service-digital-engagement-channel-configure/examples/auth_queue_channel.xml +58 -0
- package/skills/service-digital-engagement-channel-configure/examples/omni_flow_channel.xml +2 -2
- package/skills/service-digital-engagement-channel-configure/examples/omni_queue_channel.xml +3 -3
- package/skills/service-digital-engagement-channel-configure/references/channel_settings.md +128 -28
- package/skills/service-digital-engagement-channel-configure/references/onboarding_contract.md +16 -20
- package/skills/service-digital-engagement-channel-configure/references/prechat_params.md +10 -0
- package/skills/service-digital-engagement-channel-configure/references/recaptcha_handoff.md +38 -0
- package/skills/service-digital-engagement-channel-configure/references/user_verification.md +9 -0
- package/skills/service-digital-engagement-channel-configure/scripts/check-api-version.sh +4 -4
- package/skills/service-digital-engagement-channel-configure/scripts/normalize-channel-name.sh +12 -7
- package/skills/service-e911-configure/SKILL.md +242 -0
- package/skills/service-itsm-agentic-setup-agent-runtime-access-assign/SKILL.md +1 -1
- package/skills/service-itsm-agentic-setup-agentforce-coordinate/SKILL.md +1 -1
- package/skills/service-itsm-agentic-setup-agentforce-studio-configure/SKILL.md +1 -1
- package/skills/service-itsm-agentic-setup-agentforce-studio-validate/SKILL.md +1 -1
- package/skills/service-itsm-agentic-setup-employee-agent-configure/SKILL.md +1 -1
- package/skills/service-itsm-agentic-setup-fulfiller-agent-configure/SKILL.md +1 -1
- package/skills/service-itsm-agentic-setup-incident-management/SKILL.md +47 -44
- package/skills/service-itsm-agentic-setup-incident-management/examples/output-templates.md +110 -83
- package/skills/service-itsm-agentic-setup-incident-management/references/manage-incidents-with-ai.md +7 -3
- package/skills/service-itsm-agentic-setup-incident-management/references/priority-matrix.md +7 -5
- package/skills/service-itsm-agentic-setup-incident-management/references/sla-milestones.md +2 -2
- package/skills/service-itsm-agentic-setup-incident-management/references/status-checks.md +437 -0
- package/skills/service-itsm-agentic-setup-itsm-agentforce-permset-assign/SKILL.md +1 -1
- package/skills/agentforce-bot-upgrade/references/planner-workflow-reference.md +0 -78
- package/skills/experience-content-media-image-generate/SKILL.md +0 -83
- package/skills/experience-content-media-image-generate/scripts/download-image.sh +0 -84
- package/skills/experience-content-media-stock-image-search/SKILL.md +0 -193
- package/skills/experience-content-media-stock-image-search/scripts/download-stock-image.py +0 -102
|
@@ -17,7 +17,7 @@ metadata:
|
|
|
17
17
|
- "platform-metadata-deploy"
|
|
18
18
|
- "platform-permission-set-generate"
|
|
19
19
|
- "platform-validation-rule-generate"
|
|
20
|
-
accessCheck: "
|
|
20
|
+
accessCheck: "OrgPermissions.EducationCloud"
|
|
21
21
|
---
|
|
22
22
|
|
|
23
23
|
# Configuring Education Cloud Domains
|
|
@@ -8,7 +8,7 @@ metadata:
|
|
|
8
8
|
- "Education"
|
|
9
9
|
relatedSkills:
|
|
10
10
|
- "education-cloud-domain-configure"
|
|
11
|
-
accessCheck: "
|
|
11
|
+
accessCheck: "OrgPermissions.EducationCloud"
|
|
12
12
|
mcpTools:
|
|
13
13
|
headless-360:
|
|
14
14
|
tools: ["describe", "discover", "dispatch", "dispatch_readonly"]
|
|
@@ -18,7 +18,7 @@ metadata:
|
|
|
18
18
|
cliTools:
|
|
19
19
|
- tool: ["sf"]
|
|
20
20
|
semver: ">=2.0.0"
|
|
21
|
-
accessCheck: "(OrgPermissions.EinsteinForEducationCloud) && (
|
|
21
|
+
accessCheck: "(OrgPermissions.EinsteinForEducationCloud) && (OrgPermissions.EinsteinAgentPlatform)"
|
|
22
22
|
---
|
|
23
23
|
|
|
24
24
|
# Configuring the Education Cloud Student Recruitment Agent
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: experience-afv-analytics-query
|
|
3
|
+
description: "System-of-record for the public Lightning Instrumentation Headless Connect REST API route that retrieves Agentforce Vibes (AFV) metrics, analytics, data, and adoption/usage insights, including token/LOC, weekly active-user, and per-user activity. Supports local result filtering by period (default current), orgType (default All), recordType, modelName (default All), and other explicitly returned row fields after one parameterless API call."
|
|
4
|
+
metadata:
|
|
5
|
+
version: "1.0"
|
|
6
|
+
minApiVersion: "68.0"
|
|
7
|
+
accessCheck: "(DxDevopsAnalytics.orgHasDevopsAnalyticsAccess)"
|
|
8
|
+
domains:
|
|
9
|
+
- "Experience"
|
|
10
|
+
- "Agentforce"
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Agentforce Vibes metrics
|
|
14
|
+
|
|
15
|
+
Use this skill when a user asks to retrieve Agentforce Vibes (AFV) usage or
|
|
16
|
+
instrumentation metrics for the current Salesforce org.
|
|
17
|
+
|
|
18
|
+
This skill describes one public, read-only Connect API operation:
|
|
19
|
+
|
|
20
|
+
- **Get AFV metrics** — trigger phrases: "get afv metrics", "agentforce vibes metrics", "afv analytics", "fetch agentforce vibes analytics", "headless afv metrics", "afv data", "agentforce vibes data", "get afv adoption usage data", "Vibes adoption", "token/LOC metrics", "weekly active users", "per-user AFV activity", "current or prior AFV metrics", "AFV model metrics", "AFV metrics by org type", and "filter AFV metrics by record type". Primary route: `GET /instrumentation/afv-metrics` (`operationId: getAFVMetrics`).
|
|
21
|
+
|
|
22
|
+
The route is available at external API version **v68.0 or later**. Call it at
|
|
23
|
+
v68.0; do not infer a lower version from the source
|
|
24
|
+
spec's generic `info.version` or `servers` example. v67.0 returns
|
|
25
|
+
`404 NOT_FOUND`. A version above the org's own maximum also returns `404`;
|
|
26
|
+
that is an org limit, not a reason to call a version below v68.0.
|
|
27
|
+
|
|
28
|
+
## Workflow
|
|
29
|
+
|
|
30
|
+
1. Call `GET /services/data/v68.0/instrumentation/afv-metrics`.
|
|
31
|
+
2. Send no path parameters, query parameters, or request body.
|
|
32
|
+
3. Read the returned `AFVMetricsOutputRepresentation`:
|
|
33
|
+
- `success` — whether the metrics download succeeded.
|
|
34
|
+
- `message` — an optional status or failure message.
|
|
35
|
+
- `rows` — an array of metric maps; each map can contain heterogeneous
|
|
36
|
+
metric names and values.
|
|
37
|
+
4. If `success` is `false`, surface `message` and the raw response. Do not
|
|
38
|
+
present the rows as a successful metrics result or retry automatically.
|
|
39
|
+
5. If `success` is `true` and `rows` is empty, report the no-data result and
|
|
40
|
+
stop. Do not retry, treat it as an API error, or fall back to an internal
|
|
41
|
+
API.
|
|
42
|
+
6. Branch on each row's `recordType` before reading class-specific fields.
|
|
43
|
+
Do not assume that any particular record class is present. Preserve unknown
|
|
44
|
+
record types and fields instead of dropping them.
|
|
45
|
+
|
|
46
|
+
## Optional result filters
|
|
47
|
+
|
|
48
|
+
Users can narrow the displayed metrics with optional result filters. These
|
|
49
|
+
filters control local processing after the complete response is received; they
|
|
50
|
+
are not Connect API query parameters or `get-afv-metrics` dispatch inputs.
|
|
51
|
+
|
|
52
|
+
| Filter | Accepted value | Matching rule |
|
|
53
|
+
|---|---|---|
|
|
54
|
+
| `period` | `current` (default) or `prior` | Exact match on `rows[*].period`. Reject another explicit value before calling the API. |
|
|
55
|
+
| `orgType` | `All` (default) or an org-type value returned by the API | Case-insensitive exact match on `rows[*].orgType`. `All` is a literal roll-up value, not a wildcard. |
|
|
56
|
+
| `recordType` | One or more record-type names | Exact match on `rows[*].recordType`. Known values include `aggregate`, `dailyTimeSeries`, `modelMetrics`, `orgBreakdown`, `userMetrics`, and `weeklyActiveUsers`, but accept an exact future value when the user supplies it. |
|
|
57
|
+
| `modelName` | `All` (default) or a model name returned by the API | Case-insensitive exact match on `rows[*].modelName`. `All` is a literal roll-up value, not a wildcard. |
|
|
58
|
+
| Other returned row field | Explicit field name and value supplied by the user | Exact match only when that field is present. Do not invent aliases or assume the field exists on every record type. |
|
|
59
|
+
|
|
60
|
+
If the user does not supply `period`, apply `period=current`; if the user does
|
|
61
|
+
not supply `orgType`, apply `orgType=All`; if the user does not supply
|
|
62
|
+
`modelName`, apply `modelName=All`. These are default local result filters. An
|
|
63
|
+
explicit value overrides its corresponding default. A request that compares
|
|
64
|
+
the current and prior periods explicitly selects both values and therefore
|
|
65
|
+
overrides the single-period default. Likewise, a request to compare or rank
|
|
66
|
+
models explicitly selects the concrete model names present in the response
|
|
67
|
+
instead of the `All` model roll-up. If the user supplies more than one filter
|
|
68
|
+
name, combine them with AND. If the user supplies multiple values for the same
|
|
69
|
+
field, match any of those values. Each default still applies when the user
|
|
70
|
+
supplies another filter but omits one of these three fields.
|
|
71
|
+
|
|
72
|
+
Apply filters only after checking HTTP status, `success`, and the unfiltered
|
|
73
|
+
`rows` array:
|
|
74
|
+
|
|
75
|
+
1. Capture the requested result filters from the user's prompt and add the
|
|
76
|
+
defaults `period=current`, `orgType=All`, and `modelName=All` when those
|
|
77
|
+
fields were omitted and the request does not imply a multi-value comparison.
|
|
78
|
+
2. Call `get-afv-metrics` once with no arguments and no query string.
|
|
79
|
+
3. If `success` is `false` or the complete `rows` array is empty, follow the
|
|
80
|
+
normal response handling without filtering.
|
|
81
|
+
4. Otherwise, filter the returned rows in memory and render the matching rows.
|
|
82
|
+
5. Report the filters applied, the total rows returned by the API, and the
|
|
83
|
+
number of rows matched.
|
|
84
|
+
|
|
85
|
+
A successful response with rows but zero filter matches, including when a
|
|
86
|
+
default filter finds no rows, is a successful zero-match view, not an empty
|
|
87
|
+
API response. Report that the complete response
|
|
88
|
+
contained no matching rows. Do not retry, change the request URL, infer zero
|
|
89
|
+
metric values, or report that the API itself returned no data. When the
|
|
90
|
+
requested `recordType` is `userMetrics`, also apply the permission-dependent
|
|
91
|
+
guidance below instead of treating the absence as proof of zero user activity.
|
|
92
|
+
|
|
93
|
+
## Permission-dependent results
|
|
94
|
+
|
|
95
|
+
HTTP status is part of the gate and permission contract. Do not treat every
|
|
96
|
+
denial as HTTP `200` with `success: false`.
|
|
97
|
+
|
|
98
|
+
The route returns a metrics body only when the org gate is enabled and the
|
|
99
|
+
caller passes the user access check. The user access check passes when any
|
|
100
|
+
of these is true:
|
|
101
|
+
|
|
102
|
+
- the caller has both **Customize Application** and **Modify All Data**, or
|
|
103
|
+
- the caller has **Lifecycle Center Developer-Level Insights**, or
|
|
104
|
+
- the caller has **Lifecycle Center User**.
|
|
105
|
+
|
|
106
|
+
- **Org gate disabled, or the caller fails the user access check:** the
|
|
107
|
+
route returns HTTP `403`. Surface the response as an access denial.
|
|
108
|
+
Recommend verifying that AFV metrics are enabled for the org and that the
|
|
109
|
+
caller has `Lifecycle Center User`, `Lifecycle Center Developer-Level
|
|
110
|
+
Insights`, or both Customize Application and Modify All Data. Do not retry,
|
|
111
|
+
and do not present a `403` as an empty dataset or as `success: false`.
|
|
112
|
+
- **`Lifecycle Center User` only:** the call can return HTTP `200` with
|
|
113
|
+
`success: true`, but `userMetrics` rows are omitted. The message then
|
|
114
|
+
includes `Some per-user metrics were omitted because you do not have
|
|
115
|
+
permission to view them.` Other record classes remain subject to data
|
|
116
|
+
availability. Absence of `userMetrics` does not prove that no users used
|
|
117
|
+
AFV.
|
|
118
|
+
- **`Lifecycle Center Developer-Level Insights`, or Customize Application
|
|
119
|
+
together with Modify All Data:** the caller is eligible to receive rows
|
|
120
|
+
whose `recordType` is `userMetrics` when that class has data. A populated
|
|
121
|
+
System Administrator probe returned those rows with message
|
|
122
|
+
`AFV metrics retrieved successfully.` and no omission sentence.
|
|
123
|
+
|
|
124
|
+
When the user specifically asks for per-user results and no `userMetrics`
|
|
125
|
+
rows are visible, explain that the class can be absent because
|
|
126
|
+
`Lifecycle Center Developer-Level Insights` is not assigned or because the
|
|
127
|
+
current dataset has no rows of that class. Recommend verifying
|
|
128
|
+
`Lifecycle Center Developer-Level Insights`; do not report zero per-user
|
|
129
|
+
activity from an absent record class.
|
|
130
|
+
|
|
131
|
+
## Variable record classes
|
|
132
|
+
|
|
133
|
+
Production exports show that successful populated responses can contain only a
|
|
134
|
+
subset of the known record classes. Treat `aggregate`, `dailyTimeSeries`,
|
|
135
|
+
`modelMetrics`, `orgBreakdown`, `userMetrics`, and `weeklyActiveUsers` as
|
|
136
|
+
independently optional collections. For a requested class that is absent,
|
|
137
|
+
report that the current response contains no rows of that class. Do not infer a
|
|
138
|
+
zero value, fail the whole response, or retry. Row counts are data-dependent.
|
|
139
|
+
|
|
140
|
+
## Output
|
|
141
|
+
|
|
142
|
+
On success, report the server message when present, the number of rows, and
|
|
143
|
+
the rows themselves. Preserve the keys returned in each row; the schema
|
|
144
|
+
intentionally permits arbitrary metric-name/value pairs.
|
|
145
|
+
|
|
146
|
+
```markdown
|
|
147
|
+
## AFV metrics
|
|
148
|
+
|
|
149
|
+
- Success: `<success>`
|
|
150
|
+
- Message: `<message, when present>`
|
|
151
|
+
- Result filters: `<filters, including period=current, orgType=All, and modelName=All defaults when applicable>`
|
|
152
|
+
- Rows returned by API: `<unfiltered rows.length>`
|
|
153
|
+
- Rows matched: `<filtered rows.length, when filters are present>`
|
|
154
|
+
|
|
155
|
+
<render the rows without inventing or renaming fields>
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
For every successful populated response with no user-supplied result filters,
|
|
159
|
+
append a compact filter-discovery block even though the default
|
|
160
|
+
`period=current AND orgType=All AND modelName=All` view was applied. Compute
|
|
161
|
+
distinct values from the full, unfiltered API response and include only fields
|
|
162
|
+
that occur in at least one row. Do not present known-but-absent values as
|
|
163
|
+
available in the current result, and do not make a second API call.
|
|
164
|
+
|
|
165
|
+
```markdown
|
|
166
|
+
### Available result filters in this response
|
|
167
|
+
|
|
168
|
+
- `period`: `<distinct rows[*].period values>` (default: `current`)
|
|
169
|
+
- `orgType`: `<distinct rows[*].orgType values>` (default: `All`)
|
|
170
|
+
- `recordType`: `<distinct rows[*].recordType values>`
|
|
171
|
+
- `modelName`: `<distinct rows[*].modelName values>` (default: `All`)
|
|
172
|
+
|
|
173
|
+
Example: `Get AFV metrics for period=prior, orgType=Sandbox, recordType=modelMetrics, and modelName=<returned model name>.`
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
When user-supplied filters were provided, show the effective filters in
|
|
177
|
+
`Result filters` and omit the discovery block. The default
|
|
178
|
+
`period=current AND orgType=All AND modelName=All` filters alone do not
|
|
179
|
+
suppress discovery. The filter list and example are part of the same final
|
|
180
|
+
result, not a follow-up question. Available `orgType` and `modelName` values
|
|
181
|
+
are data-dependent; never hardcode values observed in one org.
|
|
182
|
+
|
|
183
|
+
An empty `rows` array is a valid successful response. The no-data result is
|
|
184
|
+
HTTP `200` with `success: true`, message
|
|
185
|
+
`No AFV metrics are available yet for this org.`, and `rows: []`. Report
|
|
186
|
+
that no metric rows were returned, include the server's message, and stop
|
|
187
|
+
without retrying. Distinguish this from `success: false` with `rows: []`,
|
|
188
|
+
which is a service failure, and from HTTP `403`, which is an access denial.
|
|
189
|
+
|
|
190
|
+
## Error handling
|
|
191
|
+
|
|
192
|
+
- `400` — surface the returned AFV result as a bad request.
|
|
193
|
+
- `401` — authentication is missing or invalid; ask the user to reconnect to
|
|
194
|
+
the org, then retry only when they request it.
|
|
195
|
+
- `403` — the org gate is disabled or the caller fails the user access check.
|
|
196
|
+
Surface the response and recommend verifying org enablement plus
|
|
197
|
+
`Lifecycle Center User`, `Lifecycle Center Developer-Level Insights`, or
|
|
198
|
+
both Customize Application and Modify All Data. Do not retry automatically.
|
|
199
|
+
- `500` — the metrics service failed internally; surface the response and
|
|
200
|
+
advise retrying later.
|
|
201
|
+
- HTTP `200` with `success: false` — surface `message` and `rows` as returned.
|
|
202
|
+
The caller-facing service-failure message is
|
|
203
|
+
`Unable to retrieve AFV metrics at this time. Please try again later.`
|
|
204
|
+
This is not a permission or gate denial. Do not recommend a permission
|
|
205
|
+
change for it.
|
|
206
|
+
- HTTP `200` with `success: true` and the per-user omission sentence — follow
|
|
207
|
+
the permission-dependent guidance. Do not treat the remaining rows as a
|
|
208
|
+
failure.
|
|
209
|
+
- Route not found at a lower API version — retry at v68.0 or later. v67.0
|
|
210
|
+
returns `404`. Do not probe a matrix of versions automatically.
|
|
211
|
+
- Rate limiting — the public family enables rate limits. Surface the error and
|
|
212
|
+
do not auto-retry.
|
|
213
|
+
|
|
214
|
+
## Constraints
|
|
215
|
+
|
|
216
|
+
- Read-only and idempotent.
|
|
217
|
+
- Never send result filters to the server: the operation declares
|
|
218
|
+
`parameters: []`. Apply optional user filters only after the full response is
|
|
219
|
+
received, including the default
|
|
220
|
+
`period=current AND orgType=All AND modelName=All` view.
|
|
221
|
+
- Never call the internal Aura-only Lightning Instrumentation Agentforce API;
|
|
222
|
+
this skill uses the separate public headless Connect API family.
|
|
223
|
+
- Never infer that an absent record class represents zero-valued data. In
|
|
224
|
+
particular, `userMetrics` can be omitted by permission-based filtering.
|
|
225
|
+
- Do not rely on fixed row counts. Counts observed during validation describe
|
|
226
|
+
that test dataset, not the API contract.
|
|
227
|
+
- Return one final result. Do not make a follow-up write or verification call.
|
|
228
|
+
|
|
229
|
+
<!-- skill-validate: ignore-start -->
|
|
230
|
+
<!-- codey:operations start -->
|
|
231
|
+
## Operations Reference
|
|
232
|
+
|
|
233
|
+
Operations this skill uses — routing and dependency reference.
|
|
234
|
+
|
|
235
|
+
| Operation | Purpose | Status | Call | Depends on |
|
|
236
|
+
|-----------|---------|--------|------|------------|
|
|
237
|
+
| `get-afv-metrics` | read | — | `GET /services/data/v68.0/instrumentation/afv-metrics` | — |
|
|
238
|
+
<!-- codey:operations end -->
|
|
239
|
+
<!-- skill-validate: ignore-end -->
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
# AFV Connect API reference
|
|
2
|
+
|
|
3
|
+
## Authoritative Core contract
|
|
4
|
+
|
|
5
|
+
The API was introduced by Core pull request 25670. The accepted IDL-first API
|
|
6
|
+
definition and implementation are the authority for the contract summarized
|
|
7
|
+
here.
|
|
8
|
+
|
|
9
|
+
Contract facts used by this skill:
|
|
10
|
+
|
|
11
|
+
- Public, REST-callable Connect API.
|
|
12
|
+
- Available at external API v68.0 or later.
|
|
13
|
+
- Route: `GET /instrumentation/afv-metrics`.
|
|
14
|
+
- Operation: `getAFVMetrics`.
|
|
15
|
+
- No request parameters.
|
|
16
|
+
- Rate limiting enabled.
|
|
17
|
+
- API integrations declared for Catalog, Flow, Agentforce, and MCP.
|
|
18
|
+
- No Aura controller or LDS adapter is generated for this family.
|
|
19
|
+
|
|
20
|
+
The generated unified OpenAPI document must advertise
|
|
21
|
+
`/services/data/v68.0` in `servers[0].url`. The skill-derived base generator's
|
|
22
|
+
generic v67.0 server is not valid for this route: a live probe returned
|
|
23
|
+
`404 NOT_FOUND` at v67.0, and the same route returned the AFV response at
|
|
24
|
+
v68.0 and v69.0. A version above the org catalog maximum also returns `404`;
|
|
25
|
+
that limit is not a route restriction.
|
|
26
|
+
|
|
27
|
+
The generated unified OpenAPI projection must keep the six known
|
|
28
|
+
`recordType` values on the property itself. The description may explain that
|
|
29
|
+
future values are possible, but it must not remove this `enum` metadata:
|
|
30
|
+
|
|
31
|
+
```yaml
|
|
32
|
+
recordType:
|
|
33
|
+
type: string
|
|
34
|
+
enum:
|
|
35
|
+
- aggregate
|
|
36
|
+
- modelMetrics
|
|
37
|
+
- dailyTimeSeries
|
|
38
|
+
- weeklyActiveUsers
|
|
39
|
+
- orgBreakdown
|
|
40
|
+
- userMetrics
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Response representation
|
|
44
|
+
|
|
45
|
+
`AFVMetricsOutputRepresentation` is an object with:
|
|
46
|
+
|
|
47
|
+
| Field | Type | Meaning |
|
|
48
|
+
|---|---|---|
|
|
49
|
+
| `success` | boolean | Whether the dashboard-metrics download succeeded. |
|
|
50
|
+
| `message` | string | Optional status or failure detail. |
|
|
51
|
+
| `rows` | array of object maps | Dashboard metric rows. Each row permits arbitrary property names and value types. |
|
|
52
|
+
|
|
53
|
+
The implementation delegates to the existing dashboard metrics service and
|
|
54
|
+
copies its `success`, `message`, and `rows` values directly into the public
|
|
55
|
+
representation.
|
|
56
|
+
|
|
57
|
+
An empty dataset is still a successful response: HTTP `200` with
|
|
58
|
+
`success: true`, message `No AFV metrics are available yet for this org.`,
|
|
59
|
+
and `rows: []`.
|
|
60
|
+
|
|
61
|
+
A populated success response uses message
|
|
62
|
+
`AFV metrics retrieved successfully.` A service failure that still returns
|
|
63
|
+
HTTP `200` uses `success: false` and message
|
|
64
|
+
`Unable to retrieve AFV metrics at this time. Please try again later.`
|
|
65
|
+
|
|
66
|
+
## Result-filtering boundary
|
|
67
|
+
|
|
68
|
+
The operation has no path, query, or body parameters. User phrases such as
|
|
69
|
+
`period=current`, `orgType=Sandbox`, `recordType=modelMetrics`, or
|
|
70
|
+
`modelName=<name>` are skill-level result filters, not part of the Connect API
|
|
71
|
+
request. The runtime must first call the parameterless endpoint and then filter
|
|
72
|
+
the complete `rows` array in memory.
|
|
73
|
+
|
|
74
|
+
The supported filter semantics are:
|
|
75
|
+
|
|
76
|
+
- `period` defaults to `current` when the user does not supply one. An explicit
|
|
77
|
+
`current` or `prior` value overrides the default and matches
|
|
78
|
+
`rows[*].period` exactly. A comparison request can explicitly select both
|
|
79
|
+
values, which uses OR semantics within the field.
|
|
80
|
+
- `orgType` defaults to the literal `All` roll-up when the user does not supply
|
|
81
|
+
an org type. An explicit value overrides the default and uses a
|
|
82
|
+
case-insensitive exact match against `rows[*].orgType`; `All` is not a
|
|
83
|
+
wildcard.
|
|
84
|
+
- `recordType` matches one or more exact discriminator values. The known
|
|
85
|
+
record classes are examples, not a closed enum; a future value can be used
|
|
86
|
+
when it is actually returned.
|
|
87
|
+
- `modelName` defaults to the literal `All` roll-up when the user does not
|
|
88
|
+
supply a model. An explicit model name overrides the default and uses a
|
|
89
|
+
case-insensitive exact match. A request to compare or rank models selects
|
|
90
|
+
the concrete model names present in the response instead of the `All`
|
|
91
|
+
roll-up; those names must be derived from the response rather than hardcoded.
|
|
92
|
+
- Another explicitly named row field can be matched exactly, but the consumer
|
|
93
|
+
must not invent aliases or assume the field exists on every heterogeneous
|
|
94
|
+
row.
|
|
95
|
+
- Different filter names use AND semantics; multiple values for one field use
|
|
96
|
+
OR semantics. The defaults `period=current`, `orgType=All`, and
|
|
97
|
+
`modelName=All` participate in the AND expression whenever the user omits the
|
|
98
|
+
corresponding field and does not request a multi-value comparison.
|
|
99
|
+
|
|
100
|
+
Unknown query parameters are silently ignored by the live endpoint, so a
|
|
101
|
+
filter-shaped URL can return HTTP `200` and the same unfiltered body. A zero-row
|
|
102
|
+
result after local filtering therefore means "no rows in the complete response
|
|
103
|
+
matched these filters," which is distinct from the API returning `rows: []`.
|
|
104
|
+
When the requested filter is `recordType=userMetrics`, the permission-dependent
|
|
105
|
+
absence rules still apply; zero matches do not establish zero user activity.
|
|
106
|
+
The SOR step inputs and OpenAPI operation parameters must remain empty.
|
|
107
|
+
|
|
108
|
+
For a successful populated call without user-supplied filters, the final result
|
|
109
|
+
should render the default
|
|
110
|
+
`period=current AND orgType=All AND modelName=All` view and advertise the
|
|
111
|
+
filter values available in the complete response. Derive the distinct
|
|
112
|
+
non-empty `period`, `orgType`, `recordType`, and `modelName` values from the
|
|
113
|
+
unfiltered `rows` and include only fields that are present. This is response
|
|
114
|
+
discovery, not a second API operation. Available `orgType` and `modelName`
|
|
115
|
+
values are org- and time-dependent and must never be copied into the skill as
|
|
116
|
+
fixed lists.
|
|
117
|
+
|
|
118
|
+
## Permission-dependent responses
|
|
119
|
+
|
|
120
|
+
The public permission-set labels are `Lifecycle Center User` and
|
|
121
|
+
`Lifecycle Center Developer-Level Insights`. HTTP status changes when the
|
|
122
|
+
org gate is disabled or the caller fails the user access check.
|
|
123
|
+
|
|
124
|
+
The user access check passes when the caller has both Customize Application
|
|
125
|
+
and Modify All Data, or has `Lifecycle Center Developer-Level Insights`, or
|
|
126
|
+
has `Lifecycle Center User`.
|
|
127
|
+
|
|
128
|
+
| Access state | HTTP | Body |
|
|
129
|
+
|---|---|---|
|
|
130
|
+
| Org gate disabled, or the caller fails the user access check | `403` | Access denial. Not a metrics body with `success: false`. |
|
|
131
|
+
| `Lifecycle Center User` only | `200` | `success: true`. `userMetrics` rows are omitted, and the message includes `Some per-user metrics were omitted because you do not have permission to view them.` |
|
|
132
|
+
| `Lifecycle Center Developer-Level Insights`, or Customize Application with Modify All Data | `200` | Eligible for `userMetrics` when that class has data. A populated System Administrator probe returned `success: true`, message `AFV metrics retrieved successfully.`, and `userMetrics` rows, with no omission sentence. |
|
|
133
|
+
|
|
134
|
+
The structural conclusions are:
|
|
135
|
+
|
|
136
|
+
- A disabled org gate and a failed user access check both return HTTP `403`.
|
|
137
|
+
Callers must surface that status instead of the older HTTP `200` service
|
|
138
|
+
failure.
|
|
139
|
+
- `Lifecycle Center User` is enough to call the route, but not enough to
|
|
140
|
+
receive `userMetrics`.
|
|
141
|
+
- `Lifecycle Center Developer-Level Insights` controls visibility of
|
|
142
|
+
`userMetrics`. Customize Application together with Modify All Data also
|
|
143
|
+
receives that class.
|
|
144
|
+
- Missing `userMetrics` rows on an HTTP `200` are an authorization-filtered
|
|
145
|
+
representation, not proof that the org has no per-user activity.
|
|
146
|
+
- `success: false` with
|
|
147
|
+
`Unable to retrieve AFV metrics at this time. Please try again later.`
|
|
148
|
+
is a service failure inside HTTP `200`. It is not the permission or gate
|
|
149
|
+
denial.
|
|
150
|
+
- `success: true`, `rows: []`, and
|
|
151
|
+
`No AFV metrics are available yet for this org.` remain a distinct, valid
|
|
152
|
+
empty-dataset response.
|
|
153
|
+
|
|
154
|
+
## Production record-class variability
|
|
155
|
+
|
|
156
|
+
The supplied production exports use the same field vocabulary but contain
|
|
157
|
+
different record-class combinations. Some responses contain only
|
|
158
|
+
`aggregate`, `dailyTimeSeries`, and `modelMetrics`; others add
|
|
159
|
+
`orgBreakdown` and `userMetrics`; and some also contain
|
|
160
|
+
`weeklyActiveUsers`. The number of rows in every class also varies by org and
|
|
161
|
+
over time.
|
|
162
|
+
|
|
163
|
+
Consequently, none of the known record classes or their row counts is required
|
|
164
|
+
for a successful populated response. Consumers must branch on the
|
|
165
|
+
`recordType` of each returned row, handle an absent requested class as
|
|
166
|
+
unavailable in the current response, and preserve unknown future classes and
|
|
167
|
+
fields. Permission filtering remains one possible reason that `userMetrics` is
|
|
168
|
+
absent, but absence alone does not identify the cause.
|
|
169
|
+
|
|
170
|
+
## Declared responses
|
|
171
|
+
|
|
172
|
+
The source OAS declares `200`, `400`, `401`, `403`, and `500`. The `403`
|
|
173
|
+
response is the declarative access denial: the org gate is disabled or the
|
|
174
|
+
user access check fails. These are contract declarations. The populated
|
|
175
|
+
success path was wire-probed; the `403` path was not reproduced on an
|
|
176
|
+
administrator session where the gate was open.
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: experience-app-mcp-delivery-generate
|
|
3
|
+
description: "Package and deliver an existing Salesforce hosted MCP server/App MCP for an Experience Site as an MCP configuration file or a Claude plugin repository. Discover the serving URL and External Client Application client ID, generate client configuration, optionally bundle skills in a plugin, and provide local testing and private GitHub handoff instructions. Plugin packaging supports Claude only; reject requests for Codex, ChatGPT, or other plugin platforms. Use for connecting clients and packaging delivery, not for creating or activating the Salesforce MCP server."
|
|
4
|
+
metadata:
|
|
5
|
+
version: "1.0"
|
|
6
|
+
minApiVersion: "68.0"
|
|
7
|
+
cliTools:
|
|
8
|
+
- tool:
|
|
9
|
+
- "git"
|
|
10
|
+
semver: ">=2.0"
|
|
11
|
+
- tool:
|
|
12
|
+
- "node"
|
|
13
|
+
semver: ">=18.0.0"
|
|
14
|
+
- tool:
|
|
15
|
+
- "sf"
|
|
16
|
+
semver: ">=2.0.0"
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# Deliver an Experience Site MCP Connection
|
|
20
|
+
|
|
21
|
+
Create a standalone MCP configuration file or a local Claude plugin for an existing hosted server. This skill owns client connection discovery and ECA client-ID retrieval. It reads Salesforce configuration and creates local files; publishing requires a separate user request.
|
|
22
|
+
|
|
23
|
+
`<skill-dir>` is the absolute directory containing this `SKILL.md`. Run discovery helpers from the selected SFDX project root and write delivery files to the user's chosen destination.
|
|
24
|
+
|
|
25
|
+
Reuse the org/site/server/ECA identities, exact site developer name, serving URL and validation results already established in the current context. Discover only missing, stale, conflicting or unverified facts. Ask only for choices that have not already been supplied.
|
|
26
|
+
|
|
27
|
+
## Supported plugin platform
|
|
28
|
+
|
|
29
|
+
Check the requested delivery format and plugin platform before preflight or connection discovery. This skill generates **Claude plugins only**. If the user requests a Codex, ChatGPT, or any other non-Claude plugin, explain that the requested plugin platform is unsupported and stop without running helpers or creating files. Do not substitute a Claude plugin, claim cross-platform compatibility, or use `authStyle: "requested"` to bypass this boundary. Changing the delivery format requires a new, explicit user choice.
|
|
30
|
+
|
|
31
|
+
If the user asks for a plugin without naming its platform, ask which platform they want and state that this skill supports Claude plugins only. Determine the platform from the requested artifact, not from the application running this skill; an explicit request for a Claude plugin remains supported when made in Codex or ChatGPT. Standalone MCP configuration requests continue through the configuration-only path.
|
|
32
|
+
|
|
33
|
+
## 0. Preflight
|
|
34
|
+
|
|
35
|
+
For supported delivery requests, reuse the target org alias or ask if missing. Run from the selected SFDX project root before every supported entry path, including repair and resume. Unsupported plugin requests stop at the platform check above without running preflight. Proceed only on `decision: continue`.
|
|
36
|
+
|
|
37
|
+
If the project root has no `sfdx-project.json`, create it before running any bundled script, with `packageDirectories` `[{"path": "force-app", "default": true}]` and `sourceApiVersion` `"68.0"`. Do not change an existing one.
|
|
38
|
+
|
|
39
|
+
IMPORTANT: Set `<skill-named>` to `true` only if the user's request explicitly names `experience-app-mcp-delivery-generate`; otherwise use `false`. Do not count the agent's own skill selection or messages.
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
node "<skill-dir>/scripts/preflight.mjs" <target-org-alias> --skill-named <skill-named>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Read the JSON `decision`:
|
|
46
|
+
|
|
47
|
+
- `continue`: proceed to step 1.
|
|
48
|
+
- `skip`: immediately exit this skill and pursue the original request another way. Say nothing about this skill, its check, or the result.
|
|
49
|
+
- `disabled`: say only the returned `userMessage`, without error details; exit this skill and pursue the original request another way.
|
|
50
|
+
- `needs_input` or `error`: show only `userMessage` and `nextAction`, obtain corrections and rerun preflight. Proceed only on `continue`; never infer entitlement from errors.
|
|
51
|
+
|
|
52
|
+
## 1. Choose the delivery format
|
|
53
|
+
|
|
54
|
+
Reuse known choices. Establish whether the user wants **MCP configuration only** or an explicitly selected **Claude plugin**, following the supported-platform check above. Configuration-only delivery requires no plugin name, author, version, icon or bundled skills. Ask for its target client, an absolute path to a new JSON file, and missing connection facts. Read [standalone configuration delivery](references/mcp-config-delivery.md).
|
|
55
|
+
|
|
56
|
+
For a Claude plugin, load [package format and publishing](references/plugin-format-and-publishing.md) and ask together for missing inputs:
|
|
57
|
+
|
|
58
|
+
- Target org alias, MCP server DeveloperName, and Experience Site, if not already known.
|
|
59
|
+
- Where to create the plugin's GitHub repository locally: an absolute path to a **new directory**. Never assume the Salesforce project or this skill's directory is the destination.
|
|
60
|
+
- Kebab-case plugin name, short purpose/description, author, and semantic version (suggest `1.0.0` for the first release). Ask for the intended private `github.com` repository owner/name and license if the user knows them; both can be skipped for local testing. Do not invent author details or choose a license for them.
|
|
61
|
+
- Ask: **“Do you want to bundle any skills in this plugin?”** If yes, ask whether the user wants to include one or more existing skills, create one or more new skills, or both. For each new skill, ask for its goal, intended users, and the MCP tasks it should help with. For each existing skill, ask for the absolute folder path containing `SKILL.md`.
|
|
62
|
+
- Establish the OAuth callback port choice for every plugin request. Reuse an explicitly selected port or an explicit decision to skip from this session; otherwise ask: **“Provide the callback port matching your ECA's registered callback URL, or choose to skip setting a fixed port.”** If provided, pass it as the numeric `mcp.callbackPort` (integer 1–65535); the Claude Code profile writes it as `oauth.callbackPort`. Omit the field from both the generation config and `.mcp.json` when the user skips it or cannot provide a port—do not add a default, `null`, empty string or guessed port. Note any unverified callback registration as pending; packaging does not modify the ECA.
|
|
63
|
+
- Ask: **“Would you like to add a plugin icon? Provide an image file path, or skip for now.”** Reuse an image only if the user selected it for this plugin; do not reuse a removed icon or substitute Anthropic branding. Supply `iconPath` according to the reference's input requirements. Omit it when the user skips and continue with local testing.
|
|
64
|
+
|
|
65
|
+
Do not repeatedly ask for permission to inspect configuration, read the selected skill, generate new local files in the chosen scope, or validate them. Resolve ambiguity and incompatible existing files before proceeding. Do not deploy or activate a server, change ECA settings or permissions, authenticate as another user, or create/push any GitHub repository as part of packaging alone.
|
|
66
|
+
|
|
67
|
+
## 2. Discover and confirm the connection
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
node "<skill-dir>/scripts/discover_mcp_context.mjs" <target-org-alias> [SERVER_DEV_NAME]
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
The helper prints only selected non-secret org fields, Tooling MCP server/access records, Network sites with their developer names, and ECA names/record IDs. Use the selected site's `DeveloperName` from this output. It captures `sf org display` internally; never print its full raw response because it contains an access token. A non-empty `errors` array or `incomplete` status indicates a failed or incomplete lookup, not absence. Report which lookup failed and resolve only the missing facts.
|
|
74
|
+
|
|
75
|
+
Select the exact deployed server and site from those results. Confirm the selected server's activation state; if it is inactive or activation lookup failed, report readiness as pending rather than activating it. An ECA need not share the server's name, and the server inventory does not prove an ECA association. Reuse a previously selected ECA or ask the user to choose its DeveloperName from the inventory.
|
|
76
|
+
|
|
77
|
+
Users do not need to know the full serving URL. Reuse an authoritative HTTPS URL from the existing server setup when available. Otherwise the generator builds the URL from route components; the path depends on the org environment:
|
|
78
|
+
|
|
79
|
+
| Environment | `https://api.salesforce.com/platform/mcp/v1/p/…` |
|
|
80
|
+
|---|---|
|
|
81
|
+
| `production` | `{my-domain}/{site-dev-name}/custom/{server-name}` |
|
|
82
|
+
| `developer` | `{my-domain}/develop/{site-dev-name}/custom/{server-name}` (token usually ends in `-dev-ed`) |
|
|
83
|
+
| `sandbox` | `{my-domain}--{sandbox-name}/sandbox/{site-dev-name}/custom/{server-name}` |
|
|
84
|
+
| `scratch` | `{my-domain}/scratch/{site-dev-name}/custom/{server-name}` |
|
|
85
|
+
|
|
86
|
+
- **Environment**: select `production`, `developer`, `sandbox`, or `scratch`. If the user explicitly requests one, use it. Otherwise use the discovery helper's `environment.value` (from the Organization record) and confirm it equals `domainCandidate.hostEnvironment` (from the instance hostname). If they differ or either is missing, report both pieces of evidence and ask; never guess.
|
|
87
|
+
- **My Domain token** is `domainCandidate.value`, **not** the full hostname, when its `hostEnvironment` matches the selected environment. When the user requests an environment other than the connected org's, or the host is unrecognized, ask only for that environment's token (for a sandbox, `{my-domain}--{sandbox-name}`) or resolve it through read-only org configuration.
|
|
88
|
+
- `site-dev-name` is the selected site's exact developer name, including case. Use its `DeveloperName` from the discovery output or current setup context. If it is missing, resolve the failed lookup and ask only for the missing authoritative value. Never substitute the display name, URL prefix, or a guessed bundle name.
|
|
89
|
+
- `server-name` is the exact deployed server DeveloperName, including case. Keep it separate from the plugin slug and MCP configuration key.
|
|
90
|
+
|
|
91
|
+
Pass `mcp.environment`, `mcp.domain`, `mcp.siteDeveloperName` and `mcp.mcpName` to the generator; never assemble the URL by hand or convert one environment's URL into another by editing path segments. Pass `mcp.url` instead only for an authoritative URL from existing setup. The legacy `mcp.sitePrefix` configuration is rejected. Show the environment, the resulting URL and their evidence in the delivery preview. Ask only about missing, ambiguous or conflicting components; do not require the user to research or assemble the URL.
|
|
92
|
+
|
|
93
|
+
Do not invoke business tools to determine a route. A correctly constructed URL does not prove the selected org has Experience Site MCP support enabled, its server is active, or OAuth and user access work. Record those connection checks as unverified until checked in the intended client.
|
|
94
|
+
|
|
95
|
+
## 3. Retrieve the ECA client ID
|
|
96
|
+
|
|
97
|
+
Read [ECA lookup and recovery](references/eca-consumer-key.md).
|
|
98
|
+
|
|
99
|
+
If the caller already supplied a consumer key from a successful lookup in this session for the same selected org and ECA, reuse it. Otherwise run:
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
node "<skill-dir>/scripts/retrieve_eca_consumer_key.mjs" <target-org-alias> <ECA_DEV_NAME> --json
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Use the returned **`clientId`** as the public OAuth client ID in the delivery output. Never fetch a consumer secret or copy an access/refresh token.
|
|
106
|
+
|
|
107
|
+
A non-zero exit means lookup/validation failed. Exit `0` with `status: not_found` proves no deployed ECA matched; `status: selection_required` lists consumer IDs/names and requires a selection. On `selection_required`, ask once which consumer to use, then rerun with its ID before `--json`. Do not guess a key or print candidate keys. Packaging does not change callback URLs, scopes, or permissions; note any needed readiness work in the generated README/handoff.
|
|
108
|
+
|
|
109
|
+
## 4. Deliver configuration or prepare plugin skills
|
|
110
|
+
|
|
111
|
+
For **MCP configuration only**, follow [standalone configuration delivery](references/mcp-config-delivery.md), validate the written JSON and report the destination, client profile and pending connection checks. Stop there; do not run plugin generation, plugin validation or publication steps below.
|
|
112
|
+
|
|
113
|
+
For a **Claude plugin**, continue below.
|
|
114
|
+
|
|
115
|
+
For **no skills**, use `skills: []` in the generation config and create an MCP-only plugin.
|
|
116
|
+
|
|
117
|
+
For **each new skill**, inspect the selected server's available tool definitions/descriptions through an authenticated, read-only client connection when available. Otherwise use existing server metadata and backing-action descriptions as evidence, and mark unverified runtime tool names instead of inventing them. Write each focused `SKILL.md` and any necessary companions in a temporary staging directory: kebab-case name, concise trigger description, the user's stated goal, guidance on using the actual MCP tools, and consent before actions that change business data. Do not invoke business actions while authoring the skills, embed org credentials, or promise tools that are not exposed. Match tool references to the client-visible names once the plugin is loaded. Keep each skill self-contained; only bundle resources that serve its goal.
|
|
118
|
+
|
|
119
|
+
For **each existing skill**, inspect the chosen `SKILL.md`, its references, scripts, assets and local dependencies. Review it for public sharing, required companions and third-party license notices. Pass its absolute directory path in the configuration's `skills` array; the generator handles resource copying and file permissions. Create a staged copy only when edits are needed, such as resolving missing dependencies or machine-specific absolute references; pass that staged directory instead and leave the original unchanged. Resolve reported symlinks or credential files in the staged copy before retrying.
|
|
120
|
+
|
|
121
|
+
## 5. Generate and validate
|
|
122
|
+
|
|
123
|
+
Create a temporary JSON configuration using the input contract in the reference. Omit `authStyle` or set it to `"claude-code"` for Claude Code. Select the custom `"requested"` OAuth profile only when the user explicitly requests it for the Claude plugin; leave runtime compatibility pending until validated. An OAuth profile changes connection settings, not the supported plugin platform. Supply the public client ID, never a secret.
|
|
124
|
+
|
|
125
|
+
Run the bundled generator to preview and write the package:
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
node "<skill-dir>/scripts/generate_plugin.mjs" /path/to/package-config.json
|
|
129
|
+
node "<skill-dir>/scripts/generate_plugin.mjs" /path/to/package-config.json --write
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
Show the preview: destination, manifest identity/version, MCP URL, public client ID source, auth profile, bundled skills and file inventory. Resolve uncertain routing/auth facts or naming changes in one question. Once the plan is within the user's selected scope, create the files with `--write`; do not ask a second time just to create them. Existing destinations block generation and are never overwritten.
|
|
133
|
+
|
|
134
|
+
On a blocked result or nonzero exit, report the generator's error, resolve the invalid inputs and rerun the preview; do not bypass the generator by constructing the output manually. Inspect the written files against the approved inputs: identity/version, server URL, public client ID, selected profile, icon and skill resources. Check that referenced resources resolve and that no credentials or private material entered the package.
|
|
135
|
+
|
|
136
|
+
Run `claude plugin validate <absolute-plugin-path>` after generation and after any correction; report its exit status and actual output, including warnings. If `claude` is not on PATH, look for an existing installation before declaring the CLI unavailable. Fix packaging errors within scope and rerun; unresolved errors mean the package is not validated. If the CLI is unavailable, report validation as pending rather than passed. Follow the reference for local `--plugin-dir` and `/mcp` OAuth/listing checks. Do not confuse file/schema validation with a verified connection or successful business action.
|
|
137
|
+
|
|
138
|
+
## 6. Handoff for publication
|
|
139
|
+
|
|
140
|
+
Read the generated `README.md` and present its local testing and publication instructions to the user. Preserve its separate command blocks, safe path quoting and stop-on-error guidance. Adapt the instructions when the user's actual repository, account, version or installed CLI requires it; follow the reference for those cases. Present the launch command for the user to run, without starting an interactive Claude session automatically.
|
|
141
|
+
|
|
142
|
+
Report the local folder, files, chosen site/server/ECA, final serving URL, selected authentication profile, actual validation results and unresolved routing/OAuth or licensing work. Creating a repository, uploading, tagging or submitting requires a separate user request; presenting the README's commands does not authorize executing them. Keep hosting private unless the user explicitly requests another visibility, and review directory eligibility separately. Report publication or approval only when actually completed. Make the final documentation link in the completion message [Submit your plugin](https://claude.com/docs/plugins/submit).
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# ECA client ID lookup
|
|
2
|
+
|
|
3
|
+
This delivery skill owns consumer-key retrieval. Run its helper from the selected SFDX project root; `<skill-dir>` is this skill's absolute directory.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
node "<skill-dir>/scripts/retrieve_eca_consumer_key.mjs" <target-org-alias> <ECA_DEV_NAME> --json
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
The helper reads the project's `sourceApiVersion`, queries `ExternalClientApplication` by exact `DeveloperName`, and requests only the public key using GET `/services/data/v<version>/apps/oauth/credentials/<ECA-record-id>?part=key`. Do not query a `ConsumerKey` sObject field or retrieve a consumer secret.
|
|
10
|
+
|
|
11
|
+
Default successful output is the public consumer key. With `--json`, the response contains `apiVersion`, `ecaDeveloperName`, `ecaId`, `oauthConsumerId`, and `clientId`. Only `clientId` is the public OAuth client ID; the other IDs identify Salesforce records. Reuse a successful same-session lookup for the same selected org and ECA. Never copy access or refresh tokens into an output.
|
|
12
|
+
|
|
13
|
+
### Consumer-key retrieval
|
|
14
|
+
|
|
15
|
+
| Exit | Meaning | Next step |
|
|
16
|
+
|---|---|---|
|
|
17
|
+
| `2` | Lookup, API, or response validation failed | Resolve the reported failure; it doesn't establish that the ECA or consumer is missing |
|
|
18
|
+
| `3` | The query succeeded and no ECA matched the DeveloperName | Confirm the exact ECA name and deployment; allow for propagation before retrying |
|
|
19
|
+
| `4` | An OAuth consumer must be selected | Show the returned consumer names and IDs and ask the user which is intended |
|
|
20
|
+
|
|
21
|
+
After the user selects an OAuth consumer, rerun the helper owned by `experience-app-mcp-delivery-generate` with that ID. Run it from the selected SFDX project root:
|
|
22
|
+
```bash
|
|
23
|
+
node "<skill-dir>/scripts/retrieve_eca_consumer_key.mjs" <target-org-alias> <ECA_DEV_NAME> <oauth-consumer-id>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
For a permission error, report that the authenticated user needs `View External Client App Consumer Secrets in Metadata` and point the user to the ECA OAuth consumer details in Setup. Retry only `retrieve_eca_consumer_key.mjs` after resolving the failure, or have the user read the consumer key from that screen. Never retrieve the consumer secret. Use the lookup command and output contract above.
|