Salesforce Developer
Jeffallan/claude-skills
Writes Apex, Lightning Web Components and SOQL for the Salesforce platform, with bulkified triggers, governor-limit checks, 90% test coverage and Salesforce DX deployment.
Writes unit tests for Salesforce Apex code that uses SOQL Lib (SOQL.cls).
$ npx skills add beyond-the-cloud-dev/soql-lib --skill soql-lib-testing -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install beyond-the-cloud-dev/soql-lib soql-lib-testing --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/beyond-the-cloud-dev/soql-lib.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/soql-lib-testing .claude/skills/soql-lib-testing && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "soql-lib-testing" agent skill from https://github.com/beyond-the-cloud-dev/soql-lib/tree/main/.cursor/skills/soql-lib-testing into .claude/skills/soql-lib-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "soql-lib-testing", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/beyond-the-cloud-dev/soql-lib/tree/main/.cursor/skills/soql-lib-testingType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add beyond-the-cloud-dev/soql-lib --skill soql-lib-testing -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install beyond-the-cloud-dev/soql-lib soql-lib-testing --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/beyond-the-cloud-dev/soql-lib.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.cursor/skills/soql-lib-testing .agents/skills/soql-lib-testing && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "soql-lib-testing" agent skill from https://github.com/beyond-the-cloud-dev/soql-lib/tree/main/.cursor/skills/soql-lib-testing into .agents/skills/soql-lib-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "soql-lib-testing", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add beyond-the-cloud-dev/soql-lib --skill soql-lib-testing -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install beyond-the-cloud-dev/soql-lib soql-lib-testing --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/beyond-the-cloud-dev/soql-lib.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.cursor/skills/soql-lib-testing .cursor/skills/soql-lib-testing && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "soql-lib-testing" agent skill from https://github.com/beyond-the-cloud-dev/soql-lib/tree/main/.cursor/skills/soql-lib-testing into .cursor/skills/soql-lib-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "soql-lib-testing", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/beyond-the-cloud-dev/soql-lib.git --path .cursor/skills/soql-lib-testing--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add beyond-the-cloud-dev/soql-lib --skill soql-lib-testing -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install beyond-the-cloud-dev/soql-lib soql-lib-testing --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/beyond-the-cloud-dev/soql-lib.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.cursor/skills/soql-lib-testing .gemini/skills/soql-lib-testing && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "soql-lib-testing" agent skill from https://github.com/beyond-the-cloud-dev/soql-lib/tree/main/.cursor/skills/soql-lib-testing into .gemini/skills/soql-lib-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "soql-lib-testing", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install beyond-the-cloud-dev/soql-lib soql-lib-testingInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add beyond-the-cloud-dev/soql-lib --skill soql-lib-testing -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/beyond-the-cloud-dev/soql-lib.git skills-src && mkdir -p .github/skills && cp -r skills-src/.cursor/skills/soql-lib-testing .github/skills/soql-lib-testing && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "soql-lib-testing" agent skill from https://github.com/beyond-the-cloud-dev/soql-lib/tree/main/.cursor/skills/soql-lib-testing into .github/skills/soql-lib-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "soql-lib-testing", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add beyond-the-cloud-dev/soql-lib --skill soql-lib-testing -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install beyond-the-cloud-dev/soql-lib soql-lib-testing --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/beyond-the-cloud-dev/soql-lib.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.cursor/skills/soql-lib-testing .opencode/skills/soql-lib-testing && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "soql-lib-testing" agent skill from https://github.com/beyond-the-cloud-dev/soql-lib/tree/main/.cursor/skills/soql-lib-testing into .opencode/skills/soql-lib-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "soql-lib-testing", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
soql-lib-testingWrites unit tests for Salesforce Apex code that uses SOQL Lib (SOQL.cls).
Soql Lib Testing is an agent skill from beyond-the-cloud-dev/soql-lib. Writes unit tests for Salesforce Apex code that uses SOQL Lib (SOQL.cls). Covers SOQL.mock() setup by mockId string or SObjectType, thenReturn() for records/lists/counts/aggregate results, throwException() mocking, and sequential mocks for multiple calls. Use when writing @IsTest classes that call SOQL Lib selectors or inline SOQL.of() queries, or when asked how to mock SOQL queries in Apex unit tests.
Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Testing & QA, covering Unit testing and CRM management. It works with Salesforce. The repository describes itself as: The SOQL Lib provides functional constructs for SOQL queries in Apex. The licence is MIT.
Read from SKILL.md and the folder at commit cc06784. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are apex).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Soql Lib Testing loads about 2.1k tokens when it runs. Until then it costs about 106 tokens; SKILL.md has 261 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from beyond-the-cloud-dev/soql-lib at commit cc06784, republished under its MIT licence (© beyond-the-cloud-dev). 261 words, ~2,148 tokens.
.claude/skills/soql-lib-testing/SKILL.md (or your agent's skills folder).SOQL Lib has a built-in mock mechanism — no stub frameworks needed. Mocks are registered before calling production code and consumed in registration order.
@IsTest classes that test code using SOQL Lib queriesSOQL.of(...) inline queries in unit testsSelector classes expose @TestVisible private static final String MOCK_ID. Inline queries without a custom mockId are mocked by SObjectType:
// Selector
SOQL.mock(SOQL_Account.MOCK_ID).thenReturn(records);
// Inline SOQL.of(Account.SObjectType) — no mockId set
SOQL.mock(Account.SObjectType).thenReturn(records);
// Inline SOQL.of(Account.SObjectType).mockId('MyAccounts') — custom mock id
SOQL.mock('MyAccounts').thenReturn(records);Always reference the MOCK_ID constant — never repeat the string literal (fragile when class is renamed).
Always register mocks before Test.startTest():
SOQL.mock(SOQL_Account.MOCK_ID).thenReturn(new Account(Name = 'Acme'));
Test.startTest();
List<Account> result = MyService.getAccounts();
Test.stopTest();// Single record — pass SObject directly (not a one-element list)
SOQL.mock(SOQL_Account.MOCK_ID).thenReturn(new Account(Name = 'Acme'));
// Multiple records — typed list, never List<SObject>
SOQL.mock(SOQL_Account.MOCK_ID).thenReturn(new List<Account>{
new Account(Name = 'Acme'),
new Account(Name = 'Globex')
});
// Empty list — test zero-result paths
SOQL.mock(SOQL_Account.MOCK_ID).thenReturn(new List<Account>());
// COUNT query
SOQL.mock(SOQL_Account.MOCK_ID).thenReturn(42);
// Aggregate results — use List<Map<String, Object>> (AggregateResult cannot be instantiated)
SOQL.mock('leadsQuery').thenReturn(new List<Map<String, Object>>{
new Map<String, Object>{ 'LeadSource' => 'Web', 'total' => 10 },
new Map<String, Object>{ 'LeadSource' => 'Phone', 'total' => 5 }
});
// Single aggregate result
SOQL.mock('leadsQuery').thenReturn(new Map<String, Object>{ 'total' => 100 });// Default message: 'List has no rows for assignment to SObject'
SOQL.mock(SOQL_Account.MOCK_ID).throwException();
// Custom message
SOQL.mock(SOQL_Account.MOCK_ID).throwException('No such column \'InvalidField__c\'');Each SOQL.mock(...) call appends to the queue and is consumed in order:
SOQL.mock(SOQL_Account.MOCK_ID).thenReturn(new Account(Name = 'First call'));
SOQL.mock(SOQL_Account.MOCK_ID).thenReturn(new Account(Name = 'Second call'));| Rule | Detail |
|---|---|
| Set mock before production call | Always before Test.startTest() |
| Use typed lists | new List<Account>{...} — framework strips extra fields to mirror real SOQL |
| Use MOCK_ID constant | Never repeat the string literal |
| Aggregate mocking | Use toAggregatedProxy() in production code; mock with List<Map<String, Object>> |
| Ids are auto-generated | Records get auto-assigned Ids — no fake prefix strings needed |
toObject() returns null | No exception for 0 rows — test this path explicitly |
toObject() throws for >1 row | When result has multiple records — test this error path too |
| SObjectType mock | SOQL.mock(Account.SObjectType) mocks all inline queries for that type without a custom mockId |
@IsTest
private class SOQL_Account_Test {
@IsTest
static void byType_returnsMatchingAccounts() {
SOQL.mock(SOQL_Account.MOCK_ID).thenReturn(new Account(Name = 'TechCorp', Type = 'Customer'));
Test.startTest();
List<Account> result = SOQL_Account.query()
.byType('Customer')
.toList();
Test.stopTest();
Assert.areEqual(1, result.size(), 'Should return one account.');
Assert.areEqual('TechCorp', result[0].Name, 'Account name should match.');
}
@IsTest
static void toObject_returnsNullWhenNoRecords() {
SOQL.mock(SOQL_Account.MOCK_ID).thenReturn(new List<Account>());
Test.startTest();
Account result = (Account) SOQL_Account.query().toObject();
Test.stopTest();
Assert.isNull(result, 'Should return null when no records found.');
}
@IsTest
static void throwException_propagatesError() {
SOQL.mock(SOQL_Account.MOCK_ID).throwException();
Test.startTest();
Exception caughtEx;
try {
SOQL_Account.query().toObject();
} catch (Exception e) {
caughtEx = e;
}
Test.stopTest();
Assert.isNotNull(caughtEx, 'Exception should be thrown.');
}
@IsTest
static void throwException_withCustomMessage() {
String errorMessage = 'No such column \'InvalidField__c\' on entity \'Account\'.';
SOQL.mock(SOQL_Account.MOCK_ID).throwException(errorMessage);
Test.startTest();
Exception caughtEx;
try {
SOQL_Account.query().toObject();
} catch (Exception e) {
caughtEx = e;
}
Test.stopTest();
Assert.isNotNull(caughtEx);
Assert.isTrue(caughtEx.getMessage().contains('InvalidField__c'));
}
}@IsTest
static void count_returnsExpectedNumber() {
SOQL.mock(SOQL_Account.MOCK_ID).thenReturn(7);
Test.startTest();
Integer count = SOQL_Account.query().toInteger();
Test.stopTest();
Assert.areEqual(7, count, 'Count should match mock value.');
}// Production code
public List<SOQL.AggregateResultProxy> getLeadsBySource() {
return SOQL.of(Lead.SObjectType)
.with(Lead.LeadSource)
.count(Lead.Id, 'total')
.groupBy(Lead.LeadSource)
.mockId('leadsBySource')
.toAggregatedProxy();
}
// Test
@IsTest
static void getLeadsBySource_returnsGroupedResults() {
SOQL.mock('leadsBySource').thenReturn(new List<Map<String, Object>>{
new Map<String, Object>{ 'LeadSource' => 'Web', 'total' => 10 },
new Map<String, Object>{ 'LeadSource' => 'Phone', 'total' => 3 }
});
Test.startTest();
List<SOQL.AggregateResultProxy> results = new LeadService().getLeadsBySource();
Test.stopTest();
Assert.areEqual(2, results.size());
Assert.areEqual(10, (Integer) results[0].get('total'));
Assert.areEqual('Web', (String) results[0].get('LeadSource'));
}// Production code — no selector, no mockId
List<Account> accounts = SOQL.of(Account.SObjectType)
.with(Account.Id, Account.Name)
.toList();
// Test — mock by SObjectType
SOQL.mock(Account.SObjectType).thenReturn(new Account(Name = 'Test'));// Production code
List<Account> accounts = SOQL.of(Account.SObjectType)
.mockId('MyAccounts')
.with(Account.Id, Account.Name)
.toList();
// Test
SOQL.mock('MyAccounts').thenReturn(new Account(Name = 'Test'));@IsTest
static void toMap_returnsAccountsKeyedById() {
SOQL.mock(SOQL_Account.MOCK_ID).thenReturn(new Account(Name = 'Acme'));
Test.startTest();
Map<Id, Account> result = (Map<Id, Account>) SOQL_Account.query().toMap();
Test.stopTest();
Assert.areEqual(1, result.size());
}@IsTest
static void sequential_consumedInOrder() {
SOQL.mock(SOQL_Account.MOCK_ID).thenReturn(new Account(Name = 'First'));
SOQL.mock(SOQL_Account.MOCK_ID).thenReturn(new Account(Name = 'Second'));
Test.startTest();
List<Account> first = SOQL_Account.query().toList();
List<Account> second = SOQL_Account.query().toList();
Test.stopTest();
Assert.areEqual('First', first[0].Name);
Assert.areEqual('Second', second[0].Name);
}© beyond-the-cloud-dev, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .cursor/skills/soql-lib-testing of beyond-the-cloud-dev/soql-lib.
Open the folder on GitHubat commit cc06784
Soql Lib Testing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Soql Lib Testing this skillbeyond-the-cloud-dev/soql-lib | 154 | — | ~2.1k | Automated safety check: Pass | MIT | |
| Salesforce DeveloperJeffallan/claude-skills | 12k | — | ~1.9k | Automated safety check: Pass | MIT | |
| Sf DataJaganpro/sf-skills | 424 | — | ~2.1k | Automated safety check: Pass | MIT | |
| Platform Data Manageforcedotcom/sf-skills | 1.1k | — | ~2.7k | Automated safety check: Pass | Apache-2.0 | |
| Platform Apex Anonymous Runforcedotcom/sf-skills | 1.1k | — | ~3k | Automated safety check: Pass | Apache-2.0 | |
| Experience Aura Lwc Migrateforcedotcom/sf-skills | 1.1k | — | ~3.5k | Automated safety check: Pass | Apache-2.0 |
Jeffallan/claude-skills
Writes Apex, Lightning Web Components and SOQL for the Salesforce platform, with bulkified triggers, governor-limit checks, 90% test coverage and Salesforce DX deployment.
Jaganpro/sf-skills
Salesforce data operations with 130-point scoring. An agent skill from Jaganpro/sf-skills.
forcedotcom/sf-skills
Salesforce data operations with 130-point scoring. An agent skill from forcedotcom/sf-skills.
forcedotcom/sf-skills
Runs anonymous Apex against the connected org (.apex file or pasted snippet), capturing the debug log, surfacing errors.
forcedotcom/sf-skills
A skill your agent uses to analyze a Salesforce Aura component bundle (.cmp, .app, .evt, .intf, Controller.js, Helper.js, Renderer.js) and produce a framework-agnostic migration blueprint (PRD.yaml…
forcedotcom/sf-skills
Lightning Web Components with PICKLES methodology and 165-point scoring.
beyond-the-cloud-dev/soql-lib
Builds Salesforce SOQL queries using the SOQL Lib fluent builder API (SOQL.cls).
beyond-the-cloud-dev/soql-lib
Creates Salesforce Apex selector classes using the SOQL Lib selector pattern.
Works with
Categories
Writes unit tests for Salesforce Apex code that uses SOQL Lib (SOQL.cls). Soql Lib Testing is an agent skill from beyond-the-cloud-dev/soql-lib.cls).
Soql Lib Testing fits situations like: writing @IsTest classes that call SOQL Lib selectors; inline SOQL.of() queries; asked how to mock SOQL queries in Apex unit tests.
Run `npx skills add beyond-the-cloud-dev/soql-lib --skill soql-lib-testing -a claude-code`. Or copy the skill folder (.cursor/skills/soql-lib-testing in beyond-the-cloud-dev/soql-lib) into .claude/skills/soql-lib-testing in your project. Claude Code loads it when a task matches its description.
Run `npx skills add beyond-the-cloud-dev/soql-lib --skill soql-lib-testing -a codex`. Or copy the skill folder (.cursor/skills/soql-lib-testing in beyond-the-cloud-dev/soql-lib) into .agents/skills/soql-lib-testing in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add beyond-the-cloud-dev/soql-lib --skill soql-lib-testing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/soql-lib-testing, .gemini/skills/soql-lib-testing, .github/skills/soql-lib-testing and .opencode/skills/soql-lib-testing in your project.
SKILL.md names no scripts, command-line tools or credentials: Soql Lib Testing is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Soql Lib Testing is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.1k tokens (SKILL.md is roughly 8.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Soql Lib Testing: Salesforce Developer (Jeffallan/claude-skills, 12k stars), Sf Data (Jaganpro/sf-skills, 424 stars), Platform Data Manage (forcedotcom/sf-skills, 1.1k stars) and Platform Apex Anonymous Run (forcedotcom/sf-skills, 1.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
beyond-the-cloud-dev (a GitHub organization) maintains it in beyond-the-cloud-dev/soql-lib, which has 154 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 3, 2026.
Source: beyond-the-cloud-dev/soql-lib on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.