Gremlin salesforce
Skill mikeheilmann1024/foundryops-ai/skills/gremlin-salesforce
Salesforce operations through g-gremlin, including org verification, SOQL queries, schema inspection, data enrichment, ID auditing, enterprise dedupe, metadata deployment, and data packs. Use instead of raw sf CLI for Salesforce reads, writes, dedupe, deployment, drift, or troubleshooting. Apply the shared gremlin-crm-safety write contract and bind every reviewed plan hash on apply.From its SKILL.md
npx -y skills add mikeheilmann1024/foundryops-ai --skill gremlin-salesforceAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.6 KB, as published. Nobody here has run it
Salesforce through g-gremlin
Use g-gremlin sfdc instead of sf whenever a wrapper exists. Apply gremlin-crm-safety to every remote write.
Verify auth and org identity
g-gremlin sfdc doctor --json
g-gremlin sfdc orgs list --json
g-gremlin sfdc whoami --target <org-alias> --json
g-gremlin sfdc describe Account --target <org-alias> --json
Confirm org alias, username, instance URL, and org ID before planning and immediately before apply. Pass --target <org-alias> on every command that supports it; do not rely on a previously configured default.
Read operations
| Command | Purpose |
|---|---|
sfdc query --soql "SELECT ..." --out results.csv --target <org> | Run SOQL and write CSV |
sfdc describe <SObject> --fields-only --json --target <org> | Inspect fields |
sfdc snapshot --out ./snap --object Account --fields Name,Industry --target <org> | Create deterministic preimage evidence |
sfdc reports list --json --target <org> | List reports |
sfdc enrich --csv data.csv --id-column Id --object Account --fields Name,Industry --output enriched.csv --target <org> | Enrich a CSV |
sfdc audit --csv data.csv --id-column AccountId --object Account --target <org> | Audit ID format and existence |
Planned writes
Data packs
g-gremlin sfdc pack init my_pack
g-gremlin sfdc pack plan my_pack --target <org-alias> --json
# Review org identity, changes, validation, artifact, and plan_hash.
g-gremlin sfdc pack apply my_pack --target <org-alias> --yes --plan-hash HASH
Metadata packs
g-gremlin sfdc metadata-pack init my_pack
g-gremlin sfdc metadata-pack plan my_pack --target <org-alias> --json
# Review org identity, components, destructive operations, artifact, and plan_hash.
g-gremlin sfdc metadata-pack apply my_pack --target <org-alias> --yes --plan-hash HASH
g-gremlin sfdc metadata-pack verify my_pack --target <org-alias>
g-gremlin sfdc metadata-pack drift my_pack --target <org-alias>
The CLI may accept an apply without --plan-hash; agent and CI policy must not. Always pass the reviewed hash and keep --replan separate from a reviewed apply because replanning changes the effective plan.
Preview before data push
g-gremlin sfdc preview-push --csv changes.csv --object Account --id-column Id --fields Name,Industry --output preview --target <org-alias>
Preview is evidence, not authorization. Use a reviewed data pack for the write and verify the resulting records live.
Enterprise dedupe
Use a plan-first workflow for Contact/Lead dedupe and prefer b2b_person unless the user explicitly approves broader matching.
g-gremlin dedup enterprise-plan \
--source Contact=contacts.csv \
--source Lead=leads.csv \
--profile b2b_person \
--output enterprise_plan.json \
--review-output review.csv
g-gremlin sfdc merge-apply-plan \
--plan enterprise_plan.json \
--converted-status "Closed - Converted" \
--apply \
--receipt-file apply_receipt.json \
--target <org-alias>
Before apply, verify org identity, converted Lead statuses, duplicate rules, mixed Lead/Contact clusters, and whether anonymous Apex is allowed. Same-object merges do not require anonymous Apex. Lead -> Contact currently uses Database.convertLead; when Apex is blocked, keep planning and review in Gremlin and hand execution to the customer's approved admin path.
After apply, inspect the receipt and query Salesforce live. With MCP, use sfdc.dedupe.verify; do not assume the requested survivor or converted Account/Contact was honored.
MCP tools
Prefer g-gremlin-sfdc MCP tools when configured.
- Read:
sfdc.whoami,sfdc.doctor,sfdc.query,sfdc.describe,sfdc.snapshot,sfdc.audit,sfdc.reports.list,sfdc.dedupe.preflight - Analyze:
sfdc.metadata_pack.plan,sfdc.metadata_pack.drift,sfdc.metadata_pack.verify,sfdc.pack.plan,sfdc.dedupe.plan,sfdc.dedupe.verify - Write:
sfdc.metadata_pack.apply,sfdc.pack.apply,sfdc.dedupe.apply
MCP write tools require the plan_hash returned by the corresponding plan tool. Run sfdc.dedupe.preflight, then plan, review, apply with the hash, and verify from the receipt.
Discovery
g-gremlin help sfdc --json
g-gremlin help sfdc metadata-pack plan --json
g-gremlin sfdc --help