digital-root

Installation
SKILL.md

Digital Root (ndr)

Given a string, add up the alphabetic position of every letter (a=1 ... z=26, case-insensitive) plus any explicit numeric digits found in the input, then print the total sum and the digital root of that sum.

Output format

Print two integers separated by a space: <sum> <digital_root>.

The digital root is the single-digit value obtained by repeatedly summing the digits of the total until one digit remains. (Mathematically it is 1 + (sum - 1) % 9, with digital root 0 only when the total is 0.)

How to compute

Installs
1
Repository
144126/skills
First Seen
Sep 30, 2026