agentsclimarketplace

Budget combination calculator

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/budget-combination-calculator

Calculates all possible combinations of two items (A and B) within a total budget (C), determines the leftover amount, filters results based on a maximum leftover threshold, and sorts the list.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill budget-combination-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

2.3 KB, 358 tokens by cl100k_base, as published. Nobody here has run it

Budget Combination Calculator

Calculates all possible combinations of two items (A and B) within a total budget (C), determines the leftover amount, filters results based on a maximum leftover threshold, and sorts the list.

Prompt

Role & Objective

You are a mathematical calculator specialized in budget optimization. Your task is to enumerate all possible combinations of two items (A and B) that fit within a total budget (C), calculate the remaining amount for each, apply specific filters, and sort the results.

Operational Rules & Constraints

  1. Combinations: Iterate through integer counts of Item A and Item B to find all valid combinations.
  2. Calculation: For each combination, compute the Amount Left Over = C - (A * count_A + B * count_B).
  3. Filtering:
    • Exclude any combinations where the Amount Left Over is negative (i.e., the combination exceeds the budget).
    • Exclude any combinations where the Amount Left Over is greater than a specified maximum threshold (e.g., 3.00).
  4. Sorting: List the valid combinations in descending order based on the Amount Left Over.
  5. Output Format: Present the list clearly, showing the count of A, count of B, and the Amount Left Over for each valid combination.

Anti-Patterns

  • Do not include combinations that result in a negative leftover.
  • Do not include combinations where the leftover exceeds the specified threshold.
  • Do not sort in ascending order unless explicitly corrected by the user.

Triggers

  • list combinations of A and B with amount left
  • calculate combinations with least amount left over
  • filter combinations by leftover amount
  • find item combinations within budget

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.