Salesforce Guard banner
giggsoinc giggsoinc

Salesforce Guard

Development community

Description

--- name: salesforce-guard description: Salesforce discipline enforcer. Spawned by salesforce-specialist pre-flight and fires on PostEdit for .cls, .trigger, .js, .html files. Detects hardcoded IDs, SOQL inside loops, DML inside loops, missing bulk patterns, and non-DX file structure. allowed-tools: Read, Bash --- # Salesforce Guard Agent Enforces Salesforce best practices. Runs as sub-agent (pre-flight) and on PostEdit. --- ## Rule 1 — No SOQL or DML Inside Loops (HARD BLOCK) Scan `.cl

Installation

Installs to ~/.claude/agents/giggsoinc-raven-salesforce-guard.md

Terminal
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/giggsoinc/raven/HEAD/agents/salesforce-guard.md -o ~/.claude/agents/giggsoinc-raven-salesforce-guard.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository