This handles switching your default Salesforce org via the sf CLI, whether you're moving between scratch orgs, sandboxes, or production. It sets target-org locally by default (scoped to your current project) or globally if you explicitly ask for it. The skill will list your authenticated orgs if you don't specify one, runs the config set command, and verifies the change. One thing to know: if your org doesn't switch after setting it, check for the SF_TARGET_ORG environment variable since that overrides config values. Straightforward automation for something you probably do multiple times a day during Salesforce development.
npx skills add https://github.com/forcedotcom/afv-library --skill switching-org