@salesforce/afv-skills 1.69.0 → 1.70.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.
Files changed (103) hide show
  1. package/package.json +1 -1
  2. package/skills/data360-code-extension-generate/SKILL.md +160 -252
  3. package/skills/data360-code-extension-generate/references/README.md +34 -172
  4. package/skills/data360-code-extension-generate/references/environment-setup.md +198 -0
  5. package/skills/data360-code-extension-generate/references/mcp-integration.md +36 -0
  6. package/skills/data360-code-extension-generate/references/quick-reference.md +132 -202
  7. package/skills/data360-code-extension-generate/references/run-logs.md +31 -0
  8. package/skills/data360-code-extension-generate/references/schema-discovery.md +45 -0
  9. package/skills/data360-code-extension-generate/references/troubleshooting.md +45 -0
  10. package/skills/data360-code-extension-generate/scripts/check_env.sh +197 -0
  11. package/skills/data360-code-extension-generate/scripts/venv_hook.sh +22 -0
  12. package/skills/dx-devops-work-item-manage/SKILL.md +24 -8
  13. package/skills/dx-devops-work-item-manage/examples/common-workflows.md +32 -0
  14. package/skills/dx-devops-work-item-manage/references/review-api.md +95 -0
  15. package/skills/dx-org-manage/SKILL.md +12 -12
  16. package/skills/dx-org-manage/examples/scratch-orgs/display_output.json +1 -3
  17. package/skills/dx-org-manage/examples/scratch-orgs/success_shape.json +1 -3
  18. package/skills/dx-org-manage/references/opening-org.md +1 -1
  19. package/skills/dx-org-manage/references/scratch-org-operations.md +15 -20
  20. package/skills/dx-packaging-move-to-2gp-migrate/SKILL.md +1 -1
  21. package/skills/education-cloud-academic-calendar-generate/SKILL.md +2 -2
  22. package/skills/education-cloud-course-catalog-migrate/SKILL.md +1 -1
  23. package/skills/education-cloud-domain-configure/references/domain-features/recruitment-admissions.md +8 -7
  24. package/skills/education-cloud-multi-campus-configure/SKILL.md +1 -0
  25. package/skills/education-cloud-multi-campus-configure/references/error_handling.md +7 -6
  26. package/skills/education-cloud-student-recruitment-agent-configure/SKILL.md +2 -0
  27. package/skills/education-cloud-student-recruitment-agent-configure/references/customer-narration.md +2 -0
  28. package/skills/education-cloud-student-recruitment-agent-configure/references/flows.md +1 -1
  29. package/skills/education-cloud-student-recruitment-agent-configure/references/grounding.md +5 -4
  30. package/skills/education-cloud-student-recruitment-agent-configure/references/permissions.md +1 -1
  31. package/skills/education-cloud-student-recruitment-agent-configure/references/prerequisites.md +1 -1
  32. package/skills/education-cloud-student-recruitment-agent-configure/references/routing.md +1 -1
  33. package/skills/experience-cms-content-type-generate/SKILL.md +7 -6
  34. package/skills/experience-cms-content-type-generate/references/agent-checklist.md +3 -3
  35. package/skills/experience-cms-content-type-generate/references/anti-patterns.md +2 -2
  36. package/skills/experience-cms-content-type-generate/references/discovery-details.md +1 -1
  37. package/skills/experience-cms-content-type-generate/references/retrieve-and-reconcile.md +5 -9
  38. package/skills/experience-ui-bundle-custom-app-generate/scripts/resolve-uibundle-path.mjs +10 -0
  39. package/skills/field-service-data-capture-migrate/references/converter-builder-contract.md +2 -2
  40. package/skills/field-service-data-capture-migrate/references/fsm-dc-capability-catalog.md +2 -2
  41. package/skills/field-service-data-capture-migrate/scripts/analyze_flow.py +1 -1
  42. package/skills/field-service-data-capture-migrate/scripts/convert_to_dc_spec.py +1 -1
  43. package/skills/field-service-data-capture-migrate/scripts/fsm_dc_catalog.py +2 -2
  44. package/skills/field-service-data-capture-migrate/scripts/generate_summary.py +2 -2
  45. package/skills/platform-custom-application-generate/SKILL.md +97 -104
  46. package/skills/platform-custom-application-generate/references/app-properties.md +52 -0
  47. package/skills/platform-custom-application-generate/references/app-visibility.md +19 -0
  48. package/skills/platform-custom-application-generate/references/utility-bar.md +55 -0
  49. package/skills/platform-datamask-run/SKILL.md +1 -1
  50. package/skills/platform-datamask-run/references/policy-authoring.md +41 -18
  51. package/skills/platform-dsar-policy-manage/SKILL.md +7 -6
  52. package/skills/platform-dsar-policy-manage/references/export-and-history.md +10 -8
  53. package/skills/platform-dsar-policy-manage/references/report-format.md +4 -2
  54. package/skills/platform-metadata-grounding-get/SKILL.md +7 -7
  55. package/skills/platform-report-generate/SKILL.md +9 -7
  56. package/skills/platform-report-generate/references/column-names.md +12 -1
  57. package/skills/platform-report-generate/references/errors-and-troubleshooting.md +1 -1
  58. package/skills/platform-sharing-rules-generate/SKILL.md +12 -3
  59. package/skills/platform-sharing-rules-generate/references/rule-types.md +1 -0
  60. package/skills/service-agentforce-channel-configure/SKILL.md +6 -3
  61. package/skills/service-agentforce-channel-configure/references/agent-wiring.md +5 -3
  62. package/skills/service-agentforce-channel-configure/references/channel-branch-email.md +24 -15
  63. package/skills/service-agentforce-channel-configure/references/input-validation.md +23 -0
  64. package/skills/service-agentforce-channel-configure/references/live-traffic-gate.md +13 -7
  65. package/skills/service-agentforce-channel-configure/references/queue-resolution.md +3 -1
  66. package/skills/service-agentforce-human-escalation-configure/references/_vendored/input-validation.md +23 -0
  67. package/skills/service-agentforce-human-escalation-configure/references/_vendored/queue-resolution.md +146 -0
  68. package/skills/service-agentforce-human-escalation-configure/references/escalation-mechanism.md +1 -1
  69. package/skills/service-agentforce-human-escalation-configure/scripts/tests/_bootstrap.py +42 -11
  70. package/skills/service-agentforce-human-escalation-configure/scripts/tests/test_escalation_contracts.py +45 -0
  71. package/skills/service-agentforce-human-escalation-configure/scripts/verify-and-configure.sh +23 -9
  72. package/skills/service-de-channel-activate/SKILL.md +10 -10
  73. package/skills/service-de-channel-activate/references/gotchas.md +4 -4
  74. package/skills/service-de-channel-activate/references/phone-verification.md +43 -19
  75. package/skills/service-de-channel-create/SKILL.md +1 -1
  76. package/skills/service-de-channel-create/references/facebook.md +1 -1
  77. package/skills/service-de-channel-create/references/whatsapp.md +33 -6
  78. package/skills/service-de-channel-routing-configure/SKILL.md +5 -1
  79. package/skills/service-de-channel-routing-configure/references/gotchas.md +3 -1
  80. package/skills/service-de-channel-routing-configure/references/named-queue.md +39 -0
  81. package/skills/service-de-channel-settings-configure/SKILL.md +3 -1
  82. package/skills/service-de-channel-settings-configure/references/channel-settings-facets.md +2 -2
  83. package/skills/service-de-channel-settings-configure/references/gotchas.md +12 -1
  84. package/skills/service-de-headless-channel-configure/SKILL.md +68 -74
  85. package/skills/service-de-headless-channel-configure/references/gotchas.md +6 -2
  86. package/skills/service-de-headless-channel-configure/references/inputs.md +19 -0
  87. package/skills/service-de-headless-channel-configure/references/output-envelopes.md +23 -1
  88. package/skills/service-de-headless-channel-configure/references/partial-success.md +1 -0
  89. package/skills/service-de-headless-channel-configure/references/requested-settings.md +55 -0
  90. package/skills/service-de-headless-channel-configure/references/worked-examples.md +35 -1
  91. package/skills/service-digital-engagement-channel-configure/SKILL.md +3 -3
  92. package/skills/service-digital-engagement-channel-configure/references/onboarding_contract.md +2 -2
  93. package/skills/service-digital-engagement-channel-configure/scripts/check-api-version.sh +1 -1
  94. package/skills/service-digital-engagement-deployment-configure/SKILL.md +2 -2
  95. package/skills/service-digital-engagement-deployment-configure/references/onboarding_contract.md +4 -2
  96. package/skills/service-digital-engagement-deployment-configure/scripts/check-api-version.sh +1 -1
  97. package/skills/service-omni-command-center-configure/SKILL.md +1 -1
  98. package/skills/data360-schema-get/SKILL.md +0 -388
  99. package/skills/data360-schema-get/references/README.md +0 -191
  100. package/skills/data360-schema-get/scripts/get_dlo_schema.py +0 -244
  101. package/skills/data360-schema-get/scripts/get_dmo_schema.py +0 -233
  102. package/skills/field-service-prework-brief-deployer-configure/SKILL.md +0 -646
  103. package/skills/field-service-voice-to-form-configure/SKILL.md +0 -650
