本文へ移動
cccskills
無料GitHub で公開

industries-public-sector-setup

Public Sector Solutions (PSS) setup: licensing, permits, inspections, benefits, case management for government, citizen portals, and grant management. NOT for standard Service Cloud cases — use admin/case-management-setup. NOT for a plain portal site — use admin/experience-cloud-site-setup.

インストール方法を見る

含まれるファイル(7)

  • SKILL.md9.9 KB
  • references/examples.md6.1 KB
  • references/gotchas.md6.6 KB
  • references/llm-anti-patterns.md4.1 KB
  • references/well-architected.md6.8 KB
  • scripts/check_industries_public_sector_setup.py3.7 KB
  • templates/industries-public-sector-setup-template.md647 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Industries Public Sector Setup

Activate when configuring Salesforce Public Sector Solutions (PSS) for a government agency: issuing licenses or permits, routing citizen cases, managing benefit enrollments, running inspections, or standing up grant programs. PSS is not a single feature — it is a licensed industry bundle that layers on top of Service Cloud, Experience Cloud, and OmniStudio.

Before Starting

  • Confirm the PSS license is provisioned. Features like BenefitDisbursement, BusinessLicenseApplication, and the out-of-the-box OmniScripts ship only when PSS is enabled.
  • Identify the regulatory framework. Public-sector programs usually have statutory timelines, audit requirements, and disclosure rules that drive field-level encryption and audit trail decisions.
  • Decide the citizen channel mix early. PSS expects a mix of portal, phone, email, and paper; each channel implies different intake automation (OmniScript vs Web-to-Case vs Email-to-Case).

Core Concepts

PSS-specific data model

"The Public Sector Solutions data models provide objects and fields to support licensing and permitting, inspections and assessments, case and program management, benefit management, grantmaking, and other features for your organization." All of it is standard. You do NOT recreate these with custom objects; you configure the shipped ones.

  • Licensing and permitting: BusinessLicense, BusinessLicenseApplication, BusinessLicenseCodeSet, BusinessProfile, BusinessType, BusRegAuthorizationType, BusRegAuthTypeDependency, RegulatoryAuthority, RegulatoryAuthorizationType, RegulatoryCode ("the regulation code enforced by the regulatory body", API 49.0+), RegAuthorizationTypeProduct, Examination, TrnCourse, InspectionType. Individual-side intake is IndividualApplication — "an application form submitted by an individual or organization" (API 50.0+).
  • Inspections and assessments: Visit, Visitor, VisitedParty, AssessmentTask, AssessmentTaskDefinition, AssessmentIndicatorDefinition, AssessmentIndValue, RegulatoryCodeViolation, ViolationType, ViolationEnforcementAction, RegCodeAssessmentInd.
  • Benefit management: Benefit, BenefitType, BenefitAssignment, BenefitAssignmentAdjustment, BenefitDisbursement, BenefitDisbursementAdj, BenefitSchedule, BenefitScheduleAssignment, BenefitSession, BenefitItemCode.
  • Grantmaking: FundingOpportunity, FundingAward, FundingAwardAmendment, FundingAwardParticipant, FundingAwardRequirement, FundingDisbursement.
  • Case and program management: Program, ProgramEnrollment, ProgramCohortMember, CarePlan, CarePlanTemplate, CaseParticipant, CaseProceeding, CaseProgram, CaseEpisode.

OmniStudio is mandatory

PSS intake, decisioning, and citizen journeys ship as OmniScripts, Integration Procedures, and DataRaptors. Admin work that would be Flow-first in Sales/Service is Omni-first in PSS. Do not replace a shipped OmniScript with a Flow unless you have a specific reason — you will inherit upgrade drift.

Multi-jurisdiction sharing

Public-sector agencies almost always have nested jurisdictional ownership (state → county → municipal). PSS uses a combination of Role Hierarchy, Account hierarchies on Account with record type Agency, and criteria-based sharing on regulatory objects. Build the org with jurisdiction in mind before loading the first case — retrofitting is painful.

Common Patterns

Pattern: License application with fee and approval

