tessl install github:jdrhyne/agent-skills --skill salesforcegithub.com/jdrhyne/agent-skills
Query and manage Salesforce orgs via the official Salesforce MCP server or SF CLI.
Review Score
63%
Validation Score
12/16
Implementation Score
73%
Activation Score
33%
Query and manage your Salesforce org with full context of your business logic.
npm install -g @salesforce/clisf org login web --alias my-prodUpdate the connection info below with your org details:
Org Alias: my-prod
Username: your-user@company.com
Org ID: 00DxxxxxxxxxSee SALESFORCE_STRUCTURE.md for a template covering:
Tip: Fill in
SALESFORCE_STRUCTURE.mdwith your org's actual objects, fields, and business logic. The more context you provide, the better the AI can write queries and understand your data.
Update with your company's product lines:
Common record types (adjust to your org):
Document your key custom fields:
ACV__cARR__cTCV__cLOB__cmcporter call salesforce.run_soql_query \
query="SELECT Id, Name FROM Account LIMIT 10" \
usernameOrAlias="my-prod" \
directory="$HOME"sf data query \
--query "SELECT Id, Name FROM Account LIMIT 5" \
--target-org my-prodOpen opportunities by stage:
SELECT Id, Name, StageName, Amount, CloseDate, Account.Name
FROM Opportunity
WHERE IsClosed = false
ORDER BY CloseDateRenewals closing this quarter:
SELECT Id, Name, Amount, CloseDate, Account.Name
FROM Opportunity
WHERE RecordType.Name = 'Renewal'
AND IsClosed = false
AND CloseDate = THIS_QUARTER
ORDER BY CloseDateNew deals by product line:
SELECT LOB__c, COUNT(Id), SUM(Amount)
FROM Opportunity
WHERE RecordType.Name = 'New'
AND StageName = 'Closed Won'
AND CloseDate = THIS_YEAR
GROUP BY LOB__cARR by Account (Top 20):
SELECT Account.Name, SUM(ARR__c)
FROM Opportunity
WHERE StageName = 'Closed Won'
GROUP BY Account.Name
ORDER BY SUM(ARR__c) DESC
LIMIT 20Recent closed-won deals:
SELECT Id, Name, Amount, CloseDate, Account.Name
FROM Opportunity
WHERE StageName = 'Closed Won'
AND CloseDate = LAST_N_DAYS:30
ORDER BY CloseDate DESCAccount search:
SELECT Id, Name, Industry, AnnualRevenue, Website
FROM Account
WHERE Name LIKE '%SearchTerm%'Contact lookup:
SELECT Id, Name, Email, Title, Account.Name
FROM Contact
WHERE Email = 'user@example.com'When using the Salesforce MCP server:
run_soql_query — Run SOQL queries against your orglist_all_orgs — List configured Salesforce orgsopen_org — Open org in browserget_username — Resolve org username/aliasAccount.Name in opportunity queries for contextTODAY, THIS_WEEK, THIS_QUARTER, THIS_YEAR, LAST_N_DAYS:30RecordType.Name to filter by record typeLIMIT your queries to avoid timeouts on large orgsCOUNT() and GROUP BY for aggregationsIsClosed = false and group by StageNameAmount or ACV__c grouped by time period or productRecordType.Name = 'Renewal' with CloseDate rangesIf your org uses multi-year deals:
Add your own reference docs alongside this SKILL.md:
SALESFORCE_STRUCTURE.md — Your org's complete object/field documentationBUSINESS_LOGIC.md — How your org uses Salesforce (deal flow, approval processes)COMMON_QUERIES.md — Frequently used queries specific to your team