@@ -0,0 +1,197 @@
1
+ #!/usr/bin/env bash
2
+ # Read-only prerequisite check for Data 360 code extension development.
3
+ # Usage: bash check_env.sh [PROJECT_DIR] [ORG] [system|venv]
4
+ # Pass "" to let the script resolve a value (see SKILL.md Phase 0a):
5
+ # PROJECT_DIR: argument > $D360_PROJECT_DIR > /home/codebuilder/dx-project (Code Builder) > current folder
6
+ # ORG: argument > $D360_TARGET_ORG > CLI default org if Connected > the only Connected org
7
+ # Prints the resolved values, the org's API version, the Python mode, and the <PY_ENV>
8
+ # line to start every shell block with, then checks everything else. Printed values are
9
+ # literal (no $(...)), so agents can copy them into commands that need no extra approval.
10
+ # Changes nothing. Exits 1 if any required check fails (including an unresolved org).
11
+
12
+ PROJECT_DIR="${1:-}"
13
+ ORG_ALIAS="${2:-}"
14
+ MODE="${3:-}"
15
+
16
+ fail=0
17
+ ok() { printf '✅ %s\n' "$1"; }
18
+ bad() { printf '❌ %s\n → %s\n' "$1" "$2"; fail=1; }
19
+ warn() { printf '⚠️ %s\n → %s\n' "$1" "$2"; }
20
+ pyver() { "$1" -c 'import sys; print("%d.%d" % sys.version_info[:2])' 2>/dev/null; }
21
+ ext_managed() { "$1" -c 'import os, sys, sysconfig; sys.exit(0 if os.path.exists(os.path.join(sysconfig.get_path("stdlib"), "EXTERNALLY-MANAGED")) else 1)' 2>/dev/null; }
22
+ org_status() { sf org display --target-org "$1" --json 2>/dev/null | jq -r '.result.connectedStatus // empty' 2>/dev/null; }
23
+
24
+ # ---- sf must be able to run here --------------------------------------------
25
+ # Agent sandboxes (for example Codex) can block sf from writing ~/.sf, so every sf
26
+ # call crashes with EPERM. The plugin and org checks would then report false ❌s.
27
+ if command -v sf >/dev/null 2>&1 && [ -z "$(sf --version 2>/dev/null)" ]; then
28
+ bad "sf CLI is installed but can't run in this shell (usually a sandbox blocking writes to ~/.sf)" \
29
+ "rerun this check with permission to run outside the sandbox; the plugin, org and other results can't be trusted until then"
30
+ exit 1
31
+ fi
32
+
33
+ # ---- Resolve PROJECT_DIR ----------------------------------------------------
34
+ if [ -n "$PROJECT_DIR" ]; then PROJECT_SRC="argument"
35
+ elif [ -n "$D360_PROJECT_DIR" ]; then PROJECT_DIR="$D360_PROJECT_DIR"; PROJECT_SRC="D360_PROJECT_DIR"
36
+ elif [ -d /home/codebuilder/dx-project ]; then PROJECT_DIR=/home/codebuilder/dx-project; PROJECT_SRC="Code Builder workspace"
37
+ else PROJECT_DIR="$PWD"; PROJECT_SRC="current folder"
38
+ fi
39
+ PROJECT_DIR="${PROJECT_DIR%/}"
40
+
41
+ # ---- Resolve the org (alias, or username if it has no alias) ----------------
42
+ ORG_CANDIDATES=""
43
+ if [ -n "$ORG_ALIAS" ]; then ORG_SRC="argument"
44
+ elif [ -n "$D360_TARGET_ORG" ]; then ORG_ALIAS="$D360_TARGET_ORG"; ORG_SRC="D360_TARGET_ORG"
45
+ elif command -v sf >/dev/null 2>&1 && command -v jq >/dev/null 2>&1; then
46
+ default=$(sf config get target-org --json 2>/dev/null | jq -r '.result[0].value // empty')
47
+ if [ -n "$default" ] && [ "$(org_status "$default")" = "Connected" ]; then
48
+ ORG_ALIAS="$default"; ORG_SRC="CLI default org, Connected"
49
+ else
50
+ # Every Connected org, once, as "alias-or-username".
51
+ connected=$(sf org list --json 2>/dev/null | jq -r '[.result[]?[]? | select(.connectedStatus == "Connected")]
52
+ | unique_by(.username) | .[] | (.alias // .username)')
53
+ count=$(printf '%s' "$connected" | grep -c .)
54
+ if [ "$count" = 1 ]; then ORG_ALIAS="$connected"; ORG_SRC="only Connected org"
55
+ elif [ "$count" -gt 1 ]; then ORG_CANDIDATES=$(printf '%s' "$connected" | paste -sd, - | sed 's/,/, /g')
56
+ fi
57
+ fi
58
+ fi
59
+
60
+ echo "PROJECT_DIR=$PROJECT_DIR ($PROJECT_SRC)"
61
+ if [ -n "$ORG_ALIAS" ]; then
62
+ echo "ORG_ALIAS=$ORG_ALIAS ($ORG_SRC)"
63
+ elif [ -n "$ORG_CANDIDATES" ]; then
64
+ echo "ORG_ALIAS= (ambiguous: several Connected orgs and no Connected default: $ORG_CANDIDATES)"
65
+ else
66
+ echo "ORG_ALIAS= (no Connected org found)"
67
+ fi
68
+
69
+ # ---- Python mode ------------------------------------------------------------
70
+ if [ -z "$MODE" ]; then
71
+ if [ -d "$PROJECT_DIR/.venv" ]; then
72
+ MODE=venv # an existing venv always wins
73
+ elif [ "$(pyver python3)" = "3.11" ] && python3 -m pip --version >/dev/null 2>&1 && ! ext_managed python3; then
74
+ MODE=system
75
+ elif command -v python3.11 >/dev/null 2>&1; then
76
+ MODE=venv # 3.11 exists but is not the default python3 (typical macOS)
77
+ else
78
+ MODE=none
79
+ fi
80
+ fi
81
+
82
+ case "$MODE" in
83
+ venv) PY_ENV="source $(printf '%q' "$PROJECT_DIR/.venv/bin/activate")" ;;
84
+ system) USER_BIN="$(python3 -m site --user-base 2>/dev/null)/bin"
85
+ PY_ENV="export PATH=\"$USER_BIN:\$PATH\"" ;;
86
+ *) PY_ENV="" ;;
87
+ esac
88
+ echo "MODE=$MODE"
89
+ [ -n "$PY_ENV" ] && echo "PY_ENV=$PY_ENV"
90
+ echo
91
+
92
+ # ---- sf CLI and plugin ------------------------------------------------------
93
+ if command -v sf >/dev/null 2>&1; then
94
+ ok "sf CLI: $(sf --version 2>/dev/null | head -1)"
95
+ plugin=$(sf plugins 2>/dev/null | grep -i 'data-code-extension')
96
+ [ -n "$plugin" ] && ok "plugin: $plugin" \
97
+ || bad "data-code-extension plugin missing" "sf plugins install @salesforce/plugin-data-code-extension"
98
+ else
99
+ bad "sf CLI missing" "environment-setup.md §2"
100
+ fi
101
+
102
+ # ---- Python -----------------------------------------------------------------
103
+ case "$MODE" in
104
+ none)
105
+ bad "no Python 3.11 found (python3 is $(pyver python3 || echo missing))" "environment-setup.md §3"
106
+ ;;
107
+ venv)
108
+ if [ -f "$PROJECT_DIR/.venv/bin/activate" ]; then
109
+ # Apply the mode exactly as the agent will, then check what the plugin sees.
110
+ . "$PROJECT_DIR/.venv/bin/activate"
111
+ v=$(pyver python3)
112
+ [ "$v" = "3.11" ] && ok "venv python3 is 3.11 ($(command -v python3))" \
113
+ || bad "venv python3 is ${v:-missing}, must be 3.11" "recreate: rm -rf .venv && python3.11 -m venv .venv"
114
+ python3 -m pip --version >/dev/null 2>&1 \
115
+ || bad "venv has no pip (created with uv venv?)" "recreate with: python3.11 -m venv .venv"
116
+ if [ -n "$PYSPARK_PYTHON" ] && [ "$PYSPARK_PYTHON" = "$PYSPARK_DRIVER_PYTHON" ]; then
117
+ ok "PYSPARK_PYTHON=$PYSPARK_PYTHON"
118
+ else
119
+ bad "PySpark hook missing from .venv/bin/activate (run fails with PYTHON_VERSION_MISMATCH)" "bash <SKILL_DIR>/scripts/venv_hook.sh $PROJECT_DIR"
120
+ fi
121
+ else
122
+ bad "no venv at $PROJECT_DIR/.venv" "python3.11 -m venv .venv (not uv venv), then scripts/venv_hook.sh"
123
+ fi
124
+ ;;
125
+ system)
126
+ eval "$PY_ENV"
127
+ v=$(pyver python3)
128
+ [ "$v" = "3.11" ] && ok "python3 is 3.11 ($(python3 --version 2>&1), $(command -v python3))" \
129
+ || bad "python3 is ${v:-missing}, system mode needs 3.11" "use venv mode (environment-setup.md §3b)"
130
+ python3 -m pip --version >/dev/null 2>&1 && ok "python3 -m pip available" \
131
+ || bad "python3 has no pip" "environment-setup.md §3a (install pip for this Python)"
132
+ ext_managed python3 \
133
+ && bad "system Python is externally managed (PEP 668); pip install will be refused" "use venv mode (environment-setup.md §3b)"
134
+ # The plugin tries pip3 first; a pip3 from another Python can report the SDK as installed
135
+ # while python3 can't import it.
136
+ if command -v pip3 >/dev/null 2>&1; then
137
+ case "$(pip3 --version 2>/dev/null)" in
138
+ *'python 3.11'*) ok "pip3 belongs to Python 3.11" ;;
139
+ *) warn "pip3 belongs to another Python: $(pip3 --version 2>/dev/null)" "always install with python3 -m pip" ;;
140
+ esac
141
+ fi
142
+ ;;
143
+ esac
144
+
145
+ # ---- SDK and pipreqs (as the plugin will see them) --------------------------
146
+ if [ "$MODE" != none ] && command -v python3 >/dev/null 2>&1; then
147
+ sdk=$(python3 -c 'import importlib.metadata as m; print(m.version("salesforce-data-customcode"))' 2>/dev/null)
148
+ if [ -n "$sdk" ] && python3 -c 'import datacustomcode' 2>/dev/null; then
149
+ ok "salesforce-data-customcode $sdk (importable by python3)"
150
+ else
151
+ [ "$MODE" = system ] && cmd="python3 -m pip install --user --upgrade salesforce-data-customcode pipreqs" \
152
+ || cmd="python3 -m pip install --upgrade salesforce-data-customcode pipreqs"
153
+ bad "SDK not importable by python3" "$cmd"
154
+ fi
155
+ command -v pipreqs >/dev/null 2>&1 && ok "pipreqs on PATH ($(command -v pipreqs))" \
156
+ || bad "pipreqs not on PATH (scan fails with PipreqsScanError)" "$PY_ENV && python3 -m pip install $( [ "$MODE" = system ] && echo '--user ')pipreqs"
157
+ fi
158
+
159
+ # ---- Java -------------------------------------------------------------------
160
+ if command -v java >/dev/null 2>&1 || [ -n "$JAVA_HOME" ]; then
161
+ jv=$("${JAVA_HOME:+$JAVA_HOME/bin/}java" -version 2>&1 | head -1)
162
+ case "$jv" in
163
+ *'"17'*|*'"11'*|*' 17'*|*' 11'*) ok "Java: $jv" ;;
164
+ *'"21'*|*' 21'*) warn "Java: $jv" "works for SDK reads, transforms and local run; df.toPandas() with Arrow fails on Java 21 (PySpark 3.5). Use JDK 17 if your code calls toPandas or pandas UDFs" ;;
165
+ *'Unable to locate'*|'') bad "no JDK found" "environment-setup.md §1 Java" ;;
166
+ *) warn "Java: $jv" "JDK 17 recommended for PySpark 3.5 (11 also works)" ;;
167
+ esac
168
+ else
169
+ bad "no Java found" "environment-setup.md §1 Java"
170
+ fi
171
+
172
+ # ---- Docker (deploy only) ---------------------------------------------------
173
+ if docker info --format '{{.ServerVersion}}' >/dev/null 2>&1; then
174
+ ok "Docker running"
175
+ else
176
+ warn "Docker not running or not installed" "needed for deploy only; without it you can develop and run here and deploy elsewhere"
177
+ fi
178
+
179
+ # ---- jq ---------------------------------------------------------------------
180
+ command -v jq >/dev/null 2>&1 && ok "jq installed" || warn "jq missing" "install jq"
181
+
182
+ # ---- Org connection ---------------------------------------------------------
183
+ if [ -n "$ORG_ALIAS" ] && command -v sf >/dev/null 2>&1; then
184
+ org_json=$(sf org display --target-org "$ORG_ALIAS" --json 2>/dev/null)
185
+ status=$(printf '%s' "$org_json" | jq -r '.result.connectedStatus // empty' 2>/dev/null)
186
+ api=$(printf '%s' "$org_json" | jq -r '.result.apiVersion // empty' 2>/dev/null)
187
+ [ "$status" = "Connected" ] && { ok "org $ORG_ALIAS: Connected"; echo "API_VERSION=$api"; } \
188
+ || bad "org $ORG_ALIAS: ${status:-not found}" "sf org login web --instance-url <ORG_URL> --alias $ORG_ALIAS (user must log in)"
189
+ elif [ -n "$ORG_CANDIDATES" ]; then
190
+ bad "org not resolved: several Connected orgs ($ORG_CANDIDATES)" "ask the user which one, then pass it as the second argument"
191
+ else
192
+ bad "no Connected org" "sf org login web --instance-url <ORG_URL> --alias <ORG_ALIAS> (user must log in)"
193
+ fi
194
+
195
+ echo
196
+ echo "Manual check (no API): Data Cloud Setup → Feature Manager → 'Code Extension' must be ON."
197
+ exit $fail
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env bash
2
+ # Venv mode only. Pins PySpark to the project venv's Python by adding two exports
3
+ # to <PROJECT_DIR>/.venv/bin/activate. Safe to rerun; adds the lines once.
4
+ # Usage: bash venv_hook.sh <PROJECT_DIR>
5
+ # Rerun after recreating the venv (a new venv regenerates activate).
6
+
7
+ PROJECT_DIR="${1:?usage: venv_hook.sh <PROJECT_DIR>}"
8
+ ACTIVATE="$PROJECT_DIR/.venv/bin/activate"
9
+
10
+ [ -f "$ACTIVATE" ] || { echo "❌ $ACTIVATE not found; create the venv first: python3.11 -m venv .venv"; exit 1; }
11
+
12
+ if grep -q 'PYSPARK_PYTHON' "$ACTIVATE"; then
13
+ echo "✅ PySpark hook already present in $ACTIVATE, skipping"
14
+ else
15
+ cat >> "$ACTIVATE" <<'EOF'
16
+
17
+ # Data 360 code extension: Spark driver and workers must use this venv's Python 3.11
18
+ export PYSPARK_PYTHON="$VIRTUAL_ENV/bin/python"
19
+ export PYSPARK_DRIVER_PYTHON="$VIRTUAL_ENV/bin/python"
20
+ EOF
21
+ echo "✅ PySpark hook added to $ACTIVATE"
22
+ fi
@@ -4,7 +4,7 @@ description: "Use this skill to manage the full lifecycle of DevOps Center work
4
4
  metadata:
