PranavNagrecha/AwesomeSalesforceSkills / skills/admin/education-cloud-eda-setup
education-cloud-eda-setup
VerifiedEducation Cloud (EDA — Education Data Architecture) setup: student success hub, advisor workflows, enrollment management, academic data model. NOT for the EDA object model in depth (Affiliations, Course_Connection__c) — use data/eda-data-model-and-patterns. NOT for SIS enrollment sync — use integration/sis-integration-patterns.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 9.9 KB |
| references/examples.md | markdown | 6.4 KB |
| references/gotchas.md | markdown | 6.5 KB |
| references/llm-anti-patterns.md | markdown | 3.2 KB |
| references/well-architected.md | markdown | 6.4 KB |
| scripts/check_education_cloud_eda_setup.pyexecutable | script | 3.4 KB |
| templates/education-cloud-eda-setup-template.md | markdown | 637 B |
scripts/check_education_cloud_eda_setup.py
View on GitHub#!/usr/bin/env python3
"""Checker script for Education Cloud EDA Setup skill.
Scans a Salesforce metadata manifest for EDA anti-patterns:
- Shadow custom objects like Student__c / Applicant__c
- Grade fields on Course_Offering__c instead of Course_Connection__c
- Scheduled Apex that deletes Course_Connection__c records
Usage:
python3 check_education_cloud_eda_setup.py [--manifest-dir path/to/metadata]
"""
from __future__ import annotations
import argparse
import re
import sys
from pathlib import Path
SHADOW_OBJECTS = {"Student__c", "Applicant__c", "Pupil__c", "Learner__c"}
GRADE_FIELD_PAT = re.compile(
r"(?i)<fullName>(grade|final_?grade|mark|score)__c</fullName>"
)
DELETE_CC_PAT = re.compile(
r"(?i)delete\s+.*Course_Connection__c|DML\s*delete\s+.*Course_Connection__c"
)
def parse_args() -> argparse.Namespace:
parser = argparse.ArgumentParser(description="Check EDA configuration for common issues.")
parser.add_argument("--manifest-dir", default=".", help="Root directory of Salesforce metadata.")
return parser.parse_args()
def check_shadow_objects(root: Path) -> list[str]:
issues: list[str] = []
objects_dir = root / "objects"
if not objects_dir.exists():
return issues
for child in objects_dir.iterdir():
if child.is_dir() and child.name in SHADOW_OBJECTS:
issues.append(
f"Custom object {child.name} shadows EDA contact-centric model; use Contact + Affiliation instead"
)
return issues
def check_grade_on_offering(root: Path) -> list[str]:
issues: list[str] = []
offering_dir = root / "objects" / "Course_Offering__c"
if not offering_dir.exists():
return issues
for field_file in offering_dir.rglob("*.field-meta.xml"):
try:
text = field_file.read_text(encoding="utf-8")
except OSError:
continue
if GRADE_FIELD_PAT.search(text):
issues.append(
f"{field_file.relative_to(root)}: grade/mark field on Course_Offering__c; grades belong on Course_Connection__c"
)
return issues
def check_course_connection_deletes(root: Path) -> list[str]:
issues: list[str] = []
for sub in ("classes", "triggers", "flows"):
base = root / sub
if not base.exists():
continue
for path in base.rglob("*"):
if not path.is_file():
continue
try:
text = path.read_text(encoding="utf-8", errors="ignore")
except OSError:
continue
if DELETE_CC_PAT.search(text):
issues.append(
f"{path.relative_to(root)}: deletes Course_Connection__c; enrollment history must be preserved"
)
return issues
def main() -> int:
args = parse_args()
manifest_dir = Path(args.manifest_dir)
if not manifest_dir.exists():
print(f"ERROR: manifest directory not found: {manifest_dir}", file=sys.stderr)
return 1
issues: list[str] = []
issues.extend(check_shadow_objects(manifest_dir))
issues.extend(check_grade_on_offering(manifest_dir))
issues.extend(check_course_connection_deletes(manifest_dir))
if not issues:
print("No EDA anti-patterns detected.")
return 0
for issue in issues:
print(f"ISSUE: {issue}", file=sys.stderr)
return 1
if __name__ == "__main__":
sys.exit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |