/education-cloud:education-cloud-course-catalog-migratefrom Salesforce Education Cloud
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 Education Cloud. 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 forcedotcom/sf-skills --plugin education-cloud5 skills in this plugin
/education-cloud-academic-calendar-generateUse this skill to set up, create, or generate an academic calendar for Education Cloud orgs. Creates Academic Year, Academic Terms (semester/quarter/trimester), Academic Sessions, registration windows, and add/drop deadlines from natural language or documents. Validates date ranges and handles overlapping sessions, linking terms to the year and sessions to their term. TRIGGER when: user asks to "create an academic calendar", "set up semester dates", "generate the academic year", "add terms and sessions", "configure registration windows", or "add/drop deadlines" — or uploads a calendar document (PDF, CSV, XLSX) containing term or session dates. DO NOT TRIGGER for querying or updating existing calendar records, scheduling courses, or configuring course offerings./education-cloud-domain-configureUse this skill to configure Education Cloud domains (Student Success, Recruitment & Admissions, Academic Operations, Alumni Relations, Student Management, or Mentoring) through conversational setup. Triggers when a user wants to enable or configure Education Cloud features. Guides step-by-step: enables Person Accounts prerequisite, activates target domain, then configures domain sub-features. Covers support processes, case record types, success teams, care plans, applications, admissions, course catalog, alumni engagement, fundraising, enrollment, programs, and mentoring. Explains each feature, confirms before proceeding, verifies every change took effect, and warns that domain and feature toggles are IRREVERSIBLE. DO NOT TRIGGER for metadata generation, custom objects, or package deployment — this configures existing platform features via org settings, not metadata files./education-cloud-multi-campus-configureUse this skill when a Salesforce Administrator needs to create OR maintain an institutional hierarchy for Education Cloud by parsing organizational structure from a PDF, URL, text, or CSV. On a first run it creates System, Campus, College, and Department Account records linked via ParentId plus 1:1 Business Profile records. On later runs it reconciles the org's existing hierarchy against the desired structure and applies only the delta — adding new units, renaming, or moving a node under a different parent — never recreating what exists. TRIGGER when the user wants to set up, configure, build, update, restructure, or reorganize a multi-campus structure, institutional hierarchy, or account hierarchy with business profiles; or add, rename, or move a campus, college, or department. DO NOT TRIGGER for single-campus flat setups without hierarchy levels, one-off manual account creation, or non-Education-Cloud account management./education-cloud-student-recruitment-agent-configureUse this skill to set up and configure the Education Cloud Student Recruitment Agent (SRA) — the packaged Agentforce agent (namespace sturecruitment) that answers admissions FAQs, captures inquiries, registers campus tours, and files applications for prospective students. TRIGGER when the user wants to: create or configure an admissions, recruitment, or enrollment agent, set up the Student Recruitment Agent, deploy SRA to an Experience Cloud site, clone the SRA flows or permission sets, add the SRA subagents (Admissions and Enrollments FAQ; Admissions Application; Campus Tours, Visits, and Events Registration; Request for Information), wire Learning Program grounding, or build the escalation subagent. Guides platform enablement, permissions, grounding, agent creation, and channel deployment — API-first with UI fallback. DO NOT TRIGGER for the Transfer Credit Agent, generic Agentforce authoring (use agentforce-generate), or base Education Cloud domain enablement (use education-cloud-domain-configure).3 plugins in 2 repositories ship this exact skill · first indexed Nov 14, 2026
Other plugins' skills for the same job