5
5
  relatedSkills:
6
6
  - "dx-devops-promote"
7
- version: "1.1"
7
+ version: "1.2"
8
8
  domains: ["Developer Experience"]
9
9
  minApiVersion: "58.0"
10
10
  cliTools:
@@ -36,7 +36,7 @@ Gather or infer before proceeding:
36
36
  - **For create**: project ID (required), subject (required), description (optional)
37
37
  - **For commit**: work item name or ID (required), commit message, and either the files to commit (git path) or the components to commit (API path). Optional: **dev org alias** — the org that holds the changes. When provided, try the DevOps Center commit API first (see step 5); otherwise use git
38
38
  - **For update**: work item name (e.g., WI-000001) or work item ID (required), fields to update (subject, description, status)
39
- - **For create-review**: work item name (e.g., WI-000001) or work item ID (required)
39
+ - **For create-review**: work item name (e.g., WI-000001) or work item ID (required). Optional: **dev org alias**. When provided, try the DevOps Center review API first (see step 7); otherwise use `sf devops review create`
40
40
 
41
41
  Defaults unless specified:
42
42
  - Output format: `--json` for headless consumption
@@ -149,7 +149,18 @@ Operations use `sf devops work-item` CLI commands with `--json` output; the API
149
149
  - Parse the JSON response: `.result.name`, `.result.subject`, `.result.status` contain the updated values
