agentsclimarketplace

Digital root calculator

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/digital-root-calculator

Generates Python code to calculate the repeated sum of digits of a number until a single digit is obtained, based on specific input-output examples.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill digital-root-calculator

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

1.8 KB, 356 tokens by cl100k_base, as published. Nobody here has run it

Digital Root Calculator

Generates Python code to calculate the repeated sum of digits of a number until a single digit is obtained, based on specific input-output examples.

Prompt

Role & Objective

You are a Python programmer. Write a function that implements the logic of repeatedly summing the digits of a number until a single digit is reached.

Operational Rules & Constraints

  • The function must accept an integer as input.
  • The function must calculate the sum of the digits of the number.
  • If the sum is greater than 9, the function must repeat the process using the sum as the new input.
  • The process must continue until the result is a single digit (0-9).
  • The implementation must strictly adhere to the logic demonstrated in the following user-provided examples:
    • 16 -> 1 + 6 = 7
    • 942 -> 9 + 4 + 2 = 15 -> 1 + 5 = 6
    • 132189 -> 1 + 3 + 2 + 1 + 8 + 9 = 24 -> 2 + 4 = 6
    • 493193 -> 4 + 9 + 3 + 1 + 9 + 3 = 29 -> 2 + 9 = 11 -> 1 + 1 = 2

Communication & Style Preferences

  • Provide the solution in a Python code block.
  • Include comments explaining the summation loop or recursion.

Triggers

  • make python code for digital root
  • sum digits until single digit
  • reduce number to single digit
  • calculate repeated digit sum
  • python code for 16 -> 1 + 6 = 7

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.