Skip to content

Commit 148e5c4

Browse files
fix: remove stale /skill-name invocations for pattern skills (#21)
Pattern skills are not user-invocable β€” they're consulted by agents automatically. Replaced /sf-skill-name with sf-skill-name (backtick) across examples, skills, and README. Rewrote Tips section to describe natural agent triggering instead of slash commands.
1 parent fcfb326 commit 148e5c4

11 files changed

Lines changed: 73 additions & 104 deletions

File tree

β€Ž.cursor/skills/prompt-optimizer/SKILL.mdβ€Ž

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ Map intent + scope + tech stack (from Phase 0) to specific SCC components.
9393

9494
| Intent | Invocable Skills | Skills | Agents |
9595
|--------|----------|--------|--------|
96-
| New Feature | /sf-tdd-workflow, /sf-apex-best-practices | sf-apex-best-practices, sf-apex-enterprise-patterns | sf-architect, sf-apex-agent, sf-review-agent |
97-
| Bug Fix | /sf-tdd-workflow, /sf-build-fix | sf-apex-testing, sf-debugging | sf-bugfix-agent, sf-apex-agent |
98-
| Refactor | /refactor-clean, /sf-apex-best-practices | sf-trigger-frameworks, sf-apex-enterprise-patterns | refactor-cleaner, sf-review-agent |
99-
| Testing | /sf-tdd-workflow, /sf-apex-testing, /sf-e2e-testing | sf-apex-testing, sf-tdd-workflow | sf-apex-agent |
100-
| Review | /sf-apex-best-practices, /sf-lwc-development, /sf-security | sf-security | sf-review-agent, sf-review-agent |
96+
| New Feature | sf-tdd-workflow, sf-apex-best-practices | sf-apex-best-practices, sf-apex-enterprise-patterns | sf-architect, sf-apex-agent, sf-review-agent |
97+
| Bug Fix | sf-tdd-workflow, sf-build-fix | sf-apex-testing, sf-debugging | sf-bugfix-agent, sf-apex-agent |
98+
| Refactor | /refactor-clean, sf-apex-best-practices | sf-trigger-frameworks, sf-apex-enterprise-patterns | refactor-cleaner, sf-review-agent |
99+
| Testing | sf-tdd-workflow, sf-apex-testing, sf-e2e-testing | sf-apex-testing, sf-tdd-workflow | sf-apex-agent |
100+
| Review | sf-apex-best-practices, sf-lwc-development, sf-security | sf-security | sf-review-agent, sf-review-agent |
101101
| Documentation | /update-docs | β€” | doc-updater, deep-researcher |
102-
| Infrastructure | /sf-deployment | sf-devops-ci-cd, sf-deployment | sf-architect |
102+
| Infrastructure | sf-deployment | sf-devops-ci-cd, sf-deployment | sf-architect |
103103
| Design (EPIC) | β€” | β€” | sf-architect, sf-architect |
104104

105105
#### By Tech Stack
@@ -161,7 +161,7 @@ For tasks that exceed a single session, split into sequential prompts:
161161

162162
- Prompt 1: Research + Plan (use search-first skill, then sf-architect agent)
163163
- Prompt 2-N: Implement one phase per prompt (each ends with sf-review-agent agent)
164-
- Final Prompt: Integration test + /sf-apex-best-practices across all phases
164+
- Final Prompt: Integration test + sf-apex-best-practices across all phases
165165
- Use /save-session and /resume-session to preserve context between sessions
166166

167167
---
@@ -188,7 +188,7 @@ If Phase 0 auto-detected the answer, state it instead of asking.
188188

189189
| Type | Component | Purpose |
190190
|------|-----------|---------|
191-
| Command | /sf-tdd-workflow | TDD workflow for Apex |
191+
| Command | sf-tdd-workflow | TDD workflow for Apex |
192192
| Skill | sf-apex-best-practices | Apex coding standards |
193193
| Agent | sf-review-agent | Post-implementation review |
194194
| Model | Sonnet | Recommended for this scope |
@@ -206,20 +206,20 @@ The prompt must be self-contained and ready to copy-paste. Include:
206206
- Scope boundaries (what NOT to do)
207207

208208
For items that reference blueprint, write: "Use the sf-architect agent to..."
209-
(not `/blueprint`, since sf-architect is an agent, not a command).
209+
(not `sf-architect agent`, since sf-architect is an agent, not a command).
210210

211211
### Section 4: Optimized Prompt β€” Quick Version
212212

213213
A compact version for experienced SCC users. Vary by intent type:
214214

215215
| Intent | Quick Pattern |
216216
|--------|--------------|
217-
| New Feature | `Use sf-architect agent for [feature]. /sf-tdd-workflow to implement. /sf-apex-best-practices. Use sf-review-agent agent.` |
218-
| Bug Fix | `/sf-tdd-workflow β€” write failing test for [bug]. Fix to green. Use sf-review-agent agent.` |
219-
| Refactor | `/refactor-clean [scope]. /sf-apex-best-practices. Use sf-review-agent agent.` |
217+
| New Feature | `Use sf-architect agent for [feature]. sf-tdd-workflow to implement. sf-apex-best-practices. Use sf-review-agent agent.` |
218+
| Bug Fix | `sf-tdd-workflow β€” write failing test for [bug]. Fix to green. Use sf-review-agent agent.` |
219+
| Refactor | `/refactor-clean [scope]. sf-apex-best-practices. Use sf-review-agent agent.` |
220220
| Research | `Use search-first skill for [topic]. Use sf-architect agent based on findings.` |
221-
| Testing | `/sf-tdd-workflow [class]. /sf-e2e-testing for critical flows. /sf-apex-testing.` |
222-
| Review | `/sf-apex-best-practices. Then use sf-review-agent agent.` |
221+
| Testing | `sf-tdd-workflow [class]. sf-e2e-testing for critical flows. sf-apex-testing.` |
222+
| Review | `sf-apex-best-practices. Then use sf-review-agent agent.` |
223223
| Docs | `/update-docs. Use deep-researcher agent.` |
224224
| EPIC | `Use sf-architect agent for "[objective]". Execute phases with sf-review-agent agent gates.` |
225225

@@ -267,9 +267,9 @@ Technical requirements:
267267
268268
Workflow:
269269
1. Use sf-architect agent to plan trigger handler structure and business logic
270-
2. /sf-tdd-workflow β€” write failing test class first (use @TestSetup and test data factory)
270+
2. sf-tdd-workflow β€” write failing test class first (use @TestSetup and test data factory)
271271
3. Implement AccountTrigger and AccountTriggerHandler
272-
4. /sf-apex-best-practices to review implementation
272+
4. sf-apex-best-practices to review implementation
273273
5. Use sf-review-agent agent to verify all tests pass and coverage reaches 75%+
274274
275275
Security requirements:
@@ -279,7 +279,7 @@ Security requirements:
279279
Acceptance criteria:
280280
- Test coverage 85%+
281281
- Zero governor limit violations
282-
- Passes /sf-security review
282+
- Passes sf-security review
283283
```
284284

285285
### Example 2: Moderate English Prompt
@@ -309,10 +309,10 @@ Requirements:
309309
310310
Workflow:
311311
1. Use sf-architect agent for the endpoint structure, validation logic, and error response envelope
312-
2. /sf-tdd-workflow β€” write tests for success, validation failure, permission failure
312+
2. sf-tdd-workflow β€” write tests for success, validation failure, permission failure
313313
3. Implement AccountAPI class following existing REST patterns
314-
4. /sf-security β€” verify CRUD/FLS enforcement
315-
5. /sf-apex-best-practices
314+
4. sf-security β€” verify CRUD/FLS enforcement
315+
5. sf-apex-best-practices
316316
6. Use sf-review-agent agent β€” run full test suite, confirm no regressions
317317
318318
Do not:
@@ -342,7 +342,7 @@ Before executing, answer these questions in the blueprint:
342342
The blueprint should produce phases like:
343343
- Phase 1: Audit all existing triggers and document business logic
344344
- Phase 2: Implement TriggerHandler base class and factory
345-
- Phase 3: Migrate highest-priority object triggers with /sf-tdd-workflow gates
345+
- Phase 3: Migrate highest-priority object triggers with sf-tdd-workflow gates
346346
- Phase 4: Migrate remaining triggers
347347
- Phase N: Remove legacy trigger code, run full regression
348348

β€Ž.cursor/skills/sf-quickstart/SKILL.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Based on the project state, suggest 3-5 commands to start with:
102102
| Low test coverage | `sf-apex-testing` skill -- analyze gaps |
103103
| Deployment files present | `sf-deployment` skill -- pre-deployment check |
104104
| Security review needed | `sf-security` skill -- full security audit |
105-
| Build errors | `/sf-build-fix` -- fix build and deployment errors |
105+
| Build errors | `sf-build-fix` -- fix build and deployment errors |
106106
| Any project | `/sf-help` -- browse all available commands and skills |
107107

108108
### Step 5 β€” Verify SCC Installation

β€ŽREADME.mdβ€Ž

Lines changed: 6 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -420,52 +420,21 @@ Control which hooks run via the `SCC_HOOK_PROFILE` environment variable:
420420

421421
## Tips and Best Practices
422422

423-
### Salesforce-Specific Workflows
423+
### Typical Workflows
424424

425-
**New Feature Development:**
425+
**New Feature:** Describe what you want to build β€” sf-architect activates automatically, designs the solution, and delegates to domain agents (sf-apex-agent, sf-lwc-agent, sf-flow-agent) with TDD.
426426

427-
1. `/blueprint` - Plan the implementation (metadata types, governor limits)
428-
2. `/sf-tdd-workflow` - Write tests first, then implement
429-
3. `/sf-apex-best-practices` - Review your code
430-
4. `/sf-deployment` - Deploy to target org
427+
**Bug Fix:** Describe the error β€” sf-bugfix-agent activates, diagnoses root cause, applies minimal fix.
431428

432-
**Code Review:**
433-
434-
1. `/sf-apex-best-practices` - Full review of uncommitted changes
435-
2. `/sf-security` - Security-focused audit
436-
3. `/sf-governor-limits` - Check for governor limit issues
437-
438-
**Performance Optimization:**
439-
440-
1. `/sf-soql-optimization` - Fix expensive queries
441-
2. `/sf-governor-limits` - Find limit violations
442-
3. Use the `sf-review-agent` for deep analysis
443-
444-
### Context Window Management
445-
446-
- Keep MCP servers minimal (SF CLI MCP + 2-3 others)
447-
- Use specific prompts: "Review AccountTrigger.cls" not "review everything"
448-
- Use `/compact` when context gets large
449-
450-
### Parallel Workflows
451-
452-
- Use `/fork` for non-overlapping tasks
453-
- Use git worktrees for parallel scratch org work:
454-
455-
```bash
456-
git worktree add ../feature-branch feature-branch
457-
cd ../feature-branch
458-
sf org create scratch --alias feature-scratch
459-
```
429+
**Code Review:** Ask to review before deploy β€” sf-review-agent runs a full quality gate (security, governor limits, test coverage, deploy readiness).
460430

461431
### Key Principles
462432

463433
1. **Governor limits are king** β€” Every agent checks for limit violations
464434
2. **Test-first approach** β€” 75% is the SF minimum, aim for 85%+
465-
3. **Use the right agent** β€” Specialized agents give better results than generic prompts
435+
3. **Be specific** β€” "Review AccountTrigger.cls" not "review everything"
466436
4. **Hook profiles matter** β€” Start with `standard`, move to `strict` for CI
467-
5. **Context is precious** β€” Be specific in prompts, disable unused MCPs
468-
6. **Security baked in** β€” CRUD/FLS and sharing model from the start
437+
5. **Security baked in** β€” CRUD/FLS and sharing model from the start
469438

470439
---
471440

β€Žexamples/agentforce-action/README.mdβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ Flow: Case Creation from Chat
221221

222222
## SCC Skills
223223

224-
- `/sf-agentforce-development` -- scaffold and review Agentforce actions
225-
- `/sf-apex-best-practices` -- review the action class for best practices
226-
- `/sf-tdd-workflow` -- write tests first, then implement the action
227-
- `/sf-governor-limits` -- check governor limit compliance in bulk scenarios
224+
- `sf-agentforce-development` -- scaffold and review Agentforce actions
225+
- `sf-apex-best-practices` -- review the action class for best practices
226+
- `sf-tdd-workflow` -- write tests first, then implement the action
227+
- `sf-governor-limits` -- check governor limit compliance in bulk scenarios

β€Žexamples/devops-pipeline/README.mdβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ jobs:
319319

320320
## SCC Skills
321321

322-
- `/sf-deployment` -- validate and deploy metadata to a target org
323-
- `/sf-devops-ci-cd` -- CI/CD pipeline patterns with scratch orgs
324-
- `/sf-build-fix` -- diagnose and fix deployment failures
325-
- `/sf-apex-testing` -- run Apex tests with coverage analysis
322+
- `sf-deployment` -- validate and deploy metadata to a target org
323+
- `sf-devops-ci-cd` -- CI/CD pipeline patterns with scratch orgs
324+
- `sf-build-fix` -- diagnose and fix deployment failures
325+
- `sf-apex-testing` -- run Apex tests with coverage analysis

β€Žexamples/integration-pattern/README.mdβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ private class PaymentGatewayService_Test {
410410

411411
## SCC Skills
412412

413-
- `/sf-security` -- verify Named Credential usage and no hardcoded secrets
414-
- `/sf-apex-best-practices` -- review callout service code for best practices
415-
- `/sf-tdd-workflow` -- write tests first using mock classes
416-
- `/sf-governor-limits` -- check callout limits in async and batch contexts
413+
- `sf-security` -- verify Named Credential usage and no hardcoded secrets
414+
- `sf-apex-best-practices` -- review callout service code for best practices
415+
- `sf-tdd-workflow` -- write tests first using mock classes
416+
- `sf-governor-limits` -- check callout limits in async and batch contexts

β€Žexamples/platform-events/README.mdβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ private class OrderEventPublisher_Test {
486486

487487
## SCC Skills
488488

489-
- `/sf-platform-events-cdc` -- review Platform Event and CDC implementations
490-
- `/sf-apex-best-practices` -- review publisher and subscriber Apex code
491-
- `/sf-lwc-development` -- review the empApi subscription component
492-
- `/sf-governor-limits` -- check event publish limits and bulk compliance
489+
- `sf-platform-events-cdc` -- review Platform Event and CDC implementations
490+
- `sf-apex-best-practices` -- review publisher and subscriber Apex code
491+
- `sf-lwc-development` -- review the empApi subscription component
492+
- `sf-governor-limits` -- check event publish limits and bulk compliance

β€Žexamples/security-audit/README.mdβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,6 @@ sf scanner run --target "force-app/" \
239239

240240
## SCC Skills
241241

242-
- `/sf-security` -- run a comprehensive security audit on your codebase
243-
- `/sf-apex-best-practices` -- review Apex code including security best practices
244-
- `/sf-governor-limits` -- check for governor limit issues (overlaps with security for SOQL)
242+
- `sf-security` -- run a comprehensive security audit on your codebase
243+
- `sf-apex-best-practices` -- review Apex code including security best practices
244+
- `sf-governor-limits` -- check for governor limit issues (overlaps with security for SOQL)

β€Žexamples/visualforce-migration/README.mdβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public with sharing class AccountEditorLwcController {
308308

309309
## SCC Skills
310310

311-
- `/sf-visualforce-development` -- audit a Visualforce page for migration readiness
312-
- `/sf-lwc-development` -- review the migrated LWC component for best practices
313-
- `/sf-apex-best-practices` -- review the simplified Apex controller
314-
- `/sf-security` -- verify security enforcement in the new component
311+
- `sf-visualforce-development` -- audit a Visualforce page for migration readiness
312+
- `sf-lwc-development` -- review the migrated LWC component for best practices
313+
- `sf-apex-best-practices` -- review the simplified Apex controller
314+
- `sf-security` -- verify security enforcement in the new component

β€Žskills/prompt-optimizer/SKILL.mdβ€Ž

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@ Map intent + scope + tech stack (from Phase 0) to specific SCC components.
9696

9797
| Intent | Invocable Skills | Skills | Agents |
9898
|--------|----------|--------|--------|
99-
| New Feature | /sf-tdd-workflow, /sf-apex-best-practices | sf-apex-best-practices, sf-apex-enterprise-patterns | sf-architect, sf-apex-agent, sf-review-agent |
100-
| Bug Fix | /sf-tdd-workflow, /sf-build-fix | sf-apex-testing, sf-debugging | sf-bugfix-agent, sf-apex-agent |
101-
| Refactor | /refactor-clean, /sf-apex-best-practices | sf-trigger-frameworks, sf-apex-enterprise-patterns | refactor-cleaner, sf-review-agent |
102-
| Testing | /sf-tdd-workflow, /sf-apex-testing, /sf-e2e-testing | sf-apex-testing, sf-tdd-workflow | sf-apex-agent |
103-
| Review | /sf-apex-best-practices, /sf-lwc-development, /sf-security | sf-security | sf-review-agent, sf-review-agent |
99+
| New Feature | sf-tdd-workflow, sf-apex-best-practices | sf-apex-best-practices, sf-apex-enterprise-patterns | sf-architect, sf-apex-agent, sf-review-agent |
100+
| Bug Fix | sf-tdd-workflow, sf-build-fix | sf-apex-testing, sf-debugging | sf-bugfix-agent, sf-apex-agent |
101+
| Refactor | /refactor-clean, sf-apex-best-practices | sf-trigger-frameworks, sf-apex-enterprise-patterns | refactor-cleaner, sf-review-agent |
102+
| Testing | sf-tdd-workflow, sf-apex-testing, sf-e2e-testing | sf-apex-testing, sf-tdd-workflow | sf-apex-agent |
103+
| Review | sf-apex-best-practices, sf-lwc-development, sf-security | sf-security | sf-review-agent, sf-review-agent |
104104
| Documentation | /update-docs | β€” | doc-updater, deep-researcher |
105-
| Infrastructure | /sf-deployment | sf-devops-ci-cd, sf-deployment | sf-architect |
105+
| Infrastructure | sf-deployment | sf-devops-ci-cd, sf-deployment | sf-architect |
106106
| Design (EPIC) | β€” | β€” | sf-architect, sf-architect |
107107

108108
#### By Tech Stack
@@ -164,7 +164,7 @@ For tasks that exceed a single session, split into sequential prompts:
164164

165165
- Prompt 1: Research + Plan (use search-first skill, then sf-architect agent)
166166
- Prompt 2-N: Implement one phase per prompt (each ends with sf-review-agent agent)
167-
- Final Prompt: Integration test + /sf-apex-best-practices across all phases
167+
- Final Prompt: Integration test + sf-apex-best-practices across all phases
168168
- Use /save-session and /resume-session to preserve context between sessions
169169

170170
---
@@ -191,7 +191,7 @@ If Phase 0 auto-detected the answer, state it instead of asking.
191191

192192
| Type | Component | Purpose |
193193
|------|-----------|---------|
194-
| Command | /sf-tdd-workflow | TDD workflow for Apex |
194+
| Command | sf-tdd-workflow | TDD workflow for Apex |
195195
| Skill | sf-apex-best-practices | Apex coding standards |
196196
| Agent | sf-review-agent | Post-implementation review |
197197
| Model | Sonnet | Recommended for this scope |
@@ -209,20 +209,20 @@ The prompt must be self-contained and ready to copy-paste. Include:
209209
- Scope boundaries (what NOT to do)
210210

211211
For items that reference blueprint, write: "Use the sf-architect agent to..."
212-
(not `/blueprint`, since sf-architect is an agent, not a command).
212+
(not `sf-architect agent`, since sf-architect is an agent, not a command).
213213

214214
### Section 4: Optimized Prompt β€” Quick Version
215215

216216
A compact version for experienced SCC users. Vary by intent type:
217217

218218
| Intent | Quick Pattern |
219219
|--------|--------------|
220-
| New Feature | `Use sf-architect agent for [feature]. /sf-tdd-workflow to implement. /sf-apex-best-practices. Use sf-review-agent agent.` |
221-
| Bug Fix | `/sf-tdd-workflow β€” write failing test for [bug]. Fix to green. Use sf-review-agent agent.` |
222-
| Refactor | `/refactor-clean [scope]. /sf-apex-best-practices. Use sf-review-agent agent.` |
220+
| New Feature | `Use sf-architect agent for [feature]. sf-tdd-workflow to implement. sf-apex-best-practices. Use sf-review-agent agent.` |
221+
| Bug Fix | `sf-tdd-workflow β€” write failing test for [bug]. Fix to green. Use sf-review-agent agent.` |
222+
| Refactor | `/refactor-clean [scope]. sf-apex-best-practices. Use sf-review-agent agent.` |
223223
| Research | `Use search-first skill for [topic]. Use sf-architect agent based on findings.` |
224-
| Testing | `/sf-tdd-workflow [class]. /sf-e2e-testing for critical flows. /sf-apex-testing.` |
225-
| Review | `/sf-apex-best-practices. Then use sf-review-agent agent.` |
224+
| Testing | `sf-tdd-workflow [class]. sf-e2e-testing for critical flows. sf-apex-testing.` |
225+
| Review | `sf-apex-best-practices. Then use sf-review-agent agent.` |
226226
| Docs | `/update-docs. Use deep-researcher agent.` |
227227
| EPIC | `Use sf-architect agent for "[objective]". Execute phases with sf-review-agent agent gates.` |
228228

@@ -270,9 +270,9 @@ Technical requirements:
270270
271271
Workflow:
272272
1. Use sf-architect agent to plan trigger handler structure and business logic
273-
2. /sf-tdd-workflow β€” write failing test class first (use @TestSetup and test data factory)
273+
2. sf-tdd-workflow β€” write failing test class first (use @TestSetup and test data factory)
274274
3. Implement AccountTrigger and AccountTriggerHandler
275-
4. /sf-apex-best-practices to review implementation
275+
4. sf-apex-best-practices to review implementation
276276
5. Use sf-review-agent agent to verify all tests pass and coverage reaches 75%+
277277
278278
Security requirements:
@@ -282,7 +282,7 @@ Security requirements:
282282
Acceptance criteria:
283283
- Test coverage 85%+
284284
- Zero governor limit violations
285-
- Passes /sf-security review
285+
- Passes sf-security review
286286
```
287287

288288
### Example 2: Moderate English Prompt
@@ -312,10 +312,10 @@ Requirements:
312312
313313
Workflow:
314314
1. Use sf-architect agent for the endpoint structure, validation logic, and error response envelope
315-
2. /sf-tdd-workflow β€” write tests for success, validation failure, permission failure
315+
2. sf-tdd-workflow β€” write tests for success, validation failure, permission failure
316316
3. Implement AccountAPI class following existing REST patterns
317-
4. /sf-security β€” verify CRUD/FLS enforcement
318-
5. /sf-apex-best-practices
317+
4. sf-security β€” verify CRUD/FLS enforcement
318+
5. sf-apex-best-practices
319319
6. Use sf-review-agent agent β€” run full test suite, confirm no regressions
320320
321321
Do not:
@@ -345,7 +345,7 @@ Before executing, answer these questions in the blueprint:
345345
The blueprint should produce phases like:
346346
- Phase 1: Audit all existing triggers and document business logic
347347
- Phase 2: Implement TriggerHandler base class and factory
348-
- Phase 3: Migrate highest-priority object triggers with /sf-tdd-workflow gates
348+
- Phase 3: Migrate highest-priority object triggers with sf-tdd-workflow gates
349349
- Phase 4: Migrate remaining triggers
350350
- Phase N: Remove legacy trigger code, run full regression
351351

0 commit comments

Comments
Β (0)