BosskuAI Salesforce Architect
Use this skill to design or review Salesforce solutions so they stay inside platform limits, tolerate bulk data, and fail safely when integrations fail.
How this differs from nearby skills
bosskuai-software-architecture: general module and layering decisions. This skill covers Salesforce-specific limits and patterns.
bosskuai-api-design: REST/GraphQL/event contracts. Use it for the contract of an integration; use this skill for how Salesforce sends and receives it.
architecture-decision-records: the ADR format and storage. This skill provides Salesforce-flavored content for them.
bosskuai-data-architecture: cross-system modeling and ownership.
revops: CRM process and lead lifecycle. This skill is the technical build.
Workflow
- Org assessment: objects and volumes, automations (Flows, triggers, legacy rules), integrations, known limit hot spots, technical debt. Use the platform's limits tooling to observe actual use. Check the API version your code calls (the
/services/data/vXX.0/ path) against the current release notes, live at work time.
- Data model first: relationship types (master-detail vs lookup) with reasons, record types, sharing model, large-volume strategy, external IDs for integration objects, field-level security, justified polymorphic lookups.
- Automation layering: declarative tools first (Flow, formulas, validation) and code when logic needs bulk handling or clear tests. One trigger per object that delegates to handler classes; no business logic in the trigger body. Avoid overlapping automation on one object.
- Governor-limit budget: for each transaction list queries, DML, CPU, heap, callouts, and async calls used and remaining. Design every code path to work on a batch of records (the platform processes records in chunks), with no query or DML inside loops. Take current numeric limits from Salesforce's documentation for the release in use.
- Integration pattern per system: sync versus async, push versus pull, platform events versus change data capture (custom business events versus data-change sync), middleware, auth, retry with backoff, dead-letter handling, rate limits, idempotency keys. Set an explicit timeout on every callout, within the platform's maximum. A callout made after uncommitted DML in the same transaction fails with an "uncommitted work pending" error, so queue it instead. Make each retry safe to repeat, for example with an external ID.
- Security: CRUD and field-level checks, query injection prevention, encryption for sensitive fields, data residency needs.
- Delivery: source-tracked metadata, scratch orgs or sandboxes by purpose, automated tests and deploy pipeline, destructive-change handling, rollback plan. Test the deploy on a full or partial copy sandbox, because a developer sandbox has no real data. Check the effect on existing users, such as new validation rules and changed flows, before go-live.
- Record each significant decision as an ADR with alternatives and the limits it affects.
Guardrails
- Platform limits, feature availability (GA vs beta), and license-dependent features change by release. Check the current release notes and documentation before committing a design.
- Do not deploy to, or change data in, a production org without explicit user approval and a tested rollback.
- Do not store sensitive personal data in unencrypted custom fields.
- Do not design callouts without failure handling.
- Load large volumes with Bulk API 2.0. A call past the daily API request limit fails with
REQUEST_LIMIT_EXCEEDED, so count calls per run.
- Store money in Apex
Decimal, never Double, and check each currency field's scale on the live org.
- Salesforce adds fields in new releases. Ignore extra fields, and fail loudly when a field you use is missing or has another type.
- Log each callout's request and response, with the session token and personal data masked.
- Page through query results with
nextRecordsUrl until done is true.
Output format
Context: [clouds, volumes, integrations]
Data model decisions: [object / relationship - reason]
Automation layering: [what runs in Flow vs Apex, ordering]
Limit budget: [limit - used - remaining, per transaction]
Integration table: [system - pattern - failure handling]
ADRs: [title - status - review date]
Delivery and rollback: [pipeline, tests, undo]
The shared quality bar: ../../references/checklists/engineering-quality-bar.md.
Adapted from agency-agents/specialized/specialized-salesforce-architect.md (agency-agents, MIT).
1---2name: bosskuai-salesforce-architect3description: "Use when designing or reviewing a Salesforce org: data model, governor-limit budget, bulkified Apex and triggers, Flow vs code, integration patterns (Platform Events vs CDC), CI/CD, and ADRs."4metadata:5 source: https://skillmd.com/skills/wankimmy/bosskuai-salesforce-architect6---78# BosskuAI Salesforce Architect910Use this skill to design or review Salesforce solutions so they stay inside platform limits, tolerate bulk data, and fail safely when integrations fail.1112## How this differs from nearby skills1314- **`bosskuai-software-architecture`**: general module and layering decisions. This skill covers Salesforce-specific limits and patterns.15- **`bosskuai-api-design`**: REST/GraphQL/event contracts. Use it for the contract of an integration; use this skill for how Salesforce sends and receives it.16- **`architecture-decision-records`**: the ADR format and storage. This skill provides Salesforce-flavored content for them.17- **`bosskuai-data-architecture`**: cross-system modeling and ownership.18- **`revops`**: CRM process and lead lifecycle. This skill is the technical build.1920## Workflow21221. Org assessment: objects and volumes, automations (Flows, triggers, legacy rules), integrations, known limit hot spots, technical debt. Use the platform's limits tooling to observe actual use. Check the API version your code calls (the `/services/data/vXX.0/` path) against the current release notes, live at work time.232. Data model first: relationship types (master-detail vs lookup) with reasons, record types, sharing model, large-volume strategy, external IDs for integration objects, field-level security, justified polymorphic lookups.243. Automation layering: declarative tools first (Flow, formulas, validation) and code when logic needs bulk handling or clear tests. One trigger per object that delegates to handler classes; no business logic in the trigger body. Avoid overlapping automation on one object.254. Governor-limit budget: for each transaction list queries, DML, CPU, heap, callouts, and async calls used and remaining. Design every code path to work on a batch of records (the platform processes records in chunks), with no query or DML inside loops. Take current numeric limits from Salesforce's documentation for the release in use.265. Integration pattern per system: sync versus async, push versus pull, platform events versus change data capture (custom business events versus data-change sync), middleware, auth, retry with backoff, dead-letter handling, rate limits, idempotency keys. Set an explicit timeout on every callout, within the platform's maximum. A callout made after uncommitted DML in the same transaction fails with an "uncommitted work pending" error, so queue it instead. Make each retry safe to repeat, for example with an external ID.276. Security: CRUD and field-level checks, query injection prevention, encryption for sensitive fields, data residency needs.287. Delivery: source-tracked metadata, scratch orgs or sandboxes by purpose, automated tests and deploy pipeline, destructive-change handling, rollback plan. Test the deploy on a full or partial copy sandbox, because a developer sandbox has no real data. Check the effect on existing users, such as new validation rules and changed flows, before go-live.298. Record each significant decision as an ADR with alternatives and the limits it affects.3031## Guardrails3233- Platform limits, feature availability (GA vs beta), and license-dependent features change by release. Check the current release notes and documentation before committing a design.34- Do not deploy to, or change data in, a production org without explicit user approval and a tested rollback.35- Do not store sensitive personal data in unencrypted custom fields.36- Do not design callouts without failure handling.37- Load large volumes with Bulk API 2.0. A call past the daily API request limit fails with `REQUEST_LIMIT_EXCEEDED`, so count calls per run.38- Store money in Apex `Decimal`, never `Double`, and check each currency field's scale on the live org.39- Salesforce adds fields in new releases. Ignore extra fields, and fail loudly when a field you use is missing or has another type.40- Log each callout's request and response, with the session token and personal data masked.41- Page through query results with `nextRecordsUrl` until `done` is true.4243## Output format4445```text46Context: [clouds, volumes, integrations]47Data model decisions: [object / relationship - reason]48Automation layering: [what runs in Flow vs Apex, ordering]49Limit budget: [limit - used - remaining, per transaction]50Integration table: [system - pattern - failure handling]51ADRs: [title - status - review date]52Delivery and rollback: [pipeline, tests, undo]53```5455The shared quality bar: `../../references/checklists/engineering-quality-bar.md`.5657Adapted from agency-agents/specialized/specialized-salesforce-architect.md (agency-agents, MIT).