paulpas/agent-skill-router/salesforce-api
Claude Code and agent skill by paulpas/agent-skill-router
- community
Checking that the SKILL.md file is still in the repository.
Implements Salesforce API integration (REST, SOQL, Bulk API, Apex, using
Install
npx vskill@latest install paulpas/agent-skill-router/salesforce-apiSKILL.md
The same SKILL.md was published earlier as paulpas/agent-skill-router/salesforce-api.
Salesforce API Integration
Implements production-grade Salesforce integration using the simple-salesforce Python SDK and Salesforce REST API. When loaded, this skill makes the model implement CRUD operations on Salesforce objects (Accounts, Contacts, Opportunities, Leads, Cases, Custom Objects), SOQL queries, Bulk API for large datasets, Apex REST calls, and Salesforce Streaming API. All implementations follow Salesforce best practices: use SF_INSTANCE_URL, SF_USERNAME, SF_PASSWORD, SF_SECURITY_TOKEN from environment, query with query_all() for deleted/archived records, use Bulk API for >10,000 records, implement exponential backoff for rate limits, and handle Salesforce IDs (15-char vs 18-char IDs).
TL;DR Checklist
- [ ] Use
simple-salesforceSDK with credentials from environment variables - [ ] Use
SF_INSTANCE_URL,SF_USERNAME,SF_PASSWORD,SF_SECURITY_TOKENfor auth - [ ] Use
Salesforce()constructor withdomain='test'for sandboxes - [ ] Use
sf.query()for SOQL queries,sf.query_all()to include deleted/archived - [ ] Use
sf.<Object>.create(),.update(),.delete(),.get()for CRUD - [ ] Use
sf.bulk.<Object>.query(),.insert(),.update(),.delete(),.upsert()for Bulk API - [ ] Handle both 15-char (case-sensitive) and 18-char (case-insensitive) Salesforce IDs
- [ ] Implement exponential backoff for REQUEST_LIMIT_EXCEEDED errors
- [ ] Use
ALL ROWSscope in SOQL for deleted/archived records - [ ] Never store credentials or session IDs in code or logs
When to Use
Use this skill when:
- Querying Salesforce data using SOQL
- Creating/updating/deleting Salesforce records
- Processing large datasets (10k+ records) with Bulk API
- Calling Apex REST endpoints
- Syncing data between your app and Salesforce
- Building integrations with Salesforce CRM
- Importing/exporting data to/from Salesforce
- Automating business processes in Salesforce
- Working with custom objects and fields
- Managing Users, Profiles, and Permissions
- Querying Activity History and Chatter
When NOT to Use
- For HubSpot-specific CRM — use
coding-hubspot-apiinstead - For Marketo marketing automation — use
coding-marketo-apiinstead - For Zendesk support tickets — use
coding-zendesk-apiinstead - For simple HTTP-only use cases when simple-salesforce is overkill
- When you need real-time streaming only (consider Salesforce Streaming API or CometD)
- For read-only reporting (use Salesforce Reports API directly)
Core Workflow
- Initialize Client — Create Salesforce client using
simple-salesforce:
- Production:
Salesforce(username=..., password=..., security_token=..., instance_url=...) - Sandbox:
Salesforce(..., domain='test') - Or use session ID:
Salesforce(instance_url=..., session_id=...)
Checkpoint: Validate connection with sf.query("SELECT Id, Name FROM Account LIMIT 1").
- Query Data with SOQL — Use
sf.query()for standard SOQL queries:
sf.query("SELECT Id, Name FROM Account WHERE Industry = 'Technology'")- Use
query_all()to include deleted/archived records - Use
query_more()for pagination withnextRecordsUrl
Checkpoint: Queries include LIMIT for testing, use query_all() when all records needed.
- CRUD Operations — Perform record operations:
- Create:
sf.Contact.create({'LastName': 'Doe', 'FirstName': 'John'}) - Read:
sf.Contact.get('003...') - Update:
sf.Contact.update('003...', {'LastName': 'Smith'}) - Delete:
sf.Contact.delete('003...') - Upsert:
sf.Contact.upsert('003...', 'My_External_Id__c/ExternalValue', {...})
Checkpoint: CRUD operations handle both 15-char and 18-char IDs.
- Bulk API for Large Datasets — Use Bulk API for >10,000 records:
- Query:
sf.bulk.Account.query("SELECT Id, Name FROM Account") - Insert:
sf.bulk.Account.insert([{'Name': 'Account 1'}, {...}]) - Update:
sf.bulk.Account.update([{'Id': '001...', 'Name': 'Updated'}]) - Delete:
sf.bulk.Account.delete([{'Id': '001...'}]) - Upsert:
sf.bulk.Account.upsert([...], 'My_External_Id__c')
Checkpoint: Bulk operations use proper external IDs for upsert.
- Apex REST — Call custom Apex REST endpoints:
sf.apexcall(method='GET', path='/services/apexrest/MyEndpoint')sf.apexcall(method='POST', path='/services/apexrest/MyEndpoint', data={...})
Checkpoint: Apex calls include correct path and method.
- Handle Limits & Rate Limiting — Monitor API usage:
sf.limits()to see current limits- Implement exponential backoff for
REQUEST_LIMIT_EXCEEDED - Use
Sforce-Limit-Inforesponse header
Checkpoint: Limits checked before large operations.
Implementation Patterns
Pattern 1: Salesforce Client Initialization (BAD vs GOOD)
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/coding/salesforce-api/SKILL.md
Popularity
- Repository stars
- 4
- 7-day trend score
- 8
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/paulpas/agent-skill-router/salesforce-api)