sf-docs-lookup
Skill15 starsChanged 7 months agoMITView on GitHub
Use when looking up official Salesforce documentation. Apex reference, LWC docs, platform guides, API references, and SF CLI commands via WebSearch.
In this repository58 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- asideSkill
- checkpointSkill
- configure-sccSkill
- continuous-agent-loopSkill
- mcp-server-patternsSkill
- model-routeSkill
- prompt-optimizerSkill
- refactor-cleanSkill
- resume-sessionSkill
- save-sessionSkill
- search-firstSkill
- security-scanSkill
- sessionsSkill
- sf-2gp-security-reviewSkill
- sf-agentforce-developmentSkill
- sf-agentforce-mcp-actionsSkill
- sf-apex-async-patternsSkill
- sf-apex-best-practicesSkill
- sf-apex-constraintsSkill
- sf-apex-cursorSkill
- sf-apex-enterprise-patternsSkill
- sf-apex-testingSkill
- sf-api-designSkill
- sf-approval-processesSkill
- sf-aura-developmentSkill
- sf-build-fixSkill
- sf-cli-referenceSkill
- sf-data-modelingSkill
- sf-debuggingSkill
- sf-deployment-constraintsSkill
- sf-deploymentSkill
- sf-devops-ci-cdSkill
- sf-e2e-testingSkill
- sf-experience-cloudSkill
- sf-flow-developmentSkill
- sf-governor-limitsSkill
- sf-harness-auditSkill
- sf-helpSkill
- sf-integrationSkill
- sf-lwc-constraintsSkill
- sf-lwc-developmentSkill
- sf-lwc-testingSkill
- sf-metadata-managementSkill
- sf-platform-events-cdcSkill
- sf-quickstartSkill
- sf-security-constraintsSkill
- sf-securitySkill
- sf-soql-constraintsSkill
- sf-soql-optimizationSkill
- sf-tdd-workflowSkill
- sf-testing-constraintsSkill
- sf-trigger-constraintsSkill
- sf-trigger-frameworksSkill
- sf-visualforce-developmentSkill
- strategic-compactSkill
- update-docsSkill
- update-platform-docsSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 9 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
When you need to look up Apex class, method, or interface documentation
- Distinctive: line 14
When checking LWC component API, wire service, or lifecycle documentation
- Distinctive: line 15
When verifying SOQL/SOSL syntax, functions, or query limits
- Distinctive: line 16
When researching REST API, Metadata API, Tooling API, or Bulk API endpoints
- Distinctive: line 17
When looking up governor limits, security features, or platform event details
- Very specific: line 18
When checking sf CLI command flags and usage
- Distinctive: line 19
When verifying whether a feature is deprecated or version-gated
- Distinctive: line 52
Use WebSearch with targeted site-scoped queries:
- Distinctive: line 66
When presenting documentation results:
- Distinctive: line 76
After finding the official docs, check if SCC has relevant skills:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Salesforce Documentation Lookup
Query Salesforce developer documentation for current, accurate answers. Uses WebSearch to find official documentation, then extracts and summarizes the relevant content.
When to Use
- When you need to look up Apex class, method, or interface documentation
- When checking LWC component API, wire service, or lifecycle documentation
- When verifying SOQL/SOSL syntax, functions, or query limits
- When researching REST API, Metadata API, Tooling API, or Bulk API endpoints
- When looking up governor limits, security features, or platform event details
- When checking
sfCLI command flags and usage - When verifying whether a feature is deprecated or version-gated
Usage
sf-docs-lookup <query>Workflow
Step 1 — Identify Topic Category
Classify the query into the correct Salesforce documentation area:
| Category | Documentation Source | Search Strategy |
| Apex Classes/Interfaces | Apex Developer Guide | site:developer.salesforce.com apex <class> |
| Apex System Methods | Apex Reference | site:developer.salesforce.com "System.<method>" |
| LWC Components | LWC Dev Guide | site:developer.salesforce.com lwc <topic> |
| SOQL/SOSL | SOQL and SOSL Reference | site:developer.salesforce.com soql <topic> |
| REST API | REST API Developer Guide | site:developer.salesforce.com rest api <endpoint> |
| Metadata API | Metadata API Developer Guide | site:developer.salesforce.com metadata api <type> |
| Tooling API | Tooling API Reference | site:developer.salesforce.com tooling api <resource> |
| Bulk API | Bulk API 2.0 Developer Guide | site:developer.salesforce.com bulk api <topic> |
| Platform Events | Platform Events Developer Guide | site:developer.salesforce.com platform events <topic> |
| Flows | Flow Builder Guide | site:help.salesforce.com flow <topic> |
| Agentforce | Einstein/Agentforce Docs | site:developer.salesforce.com agentforce <topic> |
| Governor Limits | Apex Developer Guide | site:developer.salesforce.com "execution governors" limits |
| Security | Security Implementation Guide | site:developer.salesforce.com security <topic> |
| CLI (sf) | Salesforce CLI Reference | site:developer.salesforce.com sf <command> |
Step 2 — Search Documentation
Use WebSearch with targeted site-scoped queries:
site:developer.salesforce.com <category-specific terms>For admin/configuration topics, also check:
site:help.salesforce.com <topic>Step 3 — Extract and Format Answer
When presenting documentation results:
- Lead with the answer -- do not make the user read through preamble
- Include code examples -- Apex, LWC, or SOQL snippets when relevant
- Note API version -- Salesforce features are version-gated; specify the minimum API version
- Link to source -- provide the URL so the user can read more
- Flag deprecations -- if the queried feature is deprecated, say so and recommend the replacement
Step 4 — Cross-Reference with SCC Knowledge
After finding the official docs, check if SCC has relevant skills:
- Skills in
skills/orskills2/that cover the topic in depth - Mention relevant SCC resources: "For best practices on this, see the
sf-soql-optimizationskill."
Complex Documentation Queries
For complex documentation queries spanning multiple topics, delegate to the deep-researcher agent which can perform multi-step research across documentation sources.
Examples
sf-docs-lookup Wire service in LWC
sf-docs-lookup Database.Batchable interface
sf-docs-lookup Platform Events best practices
sf-docs-lookup SOQL aggregate functions
sf-docs-lookup WITH USER_MODE vs WITH SECURITY_ENFORCED
sf-docs-lookup sf project deploy start flags
sf-docs-lookup Trigger.operationType enum valuesRelated
- Agent:
sf-docs-lookup-- for multi-step documentation research - Constraints: (none -- this is a search tool, no domain constraints apply)
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.

