afv-library/skills
Gaurav Bajpai 67d919947f
fix: address PRizm round-2 review findings from internal port @W-22196528@
Ports the 14 applicable round-2 fixes from the internal PRizm review to the
external afv-library source. (plugin.json finding #13 is internal-only and
does not apply here.)

Accepted fixes:
  1  bdt_analyze.py select_definition: isinstance(index, int) -> type(index) is int
     (reject bool subclass of int).
  2  bdt_analyze.py cmd_formula: precompute upstream fields_produced map to
     eliminate O(consumed x upstream) recomputation.
  3  bdt_analyze.py topo_order: replace sort-on-every-iteration with deque-based
     Kahn (preserves deterministic order).
  4  test_bdt_analyze.py test_all_subcommands_work_on_api_input: wrap loop in
     self.subTest for per-iteration failure reporting.
  5  test_bdt_analyze.py test_invalid_json_raises: register addCleanup BEFORE
     write_text so cleanup runs even if write fails.
  6  SKILL.md: remove misleading "strip __c suffix" field-trace troubleshooting
     advice; replace with source-DMO passthrough guidance.
  7  SKILL.md: rewrite cycle error message to direct user to Data Cloud viewer
     (re-export will not fix a cycle in the BDT definition).
  8  SKILL.md: add explicit --definition N flag documentation and list every
     subcommand that accepts it.
  9  SKILL.md: refine I2 routing guidance — pick the earliest formula/
     computeRelative node, not the output mapping.
  11 bdt-function-catalog.md: clean floor() wording ("always rounds down on the
     number line").
  12 bdt-node-catalog.md: businessType enum — assert list is canonical/complete;
     instruct skill to surface+flag any unknown value.
  14 append_and_split.json: change split subject from fragile
     CustomerFullName__c split-on-space to ChannelOrderKey__c split-on-hyphen;
     avoids name-parsing pitfall (middle names / multi-space).
  15 window_and_aggregate.json: use the computed OrderRank__c via a new
     FIRST_ORDER_AMOUNT formula node (case when rank=1 then amount else 0)
     feeding AGG_BY_ACCOUNT; illustrates the rank+formula+aggregate idiom.
  16 joins_and_filters.json: add explicit IS_NOT_NULL filter expression on
     GrandTotalAmount__c (defense-in-depth beyond GREATER_THAN 0).

Rejected finding (rationale posted as PR comment):
  10 bdt-node-catalog.md split section — reviewer claimed split is a
     pipeline-branching node. Canonical sources (core-262
     SplitParametersInputRepresentation.java + Salesforce help DITA
     c360_a_batch_transform_split.xml) both describe split as a
     string-splitting operation. Current docs are correct; not changing.

Tests: 92/92 passing.
2026-04-24 10:55:18 +05:30
..
applying-slds @W-21965936@ Add applying and validating SLDS skills to afv-library (#187) 2026-04-21 14:43:15 +05:30
building-ui-bundle-app fix: trigger ui-bundle skill for React app prompts @W-21916680@ (#175) 2026-04-07 09:34:42 +05:30
building-ui-bundle-frontend fix: tighten ui-bundle skill descriptions to reduce false triggers @W-21800526@ (#162) 2026-04-03 09:22:32 +05:30
creating-b2b-commerce-store @W-21274365 Add instructions to create commerce b2b store from vibes (#22) 2026-03-27 18:24:35 +05:30
deploying-ui-bundle fix: tighten ui-bundle skill descriptions to reduce false triggers @W-21800526@ (#162) 2026-04-03 09:22:32 +05:30
developing-agentforce feat: replace agentforce-development skill with three specialized skills @W-21937872@ (#184) 2026-04-09 17:04:48 +05:30
explaining-batch-data-transform fix: address PRizm round-2 review findings from internal port @W-22196528@ 2026-04-24 10:55:18 +05:30
generating-apex @W-21788755 feat: Apex trigger skills UPDATE (#150) 2026-03-31 12:55:08 +05:30
generating-apex-test @W-21788755 feat: Apex trigger skills UPDATE (#150) 2026-03-31 12:55:08 +05:30
generating-custom-application feat: consolidate webapp data skills into using-webapp-salesforce-data @W-21338965@ (#81) 2026-03-23 22:25:33 +00:00
generating-custom-field feat: consolidate webapp data skills into using-webapp-salesforce-data @W-21338965@ (#81) 2026-03-23 22:25:33 +00:00
generating-custom-lightning-type feat: consolidate webapp data skills into using-webapp-salesforce-data @W-21338965@ (#81) 2026-03-23 22:25:33 +00:00
generating-custom-object feat: consolidate webapp data skills into using-webapp-salesforce-data @W-21338965@ (#81) 2026-03-23 22:25:33 +00:00
generating-custom-tab feat: consolidate webapp data skills into using-webapp-salesforce-data @W-21338965@ (#81) 2026-03-23 22:25:33 +00:00
generating-experience-lwr-site refactor: mv skill to dev branch (#182) 2026-04-21 14:43:15 +05:30
generating-flexipage @W-21783760 Update instructions to ensure templates plugin is installed (#124) 2026-03-30 19:36:21 +05:30
generating-flow fix: @W-21915952@ Update SKILL.md to allow user to make changes in the generated flow (#189) 2026-04-21 11:57:05 +05:30
generating-fragment feat: consolidate webapp data skills into using-webapp-salesforce-data @W-21338965@ (#81) 2026-03-23 22:25:33 +00:00
generating-lightning-app W-21661930 Update lex app skill (#88) 2026-03-23 18:32:48 +05:30
generating-list-view feat: consolidate webapp data skills into using-webapp-salesforce-data @W-21338965@ (#81) 2026-03-23 22:25:33 +00:00
generating-permission-set W-21660521 feat: Agentforce Vibes - Unable to assign agent access in permission set (#145) 2026-03-31 22:21:02 +05:30
generating-ui-bundle-features fix: tighten ui-bundle skill descriptions to reduce false triggers @W-21800526@ (#162) 2026-04-03 09:22:32 +05:30
generating-ui-bundle-metadata fix: tighten ui-bundle skill descriptions to reduce false triggers @W-21800526@ (#162) 2026-04-03 09:22:32 +05:30
generating-ui-bundle-site fix: @W-21889983@ Disallow Modifying React Site Metadata Except for Templated Properties (#185) 2026-04-09 00:25:10 +05:30
generating-validation-rule feat: consolidate webapp data skills into using-webapp-salesforce-data @W-21338965@ (#81) 2026-03-23 22:25:33 +00:00
implementing-ui-bundle-agentforce-conversation-client fix: tighten ui-bundle skill descriptions to reduce false triggers @W-21800526@ (#162) 2026-04-03 09:22:32 +05:30
implementing-ui-bundle-file-upload fix: tighten ui-bundle skill descriptions to reduce false triggers @W-21800526@ (#162) 2026-04-03 09:22:32 +05:30
observing-agentforce feat: replace agentforce-development skill with three specialized skills @W-21937872@ (#184) 2026-04-09 17:04:48 +05:30
searching-media @fix @W-21829074 - Updated skill instructions to wait for the user input (#177) 2026-04-21 14:17:29 +05:30
switching-org feat: Add switching-org skill @W-21436488@ (#74) 2026-03-20 18:22:21 -07:00
testing-agentforce feat: replace agentforce-development skill with three specialized skills @W-21937872@ (#184) 2026-04-09 17:04:48 +05:30
trigger-refactor-pipeline feat: consolidate webapp data skills into using-webapp-salesforce-data @W-21338965@ (#81) 2026-03-23 22:25:33 +00:00
uplifting-components-to-slds2 @W-21965936@ Add applying and validating SLDS skills to afv-library (#187) 2026-04-21 14:43:15 +05:30
using-ui-bundle-salesforce-data fix: tighten ui-bundle skill descriptions to reduce false triggers @W-21800526@ (#162) 2026-04-03 09:22:32 +05:30
validating-slds @W-21965936@ Add applying and validating SLDS skills to afv-library (#187) 2026-04-21 14:43:15 +05:30