PranavNagrecha/AwesomeSalesforceSkills / skills/admin/cpq-quote-templates
cpq-quote-templates
VerifiedUse when designing or troubleshooting Salesforce CPQ (SBQQ) quote templates: building template sections, configuring line columns, conditionally showing sections, generating branded PDFs, or handling multi-language output. Triggers: 'CPQ quote template', 'SBQQ template', 'CPQ PDF', 'line columns', 'quote template sections', 'conditional section', 'CPQ quote document'. NOT for standard non-CPQ quote templates in Setup — use admin/quotes-and-quote-templates. NOT for a Visualforce-built quote PDF — use apex/quote-pdf-customization.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 17.2 KB |
| references/examples.md | markdown | 6.3 KB |
| references/gotchas.md | markdown | 5.9 KB |
| references/llm-anti-patterns.md | markdown | 8.3 KB |
| references/well-architected.md | markdown | 5.8 KB |
| scripts/check_cpq_quote_templates.pyexecutable | script | 10.9 KB |
| templates/cpq-quote-templates-template.md | markdown | 3.9 KB |
templates/cpq-quote-templates-template.md
View on GitHub# CPQ Quote Templates — Work Template
Use this template when working on CPQ (SBQQ) quote template design or troubleshooting tasks.
## Scope
**Skill:** `admin/cpq-quote-templates`
**Request summary:** (fill in what the user asked for)
## Context Gathered
Record answers to the Before Starting questions from SKILL.md:
- **CPQ package confirmed installed?** (yes / no — if no, stop and verify before proceeding)
- **Existing templates:** (list any SBQQ__QuoteTemplate__c records already in the org)
- **Line fields needed in table:** (list the SBQQ__QuoteLine__c API field names)
- **Conditional sections required:** (list section name → controlling field name)
- **Multi-language requirement:** (yes / no — if yes, list languages)
- **Branding assets:** (logo file size, max dimensions, color hex codes)
## Approach
Which pattern from SKILL.md applies?
- [ ] Pattern 1: Branded Cover Page with Company Logo
- [ ] Pattern 2: Conditional Discount Summary Section
- [ ] Pattern 3: Multi-Language Templates via Flow
- [ ] Custom approach — describe below:
**Reason for chosen approach:**
## Object Hierarchy Plan
```
SBQQ__QuoteTemplate__c: "[Template Name]"
│
├── SBQQ__TemplateSection__c: "Cover Page"
│ Type: Cover Page | Order: 1 | Conditional: (none)
│ └── SBQQ__TemplateContent__c: "Cover HTML"
│ Type: HTML
│
├── SBQQ__TemplateSection__c: "Header"
│ Type: Header | Order: 2 | Conditional: (none)
│ └── SBQQ__TemplateContent__c: "Header HTML"
│ Type: HTML
│
├── SBQQ__TemplateSection__c: "Products"
│ Type: Body | Order: 3 | Conditional: (none)
│ └── SBQQ__TemplateContent__c: "Line Items Table"
│ Type: Line Items
│ └── SBQQ__LineColumn__c: [field list — see below]
│
├── SBQQ__TemplateSection__c: "[Conditional Section Name]"
│ Type: Body | Order: 4 | Conditional: [Field_API_Name__c]
│ └── SBQQ__TemplateContent__c: "Section HTML"
│ Type: HTML
│
└── SBQQ__TemplateSection__c: "Footer"
Type: Footer | Order: 5 | Conditional: (none)
└── SBQQ__TemplateContent__c: "Footer HTML"
Type: HTML
```
## Line Column Plan
| Column Name | SBQQ__FieldName__c | Heading | Width % | Alignment | Format |
|---|---|---|---|---|---|
| Product Name | SBQQ__ProductName__c | Product | 35 | Left | — |
| Quantity | SBQQ__Quantity__c | Qty | 10 | Right | Decimal |
| Unit Price | SBQQ__UnitPrice__c | Unit Price | 20 | Right | Currency |
| Discount | SBQQ__Discount__c | Disc % | 10 | Right | Percent |
| Net Total | SBQQ__NetTotal__c | Net Total | 25 | Right | Currency |
| **Total** | | | **100** | | |
(Adjust columns and widths for this engagement — widths MUST sum to 100)
## Checklist
Copy from SKILL.md review checklist and tick items as you complete them:
- [ ] CPQ managed package (SBQQ) confirmed installed; NOT using Setup > Quote Templates
- [ ] All `SBQQ__TemplateSection__c` records have correct `SBQQ__Type__c` and `SBQQ__DisplayOrder__c`
- [ ] All conditional sections have a valid `SBQQ__ConditionalPrintField__c` pointing to a real field on `SBQQ__Quote__c`
- [ ] Line Items content type has corresponding `SBQQ__LineColumn__c` records; column widths sum to 100
- [ ] All HTML content uses inline styles only (no `<style>` blocks, no CSS classes)
- [ ] All images are under 5 MB; logo renders correctly in Preview
- [ ] "Preview" button used to verify the PDF before deploying; line items table is not empty
- [ ] Multi-language templates (if needed) each have a separate `SBQQ__QuoteTemplate__c`; Flow assigns the correct template
## Notes
Record any deviations from the standard pattern and why:
(e.g., "Using Custom (Visualforce) content type for the pricing table because the customer requires Apex-calculated bundle pricing rollups that are not available as formula fields on SBQQ__QuoteLine__c")
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |