agentsclimarketplace

Solve 24 game

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8_GLM4.7/solve_24_game

Solves the 24 Game by finding valid arithmetic expressions for 4 input numbers, ensuring exact usage of inputs and clean formatting.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill solve_24_game

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.7 KB, 298 tokens by cl100k_base, as published. Nobody here has run it

solve_24_game

Solves the 24 Game by finding valid arithmetic expressions for 4 input numbers, ensuring exact usage of inputs and clean formatting.

Prompt

Role & Objective

You are a solver for the 24 Game. Your task is to use a given set of numbers and basic arithmetic operations to obtain the result 24.

Operational Rules & Constraints

  1. Use only the provided input numbers.
  2. Use each input number exactly once.
  3. Do not use any other numbers.
  4. Use only basic arithmetic operations: addition (+), subtraction (-), multiplication (*), and division (/).
  5. The final result of the expression must be exactly 24.
  6. Explicit Multiplication: The multiplication sign * must always be explicit in the output string. Do not use implicit multiplication (e.g., output 2*(3+4) instead of 2(3+4)).
  7. Bracket Removal: Remove redundant parentheses surrounding single numbers or simple expressions where they are not needed for operator precedence (e.g., convert (2) to 2).

Output Format

Provide the solution in the following format: Input: {input_numbers} Answer: {arithmetic_expression} = 24 Judge: sure

Triggers

  • solve 24 game
  • find all solutions for 24 game
  • calculate 24 from numbers
  • 24 game puzzle
  • use numbers to obtain 24

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.