Use the shipped BusinessLicenseApplication object (or IndividualApplication for an individual applicant), Approval Process, and payment integration. Drive intake through OmniScript → DataRaptor → Apex invocable that creates the application record; the granted artefact is a BusinessLicense, typed by RegulatoryAuthorizationType. Fees flow through a Payment Gateway external credential, not custom Apex HTTP callouts.

Pattern: Inspections with offline-capable mobile

Inspectors need Field Service Mobile or the PSS Inspector mobile experience. Inspections use the shipped visit/assessment model — InspectionType classifies them, Visit records the site call, AssessmentTask and AssessmentIndicatorDefinition carry the checklist, AssessmentIndValue the captured values. Findings become RegulatoryCodeViolation (classified by ViolationType), and follow-up is a ViolationEnforcementAction. Use Field Service scheduling if dispatch is needed; plain task assignments if routes are self-planned.

Pattern: Benefit enrollment with eligibility decisioning

IndividualApplication → BenefitAssignment → BenefitDisbursement, with Benefit and BenefitType as the catalogue and BenefitSchedule / BenefitScheduleAssignment setting the disbursement cadence. Eligibility rules ship as a Business Rules Engine (BRE) expression set — do NOT hand-code eligibility in Apex or Flow; BRE is auditable, versioned, and expected by the shipped OmniScripts.

Decision Guidance

SituationRecommended ApproachReason
License or permit with feeBusinessLicenseApplication + Approval + BREShipped flow; avoids custom rebuild
Citizen case intakeOmniScript + Case record typeMatches PSS intake templates
Eligibility scoringBusiness Rules Engine (BRE)Auditable, versioned, shipped expectation
Multi-agency data partitioningRole hierarchy + criteria sharing on Agency AccountMatches jurisdictional reality
Inspector field workField Service + InspectionType / Visit / AssessmentTaskOffline-capable, dispatch ready

Recommended Workflow

  1. Confirm PSS license is active and all dependent permission set groups (PublicSectorAccess, OmniStudioUser) are available.
  2. Activate the PSS-required objects via Setup → Public Sector → Feature Settings before any data load.
  3. Build or clone the shipped OmniScripts for the intake channels actually in use; deactivate the ones you do not use to reduce upgrade noise.
  4. Configure Role Hierarchy and Agency account hierarchy BEFORE loading any case, license, or party data — these drive all downstream sharing.
  5. Stand up the citizen portal with guest user hardened per Experience Cloud guest security guide; wire OmniScripts to the portal pages.
  6. Load reference data (RegulatoryCode, RegulatoryAuthority, RegulatoryAuthorizationType, BusinessType, InspectionType, ViolationType, BenefitType) before transactional data.
  7. Smoke test a citizen journey end-to-end (intake → approval → payment → disbursement or issuance) before go-live.

Review Checklist

  • PSS license provisioned and feature settings activated
  • Role hierarchy + Agency account hierarchy reflect jurisdictional model
  • Shipped OmniScripts either used or explicitly deactivated (not silently duplicated)
  • Eligibility logic in BRE, not Apex or Flow
  • Citizen portal guest user follows guest-user hardening guide
  • Audit field history enabled on BusinessLicenseApplication, IndividualApplication, BenefitDisbursement, RegulatoryCodeViolation
  • Reference data loaded before transactional data

Salesforce-Specific Gotchas

  1. PSS shipped OmniScripts get overwritten on upgrade. Customizing them in place means upgrades silently revert your changes. Always clone and use versioning.
  2. Business Rules Engine is licensed separately in some editions. Confirm BRE entitlement before designing eligibility around it.
  3. Agency Account record type is mandatory. Converting existing Account records to use the Agency hierarchy after the fact triggers a sharing recalculation that can take hours on large orgs.

Output Artifacts

ArtifactDescription
PSS activation runbookOrdered steps from license confirmation to go-live
Jurisdiction model diagramRole + Account hierarchy matched to the agency's statutory structure
Intake OmniScript catalogList of shipped OmniScripts in use vs deactivated
BRE expression set inventoryEligibility rules by program