150
150
  - **For status transitions specifically**: after the command completes, explicitly confirm the new status by checking `.result.status` in the response. If the status field is absent from the update response, re-query the work item via list to verify the status persisted
151
151
 
152
- 7. **Create pull request** — when the user wants to create a PR for code review:
152
+ 7. **Create pull request** — when the user wants to create a PR for code review. Choose the path first:
153
+ - **API path** — when the user gave a dev org alias and the `doceConnectionType` preflight (step 5, API path, item 1) succeeds. The call runs on the dev org and DevOps Center creates the PR with its stored VCS credentials.
154
+ - **CLI path** — everything else.
155
+
156
+ **API path** (body, errors and idempotency in `references/review-api.md`):
157
+ 1. Resolve the work item id and name on the hub (`sf devops work-item list --project-id <id> --target-org <hub>`). The work item must have a committed component list and must not be Nevered.
158
+ 2. `POST /connect/devops/createReview` on the **dev org** with `{workItemId, workItemName, workItemLink}`; the body is the inner object (no `createReview` wrapper).
159
+ 3. The call is synchronous. Errors return HTTP 200 with `status: "Error"` and `errorMessage` = `CODE:detail`. Surface it using the error table in the reference and stop.
160
+ 4. On `Success`, `reviewUrl` is the PR URL. Calling again for the same work item returns the same URL, so a repeat call is safe.
161
+ 5. Confirm on the hub that the work item is `IN_REVIEW` and `ReviewRemoteReference` holds the PR number.
162
+
163
+ **CLI path:**
153
164
  ```bash
154
165
  sf devops review create \
155
166
  --work-item-name <WI-name> \
@@ -178,7 +189,8 @@ Operations use `sf devops work-item` CLI commands with `--json` output; the API
178
189
  - **For commit (API path)**: verify the POST `status`, then `DevopsRequestInfo.Status`, are `SUCCESS`, and that a new `WorkItemComponentList` with a `CommitReference` exists on the hub. A new list with an empty `CommitReference` means nothing new was committed; report that, not a clean success.
179
190
  - **For update (general fields)**: verify the CLI returned status 0 and compare the returned JSON fields against the user's requested changes. If updating subject, confirm `.result.subject` matches the new value.
180
191
  - **For update (status transition)**: verify the CLI returned status 0, then **explicitly confirm the status transition** by checking `.result.status` in the JSON response matches the target status (e.g., "Ready to Promote"). If the response doesn't include the status field, re-run `sf devops work-item list` filtered to this work item and verify the status persisted.
181
- - **For create-review**: verify the CLI returned status 0 and the JSON output contains `.result.pullRequestUrl` (the PR URL) and `.result.status` (should be "open" or equivalent). If VCS credentials are missing, the CLI returns an error — surface this to the user.
192
+ - **For create-review (CLI path)**: verify the CLI returned status 0 and the JSON output contains `.result.pullRequestUrl` (the PR URL) and `.result.status` (should be "open" or equivalent). If VCS credentials are missing, the CLI returns an error — surface this to the user.
193
+ - **For create-review (API path)**: verify the response `status` is `Success` with a non-empty `reviewUrl`, then that the hub work item is `IN_REVIEW` with `ReviewRemoteReference` set.
182
194
 
183
195
  9. **Report results**:
184
196
  - **List**: present work items in a readable format showing work item name, subject, status, branch, and environment. If filtering by status was requested, show only matching work items.
@@ -186,7 +198,7 @@ Operations use `sf devops work-item` CLI commands with `--json` output; the API
186
198
  - **Commit**: git path — confirm which files were staged, the commit SHA (from git output), and "Changes committed and pushed to branch <branch-name>." API path — confirm the `reqId`, components committed and hub `CommitReference` (author is DevOps Center)
187
199
  - **Update (general)**: confirm which fields changed with before/after values (e.g., "Subject updated from 'X' to 'Y'").
188
200
  - **Status transition**: explicitly state the transition with old → new status (e.g., "Status updated: In Progress → Ready to Promote").
189
- - **Create-review**: return the PR URL and confirm "Pull request created successfully. Status: open. URL: <url>"
201
+ - **Create-review**: return the PR URL and confirm "Pull request created successfully. Status: open. URL: <url>". API path — report `reviewUrl`, and note when the call returned an existing PR rather than creating one
190
202
 
191
203
  ---
192
204
 
@@ -203,6 +215,7 @@ Operations use `sf devops work-item` CLI commands with `--json` output; the API
203
215
  | Commit before creating a PR | Commit first and confirm a component list exists on the hub before `review create` |
204
216
  | API commit only sends components already in the dev org | The API retrieves from the dev org, not from local disk; deploy local-only edits first (`sf project deploy start`) or use the git path |
205
217
  | Check `status` in the commit API response | Errors are returned as HTTP 200 with `status: "ERROR"` |
218
+ | Check `status` in the review API response | Errors are returned as HTTP 200 with `status: "Error"` and `errorMessage` as `CODE:detail` |
206
219
  | PR creation requires VCS credentials in org | DevOps Center API uses stored VCS credentials; no local git auth needed |
207
220
  | Never use interactive prompts | Skills run in headless environments; all inputs must be via CLI flags |
208
221
 
@@ -223,6 +236,7 @@ Operations use `sf devops work-item` CLI commands with `--json` output; the API
223
236
  | **Commit pushed while work item is New** | The hub ignores external pushes for New work items; set In Progress first and, if already pushed, re-check after the status change |
224
237
  | **API commit still in progress past the deadline** | Report it as stuck; do not retry automatically (a new request could race it) |
225
238
  | **Git push fails - no commits or branch not found** | Verify files are staged with `git status` and branch name retrieved from work item via list command |
239
+ | **Review API returns `REVIEW_VCS_AUTHENTICATION_FAILED`** | Core maps any "not found" to this code, so a missing branch looks like an auth failure; check the work item and target branches exist as well as the credential |
226
240
  | **PR creation fails - VCS credentials** | VCS credentials not configured in DevOps Center UI; instruct user to configure in Setup → DevOps Center → VCS Credentials |
227
241
 
228
242
  ---
@@ -235,9 +249,9 @@ Deliverables vary by operation:
235
249
  - **Create**: Work item name (e.g., WI-000001), ID, branch name, and environment of the newly created work item
236
250
  - **Commit**: Confirmation of git commit and push success with commit SHA, or for the API path the `reqId`, final request status and `CommitReference`
237
251
  - **Update**: Confirmation of updated fields (old value → new value for subject/description, or status change)
238
- - **Create-review**: Pull request URL, PR number, and status
252
+ - **Create-review**: Pull request URL, PR number, and status (API path: `reviewUrl` and hub `IN_REVIEW` confirmation)
239
253
 
240
- Outputs are derived from `sf devops work-item` CLI, `sf devops review create` CLI, and standard git commands.
254
+ Outputs are derived from `sf devops work-item` CLI, `sf devops review create` CLI, the DevOps Center commit and review APIs, and standard git commands.
241
255
 
242
256
  ---
243
257
 
@@ -276,7 +290,8 @@ Before reporting results to the user:
276
290
 
277
291
  ### Create-Review Operation Checks
278
292
  - [ ] Was work item identifier provided (name or ID)?
279
- - [ ] Was a PR URL returned in JSON output?
293
+ - [ ] Was a PR URL returned (`.result.pullRequestUrl` for the CLI, `reviewUrl` for the API)?
294
+ - [ ] API path: was the response `status` checked, and was the hub work item confirmed `IN_REVIEW`?
280
295
  - [ ] Was the PR creation confirmed?
281
296
 
282
297
  ---
@@ -286,5 +301,6 @@ Before reporting results to the user:
286
301
  | File | When to read |
287
302
  |------|-------------|
288
303
  | `references/commit-api.md` | When committing through the DevOps Center API: request body, response and error codes, polling, preflight |
304
+ | `references/review-api.md` | When creating a review through the DevOps Center API: request body, response and error codes, idempotency, hub confirmation |
289
305
  | `references/cli-commands.md` | When you need detailed CLI flag documentation, JSON output schemas, or error handling patterns |
290
306
  | `examples/common-workflows.md` | When the user's request matches a common pattern (bulk updates, reassignment, idempotent creation, sequential transitions) |
@@ -526,3 +526,35 @@ Real-world examples of typical work item operations in DevOps Center autonomous
526
526
  A new row with a `CommitReference` means the commit was recorded.
527
527
 
528
528
  **Fallback:** if the preflight fails, retrieve the changes with `sf project retrieve start --target-org <dev-org>` if they exist only in the dev org, set the work item to In Progress if it is New, then follow Workflow 3 and re-check the hub before creating the PR.
529
+
530
+ ---
531
+
532
+ ## Workflow 17: Create a Review Through the DevOps Center API
533
+
534
+ **User request:** "Create a PR for WI-000012. My dev org is <dev-org>."
535
+
536
+ **Steps:**
537
+
538
+ 1. **Preflight** as in the commit workflow (`doceConnectionType` on the dev org). A non-2xx response → use `sf devops review create --work-item-name WI-000012 --json`.
539
+
540
+ 2. **Look up the work item on the hub** (not Nevered, already committed):
541
+ ```bash
542
+ sf devops work-item list --project-id <project-id> --target-org <hub-org> --json
543
+ ```
544
+
545
+ 3. **Create the review** (body is the inner object, no wrapper):
546
+ ```bash
547
+ cat > review.json <<'JSON'
548
+ {"workItemId":"<work-item-id>","workItemName":"WI-000012",
549
+ "workItemLink":"https://<hub-host>/lightning/r/WorkItem/<work-item-id>/view"}
550
+ JSON
551
+ sf api request rest "/services/data/v68.0/connect/devops/createReview" --method POST --body @review.json --target-org <dev-org>
552
+ ```
553
+ Expect `{"status":"Success","reviewUrl":"https://github.com/<owner>/<repo>/pull/15",...}`. If `status` is `Error`, report the `CODE:detail` in `errorMessage` and stop.
554
+
555
+ 4. **Confirm on the hub** that WI-000012 is `IN_REVIEW` and `ReviewRemoteReference` is `15`:
556
+ ```bash
557
+ sf data query --target-org <hub-org> --json -q "SELECT Status, ReviewRemoteReference FROM WorkItem WHERE Id = '<work-item-id>'"
558
+ ```
559
+
560
+ Repeating step 3 for the same work item returns the same `reviewUrl`, so it is safe to retry.
@@ -0,0 +1,95 @@
1
+ # Create a review through the DevOps Center API
2
+
3
+ Verified against a live Core-hub setup (dev org + hub org, work item `WI-000012`, GitHub repo). Use this when the user supplies a dev org alias and the work item already has a committed component list. It is the review-side counterpart of `references/commit-api.md`; the same dev org / hub org split and preflight apply.
4
+
5
+ ## Contents
6
+
7
+ - Flow
8
+ - Preflight
9
+ - Request
10
+ - Response
11
+ - Errors
12
+ - Idempotency
13
+ - Confirming on the hub
14
+ - Known limits
15
+
16
+ ## Flow
17
+
18
+ ```text
19
+ dev org POST /connect/devops/createReview
20
+ -> hub org (ALMDevOpsCenterHub named credential) POST .../workItems/{id}/review
21
+ -> DevOps Center service -> GitHub/Bitbucket pull request
22
+ <- {status, reviewUrl, errorMessage, testingTriggeredStatus}
23
+ ```
24
+
25
+ The call is **synchronous**: the pull request exists when the response returns. There is no `DevopsRequestInfo` to poll (unlike commit). The hub server-side creates the PR using the VCS credentials stored in DevOps Center, so no local git auth is needed.
26
+
27
+ ## Preflight
28
+
29
+ Same check as commit, but at `v68.0` (the version `createReview` was verified at; the commit flow uses `v67.0`). Use the version written here; an older version such as `v63.0` returns `NOT_FOUND`, which is not evidence that the org lacks DevOps Center. `GET /services/data/v68.0/connect/devops/doceConnectionType` on the dev org must return `{"isCore": true, "isManagedPackage": false}`. Any other result means use the `sf devops review create` CLI path.
30
+
31
+ ## Request
32
+
33
+ ```bash
34
+ sf api request rest "/services/data/v68.0/connect/devops/createReview" \
35
+ --method POST --body @review.json --target-org <dev-org>
36
+ ```
37
+
38
+ ```json
39
+ {
40
+ "workItemId": "<hub work item id, 1fk...>",
41
+ "workItemName": "WI-000012",
42
+ "workItemLink": "https://<hub-host>/lightning/r/WorkItem/<workItemId>/view"
43
+ }
44
+ ```
45
+
46
+ - The body is the inner object. Wrapping it in `{"createReview": {...}}` fails with `JSON_PARSER_ERROR: Unrecognized field "createReview"`.
47
+ - Resolve `workItemId` and `workItemName` on the hub with `sf devops work-item list --project-id <id> --target-org <hub-org> --json`.
48
+ - `<hub-host>` is the hub org's instance URL (`sf org display --target-org <hub-org> --json`, `.result.instanceUrl`).
49
+ - Pass the file with the `@` prefix, as in commit.
50
+
51
+ ## Response
52
+
53
+ Success (HTTP 200):
54
+
55
+ ```json
56
+ {"status": "Success", "reviewUrl": "https://github.com/<owner>/<repo>/pull/15", "errorMessage": "", "testingTriggeredStatus": "Not Applicable"}
57
+ ```
58
+
59
+ - `reviewUrl` is the pull request URL; the PR number is its last path segment.
60
+ - `testingTriggeredStatus` is informational. Seen: `"Not Applicable"` (with a space). Source also allows `success` and `error`; report it as given and do not treat it as a failure signal.
61
+
62
+ ## Errors
63
+
64
+ Failures are HTTP 200 with `status: "Error"`, an empty `reviewUrl`, and `errorMessage` as `CODE:detail`. Always check `status`.
65
+
66
+ | Code | Meaning | Action |
67
+ |------|---------|--------|
68
+ | `WORKITEM_NEVERED` | Work item is Nevered | Stop; the work item cannot get a review |
69
+ | `REVIEW_NO_COMMITS_BETWEEN_BRANCHES` | Work item branch has no commits relative to the target branch | Commit first, then retry |
70
+ | `REVIEW_CREDENTIAL_ERROR` | VCS credential rejected ("Bad credentials") | Ask the user to fix the VCS credential in DevOps Center |
71
+ | `REVIEW_VCS_AUTHENTICATION_FAILED` | Raised for any "not found" in the VCS error, including a **missing branch** | Check both the credential and that the work item and target branches exist |
72
+ | `REVIEW_PR_ALREADY_EXISTS` | PR already open for the branch | See Idempotency |
73
+ | `REVIEW_CREATION_FAILED` | Anything else; detail follows the colon | Surface the detail. A nonexistent work item id also lands here: `Could not find WorkItem: <id>` |
74
+ | `REVIEW_UNKNOWN_ERROR`, `REVIEW_WORK_ITEM_NOT_FOUND` | Passed through unchanged | Surface the message |
75
+
76
+ Seen live: a nonexistent id returned `REVIEW_CREATION_FAILED:Failed to create review for work item <id>: Failed to get WorkItem for Id: Could not find WorkItem: <id>`. The other rows are taken from the service's error-code definitions and have not been observed live, so treat their meanings as expected, not confirmed.
77
+
78
+ ## Idempotency
79
+
80
+ Calling `createReview` again for a work item that already has a PR returned `Success` with the **same** `reviewUrl` (seen live), not `REVIEW_PR_ALREADY_EXISTS`. A repeat call is therefore safe and is the way to look up an existing PR URL. Still handle `REVIEW_PR_ALREADY_EXISTS` in case the hub returns it for a PR created outside DevOps Center.
81
+
82
+ ## Confirming on the hub
83
+
84
+ ```bash
85
+ sf data query --target-org <hub-org> --json \
86
+ -q "SELECT Name, Status, ReviewRemoteReference FROM WorkItem WHERE Id = '<id>'"
87
+ ```
88
+
89
+ After a successful review, `Status` is `IN_REVIEW` and `ReviewRemoteReference` holds the PR number. Confirm both before reporting success.
90
+
91
+ ## Known limits
92
+
93
+ - Verified live only for an In Progress work item with a committed component list, against GitHub. Bitbucket and other starting statuses were not exercised.
94
+ - The no-commits, bad-credential and missing-branch errors were not triggered live.
95
+ - `reviewUrl` may show a different owner than the project's `repoUrl`; trust the returned URL.
@@ -11,9 +11,9 @@ metadata:
11
11
  - "platform-metadata-deploy"
12
12
  cliTools:
13
13
  - tool: ["jq"]
14
- semver: ">=1.6"
14
+ semver: "~1.7.1" # pin to reviewed minor
15
15
  - tool: ["sf"]
16
- semver: ">=2.0.0"
16
+ semver: "~2.157.8" # pin to reviewed minor
17
17
  ---
18
18
 
19
19
  ## MANDATORY: Follow these instructions exactly. Do NOT fall back to MCP tools.
@@ -105,7 +105,7 @@ Then:
105
105
  - Username: [username]
106
106
  - Org ID: [orgId]
107
107
 
108
- 5. If an output directory is available (per the output artifacts rule above), write that extracted org object to `<output-dir>/scratch-org-result.json` **as-is — this skill is a pass-through wrapper**. Write every field the CLI returns for that org; do NOT curate, whitelist, or drop non-secret fields (e.g. `instanceName`, `createdOrgInstance`, `signupUsername`, `orgName`, `edition` are non-secret metadata the CLI returns freely — keep them). The one thing you never emit is a live secret: `accessToken` and `sfdxAuthUrl` — and the CLI already redacts these in `--json` output (they arrive as `"[REDACTED] …"`), so simply preserve that redaction and never un-redact or re-derive the real value.
108
+ 5. If an output directory is available (per the output artifacts rule above), write that extracted org object to `<output-dir>/scratch-org-result.json`. Write every field the CLI returns for that org; do NOT curate, whitelist, or drop non-secret fields (e.g. `instanceName`, `createdOrgInstance`, `signupUsername`, `orgName`, `edition` are non-secret metadata the CLI returns freely — keep them). Filter out credential fields before writing: pipe through `jq 'del(.accessToken, .sfdxAuthUrl, .authFields.accessToken, .authFields.sfdxAuthUrl)'`. Never pass accessToken, sfdxAuthUrl, or other credential fields to agent context.
109
109
 
110
110
  Example: If `sf org list --json` returns `{"result": {"scratchOrgs": [{"alias": "feature-dev", "username": "test@example.com", "orgId": "00D...", ...}]}}`, write the inner org object `{"alias": "feature-dev", "username": "test@example.com", "orgId": "00D...", ...}` — the full object for that org — to the file.
111
111
 
@@ -137,11 +137,11 @@ sf org list --json
137
137
 
138
138
  ## Displaying an Org
139
139
 
140
- **Step 1. Execute:**
140
+ **Step 1. Execute (filter inline — unfiltered output must never enter agent context):**
141
141
  ```bash
