/sf-industries:education-cloud-course-catalog-migratefrom Salesforce — Industries
Migrates course catalog data from CSV, PDF, or website sources into Education Cloud Learning and LearningCourse records. Handles multi-source ingestion, linked course detection, credit hour parsing, batch creation via sObject REST API, data validation, conflict resolution, and gap identification.
Ships in Salesforce — Industries. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Import course catalog data from multiple sources (CSV, PDF, website) and bulk-create Learning Course records with structure detection and data quality validation.
Gather or infer before proceeding:
Additional sources (gathered during workflow):
Defaults unless specified:
Resolve the API version first — do not hardcode. GET /services/data/ (no version segment) returns an endpoint map already resolved to the org's max version, not a {version, label, url} list. Pipe it into scripts/resolve_api_version.py to get {"version": "69.0"}; use as vXX.X everywhere below, including the transport probe.
Then probe transport health: GET /services/data/vXX.X/limits via headless-360 dispatch. 2xx → route all calls through it. On absent/4xx/5xx → probe other transports (other Salesforce MCP, custom MCP), use first healthy, announce it. None healthy → stop, ask user to connect one; never fabricate. (SOQL /query is routable on headless-360 — confirmed by live test; /tooling/query and ?fields= are unconfirmed, use describe + direct record reads instead.)
Never fall back to sf CLI or shell out for org credentials — a slow/oversized batch is a batch-size problem (shrink it, step 7), not a transport failure, and CLI shell-out trips an unbypassable approval gate on some surfaces. A version too new for the org returns 404 NOT_FOUND on an otherwise-healthy transport — re-read GET /services/data/, drop to the org's max version, retry, don't switch transport. See references/gotchas.md for both.
All steps are sequential. Do not skip or reorder. If blocked, stop and ask for missing context.
Identify data source type — determine if primary source is CSV, PDF, or website URL. Ask user to provide the source if not already specified.
Parse primary source — extract course data:
Read tool to load file, parse columnsRead tool (supports PDF extraction), parse text. Over 20 pages, read in sequential page-range chunks and merge parsed rows before validating completeness — see references/large-catalog-handling.md §1WebFetch tool to retrieve HTML, parse course listingsLook for: course codes (identity — split into SubjectAbbreviation + CourseNumber, see step 8/9), course names (Name), credit hours (Duration + DurationUnit), descriptions (Description), course types (Lecture/Lab/Exam/Drill/Recitation), prerequisites, corequisites, linked course indicators (IsLinkedOnly), delivery modality (if the same course code repeats with different Duration/DurationUnit — see references/large-catalog-handling.md §2).
Validate data completeness — pipe the parsed records into the completeness helper:
python3 scripts/validate_completeness.py --required "CourseCode,Name,Duration" --recommended "Description,CourseType" <<'JSON'
[ { "CourseCode": "...", "Name": "...", ... }, ... ]
JSON
The report gives present/missing counts per field. Optional fields (prerequisites, corequisites, linked courses) are not checked — their absence never blocks progress.
If any required field shows missing > 0, report error and stop. If recommended fields are missing, note the gaps and continue to Phase 2.
Report data quality — print a summary table showing which fields are present and which are missing. Example:
Data Quality Report:
• Course codes: 120/120 OK
• Course names: 120/120 OK
• Credit hours: 120/120 OK
• Descriptions: 115/120 (5 missing)
• Course types: 118/120 (2 missing)
Request supplementary sources — if key fields are missing (descriptions, types), ask user: "Do you have additional sources — a website, department document, or mapping file?"
Repeat this step until all gaps are filled or user confirms to proceed with incomplete data.
If subject-to-Business-Account mapping is ambiguous, resolve every ambiguous case in one pass (source doc + live public catalog + course level/number patterns) and present them together, not one round at a time (see references/gotchas.md).
Detect multi-component courses — pipe the course codes into the lecture/lab pairing helper:
python3 scripts/detect_linked_courses.py --suffixes "L,LAB" <<'JSON'
[ "BIO-201", "BIO-201L", ... ]
JSON
Each {"lecture", "lab"} pair returned is a candidate multi-component course.
If user selects "linked courses", request a mapping file or confirm the naming pattern is reliable.
Detect modality duplicates — group parsed rows by course code. Same code, different Duration/DurationUnit/Description = a modality variant (e.g. Online vs. On-Campus), not a duplicate — never silently dedupe/merge. Resolve the representation once per run, not per-course. See references/large-catalog-handling.md §2.
Prepare batch creation plan — pipe the parsed course records into the batching helper. The Composite API accepts up to 200 records/call, but an agent's tool-call payload has a smaller practical ceiling (~56KB/150 records). Use --batch-size 25 when executing as an agent (raise toward 200 only if the calling environment confirms it can handle larger payloads):
python3 scripts/batch_courses.py --batch-size 25 <<'JSON'
[ { "Name": "...", ... }, ... ]
JSON
Each element of the returned array is one Composite API call's worth of records. Print: "Starting course catalog import. I'll use Composite API to create records in batches. Total: X courses."
If a batch still won't inline through a healthy dispatch transport, re-run with a smaller --batch-size (e.g. 10) instead of switching transport. Track dispatch vs. fallback counts and report both in the Phase 5 summary.
Over 200 courses (8+ batches): disclose total batch count upfront, print the Batch N complete line after every batch (not just at the end), and — only if the surface exposes a parallel-task/subagent tool — follow the fan-out rules in references/large-catalog-handling.md §3-4. Never assume that capability exists; default to sequential batches.
Check for existing courses — before creating Batch 1, scope the check to this batch's own course codes, never a global fetch (an unrelated catalog entry already in the org is not a conflict).
Split this batch's course codes first (scripts/split_course_code.py) — key the check on those identity fields, never CipCode (many orgs leave it null — see references/gotchas.md).
Headless-360 note: SOQL
/queryis routable via the headless-360 dispatch tool (confirmed by live test) — queryLearningCourse, matching each split{SubjectAbbreviation, CourseNumber}pair exactly (SOQL has no tupleIN, so OR the pairs):SELECT Id, LearningId, Name, SubjectAbbreviation, CourseNumber FROM LearningCourse WHERE (SubjectAbbreviation = 'BIO' AND CourseNumber = '201') OR .... If Ids are unknown and a SOQL lookup isn't available, ask the user to supply them (or a prior import manifest). Never do this via Bash/CLI — seereferences/gotchas.md.
If any rows come back (i.e. a SubjectAbbreviation+CourseNumber pair in this batch already exists in the org), pause and explain conflict:
Wait for user decision before proceeding.
Create Batch 1 — two-step process for each course:
Field placement (verified via describe):
CipCode,Duration,DurationUnit,ProviderIdare createable on Learning ONLY —ProviderIdon the child fails withINVALID_FIELD_FOR_INSERT_UPDATE. LearningCourse takesName,LearningId,CourseType,IsLinkedOnly,SubjectAbbreviation,CourseNumber,Description,CourseLevelDescription,FieldOfStudy— it inherits the account link viaLearningId. Confirm with describe before building the body.
CipCode is opt-in. Federal CIP taxonomy field, not the course's identity — leave unset unless the source supplies a real CIP code and the user confirms.
Step 1: Create Learning (parent) records via Composite API:
POST /services/data/vXX.X/composite/sobjects
{
"allOrNone": false,
"records": [
{
"attributes": {"type": "Learning", "referenceId": "learning1"},
"Name": "<course-name>",
"Type": "LearningCourse",
"Description": "<description>",
"ProviderId": "<account-id>",
"Duration": <hours>,
"DurationUnit": "Credit Hours",
"IsActive": true
},
...
]
}
Capture each returned Id (order matches the records array) to use as LearningId in Step 2.
Step 2: Create LearningCourse (child) records via Composite API:
POST /services/data/vXX.X/composite/sobjects
{
"allOrNone": false,
"records": [
{
"attributes": {"type": "LearningCourse"},
"Name": "<course-record-name>",
"LearningId": "<learning-id-from-step-1>",
"SubjectAbbreviation": "<subject-prefix>",
"CourseNumber": "<course-number>",
"CourseType": "<parsed-course-type>",
"IsLinkedOnly": false
},
...
]
}
Set CourseType from the parsed/mapped course type for that record (see the Gotchas table for value mapping) — do not hard-code it. A lab record must get CourseType: "Lab", not "Lecture".
CourseType picklist values (verified):
Lecture,Lab,Exam,Drill,Recitation.
restrictedPicklist: truemeans only today's values are valid to submit, not that the set is closed. If a source value (e.g.DurationUnit= "Program Points") isn't in describe's list, don't silently drop/remap it — offer adding the picklist value via metadata alongside remapping or a placeholder (seereferences/gotchas.md).
Print progress: Batch 1 complete — X Learning + X LearningCourse records created.
Handle multi-component courses — if user selected "linked courses" in step 6:
CourseType: "Lecture", IsLinkedOnly = falseCourseType: "Lab", IsLinkedOnly = truedetect_linked_courses.py pairs (or a user-supplied mapping file) to determine which labs are linked-onlyX linked lab courses created (IsLinkedOnly = true)Repeat for remaining batches — continue steps 8-10 for Batch 2, Batch 3, etc. until all courses created.
Scan for incomplete records — after all batches complete, read back each newly created record by the Id captured from its create response:
GET /services/data/vXX.X/sobjects/Learning/<id>
GET /services/data/vXX.X/sobjects/LearningCourse/<id>
Headless-360 note: SOQL
/queryis routable via the headless-360 dispatch tool (confirmed by live test). Always verify by the Ids captured from create responses; do not query by CreatedDate.
Run the completeness helper separately per sObject — CourseType exists only on LearningCourse, Description only on Learning; combining both shapes into one call false-positives every parent as missing CourseType:
python3 scripts/validate_completeness.py --required "Name" --recommended "Description" <<'JSON'
[ { "Name": "...", "Description": "...", ... }, ... ] # Learning read-backs only
JSON
Repeat with --recommended "CourseType" against LearningCourse read-backs only. Identify courses with missing descriptions (Learning report) or missing types (LearningCourse report). Print data quality report (same format as step 4).
Detect conflicting data — if multiple sources provided different values for the same course, flag conflicts, e.g. "CHEM-301: website says X, PDF says Y — which should I use?" Wait for user decision, then update the conflicting courses.
Remediate gaps — if user provides additional sources to fill gaps, parse them and update the incomplete courses:
PATCH /services/data/vXX.X/sobjects/Learning/<id>
{"Description": "..."}
PATCH /services/data/vXX.X/sobjects/LearningCourse/<id>
{"CourseType": "<parsed-course-type>"}
Generate import summary — print final report:
Course catalog import finished!
Summary:
• X Learning + X LearningCourse records created
• Y standalone, Z linked lab courses (IsLinkedOnly)
• All courses linked to <Business Account name>, set Active
Data sources used: 1. <primary> 2. <supplementary 1> 3. <supplementary 2>
If any gaps were remediated from a supplementary source (step 5/14 ran), the final report MUST also include, in this order:
<primary source>)" and "After supplementary source (<supplementary source>)", each listing every field from step 4 with its present/total count. This is the before/after pair, not just the final counts.<source>)"), a numbered list of every remediated course with the value it received. One list per remediated field.Offer verification — ask user: "Would you like me to query specific courses to verify the data? For example, I can show you a course with its LearningCourse child record, or check for any remaining data quality issues."
Check the running user can actually see what was just created — don't just flag this, check it (see references/gotchas.md for the resolve-running-user + FLS/RecordTypeVisibility pattern), against every object touched (Learning, LearningCourse, Account if Person Accounts came up). Name any gap and its profile, offer the specific fix, and wait for confirmation before writing Profile/PermissionSet metadata. Default-Private OWD/sharing is org-wide, not per-user — flag it, don't offer to change it.
| Constraint | Rationale |
|---|---|
| Use Composite API, batched at 25 records/call for agent execution (API supports up to 200) | sObject REST standard in H360 MCP; a 150-record payload (~56KB) exceeds typical tool-call limits |
| Create Learning first, then LearningCourse | LearningCourse.LearningId requires parent to exist first |
| Always set Learning.Type = 'LearningCourse' | Learning is polymorphic — Type distinguishes courses from programs |
| Always query for existing courses before creating | Prevents duplicates; lets user decide on conflicts |
| Pause for clarification on multi-component courses | IsLinkedOnly flag affects enrollment behavior — user must confirm structure |
| Report data quality gaps before proceeding | Lets user provide complete data before committing to org |
| Wait for user decision on conflicting data | Agent cannot determine which source is authoritative |
| Do not invent missing data | Placeholder values must be explicitly approved by user |
| Set ProviderId (Business Account) on the parent Learning ONLY | Createable on Learning, not LearningCourse — see step 9 field-placement note |
| Set all courses to Active status by default (IsActive = true) | Must be Active to appear in catalog search/registration |
| Use sObject REST API, not CLI commands for org calls | H360 MCP skills have no execution environment for reaching the org. The scripts/ helpers are local data transforms (no org call) — if no Bash tool is available, perform the equivalent check inline instead of skipping it |
| Use tool-agnostic language | Skill ships to multiple AI surfaces beyond Claude Code |
Over 200 courses or 20+ source pages: follow references/large-catalog-handling.md, not ad hoc chunking | Improvised chunking risks split-page data loss or duplicate creates |
See references/gotchas.md for known failure modes and resolutions (parsing quirks, missing Business Account, picklist mapping, partial Composite failures, and more).
Deliverables:
/query (both routable via headless-360)No files are produced — all output is org records created via sObject REST API.
| Need | Delegate to |
|---|---|
| Create individual Learning Course manually | Platform metadata generation skills |
| Create Learning Programs | No dedicated skill yet — ask the user |
| Set up course sections/offerings | No dedicated skill yet — ask the user |
| Configure enrollment eligibility rules | No dedicated skill yet — ask the user |
references/gotchas.md — known failure modes and their resolutionsreferences/gotchas-detail.md — lower-frequency gotchas, linked from gotchas.mdreferences/large-catalog-handling.md — rules for >200 courses or >20-page source docs: paginated reads, modality-duplicate detection, checkpointing, gated parallel fan-out (steps 2, 6, 7)scripts/resolve_api_version.py — extracts org's max API version from the headless-360 endpoint map (Execution Transport)scripts/validate_completeness.py — required/recommended field presence check (steps 3, 12)scripts/detect_linked_courses.py — lecture/lab course-code pairing (step 6)scripts/detect_modality_variants.py — flags CourseCode rows differing by Duration/DurationUnit/Description, for large-catalog-handling.md §2scripts/batch_courses.py — Composite API batch splitting (step 7)scripts/split_course_code.py — SubjectAbbreviation/CourseNumber splitting (step 9)references/gotchas-detail.md (opens in a new tab)references/gotchas.md (opens in a new tab)references/large-catalog-handling.md (opens in a new tab)scripts/batch_courses.py (opens in a new tab)scripts/detect_linked_courses.py (opens in a new tab)scripts/detect_modality_variants.py (opens in a new tab)scripts/resolve_api_version.py (opens in a new tab)scripts/split_course_code.py (opens in a new tab)scripts/validate_completeness.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
education-cloud, course-catalog, data-migration, salesforce, bulk-import
npx claudepluginhub reej-consulting/reej-sf-skills --plugin sf-industries33 skills in this plugin
/consumer-goods-accruals-datakit-deployUse this skill to deploy the TPM Liability Accruals data kit end to end to a Salesforce org. Invoke when a customer or teammate wants to install the accrual engine, verify the Data Cloud connection, deploy the Data Kit components, and schedule the export and accrual calculation chain. Trigger phrases include: 'deploy the accrual data kit', 'set up liability accruals', 'install TPM accruals', 'headless accruals setup', 'configure the Data Cloud export connector', 'schedule the accrual chain'. Do NOT use for creating a Data Space alone (use platform-dataspace-access-configure), for generic Salesforce metadata deployment (use platform-metadata-deploy), for querying org data only (use platform-soql-query), or when setting up the data kit for the Trade Promotion Effectiveness (TPE) feature (use consumer-goods-tpe-datakit-deploy instead)./consumer-goods-promotion-bo-api-deployUse to enable the Consumer Goods Cloud TPM Promotion Business Object (BO) API framework in a Salesforce org, interview the user for the custom Workflow Step they want to add, generate and deploy that Apex class, wire it into the create/update/copy workflows, and prove it end-to-end via headless REST ingest. Ships a worked reference example (SetCommentValue) but the customization is user-supplied per org. Triggers on "deploy the promotion BO API", "set up promotion BO API", "headless promotion create", "add a BO API workflow step"./consumer-goods-rtr-datacloud-export-configureConfigure a Trade Promotion Management (TPM) org's RTR (Real Time Reporting) export pipeline to push promotion measures into Data Cloud (Data 360) for Trade Promotion Effectiveness (TPE) dashboards. Use when a customer or admin wants to set up the RTR export for Data Cloud measures, configure the RTR report for TPE, or as a delegated step from consumer-goods-tpe-dashboard-configure./consumer-goods-sync-management-configureUse this skill to set up Salesforce Consumer Goods (CG) Cloud Mobile Sync end-to-end for the Sync Management App managed package — it runs all three acts in order (Act 1 Setup Sync, Act 2 Assign Users, Act 3 Plan & Verify), not just installing the baseline, so a sales rep can see the day's planned visits offline. Use it when asked to "set up CG Cloud mobile sync", "configure Consumer Goods mobile sync", "set up sync for Retail Execution", "install the sync baseline", "assign a user to the sync configuration", "verify the sync setup", or "why can't my rep see their planned visits offline" when sync setup or the baseline install is suspected. DO NOT TRIGGER for general CG Cloud mobile-app troubleshooting unrelated to sync setup, for authoring new or custom sync baselines (this installs only shipped baselines discovered at runtime), or for building or customizing the mobile app UI itself — those are out of scope./consumer-goods-tpe-dashboard-configureEnd-to-end headless setup of Trade Promotion Effectiveness (TPE) dashboards for a Trade Promotion Management (TPM) Cloud org, covering tenant pairing checks, permission sets, SSOT and Tableau Next enablement, C360 SDM verification, the TPM Accruals data kit install, business-period export, RTR Data Cloud export configuration, the TPM_PROMOTION_MEASURE Data Transform, TPE Analytics app install, and optional KPI dashboard customization. Use when a customer or admin wants to set up TPE dashboards, enable Trade Promotion Effectiveness, install the TPE analytics app, or set up and customize TPE dashboards with their own KPIs./consumer-goods-tpe-dashboard-custom-kpi-configureCustomize the Trade Promotion Effectiveness (TPE) Analytics dashboards' generic KPI slots (Promotion Measure 1-3, Tactic Measure 1-2) with customer-chosen KPI measure codes and display names, without touching the shipped base model. Use when a customer/admin wants to "customize TPE dashboards", "change the KPIs on the Promotion/Tactic Analysis dashboard", or "swap in our own measure codes on the TPE dashboard".3 plugins in 2 repositories ship this exact skill · first indexed Nov 14, 2026
Other plugins' skills for the same job