You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+34-14Lines changed: 34 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,14 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
4
4
5
5
## Project Overview
6
6
7
-
**Salesforce Claude Code (SCC)** is an agent harness performance system β a Claude Code plugin providing production-ready agents, skills, hooks, and MCP configurations specifically for Salesforce development. Published as `scc-universal` on npm. Works across Claude Code and Cursor.
7
+
**Salesforce Claude Code (SCC)** is an agent harness performance system β a Claude Code plugin providing production-ready agents, skills, hooks, and MCP configurations specifically for Salesforce development. Works across Claude Code and Cursor.
8
8
9
-
This is the root directory for all SCC source code.
npx scc plan # Preview files to be installed (dry run)
54
54
npx scc list-installed # Show currently installed SCC files
55
-
npx scc session-inspect # Inspect a specific session's details
56
55
```
57
56
58
57
## Architecture
59
58
60
59
The project is a **plugin system** β mostly Markdown/JSON content consumed by AI agent harnesses, backed by Node.js scripts for installation, hooks, and validation.
-**hooks/hooks.json** β Claude Code hook lifecycle (SessionStart, PreToolUse, PostToolUse, PostToolUseFailure, PreCompact, Stop, SessionEnd). Hook scripts live in `scripts/hooks/`.
67
66
67
+
### Generated Content (Never Edit Directly)
68
+
69
+
-**.cursor/** β Auto-generated from `agents/` and `skills/` by `npm run build`. The pre-commit hook enforces sync. Always edit the source in `agents/` or `skills/`, then run `npm run build` and stage `.cursor/`.
70
+
68
71
### Script Infrastructure (Node.js, CommonJS)
69
72
70
73
-**scripts/scc.js** β Main CLI entry point (`npx scc`).
-**scripts/hooks/** β Hook implementations. Uses `run-with-flags.js` for profile-based gating.
75
78
-**scripts/ci/** β CI validators enforcing structure/frontmatter of all content types.
@@ -79,11 +82,28 @@ The project is a **plugin system** β mostly Markdown/JSON content consumed by
79
82
### Cross-Harness Support
80
83
81
84
-**.claude-plugin/** β Plugin manifest for Claude Code marketplace.
82
-
-**.cursor/** β Cursor IDE skills, agents, and hooks.
85
+
-**.cursor-plugin/** β Plugin manifest for Cursor marketplace.
86
+
87
+
## Pre-commit Hook
88
+
89
+
The pre-commit hook (`.githooks/pre-commit`) mirrors CI locally: build, ESLint, markdownlint, all 6 validators, and full test suite. Setup for new contributors:
90
+
91
+
```bash
92
+
git config core.hooksPath .githooks
93
+
```
94
+
95
+
## Release Process
96
+
97
+
Versioning is automated via release-please. On merge to `main`:
98
+
99
+
1. Release-please creates a Release PR bumping `package.json` and all 4 plugin manifests (`.claude-plugin/plugin.json`, `.claude-plugin/marketplace.json`, `.cursor-plugin/plugin.json`, `.cursor-plugin/marketplace.json`).
-**Target Salesforce API version: 66.0 (Spring '26)**. Skills and code examples target this version. When referencing API-version-specific features (SOQL Cursors, RunRelevantTests, @testFor), always note the minimum version required.
106
+
-**Target Salesforce API version: 66.0 (Spring '26)**. When referencing API-version-specific features (SOQL Cursors, RunRelevantTests, @testFor), always note the minimum version required.
0 commit comments