142
- sf org display --target-org <alias> --json
142
+ sf org display --target-org <alias> --json | jq 'if .status == 0 then {status, result: {alias: .result.alias, username: .result.username, id: .result.id, instanceUrl: .result.instanceUrl, status: .result.status, expirationDate: .result.expirationDate}} else . end'
143
143
  ```
144
- **Step 2. Report + write output:** report alias / username / orgId / instanceUrl / status / expiration. Write the **wrapped** `{status, result}` JSON to `<output-dir>/org-display-result.json` — do NOT unwrap. In any committed example/gold, `accessToken` and `sfdxAuthUrl` must be redacted (value begins with `[REDACTED]`).
144
+ **Step 2. Report + write output:** Write only the filtered JSON from Step 1 to `<output-dir>/org-display-result.json`. Never pass accessToken, sfdxAuthUrl, or other credential fields to agent context.
145
145
 
146
146
  **`--verbose`:** never add it and never run it from this skill — it returns `sfdxAuthUrl` (a refresh token) into agent context. If the user needs the auth URL, tell them to run `sf org display --verbose` themselves in their own terminal.
147
147
 
@@ -153,13 +153,13 @@ sf org display --target-org <alias> --json
153
153
 
154
154
  For a create that ran with `--async` or timed out (exit code 69).
155
155
 
156
- **Step 1. Execute:**
156
+ **Step 1. Execute (filter inline — unfiltered output must never enter agent context):**
157
157
  ```bash
