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/detect_modality_variants.py

View on GitHub
#!/usr/bin/env python3
"""Flag rows that share a CourseCode but differ in modality-bearing fields.

Reads a JSON array of course row objects from stdin, each with at least
"CourseCode" and optionally "Duration", "DurationUnit", "Description". Groups
rows by CourseCode; any group with 2+ rows that differ in Duration,
DurationUnit, or Description is a modality variant (e.g. Online vs.
On-Campus). Prints a JSON array of {"CourseCode", "rows"} for every flagged
group; groups with no variance are omitted.

Usage:
    python3 scripts/detect_modality_variants.py < courses.json
"""

from __future__ import annotations

import json
import sys
from collections import defaultdict

VARIANT_FIELDS = ("Duration", "DurationUnit", "Description")


def detect(rows: list[dict]) -> list[dict]:
    grouped: dict[str, list[dict]] = defaultdict(list)
    for row in rows:
        grouped[row["CourseCode"]].append(row)

    flagged = []
    for code, group in grouped.items():
        if len(group) < 2:
            continue
        distinct = {tuple(row.get(f) for f in VARIANT_FIELDS) for row in group}
        if len(distinct) > 1:
            flagged.append({"CourseCode": code, "rows": group})
    return flagged


def main() -> int:
    rows = json.load(sys.stdin)
    flagged = detect(rows)
    json.dump(flagged, 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