/design-object — Design a Setup-ready sObject from a business concept
Design a complete sObject from a business concept, including metadata and deployment order.
Wraps agents/object-designer/AGENT.md. Produces a complete object spec + sfdx metadata scaffold + deployment order.
Step 1 — Collect inputs
Ask the user:
1. Business concept (one sentence describing what the object represents)?
Example: "Track maintenance contracts linked to Accounts, with a primary technician and warranty expiration"
2. Target org alias (required — agent probes for overlapping design)?
3. Expected row volume? small (<100k) / medium (100k-10M) / large (>10M)
(Default: medium)
4. Integration source (optional)?
If rows will be sourced from an external system, pass the system name.
Drives External ID + upsert recommendations.
5. Sensitivity? standard / pii / phi / pci
(Default: standard; affects encryption + access recommendations)
If the concept is under 8 words or lacks enough signal to infer 3+ fields, STOP and ask clarifying questions.
Step 2 — Load the agent
Read agents/object-designer/AGENT.md + all mandatory reads.
Step 3 — Execute the plan
Follow the 10-step plan exactly:
- Probe org for overlapping design
- Decide standard vs custom
- Generate API name + label per naming conventions
- Design the field set
- Decide record types (only if persona variance signaled)
- Design sharing posture via the sharing-selection decision tree
- Plan validation rules at object creation
- Plan indexes (LDV objects or integration sources)
- Emit the deployment order
- Emit the spec + scaffold
Step 4 — Deliver the output
Return the Output Contract:
- Summary + confidence
- Design spec
- Scaffold metadata (fenced XML blocks, one per file)
- Deployment order
- Process Observations
- Citations
Step 5 — Recommend follow-ups
Suggest (but do not auto-invoke):
/architect-permsto design the persona PSes for the new object/audit-validation-rulesafter initial VRs are deployed/design-duplicate-ruleif the object is human-identity data/build-flowfor any automation on the new object
What this command does NOT do
- Does not deploy metadata.
- Does not generate permission sets (out of scope — use
/architect-perms). - Does not build triggers or flows on the new object.