All skills
Skillintermediate

Temperature Conversion Tool Requirements

We need a command-line utility for converting temperatures between Celsius and Fahrenheit scales. The tool should be easy to use for quick conversions without requiring a calculator or online converter.

Claude Code Knowledge Pack7/10/2026

Overview

Temperature Conversion Tool Requirements

We need a command-line utility for converting temperatures between Celsius and Fahrenheit scales. The tool should be easy to use for quick conversions without requiring a calculator or online converter.

Functional Requirements

Feature (FR)Designer's Note
Tool converts temperature from Celsius to FahrenheitStandard conversion formula
Tool converts temperature from Fahrenheit to CelsiusStandard conversion formula
Tool rejects temperatures below absolute zero-273.15°C or -459.67°F
Tool accepts temperature value and unit as command-line argumentsCLI interface
Tool displays converted value with unitsOutput format
Tool displays allowed unit values when invalid unit is providedError message

Non-Functional Requirements

Feature (NFR)Quality AttributeDesigner's Note
Tool is implemented in PythonPortabilityPython
Tool is testable with BehaveTestabilityGherkin-based BDD testing
Tool provides error messages for invalid inputUsabilityHandle user errors
Conversions complete instantaneouslyPerformanceMathematical operations

The first decision is what programming language to use. We chose Python as specified in the non-functional requirements.

For testing, we chose Behave as the BDD framework. Behave allows writing executable specifications in Gherkin format, making requirements directly testable.

Tests must be executed using the behave command directly (not python -m behave). Example: behave features/001.feature or behave features/.