agentleFS
vhmarquezvhmarquez/argo/skills/quick-deploy/SKILL.md

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.

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
  1. Very specific:

    If <deployId> was provided, validate its format (0Af prefix, 18 chars).

    line 30
  2. Distinctive:

    If empty, read the history file and surface validated deploys within the last 4 days:

    line 32
  3. Very specific:

    If --validate-first, dispatch to /argo:diff-deploy --validate and capture the deploy ID from its output.

    line 38
  4. Distinctive:

    If any check fails, refuse and explain why.

    line 59
  5. Distinctive:

    History is append-only: Never rewrite past records.

    line 110

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 --validate first, 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)
  • CompletedDate within the last 96 hours
  • NumberTestsCompleted > 0
  • NumberComponentErrors = 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.json

4. 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 = true deploys. 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 = 0 AND 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 --validate against 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.