| name | quotation-generator |
| category | thai-sales |
| version | 1.0.0 |
| description | Create Thai quotation draft and customer email draft using standard pricing and terms. |
| risk_level | medium |
| output_type | markdown, pdf-outline, email-draft |
Quotation Generator Skill
Purpose
Create consistent quotation drafts for SME sales workflows.
Use When
- User asks for quotation
- User gives customer, product/service, price, quantity, terms
- User wants draft email with quotation
Required Inputs
- Customer name
- Product/service
- Quantity
- Price
- Discount if any
- Payment terms
- Delivery/implementation terms
Ask User Question
Ask no more than 5 missing items.
Workflow
- Require the
quotation discovery manifest and preserve source-role hashes; VAT/policy gaps block external use.
- Validate inputs.
- Load pricing policy.
- Calculate subtotal, discount, VAT if applicable, grand total.
- Verify — recompute subtotal/discount/VAT/grand total in an independent pass (not by re-reading step 3's output). If the two passes disagree, recompute once more from the raw inputs; do not average or eyeball a fix. If still inconsistent, stop and ask the user to confirm the price/quantity/discount inputs rather than shipping a wrong total.
- Add scope, exclusions, validity, payment terms.
- Draft polite email.
- Run Thai quality review (
.thclaws/hooks/thai-quality-review.md), 1 revise round max.
- Mark as draft and request review.
Output Contract
- Quotation header
- Pricing table
- Terms
- Scope/exclusions
- Validity
- Draft email
Risk Control
- Do not send without approval — sending requires an approval-ledger record (
.thclaws/hooks/approval-gate.md).
- Discounts beyond policy require approval.
- Tax/VAT treatment should be reviewed.
- Never present an unverified total as final (see step 4).