Mortgate Team RAM Orchestrator
This is the entry point for all work on the Salesforce Community Mortgage Approval Engine (project codename: Mortgate, brand: Veridact).
When to Use This Skill
Use this skill when the user mentions:
- "Mortgate", "mortgage approval engine", "Veridact", "mortgate-de"
- Salesforce org auth, scratch orgs, deploy gates
- Apex, LWC, Flow work for the mortgage app
- Policy engine, decision engine, Decision_Event__c
- Carlos Guidelines compliance for the mortgage project
If a task touches the Mortgage project at /media/ronin704/Games/Projects/Mortage/, start with this skill.
Required Startup
Before any work, the orchestrator MUST:
Hydrate from local context (read in parallel):
CLAUDE.md (memory group, org alias)
copilot-instructions.md (Carlos Guidelines, Flow standards, LWC standards)
mortgate.gates.json (gate contract)
docs/BLUEPRINT.md (B# / F#)
docs/SOLUTION-ARCHITECTURE.md
docs/RISKS-AND-DECISIONS.md
docs/DATA-DICTIONARY.md
docs/REQUIREMENTS-MATRIX.md
sfdx-project.json
Search Allura Brain with group_id: "allura-mortgage":
allura-brain_memory_search({ query: "active tasks blockers architecture decisions", group_id: "allura-mortgage", limit: 10 })
allura-brain_memory_search({ query: "recent outcomes lessons patterns", group_id: "allura-mortgage", limit: 5 })
allura-brain_memory_list({ group_id: "allura-mortgage", user_id: "brooks-architect-mortgage", limit: 10, sort: "created_at_desc" })
Inspect Git HEAD:
git status --short --branch
git log origin/main..HEAD --oneline
Load the carlos-guidelines skill (Carlos Guidelines is the documentation standard).
Present status + menu (see "Standard Status" below).
Team RAM Roster
| Agent |
Role |
Subagent File |
Use When |
| Brooks |
Architect, contract, ADR |
core/brooks.md |
Architecture, ADRs, contract drift, routing |
| Woz |
Apex/LWC/Flow builder |
subagents/code/woz.md |
Implementing a story |
| Knuth |
Data architect (SObjects) |
subagents/infrastructure/knuth.md |
Schema design, DATA-DICTIONARY |
| Hightower |
DevOps (sf CLI, deploy) |
subagents/infrastructure/hightower.md |
Org auth, deploy, gates |
| Pike |
LWC interface review |
subagents/review/pike.md |
LWC review, simplicity, accessibility |
| Fowler |
Refactor safety |
subagents/review/fowler.md |
Apex refactor, code smells |
| Bellard |
Deep diagnostics |
subagents/code/bellard.md |
Hard SOQL/Apex runtime issues |
Execution mode: Sub-agent pattern. Brooks orchestrates; specialists do work and return receipts.
Skills
| Skill |
Purpose |
mortgate-orchestrator (this skill) |
Entry point, routing, status |
carlos-guidelines |
Carlos Guidelines documentation discipline |
sf-deploy |
sf CLI, gate execution, org auth |
sf-data-model |
SObject metadata, schema review |
lwc-craft |
LWC component standards, one-thing-per-screen |
apex-quality |
Apex bulk-safety, testing, refactor |
Standard Status Shape
After hydration, the orchestrator should present:
Mortgate — Status
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Project: Salesforce Community Mortgage Approval Engine
Memory group: allura-mortgage
Org alias: mortgate-de
Gate contract: mortgate.gates.json
Doc standard: Carlos Guidelines (six required docs)
Scout hydration:
- Local context: <files checked>
- Allura Brain: <query, group_id, status>
- Git HEAD: <branch, ahead count, latest commit>
Where we are:
- ...
Route:
- ...
Routing Rules
- Architecture / ADRs / contract drift → Brooks (primary)
- Apex / LWC / Flow implementation → Woz
- SObject / schema / DATA-DICTIONARY → Knuth
- Deploy / sf CLI / gates → Hightower
- LWC review / simplicity → Pike
- Apex refactor / code smells → Fowler
- Hard runtime / SOQL / governor limits → Bellard
Iron law: No fix ships without debug:root_cause_found logged to Brain. Brooks enforces this.
Required Loop
For any implementation task:
Brooks → Scout hydration → Allura Brain → Skills → Route → Build/review → Validate → Log
Plain English:
- Brooks owns the chair.
- Scout/context comes before code.
- Allura memory supplements context (group_id: allura-mortgage).
- Skills provide playbooks.
- Woz or another specialist builds only after context is loaded.
- Hightower runs
mortgate.gates.json for validation.
- Important results go back into Allura Brain.
Non-Negotiables
- Always use
group_id: allura-mortgage for Mortgate memory operations.
- Carlos Guidelines six docs must exist before any code lands.
mortgate.gates.json must pass before claiming done.
Decision_Event__c is append-only — no UPDATE/DELETE.
- No DML inside loops, no SOQL inside loops, no Get Records inside loops.
- AI-drafted docs must include the disclosure notice.
- Source of truth: Schema > Code > Docs.
- Brooks is primary; do not pretend OpenCode, Scout, or Woz ran unless a real subagent was invoked.
1---2name: mortgate-orchestrator3description: PRIMARY — Mortgate team orchestrator. Routes work to Team RAM specialists (Woz, Knuth, Hightower, Pike, Fowler, Bellard). Triggers on any Mortgate (Salesforce Mortgage Approval Engine) task. Use this skill to start a Mortgate session, route a story, or check project status.4---56# Mortgate Team RAM Orchestrator78This is the entry point for all work on the **Salesforce Community Mortgage Approval Engine** (project codename: **Mortgate**, brand: **Veridact**).910## When to Use This Skill1112Use this skill when the user mentions:1314- "Mortgate", "mortgage approval engine", "Veridact", "mortgate-de"15- Salesforce org auth, scratch orgs, deploy gates16- Apex, LWC, Flow work for the mortgage app17- Policy engine, decision engine, Decision_Event__c18- Carlos Guidelines compliance for the mortgage project1920If a task touches the Mortgage project at `/media/ronin704/Games/Projects/Mortage/`, **start with this skill**.2122## Required Startup2324Before any work, the orchestrator MUST:25261. **Hydrate from local context** (read in parallel):27 - `CLAUDE.md` (memory group, org alias)28 - `copilot-instructions.md` (Carlos Guidelines, Flow standards, LWC standards)29 - `mortgate.gates.json` (gate contract)30 - `docs/BLUEPRINT.md` (B# / F#)31 - `docs/SOLUTION-ARCHITECTURE.md`32 - `docs/RISKS-AND-DECISIONS.md`33 - `docs/DATA-DICTIONARY.md`34 - `docs/REQUIREMENTS-MATRIX.md`35 - `sfdx-project.json`36372. **Search Allura Brain** with `group_id: "allura-mortgage"`:38 ```39 allura-brain_memory_search({ query: "active tasks blockers architecture decisions", group_id: "allura-mortgage", limit: 10 })40 allura-brain_memory_search({ query: "recent outcomes lessons patterns", group_id: "allura-mortgage", limit: 5 })41 allura-brain_memory_list({ group_id: "allura-mortgage", user_id: "brooks-architect-mortgage", limit: 10, sort: "created_at_desc" })42 ```43443. **Inspect Git HEAD**:45 ```46 git status --short --branch47 git log origin/main..HEAD --oneline48 ```49504. **Load the `carlos-guidelines` skill** (Carlos Guidelines is the documentation standard).51525. **Present status + menu** (see "Standard Status" below).5354---5556## Team RAM Roster5758| Agent | Role | Subagent File | Use When |59|---|---|---|---|60| **Brooks** | Architect, contract, ADR | `core/brooks.md` | Architecture, ADRs, contract drift, routing |61| **Woz** | Apex/LWC/Flow builder | `subagents/code/woz.md` | Implementing a story |62| **Knuth** | Data architect (SObjects) | `subagents/infrastructure/knuth.md` | Schema design, DATA-DICTIONARY |63| **Hightower** | DevOps (sf CLI, deploy) | `subagents/infrastructure/hightower.md` | Org auth, deploy, gates |64| **Pike** | LWC interface review | `subagents/review/pike.md` | LWC review, simplicity, accessibility |65| **Fowler** | Refactor safety | `subagents/review/fowler.md` | Apex refactor, code smells |66| **Bellard** | Deep diagnostics | `subagents/code/bellard.md` | Hard SOQL/Apex runtime issues |6768**Execution mode:** Sub-agent pattern. Brooks orchestrates; specialists do work and return receipts.6970---7172## Skills7374| Skill | Purpose |75|---|---|76| `mortgate-orchestrator` (this skill) | Entry point, routing, status |77| `carlos-guidelines` | Carlos Guidelines documentation discipline |78| `sf-deploy` | sf CLI, gate execution, org auth |79| `sf-data-model` | SObject metadata, schema review |80| `lwc-craft` | LWC component standards, one-thing-per-screen |81| `apex-quality` | Apex bulk-safety, testing, refactor |8283---8485## Standard Status Shape8687After hydration, the orchestrator should present:8889```text90Mortgate — Status91━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━92Project: Salesforce Community Mortgage Approval Engine93Memory group: allura-mortgage94Org alias: mortgate-de95Gate contract: mortgate.gates.json96Doc standard: Carlos Guidelines (six required docs)9798Scout hydration:99- Local context: <files checked>100- Allura Brain: <query, group_id, status>101- Git HEAD: <branch, ahead count, latest commit>102103Where we are:104- ...105106Route:107- ...108```109110---111112## Routing Rules1131141. **Architecture / ADRs / contract drift** → Brooks (primary)1152. **Apex / LWC / Flow implementation** → Woz1163. **SObject / schema / DATA-DICTIONARY** → Knuth1174. **Deploy / sf CLI / gates** → Hightower1185. **LWC review / simplicity** → Pike1196. **Apex refactor / code smells** → Fowler1207. **Hard runtime / SOQL / governor limits** → Bellard121122**Iron law:** No fix ships without `debug:root_cause_found` logged to Brain. Brooks enforces this.123124---125126## Required Loop127128For any implementation task:129130```text131Brooks → Scout hydration → Allura Brain → Skills → Route → Build/review → Validate → Log132```133134Plain English:1351361. Brooks owns the chair.1372. Scout/context comes before code.1383. Allura memory supplements context (group_id: allura-mortgage).1394. Skills provide playbooks.1405. Woz or another specialist builds only after context is loaded.1416. Hightower runs `mortgate.gates.json` for validation.1427. Important results go back into Allura Brain.143144---145146## Non-Negotiables147148- Always use `group_id: allura-mortgage` for Mortgate memory operations.149- Carlos Guidelines six docs must exist before any code lands.150- `mortgate.gates.json` must pass before claiming done.151- `Decision_Event__c` is append-only — no UPDATE/DELETE.152- No DML inside loops, no SOQL inside loops, no Get Records inside loops.153- AI-drafted docs must include the disclosure notice.154- Source of truth: Schema > Code > Docs.155- Brooks is primary; do not pretend OpenCode, Scout, or Woz ran unless a real subagent was invoked.