quick-deploy
Skill1 starsChanged 7 months agoMITView on GitHub
Promote a previously validated deployment to production without re-running tests. Salesforce honors a quick-deploy of any validated deploy ID within 4 days, skipping the test phase. Saves 20–60 minutes on prod releases.
In this repository53 other files it gives its agents.
- templates/CLAUDE.mdCLAUDE.md
- adrSkill
- agent-deploySkill
- agent-discoverSkill
- agent-eval-trendSkill
- agent-exchange-listSkill
- agent-specSkill
- agent-testSkill
- agent-vs-flow-vs-apexSkill
- before-vs-after-triggerSkill
- code-reviewSkill
- complexitySkill
- coverage-trendSkill
- dead-codeSkill
- dependency-graphSkill
- deploySkill
- destructive-changesSkill
- diff-deploySkill
- erdSkill
- field-impactSkill
- flaky-test-finderSkill
- flow-auditSkill
- flow-vs-apexSkill
- fls-auditSkill
- gateway-configSkill
- generate-docsSkill
- limit-usageSkill
- lwc-vs-reactSkill
- mcp-tool-vs-restSkill
- notifySkill
- onboardSkill
- org-diffSkill
- org-exploreSkill
- package-versionSkill
- pattern-packSkill
- perf-reviewSkill
- permset-auditSkill
- pr-prepareSkill
- queueable-vs-batchSkill
- react-initSkill
- release-notesSkill
- scratch-orgSkill
- security-scanSkill
- sequence-diagramSkill
- sf-initSkill
- sharing-reviewSkill
- slack-agentSkill
- soql-analyzerSkill
- test-coverageSkill
- test-dataSkill
- test-planSkill
- trust-evalSkill
- trust-layer-auditSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
If <deployId> was provided, validate its format (0Af prefix, 18 chars).
- Distinctive: line 32
If empty, read the history file and surface validated deploys within the last 4 days:
- Very specific: line 38
If --validate-first, dispatch to /argo:diff-deploy --validate and capture the deploy ID from its output.
- Distinctive: line 59
If any check fails, refuse and explain why.
- Distinctive: line 110
History is append-only: Never rewrite past records.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
You are running a quick-deploy — taking a deploy ID that's already passed validation and promoting it to actually apply. Salesforce's quick-deploy is the only sanctioned way to skip tests on a production deploy.
Read Project Config First
source "${CLAUDE_PLUGIN_ROOT}/hooks/lib/config.sh"
ORG="$(sf_config_get '.platform.defaultTargetOrg' "$ENV")"
HISTORY="${CLAUDE_PLUGIN_DATA:-$HOME/.claude/plugin-data}/argo/deploys/${PROJECT_SLUG}/history.jsonl"Input
$ARGUMENTS:
- (empty) — show available validated deploy IDs from history; prompt for one
<deployId>— quick-deploy the specified ID--validate-first— run/argo:diff-deploy --validatefirst, then quick-deploy the resulting ID--target-org <alias>/--env <name>— standard overrides--ci— machine output
Steps
1. Resolve a deploy ID
If <deployId> was provided, validate its format (0Af prefix, 18 chars).
If empty, read the history file and surface validated deploys within the last 4 days:
jq -r 'select(.status == "ValidatedSucceeded" and (.validatedAt | fromdate) > (now - 345600)) | "\(.deployId) \(.validatedAt) \(.summary)"' "$HISTORY"Prompt the user to pick one.
If --validate-first, dispatch to /argo:diff-deploy --validate and capture the deploy ID from its output.
2. Verify the deploy ID is still valid for quick-deploy
sf org login # already logged in; this is just a sanity check
sf data query --target-org "$ORG" --use-tooling-api --json --query "
SELECT Id, Status, NumberComponentsDeployed, NumberComponentErrors, NumberTestsCompleted,
CompletedDate, CreatedDate, CheckOnly
FROM DeployRequest
WHERE Id = '<deployId>'
"Validate:
Status = 'Succeeded'CheckOnly = true(it was a validation, not a real deploy)CompletedDatewithin the last 96 hoursNumberTestsCompleted > 0NumberComponentErrors = 0
If any check fails, refuse and explain why.
3. Run quick-deploy
sf project deploy quick \
--target-org "$ORG" \
--job-id "<deployId>" \
--wait 30 \
--json > /tmp/quick-deploy-result.json4. Output
Default Markdown:
# Quick Deploy: <ORG>
Validated deploy ID: 0Af...XYZ
Validated at: 2026-04-26T14:22:00Z (49h ago)
Components: 7
Tests: 23 (all passed at validation)
## Status
✅ Quick-deploy succeeded (4.1s — no test re-run)
Deploy ID: 0Af...ABC (the actual deploy; validate ID was 0Af...XYZ)
## What happened
- Salesforce reused the test results from validation
- Components were applied to the org
- Total time: 4 seconds (vs ~22 minutes for a fresh deploy with tests)CI mode JSON: {"validateId": "0Af...XYZ", "deployId": "0Af...ABC", "status": "Succeeded", "elapsedMs": 4123}.
5. Append to history
echo '{"deployId":"0Af...ABC","validateId":"0Af...XYZ","status":"Succeeded","quickDeployedAt":"...","org":"...","componentCount":7}' >> "$HISTORY"6. Exit codes
- 0 — quick-deploy succeeded
- 1 — quick-deploy failed (rare — validation guarantees the metadata is valid; failure here means something else changed in the org)
- 2 — invocation error (deploy ID invalid, expired, not a CheckOnly, etc.)
Rules
- Only deploy validated
CheckOnly = truedeploys. A real deploy ID won't quick-deploy - Honor the 96-hour window. Salesforce returns an error past that anyway — fail fast with a clear message
- Confirm the deploy was clean.
NumberComponentErrors = 0AND tests passed. A failed validation can't be quick-deployed - History is append-only. Never rewrite past records; both validation and quick-deploy events become rows
- Don't quick-deploy across orgs. A deploy ID is org-specific; don't try to use a sandbox validation ID against prod
Consumers
- Release process: developer runs
/diff-deploy --validateagainst prod → notes the deploy ID → runs/quick-deploy <id>after change-window approval. Saves the ~20-min test run - CI: validate on PR, persist; release pipeline picks up the ID and quick-deploys
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

