🎯

salesforce

🎯Skill

from jdrhyne/agent-skills

VibeIndex|
What it does

Queries and manages Salesforce organizations, enabling precise data retrieval and business logic integration via CLI or MCP server.

πŸ“¦

Part of

jdrhyne/agent-skills(14 items)

salesforce

Installation

npm installInstall npm package
npm install -g @salesforce/cli
πŸ“– Extracted from docs: jdrhyne/agent-skills
1Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

Query and manage Salesforce orgs via the official Salesforce MCP server or SF CLI.

Overview

# Salesforce Skill

Query and manage your Salesforce org with full context of your business logic.

Setup

Prerequisites

  1. Salesforce CLI installed: npm install -g @salesforce/cli
  2. Authenticated org: sf org login web --alias my-prod
  3. MCP Server (optional): [Salesforce MCP](https://github.com/salesforce/mcp) for tool-based access

Configuration

Update the connection info below with your org details:

```yaml

Org Alias: my-prod

Username: your-user@company.com

Org ID: 00Dxxxxxxxxx

```

Reference Documentation

See [SALESFORCE_STRUCTURE.md](./SALESFORCE_STRUCTURE.md) for a template covering:

  • Object relationships and hierarchy
  • Field definitions and API names
  • Business logic (multi-year deals, renewals, usage-based pricing)
  • Record types and their purposes
  • Org-specific customizations

> Tip: Fill in SALESFORCE_STRUCTURE.md with 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.

Key Concepts (Customize These)

Lines of Business

Update with your company's product lines:

  • Product A β€” Description
  • Product B β€” Description
  • Product C β€” Description

Opportunity Record Types

Common record types (adjust to your org):

  • New β€” First-time purchase
  • Renewal β€” Subscription continuation
  • Upsell β€” Adding to existing subscription
  • Expansion β€” Similar to upsell
  • Professional Services β€” Services deals

Critical Custom Fields

Document your key custom fields:

  • ACV (Annual Contract Value) β€” API name: ACV__c
  • ARR (Annual Recurring Revenue) β€” API name: ARR__c
  • TCV (Total Contract Value) β€” API name: TCV__c
  • LOB (Line of Business) β€” API name: LOB__c

Quick Commands

Run SOQL Query via MCP

```bash

mcporter call salesforce.run_soql_query \

query="SELECT Id, Name FROM Account LIMIT 10" \

usernameOrAlias="my-prod" \

directory="$HOME"

```

Run SOQL Query via SF CLI

```bash

sf data query \

--query "SELECT Id, Name FROM Account LIMIT 5" \

--target-org my-prod

```

Common Queries

Open opportunities by stage:

```sql

SELECT Id, Name, StageName, Amount, CloseDate, Account.Name

FROM Opportunity

WHERE IsClosed = false

ORDER BY CloseDate

```

Renewals closing this quarter:

```sql

SELECT Id, Name, Amount, CloseDate, Account.Name

FROM Opportunity

WHERE RecordType.Name = 'Renewal'

AND IsClosed = false

AND CloseDate = THIS_QUARTER

ORDER BY CloseDate

```

New deals by product line:

```sql

SELECT LOB__c, COUNT(Id), SUM(Amount)

FROM Opportunity

WHERE RecordType.Name = 'New'

AND StageName = 'Closed Won'

AND CloseDate = THIS_YEAR

GROUP BY LOB__c

```

ARR by Account (Top 20):

```sql

SELECT Account.Name, SUM(ARR__c)

FROM Opportunity

WHERE StageName = 'Closed Won'

GROUP BY Account.Name

ORDER BY SUM(ARR__c) DESC

LIMIT 20

```

Recent closed-won deals:

```sql

SELECT Id, Name, Amount, CloseDate, Account.Name

FROM Opportunity

WHERE StageName = 'Closed Won'

AND CloseDate = LAST_N_DAYS:30

ORDER BY CloseDate DESC

```

Account search:

```sql

SELECT Id, Name, Industry, AnnualRevenue, Website

FROM Account

WHERE Name LIKE '%SearchTerm%'

```

Contact lookup:

```sql

SELECT Id, Name, Email, Title, Account.Name

FROM Contact

WHERE Email = 'user@example.com'

```

MCP Tools Available

When using the Salesforce MCP server:

  • run_soql_query β€” Run SOQL queries against your org
  • list_all_orgs β€” List configured Salesforce orgs
  • open_org β€” Open org in browser
  • get_username β€” Resolve org username/alias

Tips

Writing Good SOQL

  • Always include Account.Name in opportunity queries for context
  • Use date literals: TODAY, THIS_WEEK, THIS_QUARTER, THIS_YEAR, LAST_N_DAYS:30
  • Use RecordType.Name to filter by record type
  • LIMIT your queries to avoid timeouts on large orgs
  • Use COUNT() and GROUP BY for aggregations

Common Patterns

  • Pipeline report: Filter by IsClosed = false and group by StageName
  • Revenue analysis: Sum Amount or ACV__c grouped by time period or product
  • Customer health: Join Opportunities with Cases or custom health objects
  • Renewal tracking: Filter RecordType.Name = 'Renewal' with CloseDate ranges

Multi-Year Deal Handling

If your org uses multi-year deals:

  • Track subscription start/end dates separately from contract end
  • TCV (Total Contract Value) = full multi-year value
  • ACV (Annual Contract Value) = annualized value
  • Consider creating annual recognition events for revenue recognition

Extending This Skill

Add your own reference docs alongside this SKILL.md:

  • SALESFORCE_STRUCTURE.md β€” Your org's complete object/field documentation
  • BUSINESS_LOGIC.md β€” How your org uses Salesforce (deal flow, approval processes)
  • COMMON_QUERIES.md β€” Frequently used queries specific to your team

More from this repository10

🎯
google-ads🎯Skill

Queries, audits, and optimizes Google Ads campaigns via API or browser automation to improve ad performance and reduce wasted spend.

🎯
nudocs🎯Skill

Uploads documents to Nudocs.ai for collaborative editing, generates shareable links, and retrieves edited content with flexible format options.

🎯
parallel-task🎯Skill

I apologize, but I cannot generate a description without seeing the actual code or context of the "parallel-task" skill from the repository. Could you provide more details about what the skill does...

🎯
task-orchestrator🎯Skill

Orchestrates multi-agent software development tasks across parallel tmux sessions with intelligent dependency tracking and self-healing monitoring.

🎯
context-recovery🎯Skill

Recovers and reconstructs conversation context from fragmented or incomplete interaction histories to maintain conversational coherence.

🎯
elegant-reports🎯Skill

Generates minimalist, Nordic-inspired PDF reports with customizable templates and themes using a clean, functional design approach.

🎯
zendesk🎯Skill

Retrieves and searches Zendesk support tickets, organizations, and user data through API calls for comprehensive customer support insights.

🎯
jira🎯Skill

I apologize, but I cannot generate a description without seeing the actual Jira skill code or details. Could you provide the code or specifics about the Jira skill from the repository so I can craf...

🎯
sysadmin-toolbox🎯Skill

Discovers and recommends CLI tools and shell one-liners for sysadmins, DevOps, and security professionals across network, system, log, and container troubleshooting tasks.

🎯
planner🎯Skill

Breaks down complex projects into structured, atomic tasks with clear dependencies, enabling systematic and parallel execution across multiple sprints.