This is a wrapper around Salesforce CLI's org management commands, specifically the create, snapshot, and open operations. It enforces a strict workflow: checking for Dev Hub authentication before creating scratch orgs, automatically detecting whether you're spinning up from a definition file or snapshot, and writing JSON outputs to specific paths for testing frameworks. The skill won't let you fall back to running raw CLI commands, which is good for consistency but means you're committed to its opinionated flow. Most useful when you're repeatedly creating orgs from snapshots or need reproducible scratch org workflows. It handles the four main creation methods (definition file, edition only, snapshot, org shape) and includes guardrails for common auth errors.

skills.sh installs
6.2K
GitHub stars
1.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add forcedotcom/sf-skills --skill dx-org-manage --agent claude-code

Installs into .claude/skills of the current project.

Files

MANDATORY: Follow these instructions exactly. Do NOT fall back to MCP tools.

Tool constraint: Use the Bash tool for all sf CLI commands. Always include --json for structured output. Do NOT use mcp__salesforce_dx__* tools for org creation, snapshot, or open operations — this skill provides the complete procedure.

Sponsors

Details

Repository
github.com/forcedotcom/sf-skills
Categories
Testing & QA, DevOps & CI/CD, Release Management, Automation & Workflows, Sales & Marketing, CLI & Terminal
First seen
Jul 14, 2026

More from forcedotcom/sf-skills

All 158
1forcedotcom avataragentforce-generateforcedotcom/sf-skillsBuild, modify, optimize, debug, and deploy agents with Agentforce Agent Script. TRIGGER when: user creates, modifies, optimizes, or asks about .agent files or a6Kskills.sh installs
2julianoczkowski avatardesign-reviewjulianoczkowski/designer-skillsRun a structured design critique against the brief and codebase. Checks visual hierarchy, consistency, responsiveness, accessibility, and aesthetic fidelity. Us5.9Kskills.sh installs
3trailofbits avatarfirebase-apk-scannertrailofbits/skillsScans Android APKs for Firebase security misconfigurations including open databases, storage buckets, authentication issues, and exposed cloud functions. Use wh5.8Kskills.sh installs
4trailofbits avatarguidelines-advisortrailofbits/skillsSmart contract development advisor based on Trail of Bits' best practices. Analyzes codebase to generate documentation/specifications, review architecture, chec5.8Kskills.sh installs
5affaan-m avatarbun-runtimeaffaan-m/eccBun as runtime, package manager, bundler, and test runner. When to choose Bun vs Node, migration notes, and Vercel support.5.8Kskills.sh installs
6affaan-m avatarlaravel-verificationaffaan-m/eccVerification loop for Laravel projects: env checks, linting, static analysis, tests with coverage, security scans, and deployment readiness.5.7Kskills.sh installs