forcedotcom/sf-skills / plugins/builder/education-cloud/skills/education-cloud-course-catalog-migrate
education-cloud-course-catalog-migrate
VerifiedUse 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.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 21.3 KB |
| references/gotchas-detail.md | markdown | 3.9 KB |
| references/gotchas.md | markdown | 2.0 KB |
| references/large-catalog-handling.md | markdown | 6.8 KB |
| scripts/batch_courses.pyexecutable | script | 915 B |
| scripts/detect_linked_courses.pyexecutable | script | 1.5 KB |
| scripts/detect_modality_variants.pyexecutable | script | 1.4 KB |
| scripts/resolve_api_version.pyexecutable | script | 1.2 KB |
| scripts/split_course_code.pyexecutable | script | 1.0 KB |
| scripts/validate_completeness.pyexecutable | script | 1.9 KB |
scripts/validate_completeness.py
View on GitHub#!/usr/bin/env python3
"""Check a list of course records for missing required/recommended fields.
Reads a JSON array of course record objects from stdin. Prints a JSON report
of per-field present/missing counts and which records are missing which
fields. Works for both raw parsed data (before create) and org-record
read-backs (after create) — pass the field names present in that record shape.
Usage:
python3 scripts/validate_completeness.py --required Name,Duration --recommended Description,CourseType
"""
from __future__ import annotations
import argparse
import json
import sys
def is_missing(value) -> bool:
return value is None or (isinstance(value, str) and value.strip() == "")
def check(records: list[dict], required: list[str], recommended: list[str]) -> dict:
report = {"total": len(records), "required": {}, "recommended": {}}
for label, fields in (("required", required), ("recommended", recommended)):
for field_name in fields:
missing_indexes = [i for i, r in enumerate(records) if is_missing(r.get(field_name))]
report[label][field_name] = {
"present": len(records) - len(missing_indexes),
"missing": len(missing_indexes),
"missing_indexes": missing_indexes,
}
return report
def main() -> int:
parser = argparse.ArgumentParser()
parser.add_argument("--required", default="", help="Comma-separated required field names")
parser.add_argument("--recommended", default="", help="Comma-separated recommended field names")
args = parser.parse_args()
records = json.load(sys.stdin)
required = [f for f in args.required.split(",") if f]
recommended = [f for f in args.recommended.split(",") if f]
report = check(records, required, recommended)
json.dump(report, sys.stdout, indent=2)
print()
return 0
if __name__ == "__main__":
sys.exit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 119k | Updated | Claude CodeCodex | Verified | Install |
| 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: 119k | Updated | Claude CodeCodex | Verified | Install |
| 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: 118k | Updated | Claude CodeCodex | Verified | Install |
| 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: 118k | Updated | Claude CodeCodex | Verified | Install |