Agent skill

Insurance Brokerage Agency Billing Configure

by forcedotcom in forcedotcom/sf-skills

Configure end-to-end Agency Billing on a Salesforce FSC Insurance Brokerage org via dispatch MCP calls.

Apache-2.0Auto-check passedBusiness, Finance & HR

Install Insurance Brokerage Agency Billing Configure

skills CLI
$ npx skills add forcedotcom/sf-skills --skill insurance-brokerage-agency-billing-configure -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install forcedotcom/sf-skills insurance-brokerage-agency-billing-configure --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/insurance-brokerage-agency-billing-configure .claude/skills/insurance-brokerage-agency-billing-configure && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
insurance-brokerage-agency-billing-configure
GitHub stars
1.1k
Token cost
~5.8k tokens
SKILL.md length
2,434 words
Files
8 (incl. references)
Skills in repo
252
Repo updated
First seen
Licence
Apache-2.0

At a glance

Configure end-to-end Agency Billing on a Salesforce FSC Insurance Brokerage org via dispatch MCP calls.

  • Works in 7 steps: Prerequisites → Permissions Assignment (moved from Phase… → Billing Settings (requires Phase 2… → …
  • Users want to set up brokerage billing
  • SKILL.md covers Scope, CRITICAL — Standard Field…, Required Inputs and Workflow, plus 4 more sections
  • Reaches soap.sforce.com; needs INVALID_CROSS_REFERENCE_KEY

What it does

Insurance Brokerage Agency Billing Configure is an agent skill from forcedotcom/sf-skills. Configure end-to-end Agency Billing on a Salesforce FSC Insurance Brokerage org via dispatch MCP calls. Use this skill when users want to set up brokerage billing, configure agency billing, enable insurance billing features, create billing rules, set up accounting periods, assign billing permission sets, or create a demo policy for the Issue-to-Invoice flow. TRIGGER when: user mentions agency billing setup, brokerage billing configuration, insurance billing enablement, billing treatments, billing rules creation…

Its SKILL.md is about 5.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including reference files (for example `references/accounting-setup.md`, `references/billing-rules-config.md` and `references/billing-settings.md`).

It sits in Business, Finance & HR, covering Accounting and bookkeeping, Forms and invoices and CRM management. It works with Salesforce and Model Context Protocol. The repository describes itself as: Salesforce's curated collection of agent skills for building applications. Optimized for Agentforce Vibes, compatible with all AI tools. The licence is Apache-2.0.

When your agent uses it

  • Users want to set up brokerage billing
  • Configure agency billing
  • Enable insurance billing features
  • Create billing rules

Example prompts

  • “/insurance-brokerage-agency-billing-configure”

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Prerequisites
  2. Permissions Assignment (moved from Phase 6)
  3. Billing Settings (requires Phase 2 permissions)
  4. Billing Rules (requires Phase 2 permissions for BillingTreatment object access)
  5. Org Defaults
  6. Accounting
  7. Demo Policy

What it can do on your machine

Read from SKILL.md and the folder at commit 4bbae5c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • soap.sforce.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • INVALID_CROSS_REFERENCE_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Insurance Brokerage Agency Billing Configure loads about 5.8k tokens when it runs, and up to ~17k if it reads all its reference files. Until then it costs about 256 tokens; SKILL.md has 2,434 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~256
When it runs · the whole SKILL.md, loaded when a task matches
~5.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~17k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from forcedotcom/sf-skills at commit 4bbae5c, republished under its Apache-2.0 licence (© forcedotcom). 2,434 words, ~5,815 tokens.

Download SKILL.mdSave it as .claude/skills/insurance-brokerage-agency-billing-configure/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
insurance-brokerage-agency-billing-configure
description
Configure end-to-end Agency Billing on a Salesforce FSC Insurance Brokerage org via dispatch MCP calls. Use this skill when users want to set up brokerage billing, configure agency billing, enable insurance billing features, create billing rules, set up accounting periods, assign billing permission sets, or create a demo policy for the Issue-to-Invoice flow. TRIGGER when: user mentions agency billing setup, brokerage billing configuration, insurance billing enablement, billing treatments, billing rules creation, accounting period setup, insurance policy billing information, or Issue-to-Invoice testing. Also use when users say things like set up my brokerage org for billing, configure billing on my insurance org, enable billing features, create billing treatments, set up GL accounts, or assign billing permissions. DO NOT TRIGGER when: user needs general Revenue Cloud Billing without insurance context, needs CPQ/quoting configuration, or needs claims processing setup.
metadata.version
2.0
metadata.minApiVersion
66.0

Insurance Brokerage Agency Billing Configuration

Automates the full Agency Billing setup on a Salesforce FSC Insurance Brokerage org. Runs 7 sequential phases using dispatch MCP calls to verify licenses, enable features, assign permissions early, configure billing settings, create billing rules, set org defaults, set up accounting, and create a demo policy for Issue-to-Invoice testing. Phase order is critical: permissions must be assigned before billing settings configuration.

Scope

  • In scope: License verification, feature enablement (Context Service, Brokerage, Billing, Salesforce Pricing), billing settings configuration, billing rules creation (Legal Entity, Billing Treatments, Tax Engine, Payment Terms, Product Selling Models, Proration Policy), accounting setup (periods, GL accounts, GLAAR rules), permission set assignment, FLS creation via metadata endpoint, and demo policy creation.
  • Out of scope: Revenue Cloud CPQ/quoting, claims processing, policy administration workflows, custom Apex development, LWC UI components. Data Pipelines (Sonic) requires an org-level SonicLicensedOrg feature not present on standard brokerage orgs — enable it manually if needed.
  • All phases fully automated via dispatch (headless routes + Metadata CRUD + Tooling API). No manual steps, no SF CLI, no gaps.

CRITICAL — Standard Field Names (no __c anywhere)

Every field in this workflow is STANDARD. Never append __c to any field name. Here are the correct API names:

ObjectField (correct)WRONG (never use)
BillingTreatmentStatusStatus__c
TaxEngineTaxEngineNameTaxEngineName__c
PaymentTermDaysDueDaysDue__c
PaymentTerm / PaymentTermItemPeriodUnitPeriodUnit__c
PaymentTermActiveActive__c
LegalEntityActiveActive__c
BillingTreatmentItemChargeTypeChargeType__c
BillingTreatmentItemBillingTypeBillingType__c
BillingTreatmentItemActiveActive__c
ProductSellingModelActiveActive__c

Required Inputs

Do not ask the user for any information — proceed autonomously using defaults and the pre-configured environment.

  • Authenticated org: The default target org is pre-configured in the MCP environment. Verify connectivity by calling dispatch GET /chatter/users/me.
  • Target user ID: Capture the id field from the /chatter/users/me response and use it as AssigneeId for all license and permission assignments throughout all phases.

Defaults (always apply unless the user explicitly overrides in their initial prompt):

  • All 7 phases execute in sequence
  • Demo policy uses configuration from references/demo-policy-config.md
  • Billing rules use configuration from references/billing-rules-config.md
  • Permission sets from references/permissions-config.md

Workflow

All phases are sequential. Do not skip or reorder. Critical cross-dependencies:

  • Phase 2 (Permissions) MUST run before Phase 3 (Billing Settings) — many billing settings require billing admin permissions
  • Phase 2 (Permissions) MUST run before Phase 4 (Billing Rules) — BillingTreatment object access requires permissions
  • Phase 2 (Permissions) MUST run before Phase 7 (Demo Policy) — InsPolicyBillingInfo fields require permissions + propagation time

Follow the execution order below exactly.

Phase 1 — Prerequisites
  1. Verify org connectivity and capture target user ID — call dispatch GET /chatter/users/me and confirm a 200 response. Capture the id field from the response and store it as TARGET_USER_ID — this SAME ID must be used throughout ALL phases for license assignments, permission set assignments, and any user-specific operations. If Chatter is disabled, fall back to querying the User object: dispatch GET /query?q=SELECT+Id,Username,Name+FROM+User+WHERE+IsActive=true+AND+Profile.Name+LIKE+'%25System+Administrator%25'+LIMIT+1 and capture the Id field from the first record.

    CRITICAL: Do not re-query for the user ID in later phases. Use the same TARGET_USER_ID captured here for all subsequent operations. Re-querying can return a different user if multiple admins exist.

  2. Verify 19 required licenses — read references/prerequisites.md for the full license list. Use dispatch GET /query?q=<SOQL> to query PermissionSetLicense records. If any are missing from the org, stop and inform the user.

  3. Assign missing licenses to target user — query PermissionSetLicenseAssign for the TARGET_USER_ID captured in step 1. Assign any missing licenses via dispatch POST /sobjects/PermissionSetLicenseAssign using the same TARGET_USER_ID.

  4. Enable features — read references/prerequisites.md for the feature enablement sequence and exact routes. Each feature is a read → write → verify cycle. Enable in order: Context Service, Brokerage, Billing, Salesforce Pricing.

Features MUST be enabled in dependency order. Context Service before Brokerage, Brokerage before Billing.

Phase 2 — Permissions Assignment (moved from Phase 6)
  1. Assign permission sets EARLY — read references/permissions-config.md for the 15 required sets. Query current assignments, assign only missing ones via dispatch POST /sobjects/PermissionSetAssignment. This must run before Phase 3 (Billing Settings) because several billing settings require these permissions to modify.

  2. Create custom permission set with FLS for InsPolicyBillingInfo billing lookup fields — MANDATORY STEP, CANNOT BE SKIPPED UNDER ANY CIRCUMSTANCES. The 6 billing lookup fields on InsPolicyBillingInfo require Field-Level Security to be visible: BillingTreatmentId, TaxTreatmentId, ProrationPolicyId, PaymentTermId, ProductSellingModelId, LegalEntityId. Without this FLS, Phase 7 will fail with INVALID_FIELD errors when creating InsPolicyBillingInfo records.

    CRITICAL: ALWAYS attempt to create the permission set — DO NOT skip this step based on FLS query results. Even if FieldPermissions query shows FLS is already granted via another permission set, you MUST attempt to create the Insurance_Billing_Field_Access permission set. If it already exists, the API will return DUPLICATE_VALUE — treat this as success and continue.

    Step 1 — Verify FLS (for diagnostic purposes only, NOT a gate for creation):

    text
    dispatch GET /query?q=SELECT+Field+FROM+FieldPermissions+WHERE+SobjectType='InsPolicyBillingInfo'+AND+Field+IN+('InsPolicyBillingInfo.BillingTreatmentId','InsPolicyBillingInfo.TaxTreatmentId','InsPolicyBillingInfo.ProrationPolicyId','InsPolicyBillingInfo.PaymentTermId','InsPolicyBillingInfo.ProductSellingModelId','InsPolicyBillingInfo.LegalEntityId')+AND+PermissionsRead=true+AND+PermissionsEdit=true

    Step 2 — UNCONDITIONALLY create the permission set (DO NOT skip regardless of Step 1 results):

    text
    dispatch POST /services/data/v66.0/headless/metadata
    {
      "type": "PermissionSet",
      "fullName": "Insurance_Billing_Field_Access",
      "xmlRep": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><PermissionSet xmlns=\"http://soap.sforce.com/2006/04/metadata\"><fieldPermissions><field>InsPolicyBillingInfo.BillingTreatmentId</field><readable>true</readable><editable>true</editable></fieldPermissions><fieldPermissions><field>InsPolicyBillingInfo.TaxTreatmentId</field><readable>true</readable><editable>true</editable></fieldPermissions><fieldPermissions><field>InsPolicyBillingInfo.ProrationPolicyId</field><readable>true</readable><editable>true</editable></fieldPermissions><fieldPermissions><field>InsPolicyBillingInfo.PaymentTermId</field><readable>true</readable><editable>true</editable></fieldPermissions><fieldPermissions><field>InsPolicyBillingInfo.ProductSellingModelId</field><readable>true</readable><editable>true</editable></fieldPermissions><fieldPermissions><field>InsPolicyBillingInfo.LegalEntityId</field><readable>true</readable><editable>true</editable></fieldPermissions><hasActivationRequired>false</hasActivationRequired><label>Insurance Billing Field Access</label><description>Grants FLS for InsPolicyBillingInfo billing lookup fields</description></PermissionSet>"
    }

    Expected outcomes:

    • Success (new creation): { results: [{ success: true, id: "0PS...", fullName: "Insurance_Billing_Field_Access" }] } — capture the id field.
    • DUPLICATE_VALUE (already exists): { results: [{ success: false, errors: [{ statusCode: "DUPLICATE_VALUE" }] }] } — the permission set exists; proceed to reconciliation step below.
  3. Reconcile FieldPermissions — MANDATORY, DO NOT SKIP. A pre-existing Insurance_Billing_Field_Access permission set may be missing some of the 6 required entries. Resolve the permission set ID, query its FieldPermissions, and for each of the 6 required fields (InsPolicyBillingInfo.BillingTreatmentId, .TaxTreatmentId, .ProrationPolicyId, .PaymentTermId, .ProductSellingModelId, .LegalEntityId) that is missing or has read/edit false: create or PATCH the FieldPermissions record. See references/permissions-config.md § "Reconcile Field Permissions" for the exact API calls. Only after all 6 fields are confirmed read+edit proceed to assignment.

  4. Assign the permission set to target user — MANDATORY STEP, DO NOT SKIP. Query for the permission set ID (whether you just created it or it already existed), then verify assignment status and create the assignment if missing.

    First, resolve the permission set ID:

    text
    dispatch GET /query?q=SELECT+Id+FROM+PermissionSet+WHERE+Name='Insurance_Billing_Field_Access'+AND+IsOwnedByProfile=false

    Then check if already assigned:

    text
    dispatch GET /query?q=SELECT+Id+FROM+PermissionSetAssignment+WHERE+AssigneeId='<TARGET_USER_ID>'+AND+PermissionSetId='<PS_ID>'

    If the assignment query returns 0 records, create the assignment:

    text
    dispatch POST /sobjects/PermissionSetAssignment
    {"AssigneeId": "<TARGET_USER_ID>", "PermissionSetId": "<PS_ID>"}

    If the assignment POST returns DUPLICATE_VALUE, the user already has it assigned between your query and now (treat as success). Any other error is a failure and must be reported.

Phase 3 — Billing Settings (requires Phase 2 permissions)
  1. Read current billing settings — read references/billing-settings.md for the full settings map and routes. Call dispatch GET /headless/invoke/platform/billing-settings/get-billing-general-setting-states to read current state.

  2. Write only changed settings — compare each field against desired state and write only what differs. Enable Design Document Templates via dispatch PATCH /headless/invoke/platform/accounting-guided-setup/setup-billing-doc-gen-and-fetch-invoice-template-data (must run after billing is on). InsuranceBrokerage IPT/IPTD settings are now automated via PATCH /setup/org/values/I_P_T_D_ENABLED_FOR_BROKERAGE and PATCH /setup/org/values/I_P_T_ENABLED_FOR_BROKERAGE.

If any setting returns "Access denied": Phase 2 permissions did not propagate yet. Wait 30 seconds and retry.

Phase 4 — Billing Rules (requires Phase 2 permissions for BillingTreatment object access)
  1. Query existing billing rules — for each record type (Legal Entity, Billing Treatments, Tax Engine, Tax Treatment, Payment Term, Product Selling Models, Proration Policy), use dispatch GET /query?q=<SOQL> before creating. Read references/billing-rules-config.md for exact field values and search patterns.

  2. Create only missing records — use dispatch POST /sobjects/<Object> for creates and dispatch PATCH /sobjects/<Object>/<id> for updates. For Billing Treatments, follow the Draft→Items→Activate sequence. Track all record IDs.

Billing Treatments must be created in Draft, child Items created in Active, then parent activated. This is enforced by the platform.

Phase 5 — Org Defaults
  1. Set billing defaults — read references/org-defaults.md. Set the five default fields (Legal Entity, Billing Treatment, Tax Treatment, two DPE definitions) via dedicated headless routes. Use record IDs from Phase 4.
Phase 6 — Accounting
  1. Create accounting periods — read references/accounting-setup.md. Compute dates at runtime for the current fiscal year. Query existing periods via dispatch GET /query?q=<SOQL>, create only missing months via dispatch POST /sobjects/AccountingPeriod. Link periods to Legal Entity via LegalEntyAccountingPeriod.

  2. Create GL accounts — query by AccountingCode, create only missing accounts (11 total) via dispatch POST /sobjects/GeneralLedgerAccount. Link each to the Legal Entity.

  3. Create GLAAR rules — query existing rules, create parent GeneralLedgerAcctAsgntRule + child GeneralLedgerJrnlEntryRule if missing.

Phase 7 — Demo Policy
  1. Demo policy — proceed with creating a demo policy for Issue-to-Invoice testing. Skip only if the user explicitly requested to skip this phase in their initial prompt.

  2. Create demo policy chain — read references/demo-policy-config.md. Check for duplicate Account via dispatch GET /query?q=<SOQL>. If none exists, create: Account → Contact → Insurance Policy → Coverages → Surcharges → Insurance Policy Billing Information. Use record IDs from Phase 4 for billing info lookups. All creates via dispatch POST /sobjects/<Object>.

  3. Verify FLS — use dispatch GET /query?q=<SOQL> to query FieldPermissions for policy objects. Report any fields needing manual FLS configuration.


Show full SKILL.md (1,044 more words)Show less

Rules / Constraints

ConstraintRationale
Query before create — alwaysPrevents duplicates; existing records may have been created manually or by a colleague
Never ask the user questions or offer to run laterProceed autonomously — execute all commands immediately. Never say "if you want me to run" or "say Run now". Just do it. Report results at the end.
Capture target user ID once in Phase 1, use everywherePhase 1 step 1 captures TARGET_USER_ID — this SAME ID is used for all license assignments, permission set assignments, and user-specific operations. Do NOT re-query for user ID in later phases.
Track all record IDs across phasesLater phases reference IDs from earlier phases for lookups
Enable features individually and sequentiallyCross-dependencies require ordered enablement
Use dispatch for all org operationsNo sf CLI dependency — all reads/writes go through the project-codey MCP dispatch tool
Compute dates at runtimeFiscal year, accounting periods, and policy dates must reflect the current calendar year
Read config from references/ filesCentralizes field values; prevents drift between instructions and actual creates
NEVER use __c suffix on ANY object or fieldEvery object and every field in this workflow is STANDARD. There are ZERO custom objects or custom fields. Never write __c anywhere — not on object names, not on field names. Status not Status__c. Active not Active__c. BillingType not BillingType__c. Using __c causes immediate DML failures.
Report skipped stepsWhen a commented-out section is skipped, tell the user which settings were not configured and why

Gotchas

IssueResolution
Chatter may be disabled on the target orgIf GET /chatter/users/me returns 403 FUNCTIONALITY_NOT_ENABLED, fall back to SELECT Id,Username,Name FROM User WHERE IsActive=true AND Profile.Name LIKE '%System Administrator%' LIMIT 1 to identify the target user
Target user ID must be captured once in Phase 1 and used consistently across ALL phasesCapture the user ID from /chatter/users/me (or the User query fallback) in Phase 1 step 1 and store it as TARGET_USER_ID. Use this SAME ID for all license assignments (Phase 1), permission set assignments (Phase 2), and any user-specific operations. Do NOT re-query for the user ID in later phases — if multiple System Administrator users exist, re-querying can return a different user, causing "invalid user id" errors. If Phase 2 or Phase 7 returns INVALID_CROSS_REFERENCE_KEY with "invalid user id", you used the wrong ID — go back to Phase 1 and use the correct TARGET_USER_ID captured there.
TaxEngine name field is TaxEngineName, not NameUse TaxEngineName in queries and creates
PeriodUnit (on PaymentTerm and PaymentTermItem) is singular, not PeriodUnitsField was renamed; use singular form
ProrationPolicy has NO Status fieldDo not include Status in queries or creates for this object
BillingTreatment activation validates children existMust create Items before activating parent
InsPolicyBillingInfo is abbreviated, not InsurancePolicyBillingInformationUse the short API name
InsPolicyTransactionDetail is abbreviated, not InsurancePolicyTransactionDetailUse the short API name
GeneralLedgerAccount.Name is auto-generatedDo not include Name in create; use AccountingCode + AccountingName
LegalEntyAccountingPeriod.Name is auto-generatedDo not include Name in create
InsurancePolicyCoverage uses CoverageName not NameName is auto-generated on this object
Surcharges must be on terminal nodes (coverages), not directly on the policyPlatform enforces this for tax proration to work correctly
Headless invoke routes use kebab-case path segmentsThe route PATCH /headless/invoke/platform/billing-settings/set-billing-setup-enabled is the canonical form; camelCase variants 404
INSURANCE_BILLING requires INSURANCE_TRANSACTION_DETAIL on firstEnable I_P_T_D_ENABLED_FOR_BROKERAGE before I_P_T_ENABLED_FOR_BROKERAGE. The handle-pref-enable route is wrong for both — use PATCH /setup/org/values/<name> with {"orgValue": true} (same as SetupApiFamilyController.updateOrgValue in the UI).
InsuranceBrokerageSettings context mapping via /setup/org/values/*Use the same pattern as IPTD/IPT: GET/PATCH /setup/org/values/INS_BRK_BILLING_CTX_DEF (and _SCHED_GRP_MAP, _TNX_MAPPING) with {"orgValue": "<value>"}. Tooling API SELECT Metadata FROM InsuranceBrokerageSettings returns INVALID_TYPE on standard orgs.
BillingSettings Tooling SOQL returns INVALID_TYPESELECT Id,Metadata FROM BillingSettings via Tooling API fails on many org types. BillingSettings is a standard platform Metadata type (Metadata API deploy/retrieve works), but the Tooling SOQL surface doesn't expose it universally. For Phase 4 org defaults, use the dedicated headless routes in references/org-defaults.md — they write the same underlying OrgValues without any Tooling API dependency.
BillingTreatmentItem.Percentage is required even for Advance/ArrearsPlatform requires Percentage on all BTI types, not just Milestone. Use 100 for non-milestone items
BillingTreatmentItem has no CurrencyIsoCode fieldDo not include CurrencyIsoCode — the field does not exist on this object
InsurancePolicyCoverage has no CurrencyIsoCode fieldDo not include CurrencyIsoCode — the field does not exist on this object
ProductSellingModel OneTime cannot have PricingTerm or PricingTermUnitOmit both fields when SellingModelType=OneTime; platform returns INVALID_INPUT if either is set
PaymentTerm must be created without Status, then activated after child itemCreating PaymentTerm with Status=Active fails if no PaymentTermItem exists. Create without Status, add PaymentTermItem, then PATCH Status=Active+IsDefault=true
GeneralLedgerAcctAsgntRule create fails with Status=Active if no child journal entry rule existsCreate with Status=Inactive, add GeneralLedgerJrnlEntryRule child, then PATCH Status=Active. Valid values: Active, Inactive (no Draft)
LegalEntity has no CurrencyIsoCode field on orgfarm orgsOmit from SOQL query and create body
BillingTreatment.ExcludeFromBilling is a restricted picklistValid values are "Yes"/"No" only. Sending a boolean-like "true"/"false" string fails with 400 INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST
InsPolicyBillingInfo billing lookup fields require FLS grants from Phase 2 custom permission setBillingTreatmentId, TaxTreatmentId, ProrationPolicyId, PaymentTermId, ProductSellingModelId, LegalEntityId are hidden from describe and SOQL until Field-Level Security is granted. Phase 2 creates a custom permission set "Insurance Billing Field Access" with FieldPermissions for these 6 fields and assigns it to the target user. If the POST returns INVALID_FIELD on any of these after Phase 2 completed, the FLS grants may not have been created correctly — verify the custom permission set exists and has the 6 FieldPermissions records. Phase 7 MUST run after Phase 2 completes.

Output Expectations

This skill produces no file artifacts. It configures an org via dispatch calls and produces a status report at the end of each phase and a comprehensive summary after all phases complete. Commented-out steps are reported as skipped with investigation notes.


Reference File Index

FileWhen to read
references/prerequisites.mdPhase 1 — license list, feature enablement routes
references/permissions-config.mdPhase 2 — 15 permission sets API names (moved early to unblock Phase 3)
references/billing-settings.mdPhase 3 — settings field map, headless routes, and desired values
references/billing-rules-config.mdPhase 4 — billing rules field values, search patterns, creation sequence
references/org-defaults.mdPhase 5 — investigation status and deferred default fields
references/accounting-setup.mdPhase 6 — GL account chart, GLAAR rule structure, period naming
references/demo-policy-config.mdPhase 7 — demo policy record fields, lookup resolution, and FLS verification

© forcedotcom, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files (references) in skills/insurance-brokerage-agency-billing-configure of forcedotcom/sf-skills.

  • SKILL.md
  • references/accounting-setup.md
  • references/billing-rules-config.md
  • references/billing-settings.md
  • references/demo-policy-config.md
  • references/org-defaults.md
  • references/permissions-config.md
  • references/prerequisites.md

Open the folder on GitHubat commit 4bbae5c

Compare with similar skills

Insurance Brokerage Agency Billing Configure next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Insurance Brokerage Agency Billing Configure compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Insurance Brokerage Agency Billing Configure this skillforcedotcom/sf-skills1.1k—~5.8kAutomated safety check: PassApache-2.0
Odoo Month End Closeerpipe-org/mcp-odoo421—~753Automated safety check: PassMIT
Salesforce Core Workflow Ajeremylongshore/tons-of-skills-marketplace2.8k—~1kAutomated safety check: PassMIT
Salesforce Core Workflow Bjeremylongshore/tons-of-skills-marketplace2.8k—~1.1kAutomated safety check: PassMIT
Salesforce Deploy Integrationjeremylongshore/tons-of-skills-marketplace2.8k—~1.1kAutomated safety check: PassMIT
Salesforce Incident Runbookjeremylongshore/tons-of-skills-marketplace2.8k—~1.1kAutomated safety check: PassMIT

Similar skills

  • Odoo Month End Close

    erpipe-org/mcp-odoo

    Drive a month-end accounting close on Odoo through odoo-mcp — AR/AP aging, open-item and draft-invoice review, reconciliation checklists, and chatter documentation — with human sign-off at every…

    421 GitHub stars~753 tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • Salesforce Core Workflow A

    jeremylongshore/tons-of-skills-marketplace

    Run a metadata-aware Salesforce record workflow with bounded SOQL, CRUD and field-access checks, mutation preview, and reconciliation.

    2.8k GitHub stars~1k tokensUpdated yesterday
    Sales & SupportAuto-check passed
  • Salesforce Core Workflow B

    jeremylongshore/tons-of-skills-marketplace

    Analyze and run the correct Salesforce high-volume operation using Bulk API 2.0, Composite, Graph, or sObject Collections with reconciliation.

    2.8k GitHub stars~1.1k tokensUpdated yesterday
    Sales & SupportAuto-check passed
  • Salesforce Deploy Integration

    jeremylongshore/tons-of-skills-marketplace

    Deploy a Salesforce-connected application through immutable artifacts, environment binding, canary traffic, reconciliation, and rollback.

    2.8k GitHub stars~1.1k tokensUpdated yesterday
    Sales & SupportAuto-check passed
  • Salesforce Incident Runbook

    jeremylongshore/tons-of-skills-marketplace

    Run evidence-led Salesforce integration incident response from detection through containment, recovery, reconciliation, and prevention.

    2.8k GitHub stars~1.1k tokensUpdated yesterday
    Sales & SupportAuto-check passed
  • Salesforce Known Pitfalls

    jeremylongshore/tons-of-skills-marketplace

    Review a Salesforce integration for fixed API versions, unsafe auth, N-plus-one queries, shared-limit blindness, stale metadata, blind retries, event gaps, and missing reconciliation.

    2.8k GitHub stars~1.1k tokensUpdated yesterday
    Sales & SupportAuto-check passed

More from forcedotcom/sf-skills

All 252 skills in this repo
  • Agentforce Architecture Analyze

    forcedotcom/sf-skills

    Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA plugins.

    1.1k GitHub stars~4.5k tokensUpdated yesterday
    Auto-check passed
  • Agentforce D360 Analyze

    forcedotcom/sf-skills

    Data Cloud 360° view of a single Agentforce session. An agent skill from forcedotcom/sf-skills.

    1.1k GitHub stars~3.4k tokensUpdated yesterday
    Auto-check passed
  • Apply a Salesforce sandbox post-copy automation JSON config against a target org.

    1.1k GitHub stars~5.3k tokensUpdated yesterday
    Auto-check: notes
  • Apply a Salesforce sandbox post-copy automation JSON config against a target org.

    1.1k GitHub stars~5.4k tokensUpdated yesterday
    Auto-check: notes
  • Design Systems Slds Apply

    forcedotcom/sf-skills

    Apply SLDS-compliant UI using the correct blueprints, styling hooks, utility classes, and icons.

    1.1k GitHub stars~3.7k tokensUpdated yesterday
    Auto-check passed
  • Experience Lwc Generate

    forcedotcom/sf-skills

    Lightning Web Components with PICKLES methodology and 165-point scoring.

    1.1k GitHub stars~2.4k tokensUpdated yesterday
    Auto-check passed

Questions about Insurance Brokerage Agency Billing Configure

What does Insurance Brokerage Agency Billing Configure do?

Configure end-to-end Agency Billing on a Salesforce FSC Insurance Brokerage org via dispatch MCP calls. Insurance Brokerage Agency Billing Configure is an agent skill from forcedotcom/sf-skills. Configure end-to-end Agency Billing on a Salesforce FSC Insurance Brokerage org via dispatch MCP calls.

When should I use Insurance Brokerage Agency Billing Configure?

Insurance Brokerage Agency Billing Configure fits situations like: users want to set up brokerage billing; configure agency billing; enable insurance billing features; create billing rules.

How do I install Insurance Brokerage Agency Billing Configure in Claude Code?

Run `npx skills add forcedotcom/sf-skills --skill insurance-brokerage-agency-billing-configure -a claude-code`. Or copy the skill folder (skills/insurance-brokerage-agency-billing-configure in forcedotcom/sf-skills) into .claude/skills/insurance-brokerage-agency-billing-configure in your project. Claude Code loads it when a task matches its description.

How do I install Insurance Brokerage Agency Billing Configure in Codex?

Run `npx skills add forcedotcom/sf-skills --skill insurance-brokerage-agency-billing-configure -a codex`. Or copy the skill folder (skills/insurance-brokerage-agency-billing-configure in forcedotcom/sf-skills) into .agents/skills/insurance-brokerage-agency-billing-configure in your project. Codex loads it when a task matches its description.

Can I use Insurance Brokerage Agency Billing Configure in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add forcedotcom/sf-skills --skill insurance-brokerage-agency-billing-configure -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/insurance-brokerage-agency-billing-configure, .gemini/skills/insurance-brokerage-agency-billing-configure, .github/skills/insurance-brokerage-agency-billing-configure and .opencode/skills/insurance-brokerage-agency-billing-configure in your project.

What does Insurance Brokerage Agency Billing Configure need to run?

Going by SKILL.md and its folder, Insurance Brokerage Agency Billing Configure needs credentials named INVALID_CROSS_REFERENCE_KEY.

Does Insurance Brokerage Agency Billing Configure access the network?

SKILL.md names 1 domain. In commands or code: soap.sforce.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Insurance Brokerage Agency Billing Configure safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Insurance Brokerage Agency Billing Configure use?

Insurance Brokerage Agency Billing Configure is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Insurance Brokerage Agency Billing Configure use?

About 5.8k tokens (SKILL.md is roughly 23k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 11k tokens, read only when the agent opens those files.

What are the alternatives to Insurance Brokerage Agency Billing Configure?

Skills that share tags, products or a category with Insurance Brokerage Agency Billing Configure: Odoo Month End Close (erpipe-org/mcp-odoo, 421 stars), Salesforce Core Workflow A (jeremylongshore/tons-of-skills-marketplace, 2.8k stars), Salesforce Core Workflow B (jeremylongshore/tons-of-skills-marketplace, 2.8k stars) and Salesforce Deploy Integration (jeremylongshore/tons-of-skills-marketplace, 2.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Insurance Brokerage Agency Billing Configure?

forcedotcom (a GitHub organization) maintains it in forcedotcom/sf-skills, which has 1,067 GitHub stars. The repository holds 252 skills in this directory. The repository was last updated on October 9, 2026.

Source: forcedotcom/sf-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.