argo / templates
CLAUDE.md1 starsChanged 7 months agoMITView on GitHub
This project uses the argo Claude Code plugin for its Salesforce AI workflow (agents, skills, hooks, standards docs). The workflow is project-agnostic and driven by .claude/sf-project.json. Project-specific context — including project name, object model, message channels, domain glossary, and unique constraints — lives in docs/project-context.md. Read that file for the what of this project; this file describes the how of the workflow itself. The single source of truth for project-specific values is .claude/sf-project.json. It defines: Agents and skills read this…
In this repository53 other files it gives its agents.
- adrSkill
- agent-deploySkill
- agent-discoverSkill
- agent-eval-trendSkill
- agent-exchange-listSkill
- agent-specSkill
- agent-testSkill
- agent-vs-flow-vs-apexSkill
- before-vs-after-triggerSkill
- code-reviewSkill
- complexitySkill
- coverage-trendSkill
- dead-codeSkill
- dependency-graphSkill
- deploySkill
- destructive-changesSkill
- diff-deploySkill
- erdSkill
- field-impactSkill
- flaky-test-finderSkill
- flow-auditSkill
- flow-vs-apexSkill
- fls-auditSkill
- gateway-configSkill
- generate-docsSkill
- limit-usageSkill
- lwc-vs-reactSkill
- mcp-tool-vs-restSkill
- notifySkill
- onboardSkill
- org-diffSkill
- org-exploreSkill
- package-versionSkill
- pattern-packSkill
- perf-reviewSkill
- permset-auditSkill
- pr-prepareSkill
- queueable-vs-batchSkill
- quick-deploySkill
- react-initSkill
- release-notesSkill
- scratch-orgSkill
- security-scanSkill
- sequence-diagramSkill
- sf-initSkill
- sharing-reviewSkill
- slack-agentSkill
- soql-analyzerSkill
- test-coverageSkill
- test-dataSkill
- test-planSkill
- trust-evalSkill
- trust-layer-auditSkill
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
18 rules. About 0 are common, 1 is distinctive, and 17 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
17
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
API version: use platform.apiVersion from config for all new metadata
- Very specific: line 33
Sharing: use platform.sharingDefault (typically with sharing).
- Very specific: line 34
Data access: prefer @wire over imperative Apex for read-only data
- Very specific: line 35
Cross-component comms: use Lightning Message Service (channels are listed in docs/project-context.md)
- Very specific: line 41
If the component needs user/org context, subscribe to one of the project's LMS channels (see docs/project-context.md)
- Very specific: line 42
If it needs Apex data, create or reuse a controller in {paths.apexSource}
- Very specific: line 43
Add @api properties for any Experience Builder-configurable values
- Very specific: line 44
Create Jest test in __tests__/{componentName}.test.js
- Very specific: line 45
Add doc file in {paths.lwcDocs}/{componentName}.md and update the index README in the same directory
- Very specific: line 46
Run {quality.lintCommand} && {quality.unitTestCommand} before committing
- Very specific: line 50
Create .cls + .cls-meta.xml in {paths.apexSource}
- Very specific: line 51
Use @AuraEnabled(cacheable=true) for read-only LWC methods
- Very specific: line 52
Create test class {ClassName}{naming.apex.testSuffix}.cls — target quality.codeCoverageTarget% coverage
- Very specific: line 53
Add doc file in {paths.apexDocs}/{ClassName}.md and update the index README
- Very specific: line 58
LWC: run {quality.unitTestCommand} (typically npm run test:unit).
- Distinctive: line 121
All agents read both pattern docs and the relevant standards docs before writing code.
- Very specific: line 145
No contact with orgs classified in security.prodOrgAliases
- Very specific: line 154
All org operations run through the gated Salesforce sf CLI (hooks/lib/sf-cli.sh), which enforces the security model above.
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md 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.
Files
{{project.name}} — AI Workflow
This project uses the argo Claude Code plugin for its Salesforce AI workflow (agents, skills, hooks, standards docs). The workflow is project-agnostic and driven by .claude/sf-project.json.
Project-specific context — including project name, object model, message channels, domain glossary, and unique constraints — lives in
docs/project-context.md. Read that file for the what of this project; this file describes the how of the workflow itself.
Project Config
The single source of truth for project-specific values is .claude/sf-project.json. It defines:
project.name/project.description— display namenaming.lwc.prefix/naming.lwc.excludePrefixes— LWC naming convention (empty prefix means no convention)naming.apex.*— class-name suffix conventions for controllers, services, batchables, schedulables, queueables, trigger handlers, and testsplatform.apiVersion— API version for all new metadataplatform.defaultTargetOrg— Salesforce CLI org alias for deploys, validations, and test runsplatform.lwcTargets— LWC<targets>for.js-meta.xmlplatform.sharingDefault— default sharing model for new Apex classespaths.*— source and documentation paths (LWC source/docs, Apex source/docs, pattern docs, project context, standards docs)quality.codeCoverageTarget— Apex test coverage thresholdquality.lintCommand/quality.unitTestCommand— npm scripts run by the workflow
Agents and skills read this file at task start. Update the config rather than hardcoding values in the workflow files.
To re-bootstrap or update the project config, run /argo:sf-init.
Development Standards
- API version: use
platform.apiVersionfrom config for all new metadata - Sharing: use
platform.sharingDefault(typicallywith sharing); document any deviation in code - Data access: prefer
@wireover imperative Apex for read-only data - Cross-component comms: use Lightning Message Service (channels are listed in
docs/project-context.md) - Code style: Prettier + ESLint, enforced via the plugin's
lint-lwc.shPostToolUsehook on edited LWC JS files
Creating a New LWC
- Scaffold JS + HTML + CSS + XML meta in
{paths.lwcSource}/{prefix}{Name}/. The prefix and source path come from.claude/sf-project.json - If the component needs user/org context, subscribe to one of the project's LMS channels (see
docs/project-context.md) - If it needs Apex data, create or reuse a controller in
{paths.apexSource} - Add
@apiproperties for any Experience Builder-configurable values - Create Jest test in
__tests__/{componentName}.test.js - Add doc file in
{paths.lwcDocs}/{componentName}.mdand update the index README in the same directory - Run
{quality.lintCommand} && {quality.unitTestCommand}before committing
Creating a New Apex Class
- Create
.cls+.cls-meta.xmlin{paths.apexSource} - Use
@AuraEnabled(cacheable=true)for read-only LWC methods - Create test class
{ClassName}{naming.apex.testSuffix}.cls— targetquality.codeCoverageTarget% coverage - Add doc file in
{paths.apexDocs}/{ClassName}.mdand update the index README - Run
{quality.lintCommand}before committing
Testing
- LWC: run
{quality.unitTestCommand}(typicallynpm run test:unit); watch and coverage variants exist if package.json defines them - Apex:
sf apex run test --target-org {platform.defaultTargetOrg}or use the/argo:test-coverageskill - Pre-commit hook: Prettier → ESLint → Jest on modified LWC files (with
--passWithNoTests)
Deployment
- Deploy:
sf project deploy start --target-org {platform.defaultTargetOrg}, or use the/argo:deployskill - Validate only: append
--dry-run - Excluded from deploy (
.forceignore): test directories,node_modules/, IDE config,package.xml
Documentation
- LWC docs:
{paths.lwcDocs}/{componentName}.md| index:{paths.lwcDocs}/README.md - Apex docs:
{paths.apexDocs}/{ClassName}.md| index:{paths.apexDocs}/README.md - Full root index:
docs/README.md
Workflow Files (provided by argo plugin)
Subagents (11 specialists)
| Agent | Role |
@architect | Read-only design + plan. Hand-off coordinator |
@data-architect | Data model, sharing, LDV, migrations |
@integration-architect | Callouts, Named Credentials, Platform Events, CDC, MCP Bridge, Trusted Agent Identity, Agent Fabric |
@apex-dev | Apex implementation |
@lwc-dev | LWC implementation |
@react-dev | React-on-Salesforce implementation (when platform.frontend includes react) |
@agent-dev | Agentforce agent authoring (topics, sub-agents, actions, eval suites) |
@qa | Tests + severity-graded code review |
@e2e-tester | UTAM / Playwright end-to-end tests |
@security-reviewer | OWASP-for-SF deep review |
@trust-reviewer | OWASP-for-LLM on agents (prompt injection, jailbreak, grounding leakage) |
Typical flow: @architect plans → hands off to specialists → builders work in parallel → @qa reviews → @e2e-tester covers journeys → @security-reviewer + @trust-reviewer before prod.
Skills (invoke as /argo:<name>)
Setup: sf-init, onboard, pattern-pack
Org awareness: org-explore, org-diff, flow-audit, permset-audit, field-impact, agent-discover
Architecture: erd, sequence-diagram, adr, flow-vs-apex, agent-vs-flow-vs-apex, lwc-vs-react, mcp-tool-vs-rest, before-vs-after-trigger, queueable-vs-batch
Agent dev: agent-spec, agent-test, agent-eval-trend, agent-deploy, slack-agent, agent-exchange-list
React: react-init
Testing: test-plan, test-data, test-coverage (apex/agent modes), coverage-trend, flaky-test-finder
Code review & static analysis: code-review, security-scan, fls-audit, sharing-review, soql-analyzer, limit-usage, perf-review, dead-code, complexity, dependency-graph
Trust & governance: trust-layer-audit, trust-eval, gateway-config
Deployment: deploy, diff-deploy, quick-deploy, scratch-org, package-version, destructive-changes
Docs & release: generate-docs, release-notes, pr-prepare, notify
(See ${CLAUDE_PLUGIN_ROOT}/README.md or run /argo:pattern-pack list for the full inventory.)
Standards & Patterns (in this project's docs/)
docs/patterns/salesforce-patterns.md— Generic platform patterns SF-1..SF-20docs/patterns/project-patterns.md— Project-specific patternsdocs/apex-standards.md— Apex governor limits, security, SOQL/DML, async, namingdocs/lwc-standards.md— LWC CSS, JavaScript, accessibilitydocs/react-standards.md— React-on-Salesforce specifics (whenplatform.frontendincludes react)docs/quality-checklist.md— Unified pre-flight checklist (with Agent + Trust Layer + AI Gateway sections)docs/project-context.md— Object model, channels, glossary, project-specific constraints
All agents read both pattern docs and the relevant standards docs before writing code.
Pattern Packs (opt-in, install with /argo:pattern-pack add <name>)
agentforcev1.0 — AGT-1..7 for projects shipping Agentforce agentsreactv1.0 — RX-1..6 whenplatform.frontendincludes reactplatform-eventsv1.0 — PE-1..5change-data-capturev1.0 — CDC-1..5 (paired with platform-events for the event-bus surface)external-objectsv1.0 — EXT-1..5 (Salesforce Connect: OData / Cross-Org / Custom Apex)big-objectsv1.0 — BIG-1..5 (append-only archival + Async SOQL)field-servicev1.0 — FS-1..5 (Work Orders, scheduling, mobile offline)industriesv1.0 — IND-1..6 (OmniStudio: OmniScripts, FlexCards, IPs, DataRaptors, EPC, Apex extensions)cmsv1.0 — CMS-1..5 (content types, channels, multi-locale, headless delivery)data-cloudv1.0 — DC-1..5 (DLO/DMO, identity resolution, calculated insights, activations)— deprecated redirect, superseded byeinstein-agentforceagentforce(kept for back-compat)
Per-environment overrides
.claude/sf-project.<env>.json deep-merges over the base config when any skill is invoked with --env <name>. Common pattern: prod overrides defaultTargetOrg, raises codeCoverageTarget and agentEvalThreshold, configures notifications.webhooks for Slack/Teams alerts.
Security model
The plugin enforces four hard invariants (see ${CLAUDE_PLUGIN_ROOT}/docs/security-model.md):
- No contact with orgs classified in
security.prodOrgAliases - Metadata-only SOQL by default; customer-data queries require per-call user consent
- Anonymous Apex disabled by default
- Overrides are runtime-only — no persistent "always allow"
/argo:sf-init requires every non-sandbox alias to be classified before it writes config. Three skills (/trust-eval, /permset-audit, /agent-test) prompt for consent on every run because they fundamentally need customer data.
Org operations via the Salesforce CLI
All org operations run through the gated Salesforce sf CLI (hooks/lib/sf-cli.sh), which enforces the security model above. Commands target platform.defaultTargetOrg (or the --env override) and are subject to the prod-org and customer-data guards.
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
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.

