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

View on GitHub
#!/usr/bin/env python3
"""Split a list of course records into fixed-size batches.

Reads a JSON array of course record objects from stdin. Prints a JSON array
of batches (each a list of records), each capped at --batch-size records —
the Composite API's per-call record limit.

Usage:
    python3 scripts/batch_courses.py --batch-size 200
"""

from __future__ import annotations

import argparse
import json
import sys


def batch(records: list[dict], size: int) -> list[list[dict]]:
    return [records[i : i + size] for i in range(0, len(records), size)]


def main() -> int:
    parser = argparse.ArgumentParser()
    parser.add_argument("--batch-size", type=int, default=200)
    args = parser.parse_args()

    records = json.load(sys.stdin)
    batches = batch(records, args.batch_size)
    json.dump(batches, 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