forcedotcom/sf-skills

field-service-foundation-setup-designer-get

Creates Field Service foundation data — Work Types, Skills, Service Territories, and Operating Hours.

Ver código-fonte

Como usar

  1. Copie o comando e verifique o pacote antes de instalar no seu ambiente de agente.
  2. Consulte no original as ferramentas, credenciais e ambientes necessários.
  3. Descreva os dados de entrada e a entrega esperada; confira a saída com as fontes.
npx skills add https://github.com/forcedotcom/sf-skills --skill field-service-foundation-setup-designer-get

Antes de começar

  • A instalação não inclui assinatura de modelo, franquia API ou acesso aos seus arquivos.
  • Estrelas e instalações indicam atividade, não um teste independente de qualidade ou segurança.
Documento original do Skill

Renderizado do repositório de origem, preservando títulos, exemplos, código, tabelas, links e imagens.

Field Service Foundation Setup Designer

Design or refine Field Service foundation data — Work Types, Skills, Service Territories, Operating Hours, and other associated Field Service objects — through structured interviews. Starting from scratch or from existing recommendations.

This skill runs a design conversation — it does not call Salesforce APIs directly. It collects the design through a structured conversation, whether starting from scratch or working from existing data, and confirms the final design with the user. This skill covers two design workflows in sequence (or independently):

  1. Work Types & Skills — 6-question interview
  2. Service Territories & Operating Hours — 3-question interview

Entry point

  • Starting from scratch → run the full interview phases below to build the design.
  • Have existing data — this includes scraped/read source output, JSON or text provided by the user, or any other external source brought into context. Show a plain-English summary of the proposed configuration as a starting reference, then immediately ask: "Would you like to go through a guided design interview to refine this, or proceed directly with this configuration?" Wait for the answer before doing anything else.
  • Ready to create → show a plain-English summary of the records to be created (not raw JSON or skill names), ask for explicit confirmation, then proceed only after the user confirms.

Never expose internal skill names, SOR IDs, or tool references to the user.

When to use

  • Starting Field Service setup from scratch — no existing Work Types or Territories yet
  • When initial recommendations need adjustment for either work types or territories (or both)
  • To explore different granularity levels (Work Types) or territory models (Territories)
  • When customer provides additional context about their business or coverage areas
  • During discovery sessions to design or iterate on the foundation data model

Design principles

  1. Structured questions with consistent intent
  • Questions based on Work Type Implementation Guide and Service Territory Design Guide
  • Adapt examples to customer's business context
  • Intent stays consistent, wording adapts intelligently
  1. Brief answers must work
  • "No", "Yes", "No we don't" are complete answers
  • Progress to next question immediately
  • No explanations required
  1. Smart question adaptation
  • Check if topic already covered
  • If covered: brief confirmatory question
  • If not covered + business context: customize examples
  • If not covered + no context: exact structured question
  1. Question format (three or four parts):
text
   **Recommendation:** [Only include when context is sufficient. Lead with the best-fit option given what's known, then briefly note alternatives with the condition under which they'd apply instead — not a flat menu of equal choices, but a ranked steer. Omit entirely when confidence is low.]

   **Question:** [The actual question — or a lighter "does this fit?" when a Recommendation is present]

   **Why I'm asking:** [1-2 sentences: why this matters]

   **Impact:** [1-2 sentences: how their answer affects the design]

How it works

Pre-phase: Source ingestion (if provided)

If no source has been provided, creatively ask the user whether they have a website or document that describes their business or Field Service operation — framing it as something that would help build a more accurate and tailored starting recommendation rather than a generic one.

If the user provides a URL, fetch it. Extract Field Service-relevant signals: industry, service types, geographic coverage, team and skill structure. Use these to generate an initial recommendation covering Work Types, Skills, Service Territories, and Operating Hours — which feeds into the refinement interview rather than starting from nothing.

Phase 1: Work Types & Skills

  1. Accept input: Takes existing data in any format (JSON, CSV, free-form text), or starts fresh if nothing is provided.
  2. Interview: Cover these topics — service line granularity, equipment size/type variations, brand/model specificity, service tiers and site types, parts tracking, duration accuracy.
  3. Output: Designed Work Types and Skills as JSON + change log.

Phase 2: Service Territories & Operating Hours

  1. Accept input: Same as Phase 1.
  2. Interview: Cover these topics — territory structure (geographic/functional/hybrid), geographic boundaries (if applicable), functional team geographic constraints (if applicable).
  3. Output: Designed Service Territories and Operating Hours as JSON + change log.