Related Skills

  • admin/case-management-setup — underlying Service Cloud case layer
  • admin/experience-cloud-site-setup — citizen portal foundations
  • omnistudio/omniscript-design-patterns — PSS intake layer (pair with omnistudio/flexcard-design-patterns for the case-worker UX)
  • security/guest-user-security — portal security

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Use this skill when writing test-first, behavior-driven acceptance criteria in Given/When/Then format for a Salesforce user story. Covers happy path, edge cases, negative paths, permission boundaries, and data-state preconditions so the AC block can drive UAT scripts and Apex test design downstream. Trigger keywords: given when then, gherkin, behavior driven AC, test first acceptance criteria, scenario outline, BDD acceptance criteria. NOT for the user-story format itself (use admin/user-story-writing-for-salesforce). NOT for UAT script writing (use admin/uat-test-case-design). NOT for Apex test method generation (use agents/test-class-generator). NOT for high-level UAT planning (use admin/uat-and-acceptance-criteria). More triggers: acceptance criteria record, ac_id, req_id on a criterion, artefact under test, negative case for a rule-type requirement, no-match fall-through criterion, oracle for a Then clause, test type apex flow manual, criteria linter, check_ac_format.py, --manifest-dir.

日本語の概要は準備中です。原文の説明を表示しています。

PranavNagrecha/AwesomeSalesforceSkills192026年10月4日 更新

Task and Event objects: polymorphic WhatId/WhoId, Activity object model, ActivityHistory vs OpenActivity, activity timeline customization, bulk task creation, Einstein Activity Capture boundaries. NOT for turning on EAC or calendar sync — use admin/einstein-activity-capture-setup. NOT for Email-to-Case — use admin/case-management-setup. Covers ActivitiesSettings metadata, enableActivities, shared Task/Event custom fields and FLS, TaskStatus value sets, Shared Activities and TaskRelation/EventRelation, recurring and child activities, and partial-success bulk DML on Task.

日本語の概要は準備中です。原文の説明を表示しています。

PranavNagrecha/AwesomeSalesforceSkills192026年10月4日 更新

Design Invocable Apex actions that return deterministic, agent-friendly errors instead of surfacing raw exceptions to the LLM. NOT for authoring the action itself — @InvocableMethod schema, labels, security context — use agentforce/custom-agent-actions-apex. NOT for the Apex tests that force each error branch — use agentforce/agent-action-unit-tests.

日本語の概要は準備中です。原文の説明を表示しています。

PranavNagrecha/AwesomeSalesforceSkills192026年10月4日 更新

Use when designing how an Agentforce agent extracts structured input parameters (slots) from a user's natural-language utterance to invoke an action. Triggers: 'agent extract date from user', 'agent action argument extraction', 'agentforce slot filling', 'agent invocable input mapping', 'agent fails to fill required parameter'. NOT for action authoring (use agentforce/agent-actions) or for prompt-template variable binding (use agentforce/prompt-builder-templates).

日本語の概要は準備中です。原文の説明を表示しています。

PranavNagrecha/AwesomeSalesforceSkills192026年10月4日 更新

Apex test patterns for @InvocableMethod agent actions: per-reason-code branch coverage, bulk safety, callout mocking, deterministic assertions. NOT for testing whether the agent routes to the right topic or answers well — use agentforce/agent-testing-and-evaluation. NOT for designing the error envelope the tests assert on — use agentforce/agent-action-error-handling.

日本語の概要は準備中です。原文の説明を表示しています。

PranavNagrecha/AwesomeSalesforceSkills192026年10月4日 更新

Designing or reviewing Agentforce actions: Flow actions, Apex invocable actions, prompt-template actions, action naming, input and output contracts, confirmation requirements, and safe error behavior. Triggers: 'agent actions', 'build an agent that can look up an order', 'make the agent able to check order status', 'give the agent a capability', 'agent that can retrieve a record', 'flow action for agent', 'agent invocable action', 'action schema design'. NOT for writing the Apex class itself — use agentforce/custom-agent-actions-apex. NOT for the reason_code error envelope that stops an agent retry loop — use agentforce/agent-action-error-handling.

日本語の概要は準備中です。原文の説明を表示しています。

PranavNagrecha/AwesomeSalesforceSkills192026年10月4日 更新

PranavNagrecha のスキルをすべて見る

このスキルの問題を報告する