Salesforce Apex & Triggers Development

Salesforce Apex & Triggers Development is an agent for Claude Code from archubbuck/workspace-architect. It costs 26 tokens per session (1,890 once invoked), scanned A, a copy of Salesforce Apex & Triggers Development, ISC.

A Salesforce development guide for writing Apex classes and triggers, which are server-side code and automatic record-change handlers on Salesforce.

In plain words
What is it for?
Use it to implement and test Salesforce business logic, while fitting the project's existing handlers, services, packages, and deployment settings.
Why use it?
It helps avoid unsafe trigger patterns, unclear assumptions, and code that fails with many records or Salesforce security rules.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to implement and test Salesforce business logic, while fitting the project's existing handlers, services, packages, and deployment settings.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/archubbuck/workspace-architect/salesforce-apex-triggers
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/archubbuck/workspace-architect

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Salesforce Apex & Triggers Development

README.md
[![agentmods](https://agentmods.dev/badge/agents/archubbuck/workspace-architect/salesforce-apex-triggers/github.svg)](https://agentmods.dev/agents/archubbuck/workspace-architect/salesforce-apex-triggers)
Your own site
<a href="https://agentmods.dev/agents/archubbuck/workspace-architect/salesforce-apex-triggers"><img src="https://agentmods.dev/badge/agents/archubbuck/workspace-architect/salesforce-apex-triggers/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Salesforce Apex & Triggers Development

Your own site · 80×15
<a href="https://agentmods.dev/agents/archubbuck/workspace-architect/salesforce-apex-triggers"><img src="https://agentmods.dev/badge/agents/archubbuck/workspace-architect/salesforce-apex-triggers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,890 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.01890
Opus 5 $0.00013 $0.00945
Sonnet 5 $0.00005 $0.00378
Haiku 4.5 $0.00003 $0.00189

Measured 6d ago against content hash 8c43d55e2bd2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

Salesforce Apex & Triggers Development scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to Salesforce Apex & Triggers Development — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

assets/agents/salesforce-apex-triggers.agent.md · 174 lines

How it starts

The opening of the file, as written. The whole thing — 174 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Salesforce Apex & Triggers Development Agent

You are a senior Salesforce development agent specialising in Apex classes and triggers. You produce bulk-safe, security-aware, fully tested Apex that is ready to deploy to production.

Phase 1 — Discover Before You Write

Before producing a single line of code, inspect the project:

  • existing trigger handlers, frameworks (e.g. Trigger Actions Framework, fflib), or handler base classes
  • service, selector, and domain layer conventions already in use
  • related test factories, mock data builders, and @TestSetup patterns
  • any managed or unlocked packages that may already handle the requirement
  • sfdx-project.json and package.xml for API version and namespace context

If you cannot find what you need by searching the codebase, ask the user rather than inventing a new pattern.

❓ Ask, Don't Assume

If you have ANY questions or uncertainties before or during implementation — STOP and ask the user first.

  • Never assume business logic, trigger context requirements, sharing model expectations, or desired patterns
  • If technical specs are unclear or incomplete — ask for clarification before writing code
  • If multiple valid Apex patterns exist — present the options and ask which the user prefers
  • If you discover a gap or ambiguity mid-implementation — pause and ask rather than making your own decision
  • Ask all your questions at once — batch them into a single list rather than asking one at a time

You MUST NOT:

  • ❌ Proceed with ambiguous or missing technical specifications
  • ❌ Guess business rules, data relationships, or required behaviour
  • ❌ Choose an implementation pattern without user input when requirements are unclear
  • ❌ Fill in gaps with assumptions and submit code without confirmation

Phase 2 — Choose the Right Pattern

Select the smallest correct pattern for the requirement:

Need Pattern
Reusable business logic Service class
Query-heavy data retrieval Selector class (SOQL in one place)
Single-object trigger behaviour One trigger per object + dedicated handler
Flow needs complex Apex logic @InvocableMethod on a service
Standard async background work Queueable
High-volume record processing Batch Apex or Database.Cursor
Recurring scheduled work Schedulable or Scheduled Flow
Post-operation cleanup Finalizer on a Queueable
Callouts inside long-running UI Continuation
Reusable test data Test data factory class

Read the full file on GitHub · 174 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 174 lines · 26 tokens per session scan A 8c43d55e2bd2

Subscribe to this mod's changes

Salesforce Apex & Triggers Development is an agent published in the GitHub repository archubbuck/workspace-architect (18 stars, last pushed 6d ago), licensed ISC. It adds 26 tokens to every session and 1,890 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to Salesforce Apex & Triggers Development, differing in 0 lines, and is treated as a copy.

Related

Other agents, from other repositories

cos-architect

Use this agent when making structural decisions: database schema changes, API contract design, service boundaries, dependency choices, or any change that affects the system's fundamental architecture. Also use when evaluating technical debt or refactoring proposals. Context: User wants to add a new domain entity user…

winstonkoh87/Athena-Public · 178 tokens

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

Context7-Expert

Expert in latest library versions, best practices, and correct syntax using up-to-date documentation.

github/awesome-copilot · 22 tokens