Inputs

  • Source material (optional): A URL the agent will fetch to extract business context and generate an initial recommendation. Takes precedence over manually pasted data when both are provided.
  • Existing data (optional): Work Types/Skills and/or Service Territories/Operating Hours in any format — JSON, CSV, free-form text, or pasted output from a prior session. If nothing is provided, recommendations are built entirely through the interview.
  • Business context (optional): Additional context to tailor interview questions to the customer's industry or service model.

Outputs

  • Designed or refined Work Types with metadata
  • Skills inventory organized by category
  • Designed or refined Service Territories with structure
  • Operating Hours organized by timezone
  • Combined JSON export (Salesforce API-ready, for deployment via sfs-sobject-create)
  • Markdown summary with change log
  • Before/after comparison (when refining existing data)

Granularity Levels Reference (Work Types)

From Work Type Implementation Guide:

LevelWhen to UseExample
High-LevelSimple service models, quick setup"Installation", "Repair", "Maintenance"
Mid-LevelEquipment-specific service"HVAC Installation", "HVAC Repair"
DetailedBrand-specific service needs"HVAC Installation (Carrier)", "HVAC Installation (Trane)"
Hyper-SpecificSLA/site variations"HVAC Repair (Carrier) - Hospital"

Best practice: Start with simplest model possible, increase granularity only when necessary.

Territory Models Reference (Service Territories)

From Service Territory Design Guide:

ModelWhen to UseExample
GeographicLocation-based coverage, reduce travel time"Northern California", "Southwest Region"
FunctionalSpecialized service types, skill-based assignment"Fire Safety Team", "Commercial HVAC Team"
HybridCombined benefits, specialized teams with regional boundaries"Northern CA - Fire Safety", "Southwest - Commercial HVAC"

Best practice: Start with simplest model possible, increase complexity only when necessary.


Output format

Generate the output JSON payload from interview answers using this mapping:

  • WorkType → SkillRequirement (junction → Skill)
  • WorkType → ProductRequired (junction → Product2)
  • OperatingHours → TimeSlot (parent-child)
  • ServiceTerritory → OperatingHours (lookup)

Relacionados por tarefa

do mesmo repositório

Mais Skills

Todos os Skills
forcedotcom
Comunidade

design-systems-slds-apply

Apply SLDS-compliant UI using the correct blueprints, styling hooks, utility classes, and icons. Use when building any UI that needs SLDS, choosing between Lightning Base Components and SLDS Blueprints, applying styling hooks for theming, using utility classes for layout and spacing, or selecting icons. Triggers include \"build a modal\", \"create a form\", \"data table\", \"SLDS styling\", \"style with hooks\", \"add an icon\".

Instalações / 1h
1
GitHub Stars
1,2 mil
Atualizado
13 de nov.
forcedotcom
Comunidade

dx-code-analyzer-run

Run Salesforce Code Analyzer to scan code for security, performance, best practice, and code style violations. Supports all engines (PMD, ESLint, CPD, RetireJS, Flow, SFGE, ApexGuru), targets (files, folders, git diff), categories, and severities. Also handles post-scan exploration: filtering results by engine/severity/category/file, and explaining what rules mean. TRIGGER when: user says 'scan my code', 'check security issues', 'run PMD/ESLint', 'find duplicates', 'analyze Flows', 'check vulner

Instalações / 1h
1
GitHub Stars
1,2 mil
Atualizado
13 de nov.
forcedotcom
Comunidade

experience-lwc-accessibility-jest-run

Use ALWAYS when running Sa11y accessibility Jest tests for an LWC — locally before pushing, producing the command(s), running one file vs a suite, selecting tests by naming convention, saving Sa11y-rendered HTML, or reproducing a Sa11y/A11yBug failure. Covers core (Bazel; bazel test // : ) and standalone npx jest (.accessibility.test.js, @sa11y/jest). REQUIRED for a run-plan.md, a failing a11y test's exit code, or SA11Y/A11yBug/core-Bazel test paths. DO NOT TRIGGER for functional Jest tests, a11

Instalações / 1h
1
GitHub Stars
1,2 mil
Atualizado
13 de nov.
forcedotcom
Comunidade

experience-lwc-generate

Lightning Web Components with PICKLES methodology and 165-point scoring. Use this skill when the user creates or edits LWC components, builds wire service patterns, or writes Jest tests for LWC. TRIGGER when: user creates/edits LWC components, touches lwc//.js, .html, .css, .js-meta.xml files, or asks about wire service, SLDS, or Jest LWC tests. DO NOT TRIGGER when: Apex classes (use platform-apex-generate), Aura components, or Visualforce.

Instalações / 1h
1
GitHub Stars
1,2 mil
Atualizado
13 de nov.