Overview
Use this skill when the user asks for addition calculations.
When to Use
- User asks to add two or more numbers.
- User inputs expressions like
3 + 5,1.2 + 3.4 + 5,-2 + 9.
Scope
- Supported: addition only.
- Not supported: subtraction, multiplication, division, equations, symbolic algebra.
Input Handling
- Accept numbers separated by
+, spaces, commas, or Chinese wording (for example:加). - Normalize full-width symbols to half-width symbols before parsing.
Workflow
- Extract all numeric values from user input.
- Verify at least two valid numbers are present.
- Compute the sum.
- Return:
- Parsed numbers
- Expression
- Final result
Output Format
Always return:
- Expression used
- Result
- Optional one-line check
Example:
- Expression:
1.2 + 3.4 + 5 - Result:
9.6
Safety and Accuracy Rules
- Do not invent missing numbers.
- If input is ambiguous, ask user to rewrite in explicit form.
- Preserve decimal precision as entered when reasonable.