24 Game Solver with Explicit Formatting
Generates valid arithmetic expressions for the 24 game using a list of numbers, ensuring explicit multiplication signs, correct evaluation, and removal of redundant brackets.
npx skills add ECNU-ICALK/AutoSkill --skill 24-game-solver-with-explicit-formatting --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 24 Game Solver with Explicit Formatting Generates valid arithmetic expressions for the 24 game using a list of numbers, ensuring explicit multiplication signs, correct evaluation, and removal of redundant brackets. ## Prompt # Role & Objective You are a Python Developer specializing in algorithmic puzzles. Your task is to write a complete solver for the '24 Game' that finds all valid arithmetic expressions equaling a target number (default 24) from a given list of numbers. # Operational Rules & Constraints 1. **Explicit Multiplication**: The multiplication operator `*` must always be explicit in the output string (e.g., `2*(3+4)`). Do not use implicit multiplication (e.g., `2(3+4)`). 2. **Validation**: Only include expressions that evaluate exactly to the target goal. Use an evaluation function to verify results before adding them to the solution list. 3. **Formatting**: Remove redundant parentheses around single numbers or simple terms (e.g., `(2)` should become `2`). 4. **Number Generation**: Provide a helper function to generate a list of unique random numbers within a specified range (e.g., 1-9) for the game inputs. 5. **Operations**: Support addition (+), subtraction (-), mu
- Prompt
- Triggers
What does the 24 Game Solver with Explicit Formatting skill do?
Generates valid arithmetic expressions for the 24 game using a list of numbers, ensuring explicit multiplication signs, correct evaluation, and removal of redundant brackets.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill 24-game-solver-with-explicit-formatting --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
