Skip to content

forcedotcom/sf-skills / plugins/builder/education-cloud/skills/education-cloud-course-catalog-migrate

education-cloud-course-catalog-migrate

Verified

Use this skill to migrate course catalog data from external sources (CSV, PDF, website) and bulk-create Learning and LearningCourse records in Education Cloud. Triggers when a user wants to import courses, parse course catalog documents, or set up a course catalog for an academic term. Handles multi-source data ingestion, intelligent interpretation of course structures (lecture+lab linked courses via IsLinkedOnly flag, credit hours, course types), batch creation via sObject REST API, data quality validation, conflict resolution for existing courses, and gap identification. Explains what's missing (descriptions, types) and requests additional sources. Pauses for clarification on multi-component courses and conflicting data. DO NOT TRIGGER for creating individual Learning Course records manually, for creating Learning Programs (different workflow), or for enrollment/registration workflows.

FileKindSize
SKILL.mdskill md21.3 KB
references/gotchas-detail.mdmarkdown3.9 KB
references/gotchas.mdmarkdown2.0 KB
references/large-catalog-handling.mdmarkdown6.8 KB
scripts/batch_courses.pyexecutablescript915 B
scripts/detect_linked_courses.pyexecutablescript1.5 KB
scripts/detect_modality_variants.pyexecutablescript1.4 KB
scripts/resolve_api_version.pyexecutablescript1.2 KB
scripts/split_course_code.pyexecutablescript1.0 KB
scripts/validate_completeness.pyexecutablescript1.9 KB

scripts/split_course_code.py

View on GitHub
#!/usr/bin/env python3
"""Split course codes into SubjectAbbreviation + CourseNumber.

Reads a JSON array of course code strings from stdin (e.g. "BIO-201",
"bio 201l"). Prints a JSON array of {"code", "SubjectAbbreviation",
"CourseNumber"} objects — LearningCourse has no single CipCode field, so
these two fields must be populated separately.

Usage:
    python3 scripts/split_course_code.py
"""

from __future__ import annotations

import json
import re
import sys

PATTERN = re.compile(r"^\s*([A-Za-z]+)[\s-]*([0-9]+[A-Za-z]*)\s*$")


def split(code: str) -> dict:
    match = PATTERN.match(code)
    if not match:
        return {"code": code, "SubjectAbbreviation": None, "CourseNumber": None}
    subject, number = match.groups()
    return {"code": code, "SubjectAbbreviation": subject.upper(), "CourseNumber": number.upper()}


def main() -> int:
    codes = json.load(sys.stdin)
    results = [split(c) for c in codes]
    json.dump(results, sys.stdout, indent=2)
    print()
    return 0


if __name__ == "__main__":
    sys.exit(main())
deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.Stars: 118kUpdated Claude CodeCodexVerifiedInstall
agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.Stars: 118kUpdated Claude CodeCodexVerifiedInstall