afls-visit-management
Skill5 starsChanged 3 months agoApache-2.0View on GitHub
Guides AFLS Visit Management configuration for web and mobile apps. Use when user asks about visit setup, visit engagement page, visit record types, product detailing, visit signatures, Admin Console visit settings, or ProviderVisit objects.
In this repository36 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- afls-account-managementSkill
- afls-activity-planSkill
- afls-agentforceSkill
- afls-app-alertsSkill
- afls-briefingsSkill
- afls-calendar-tot-routineSkill
- afls-config-migrationSkill
- afls-consent-managementSkill
- afls-custom-scriptsSkill
- afls-data-migrationSkill
- afls-data-modelSkill
- afls-db-schemaSkill
- afls-demo-data-loadingSkill
- afls-events-managementSkill
- afls-field-emailSkill
- afls-health-checkSkill
- afls-home-page-configurationSkill
- afls-implementation-reviewSkill
- afls-implementationSkill
- afls-integration-patternsSkill
- afls-intelligent-contentSkill
- afls-key-account-managementSkill
- afls-lists-filtersSkill
- afls-mobile-app-settingsSkill
- afls-mobile-validationSkill
- afls-next-bestSkill
- afls-product-managementSkill
- afls-quick-actions-configurationSkill
- afls-reporting-analyticsSkill
- afls-sample-managementSkill
- afls-surveysSkill
- afls-territory-alignmentSkill
- afls-troubleshootSkill
- afls-user-managementSkill
- salesforce-querySkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 6 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Always call MCP tools to get sourced documentation: Do not answer from general knowledge alone.
- Distinctive: line 22
Always preserve the citation block (lines starting with > 📖, > 🔗, > 📂) from the tool response verbatim in your answer.
- Distinctive: line 28
When the user asks about configuring or enabling a Visit Management feature, ask them which mode they prefer:
- Distinctive: line 33
Default to guided setup when connected to an org, or documentation mode if no org is connected.
- Very specific: line 74
DO NOT: use run_soql for Admin Console settings — use list_admin_settings / check_visit_config
- Very specific: line 75
DO NOT: use run_soql for mobile cache — use check_mobile_cache_status()
- Distinctive: line 79
When the user asks about this:
- Very specific: line 80
Call describe_sobject({ sobject: "Visit" }) to get childRelationships
- Very specific: line 82
Call add_visit_engagement_sidebar_item with no layoutName to list available layouts
- Distinctive: line 84
Ask which layout to modify
- Very specific: line 85
Call add_visit_engagement_sidebar_item with the chosen objectName and layoutName
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
How to Answer Visit Management Questions
Always call MCP tools to get sourced documentation. Do not answer from general knowledge alone.
| User asks about... | Call this tool |
| Visit concepts, lifecycle, best practices, test cases | get_afls_module_docs({ module: "visit-management" }) |
| Specific visit topic (signatures, geolocation, etc.) | search_afls_knowledge({ query: "<topic>" }) |
| Current org visit configuration | check_visit_config() |
| Admin Console visit settings | list_admin_settings({ category: "Visit" }) |
| Trigger handler status | list_trigger_handlers() |
| Object fields and relationships | describe_sobject({ sobject: "Visit" }) or describe_sobject({ sobject: "ProviderVisit" }) |
| Mobile cache status | check_mobile_cache_status() |
| Visit data in the org | run_soql({ query: "SELECT ... FROM Visit ..." }) |
| Validation / audit | audit_mobile_config({ group: "visit-config-check" }) |
Always preserve the citation block (lines starting with > 📖, > 🔗, > 📂) from the tool response verbatim in your answer.
Configuration Mode
When the user asks about configuring or enabling a Visit Management feature, ask them which mode they prefer:
- Show me the documentation — call
get_afls_module_docs({ module: "visit-management" })and present the relevant sections - Walk me through it — configure it directly in their org step-by-step (guided setup below)
Default to guided setup when connected to an org, or documentation mode if no org is connected.
Guided Setup Workflow
Step 1: Check Current State
check_visit_config()
list_trigger_handlers()
list_admin_settings({ category: "Visit" })Step 2: Report Findings
Present a summary table of what's configured vs what's missing/disabled.
Step 3: Propose Changes
For each issue found, propose the fix and wait for user confirmation.
Step 4: Apply Changes (with user confirmation)
toggle_trigger_handler({ handlerName: "VisitTriggerHandler", active: true })
update_admin_setting({ recordId: "...", fields: { ... } })Step 5: Verify
Re-run check_visit_config() to confirm everything is configured correctly.
Tool Usage Rules
Correct Object Names
| Correct | Wrong (NEVER use) |
Visit | Visit__c, VisitSetting__c |
ProviderVisit | ProviderVisit__c |
ProviderVisitProdDetailing | ProviderVisitProductDetailing__c |
ProviderVisitProdDiscussion | ProviderVisitProductDiscussion__c |
ProviderAcctTerritoryInfo | — |
ComplianceStatementDef | — |
Tool Restrictions
- DO NOT use
run_soqlfor Admin Console settings — uselist_admin_settings/check_visit_config - DO NOT use
run_soqlfor mobile cache — usecheck_mobile_cache_status() - DO NOT suggest OmniStudio/FlexCard/OmniScript for mobile — NOT available on AFLS Mobile iPad app
Adding Custom Objects to Visit Engagement Sidebar
When the user asks about this:
- Call
describe_sobject({ sobject: "Visit" })to getchildRelationships - Filter to eligible custom objects (exclude OOB sidebar objects and standard platform objects)
- Call
add_visit_engagement_sidebar_itemwith nolayoutNameto list available layouts - Present eligible objects and ask which to add
- Ask which layout to modify
- Call
add_visit_engagement_sidebar_itemwith the chosen objectName and layoutName - Recommend regenerating mobile metadata cache
OOB sidebar objects (already present — do NOT offer these): ProviderVisitProdDetailing, ProviderVisitProdDiscussion, ProviderVisitMarketingItem, ProductDisbursement, ProviderVisitDtlProductMsg, Attendee, Visitor
Maximum 10 related lists (8 OOB + 2 custom).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