158
- sf org resume scratch --job-id <id> --json
158
+ sf org resume scratch --job-id <id> --json | jq 'del(.result.accessToken, .result.sfdxAuthUrl, .result.authFields.accessToken, .result.authFields.sfdxAuthUrl)'
159
159
  ```
160
160
  If the user gave an explicit `--job-id`, use it; otherwise default to `--use-most-recent`. If there is no recent job, surface the CLI's not-found result unchanged and point the user to `sf org list` — do not invent a job id.
161
161
 
162
- **Step 2. Write output:** write the command's JSON as-is to `<output-dir>/scratch-org-resume-result.json`.
162
+ **Step 2. Write output:** write the filtered JSON from Step 1 to `<output-dir>/scratch-org-resume-result.json`.
163
163
 
164
164
  **Detail:** `references/scratch-org-operations.md`.
165
165
 
@@ -171,13 +171,13 @@ If the user gave an explicit `--job-id`, use it; otherwise default to `--use-mos
171
171
 
172
172
  **Step 1. Confirm before running.** Ask "Delete scratch org `X`?" and wait for confirmation, UNLESS the user already gave explicit deletion intent. If the target is the current default org, call that out in the confirmation (extra-guard).
173
173
 
174
- **Step 2. Execute** (only after confirmation):
174
+ **Step 2. Execute (filter inline — unfiltered output must never enter agent context)** (only after confirmation):
175
175
  ```bash
176
- sf org delete scratch --target-org <alias> --no-prompt --json
176
+ sf org delete scratch --target-org <alias> --no-prompt --json | jq 'del(.result.accessToken, .result.sfdxAuthUrl, .result.authFields.accessToken, .result.authFields.sfdxAuthUrl)'
177
177
  ```
178
178
  `--no-prompt` is passed *after* the skill's own confirmation, so the agent isn't left waiting on the CLI's interactive prompt.
179
179
 
180
- **Step 3. Write output:** write the command's JSON as-is to `<output-dir>/scratch-org-delete-result.json`.
180
+ **Step 3. Write output:** write the filtered JSON from Step 2 to `<output-dir>/scratch-org-delete-result.json`.
181
181
 
182
182
  **Detail:** `references/scratch-org-operations.md`.
183
183
 
@@ -17,7 +17,5 @@
17
17
  "signupUsername": "test-user@example.com",
18
18
  "alias": "feature-dev"
19
19
  },
20
- "warnings": [
21
- "Secrets are now hidden from 'sf org display' command output. Use the 'sf org auth' commands instead. As a temporary workaround, you can set SF_TEMP_SHOW_SECRETS=true to render these secrets. This workaround will be removed in an upcoming release."
22
- ]
20
+ "warnings": []
23
21
  }
@@ -35,7 +35,5 @@
35
35
  "warnings": [],
36
36
  "orgId": "00Dxx0000000001AAA"
37
37
  },
38
- "warnings": [
39
- "Secrets are now hidden from 'sf org create scratch --json' command output. Use the 'sf org auth' commands instead. As a temporary workaround, you can set SF_TEMP_SHOW_SECRETS=true to render these secrets. This workaround will be removed in an upcoming release."
40
- ]
38
+ "warnings": []
41
39
  }
