field-service-work-rule-designer-configure

field-service-work-rule-designer-configure is a skill for Claude Code from forcedotcom/sf-skills. It costs 101 tokens per session (5,949 once invoked), scanned A, original, Apache-2.0.

A work-rule designer for Salesforce Field Service scheduling policies. Salesforce Field Service schedules appointments with service workers, and work rules set requirements that a worker or time slot must meet.

In plain words
What is it for?
Use it to define rules such as resource availability and other appointment eligibility conditions. It collects the configuration and returns a workRules block, but does not create Salesforce records.
Why use it?
It turns must-have scheduling requirements into hard filters before the system compares otherwise suitable options. This keeps unsuitable workers and time slots out of the candidate list.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to define rules such as resource availability and other appointment eligibility conditions. It collects the configuration and returns a workRules block, but does not create Salesforce records.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/forcedotcom/sf-skills/field-service-work-rule-designer-configure
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add forcedotcom/sf-skills --skill field-service-work-rule-designer-configure
Clone the repo
git clone --depth 1 https://github.com/forcedotcom/sf-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for field-service-work-rule-designer-configure

README.md
[![agentmods](https://agentmods.dev/badge/skills/forcedotcom/sf-skills/field-service-work-rule-designer-configure/github.svg)](https://agentmods.dev/skills/forcedotcom/sf-skills/field-service-work-rule-designer-configure)
Your own site
<a href="https://agentmods.dev/skills/forcedotcom/sf-skills/field-service-work-rule-designer-configure"><img src="https://agentmods.dev/badge/skills/forcedotcom/sf-skills/field-service-work-rule-designer-configure/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for field-service-work-rule-designer-configure

Your own site · 80×15
<a href="https://agentmods.dev/skills/forcedotcom/sf-skills/field-service-work-rule-designer-configure"><img src="https://agentmods.dev/badge/skills/forcedotcom/sf-skills/field-service-work-rule-designer-configure.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,949 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 83
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium Excessive Agency · line 205
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00101 $0.05949
Opus 5 $0.00051 $0.02975
Sonnet 5 $0.00020 $0.01190
Haiku 4.5 $0.00010 $0.00595

Measured 4d ago against content hash c36dfcd42e45, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

field-service-work-rule-designer-configure scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/field-service-work-rule-designer-configure/SKILL.md · 289 lines

How it starts

The opening of the file, as written. The whole thing — 289 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Salesforce Field Service – Work Rule Designer

Designs the work rules for a scheduling policy. This skill collects the work rule configuration through a structured interview — one question at a time — and emits a workRules[] block as output. It does not create any Salesforce records. When complete, delegates to sfs-service-objective-designer.

Interview phases: Scheduling Policy → Work Rules (this skill) → Service Objectives → Record Creation


Work Rules

Work rules are hard filters. They refine the candidate list for a service appointment by rejecting any service resource that violates a rule. They are always applied before service objectives, and objectives only ever score the resources that survive the rules. If a requirement is "must," it's a work rule; if it's "prefer," it's an objective.

The 16 work rule types

Each row: name — engine (DB/Apex) — what it does. "DB w/ ESO" means the rule runs at the database level only when Enhanced Scheduling and Optimization is enabled, and as Apex otherwise. Include at least one DB rule to narrow to ~20 candidates before Apex rules run.

Work Rule Engine What it does
Service Resource Availability Apex — MANDATORY Ensures a resource is actually available: respects operating hours, travel, breaks, absences, and existing assignments. Also enforces capacity for capacity-based resources. Configurable breaks, gaps, overtime, and travel-to/from-home.
Match Time Rule Apex Constrains the scheduling window from an appointment's date/time fields. Ships with standard rules Earliest Start Permitted and Due Date (both mandatory), plus Scheduled Start / Scheduled End (arrival-window based).
Match Skills Apex Matches an appointment's skill requirements to a resource's assigned skills; can enforce skill level. Skill Type Logic is All Skills Match (AND) (default) or At Least One Skill Matches (OR) (OR requires ESO).
Match Fields DB w/ ESO Matches one appointment field to one resource field (1:1). Use Extended Match instead when comparing one appointment field against multiple resource values.
Match Boolean DB w/ ESO Requires a checkbox field on the resource to be true (or false). Max 5 per policy. Ships with standard "Active Resources."
Extended Match Database Custom-criteria matching via a junction object linking an appointment field to a related list on the resource (e.g., serviceable postal codes, product lines).
Match Territory Database Restricts to resources who are primary or relocation members of the appointment's service territory.
Working Territories Database Enforces primary and secondary service territory memberships.
Maximum Travel from Home Database Caps distance/travel time between a resource's home base and any assigned appointment.
Required Resources DB w/ ESO Forces assignment to a resource marked Required (Resource Preference on the WO/WOLI). Very restrictive.
Excluded Resources DB w/ ESO Prevents assigning a resource marked Excluded on the WO/WOLI.
Count Rule Apex Caps assignments, hours, or a custom value per resource per day (e.g., ≤8 scheduled hours, ≤N items on a truck). Time Resolution is Daily. Up to 10 custom-field count rules per policy.
Work Capacity Apex — ESO only Enforces per-territory Work Capacity Limit records (e.g., cap install work at 80% of territory capacity).
Service Appointment Visiting Hours Apex Enforces customer operating hours / allowed visit windows (e.g., weekdays 8 AM–noon). All-or-nothing rule (no relevance groups).
TimeSlot Designated Work Apex Reserves a time slot/shift for a specific work type — only that type schedules in that window. All-or-nothing rule (no relevance groups).
Service Crew Resources Availability Apex Ensures a crew-type resource is only assigned when the crew meets the parent record's minimum crew size.

Read the full file on GitHub · 289 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed · -15 lines c36dfcd42e45
  2. 7d ago First seen · 304 lines · 101 tokens per session scan A 126f6a0f9777

Subscribe to this mod's changes

field-service-work-rule-designer-configure is a skill published in the GitHub repository forcedotcom/sf-skills (987 stars, last pushed yesterday), licensed Apache-2.0. It adds 101 tokens to every session and 5,949 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens