← ClaudeAtlas

sf-message-cataloglisted

Generate a comprehensive catalog of every user-facing error, warning, info, and confirmation message across a Salesforce managed package. Extracts messages from Apex classes, Apex triggers, Lightning Web Components (LWC), Aura Lightning Components, Visualforce Pages, and Visualforce Components. Produces a professional .docx document organized by component type with an executive summary table. Use this skill when the user mentions 'error catalog', 'message catalog', 'list all errors', 'list all warnings', 'user-facing messages', 'error messages document', 'warning messages report', 'managed package messages', 'Q2C messages', or asks to catalog, inventory, or document the error and warning messages in any Salesforce app. Also triggers on 'what messages does the app show', 'customer-facing errors', or 'generate message documentation'. This skill can be scheduled to run monthly to keep the catalog current across releases.
kugamon/salesforce-isv-skills · ★ 2 · Data & Documents · score 73
Install: claude install-skill kugamon/salesforce-isv-skills
# Salesforce Managed Package — Message Catalog Generator Generate a complete, customer-facing catalog of every user-facing message in a Salesforce managed package. The output is a professional landscape .docx with color-coded severity, organized by component type. ## Before You Begin 1. **Read the docx skill** — locate and read the `docx` SKILL.md in your available skills. You will generate a .docx using docx-js. 2. **Identify the Salesforce org connector.** Ask the user which connected Salesforce org to query. Look for available MCP tools matching patterns like `mcp__salesforce-*__tooling_execute` or `mcp__Salesforce-*__tooling_execute`. If multiple orgs are connected, ask the user to pick one. If only one is available, confirm it. 3. **Identify the managed package namespace prefix.** Ask the user for the namespace (e.g., `kugo2p`). This is used to filter Tooling API queries to only components belonging to that package. ## Phase 1: Extract Messages from All Component Types Query the Salesforce Tooling API for source code across five component types. For each, extract every user-facing message string along with its method/context, triggering condition, and severity. ### 1.1 Apex Classes and Triggers Query all Apex classes and triggers in the namespace: ``` SELECT Id, Name, Body FROM ApexClass WHERE NamespacePrefix = '{namespace}' SELECT Id, Name, Body FROM ApexTrigger WHERE NamespacePrefix = '{namespace}' ``` Search each body for these patterns (in priority order):