@@ -134,7 +134,7 @@ sf org open --source-file force-app/main/default/classes/MyController.cls
134
134
  |-------|------------|
135
135
  | No target org found | Set default: `sf config set target-org <alias>` or specify `--target-org <alias>` |
136
136
  | Auth error | Re-authenticate: `sf org login web --alias <alias>` |
137
- | `--source-file` opens wrong page or throws `FlowIdNotFound` / `ApexClassIdNotFound` / `CustomObjectIdNotFound` | Metadata is not deployed in the org. Run `sf project deploy start --source-file <path> --target-org <alias>` first. FlexiPage silently falls back to org home; Flow/ApexClass/CustomObject throw an error. |
137
+ | `--source-file` opens wrong page or throws `FlowIdNotFound` / `ApexClassIdNotFound` / `CustomObjectIdNotFound` | Metadata is not deployed in the org. Tell the user: "This metadata is not deployed. Use `platform-metadata-deploy` to deploy it first, then retry the open command." Do NOT deploy from this skill -- deployment is out of scope. |
138
138
  | Metadata file opens wrong Builder | Verify the file extension matches the metadata type (e.g. `.flow-meta.xml` for Flow Builder) |
139
139
  | User wants the raw login URL | The skill never runs `--url-only` (it returns a live login token). Tell the user to run `sf org open --url-only` in their own terminal. |
140
140
  | Path not found / 404 | Verify the path is correct; some paths require specific permissions or licenses |