Skip to content

forcedotcom/sf-skills / plugins/builder/education-cloud/skills/education-cloud-multi-campus-configure

education-cloud-multi-campus-configure

Verified

Use this skill when a Salesforce Administrator needs to create OR maintain an institutional hierarchy for Education Cloud by parsing organizational structure from a PDF, URL, text, or CSV. On a first run it creates System, Campus, College, and Department Account records linked via ParentId plus 1:1 Business Profile records. On later runs it reconciles the org's existing hierarchy against the desired structure and applies only the delta — adding new units, renaming, or moving a node under a different parent — never recreating what exists. TRIGGER when the user wants to set up, configure, build, update, restructure, or reorganize a multi-campus structure, institutional hierarchy, or account hierarchy with business profiles; or add, rename, or move a campus, college, or department. DO NOT TRIGGER for single-campus flat setups without hierarchy levels, one-off manual account creation, or non-Education-Cloud account management.

references/foundation_prerequisites.md

View on GitHub
# Step 0 — Foundation Prerequisites

This skill can run standalone, without any other Education Cloud setup skill running first. Verify
these before Step 1 — they are shared across the EDU skill family (also required by
`education-cloud-domain-configure`). A gap here is a missing prerequisite to resolve, not a
dead end — self-heal what's API-writable, ask/confirm before any write, otherwise instruct manual
Setup and wait for confirmation.

## Checks (in order — each can stop the workflow if unresolved)

1. **Org edition** — `GET /services/data/v68.0/query`, `queryParams: {"q": "SELECT OrganizationType FROM Organization"}`
   (singleton, no Id). Must be Enterprise, Performance, Unlimited, or Developer Edition. Cannot be
   fixed via API or Setup — if wrong edition, tell the user Education Cloud requires Enterprise+ and
   stop.

2. **Lightning Experience enabled** — no supported read API; if BusinessProfile/Account describe
   calls below succeed the org is on Lightning (Classic-only orgs can't run this skill). If any call
   in this section fails with an org-mode-related error, instruct: Setup → User Interface → Enable
   Lightning Experience. Wait for confirmation, retry.

3. **Education Cloud license provisioned** — permission set names for this vary by org/release
   (confirmed live: one org shipped `EducationCloudAccess`, `AgentforceForEducationCloudAccess`, and
   `EinsteinForEducationCloudAccess` — never `EducationCloudUser`). Do not match on a single exact
   name. `GET /services/data/v68.0/query`, `queryParams: {"q": "SELECT Id, Name FROM PermissionSet
   WHERE Name LIKE '%EducationCloud%'"}`. Rows found → provisioned, proceed. Zero rows → cross-check
   before concluding anything: `GET /services/data/v68.0/sobjects/BusinessProfile/describe` — if it
   404s or returns `createable:false`, license is genuinely not provisioned; tell the user and stop
   (cannot be fixed via API, they need to provision the license). If it 200s with `createable:true`
   despite the zero-row permission-set query, treat the license as provisioned and note the mismatch
   rather than trusting the permission-set name search alone.

4. **Running user has Education Cloud access** — `GET /services/data/v68.0/query`,
   `queryParams: {"q": "SELECT Id, PermissionSet.Name FROM PermissionSetAssignment WHERE
   AssigneeId='<running user Id>' AND PermissionSet.Name LIKE '%EducationCloud%'"}` (resolve the
   running user's Id first — ask for their username if unknown). No rows → no API route to
   self-assign. Instruct: Setup → Permission Sets → find the org's actual Education Cloud permission
   set (from Check 3's query results) → Manage Assignments → add the running user. Wait for
   confirmation, then re-run this check before proceeding.

5. **Education Cloud Foundation enabled** — `GET /headless/invoke/platform/education-cloud-settings`
   via `dispatch_readonly`, inspect `educationCloudEnabled`.
   - `true` → proceed to Step 1.
   - `false` → ⚠️ **IRREVERSIBLE — one-way by design.** Warn the user explicitly; do NOT promise a
     revert. Ask for confirmation: "Education Cloud Foundation isn't enabled on this org. Enable it
     now? This cannot be turned off afterward." On "No": stop — the hierarchy cannot be created
     without it. On "Yes": `PATCH /headless/invoke/platform/education-cloud-settings/enable-education-cloud`
     (empty body, write-enabled `dispatch`). Cold-verify by repeating the GET — confirm
     `educationCloudEnabled: true` on a fresh read.
   - **If the invoke endpoint errors, or cold-verify still shows `false`**: fall back to manual UI —
     Setup → Quick Find → "Set Up Education Cloud" → Select Set Up Education Cloud → Toggle "Enable
     Education Cloud" → Save. Wait for user confirmation, then cold-verify again before proceeding.

Do not proceed to Step 1 until all five checks pass.
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