grzmol/vibe-force/sf-post-deploy-verification
Claude Code and agent skill by grzmol/vibe-force
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Post-deploy verification of Salesforce work in a real org - reading deploy results with sf project deploy report and sf project deploy resume, running org Apex tests with sf apex run test and sf apex get test, executing anonymous-Apex smoke probes with sf apex run --file, verifying data with sf data query, verifying configuration (permission set assignments, custom metadata rows, active flow versions, scheduled jobs via CronTrigger, platform event channels, Named Credential reachability), checking org health with sf org list limits and AsyncApexJob failures, and deciding between rollback and forward fix when verification fails. Use this skill in wave 4 after a deploy or quick deploy completes, when a deployment reports Succeeded but behaviour is unproven, when interpreting deploy or Apex test failures, when authoring smoke scripts under scripts/apex/, or when producing the verification report at .vibeforce/reports/smoke-*.json.
Install
npx vskill@latest install grzmol/vibe-force/sf-post-deploy-verificationSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as grzmol/vibe-force/sf-post-deploy-verification.
Post-Deploy Verification
A deploy that says Succeeded proves that metadata compiled, not that the feature works. This skill is the wave-4 gate: deploy result -> org Apex tests -> smoke probes -> data and configuration checks -> org health -> report. Enforced by vf-check smoke and vf-check verify.
When to use
| Trigger | Start at | |
|---|---|---|
sf project deploy validate / quick finished or timed out | Deployment result verification | |
Deploy status Succeeded but the story is unproven | Wave-4 sequence | |
Deploy status Failed / SucceededPartial | references/failure-triage.md | |
| Apex tests failed in the org but pass locally | references/failure-triage.md, skill sf-apex-testing | |
| Need a new smoke probe | references/smoke-apex-scripts.md | |
| Need to confirm config landed (perm sets, flows, jobs, custom metadata) | references/org-health-queries.md | |
| Asked "is this safe to leave in the org?" | Rollback vs forward-fix decision tree |
Wave-4 sequence
Wave 3 (sf-deploy-engineer) runs serially: deploy-validate then deploy-quick. Wave 4 runs the two branches in parallel; both must pass before the story is done.
| Step | Agent | Command | Pass criteria | |
|---|---|---|---|---|
| 4.0 | sf-deploy-engineer | sf project deploy report --job-id <id> --target-org <alias> --json | result.status = Succeeded, numberComponentErrors = 0 | |
| 4.1a | sf-test-engineer | vf-check apex --target-org <alias> --tests <list> | All tests pass; class coverage >= gates.apexClassCoverageMin; org coverage >= gates.apexOrgCoverageMin | |
| 4.1b | sf-org-verifier | vf-check smoke --target-org <alias> | Every probe exits 0; no new AsyncApexJob failures; limits within thresholds | |
| 4.2 | sf-org-verifier | data + configuration queries (references/org-health-queries.md) | Row counts, active flow versions, perm-set assignments, scheduled jobs, custom metadata all as expected | |
| 4.3 | sf-org-verifier | writes .vibeforce/reports/smoke-<ISO>.json | Report artefact present with status: "pass" | |
| 4.4 | sf-orchestrator | reads both reports | Fails the story if either branch failed; applies the rollback/forward-fix tree |
verify = apex + smoke. Use all when the local gate has not run in this session.
1. Deployment result verification
| Fact | Value | |
|---|---|---|
| Job id lifetime | 10 days from the start of the deploy operation | |
--use-most-recent lookback | 3 days | |
report vs resume | report does not update source tracking; resume does | |
--coverage-formatters values | clover, cobertura, html-spa, html, json, json-summary, lcovonly, none, teamcity, text, text-summary | |
| Commands that return a job id | deploy start, deploy validate, deploy quick, deploy cancel |
Deploy status JSON (field names from @salesforce/source-deploy-retrieve MetadataApiDeployStatus):
result.status values: Pending, InProgress, Succeeded, SucceededPartial, Failed, Canceling, Canceled, Finalizing, FinalizingFailed.
Component failure fields (details.componentFailures[]): fullName, componentType, fileName, problem, problemType (Error | Warning), lineNumber, columnNumber, success, created, changed, deleted. Test failure fields (details.runTestResult.failures[]): name, methodName, message, stackTrace, time, type, packageName.
Failure triage table for common problem values: references/failure-triage.md.
2. Org Apex tests after deploy
Validation already ran tests, but a quick deploy skips them, and post-deploy runs catch data-dependent failures that a validation on a different snapshot missed.
| Flag | Meaning | |
|---|---|---|
--tests | Class or Class.method; mutually exclusive with --class-names and --suite-names | |
--class-names / --suite-names | Whole classes / suites; also mutually exclusive with the others | |
--test-level | RunSpecifiedTests, RunLocalTests (default), RunAllTestsInOrg | |
--synchronous | Single class only; otherwise runs async and returns a test run id | |
--wait | Streaming client socket timeout in minutes | |
--code-coverage + --result-format | Required together to see coverage; --detailed-coverage needs human format | |
--concise | Failures only (human format) | |
| Permission | Requires the View All Data system permission |
testRunCoverage in JSON/JUnit output is the percentage of covered lines across all Apex classes exercised by that run - it is not the org-wide coverage figure. RunSpecifiedTests requires each class and trigger in the deployment package to reach 75% individually. Gate values live in .vibeforce/config.json (apexOrgCoverageMin 85, apexClassCoverageMin 75).
3. Anonymous-Apex smoke probes
sf apex run --json returns result.compiled, result.success, result.logs, and result.diagnostic[] (with compileProblem, exceptionMessage, exceptionStackTrace, line, column). A probe signals failure by throwing, which flips success to false.
Non-negotiable probe rules:
| Rule | Why | |
|---|---|---|
Guard on Organization.IsSandbox before any DML | A smoke probe must never mutate production data | |
Prefer queries, Schema describes, and service instantiation over DML | Read-only probes are safe everywhere | |
When DML is unavoidable, wrap in Database.setSavepoint() + Database.rollback() | Nothing persists, even in a sandbox | |
Emit VF_PROBE marker lines with LoggingLevel.ERROR | Survives default log filters; the runner greps them | |
Throw on failure, never System.debug and continue | Non-zero exit code is the machine-readable signal | |
| Callout probes point at sandbox endpoints only | See skill sf-integration-patterns |
Skeleton (full scripts in references/smoke-apex-scripts.md):
4. Data verification
Full query catalogue (picklist values via PicklistValueInfo, custom metadata rows, duplicate external ids, storage): references/org-health-queries.md. Data loading and export mechanics: skill sf-data-management.
5. Configuration verification
Named Credential reachability is a callout, so it belongs in a smoke probe, not a query - see references/smoke-apex-scripts.md and skill sf-integration-patterns.
6. Limits and org health
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/sf-post-deploy-verification/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/grzmol/vibe-force/sf-post-deploy-verification)