prompt-optimizer

Analyze Salesforce development prompts and generate optimized SCC-aligned versions.

13|2|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/jiten-singh-shahi/salesforce-claude-code --skill prompt-optimizer-jiten-singh-shahi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-optimizer
Source: https://github.com/jiten-singh-shahi/salesforce-claude-code/tree/main/.cursor/skills/prompt-optimizer
Command: npx skills add https://github.com/jiten-singh-shahi/salesforce-claude-code --skill prompt-optimizer-jiten-singh-shahi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps users transform vague or ineffective Salesforce development prompts into precise, actionable, and SCC-aligned instructions so Claude Code can follow the correct workflow without ambiguity.

Core Features & Use Cases

  • Intent analysis & critique: Detects user intent (new feature, bug fix, refactor, testing, review, design) and highlights prompt strengths and weaknesses.
  • Project-aware optimization: Performs project detection (CLAUDE.md, sfdx-project.json, package.json) and incorporates tech stack signals (Apex, LWC, SOQL, Flow) into the rewritten prompt.
  • SCC mapping & constraints: Recommends invocable skills, agents, and model choices, identifies missing context and asks up to three clarifying questions when needed.
  • Advisory-only output: Produces a structured multi-part response (diagnosis, recommended SCC components, full optimized prompt, quick version) and explicitly avoids executing code or changing the project.

Quick Start

Paste your draft prompt and ask "Optimize this prompt for SCC", mentioning the project tech stack if known.

Frequently Asked Questions about prompt-optimizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize Salesforce development prompts for Apex and LWC?

To optimize Salesforce development prompts, you analyze user intent, project context, and tech stack signals like Apex, LWC, and SOQL. The optimizer evaluates scope and maps requirements to SCC agents, returning a critique and a ready-to-paste prompt without executing code.

What is SCC prompt mapping for Salesforce architecture tasks?

SCC prompt mapping aligns Salesforce development instructions with invocable skills, agents, and model choices. It identifies missing context, asks up to three clarifying questions, and ensures Claude Code follows correct workflows for architecture, Flow, or Apex tasks without ambiguity.

Can I use this prompt optimizer with an existing sfdx-project.json setup?

Yes, you can use the prompt optimizer with an existing Salesforce project. It performs project detection by reading files like sfdx-project.json, package.json, and CLAUDE.md to incorporate tech stack signals directly into the rewritten prompt.

How do I rewrite a vague bug fix prompt for Salesforce Flow and SOQL?

To rewrite a vague bug fix prompt, you provide your draft instruction and the optimizer classifies intent, estimates scope, and checks for missing context. It returns both a full and compact optimized SCC prompt tailored for your Flow or SOQL task.

Does the prompt optimizer generate Apex code or only provide advisory output?

The prompt optimizer strictly provides advisory output and does not generate Apex code or modify your project. It produces a structured response containing a diagnosis, recommended SCC components, and optimized prompts for you to execute separately.