discover
Show the six-stage journey signpost, run on-demand org feature detection, or find an uninstalled plugin that matches a specific task.
Authenticate to a new Salesforce org via the browser (sf org login web). Optionally set the org as the project's default target.
$ npx -y skills add forcedotcom/sf-skills --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/loginContext preview
What this command does when you run it.
Authenticate to a new Salesforce org via the browser (sf org login web). Optionally set the org as the project's default target.
description: Authenticate to a new Salesforce org via the browser (sf org login web). Optionally set the org as the project's default target. allowed-tools: - Bash argument-hint: "[--alias <name>] [--instance-url <url>] [--set-default]"
Authenticate to a Salesforce org. The user can pass:
Workflow:
1. **Parse the arguments** ($ARGUMENTS) the user provided. Extract alias, instance-url, and set-default flag.
2. **Run the login command:**
sf org login web {--alias $ALIAS} {--instance-url $URL}This opens a browser for OAuth. Tell the user clearly: "A browser window will open. Complete the login flow and return here."
3. **Handle browser-isn't-available case:** If the user is on a remote shell or the browser won't open, fall back to:
sf org login device-code {--alias $ALIAS} {--instance-url $URL}which prints a code the user enters at salesforce.com/setup/connect.
4. **After successful auth:** if the user passed `--set-default`, run:
sf config set target-org $ALIAS
Otherwise, suggest they run `/salesforce-development:set-default <alias>` if they want to use this org for the current project.
5. **Verify:** print a one-liner with the new org's alias, edition, and instance URL:
sf org display --target-org $ALIAS --json
so the user sees the connected state.
Rules:
This repository provides a curated collection of Salesforce agent skills for building applications.
Repo: forcedotcom/sf-skills
Show the six-stage journey signpost, run on-demand org feature detection, or find an uninstalled plugin that matches a specific task.
Sign out of one or all Salesforce orgs (sf org logout). Confirms before destructive action.
Show just the connected Salesforce org details — alias, edition, API version, instance URL, username.
Confirm and install exactly one uninstalled plugin-catalog entry, or record an explicit decline.
Turn uninstalled-plugin recommendations on or off, tune how readily they trigger, or show current status.
Show just the local SFDX project metadata stats — Apex/triggers/LWC/Aura/objects/perm sets/flows counts and git status.