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/delta_computation.md

View on GitHub
# Delta Computation Reference — Update Mode (Step 5)

Full matching and cycle-rejection algorithm for reconciling the desired hierarchy against the org's current one.

## Traverse the current tree from the root

Starting at the supplied System Account Id, read children level-by-level via the SObject child-relationship resource:

- `GET /services/data/v68.0/sobjects/Account/[Account Id]/ChildAccounts` via `dispatch_readonly` (see `references/mcp-invocation.md`)
- This returns the direct child Accounts (`body.records[]`, each with `Id`, `Name`, `ParentId`). Recurse into each child's Id to build the full `existingTree`.
- If `ChildAccounts` is unavailable in the org, fall back to a SOQL `/query` with the query text passed as `queryParams.q` (never appended inline to the URL as `?q=` — that has 404'd on some orgs). If both fail, ask the user to paste the current structure (Name + Account Id per node) instead.

## Match desired vs. current

By Name within the same sibling group (names are unique per sibling group — see Rules). For each desired node, walking from the root down:

- **Match found** (same Name under the matched parent) → reuse its Account Id; recurse into its children. No write.
- **No match** (desired node absent under that parent) → mark **CREATE**; every desired descendant beneath it is also CREATE (parent Id resolves once the parent is created).

## Extra nodes

Present in the org but absent from the desired structure → mark **EXTRA**. Do NOT delete. List them for the user in the preview.

## Explicit renames / moves

Only when the user asks for them by name — a bare desired tree cannot distinguish a rename from a delete-plus-add:

- **Rename**: resolve the target node's Account Id from `existingTree` by its current name/path → mark **RENAME** (new Name).
- **Move**: resolve both the node's Id and the new parent's Id → mark **MOVE** (new ParentId). Reject a move that would place a node under its own descendant (cycle) — stop with an error before writing.

## Result

A delta list of CREATE / RENAME / MOVE actions plus an EXTRA report. If the delta is empty and no renames/moves were requested, tell the user the org already matches the desired structure and skip to Step 9 (verify).
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