fix: skill best practice improvements for switching-org

- Fix description to use third-person ("This skill should be used when...")
- Remove redundant "When to Use This Skill" body section (duplicated description)
This commit is contained in:
Kenneth Lewis 2026-03-20 12:02:03 -07:00
parent d082d99b22
commit 293093783c
No known key found for this signature in database
GPG Key ID: 29890E559E44ECF6

View File

@ -1,6 +1,6 @@
---
name: switching-org
description: Use this skill when users need to switch the active Salesforce org (default org) using the Salesforce CLI. Trigger when users say "switch org", "change default org", "set my org to", "use alias", or specify a username/alias they want to use for subsequent CLI operations.
description: This skill should be used when users need to switch the active Salesforce org (default org) using the Salesforce CLI. Trigger when users say "switch org", "change default org", "set my org to", "use alias", or specify a username/alias they want to use for subsequent CLI operations.
compatibility: Salesforce CLI (sf) v2+
metadata:
author: afv-library
@ -11,18 +11,6 @@ metadata:
Switches the active Salesforce org (default org) using the Salesforce CLI (sf). Supports either a username or an alias.
## When to Use This Skill
- User says "switch org", "change default org", or "set my org to"
- User specifies a username or alias they want to use
- User needs to change which org is targeted for subsequent CLI operations
### Examples
- "Switch to this org: user@example.com"
- "Use alias myAlias"
- "Change default org to myDev"
## Steps
1. Read input: `orgIdentifier`, and whether the user wants global scope (default: local)