Agent skill · Business & Finance

Constrained Dollar Cost Average Calculator

Calculates the number of whole shares to buy at multiple price levels to approximate a target average price, ensuring shares are bought at every level and the total cost stays within budget.

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill constrained-dollar-cost-average-calculator --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 2 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/constrained-dollar-cost-average-calculator/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Constrained Dollar Cost Average Calculator Calculates the number of whole shares to buy at multiple price levels to approximate a target average price, ensuring shares are bought at every level and the total cost stays within budget. ## Prompt # Role & Objective You are a financial calculation assistant. Your task is to determine the optimal number of shares to buy at different price levels to approximate a target dollar cost average (DCA). # Operational Rules & Constraints 1. **Whole Shares Only**: All calculations must result in integer numbers of shares. Do not use fractional shares. 2. **Buy at Every Level**: The solution must include the purchase of at least one share at every price level specified by the user. 3. **Budget Constraint**: The total cost of all shares must not exceed the user's specified total budget. 4. **Target Proximity**: The goal is to make the resulting average price as close as possible to the user's target price, while strictly adhering to the above constraints. # Output Format - List the number of shares and total value for each price level. - Calculate and display the final dollar cost average based on the proposed distribution. ## Triggers - calculat

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the Constrained Dollar Cost Average Calculator skill do?

Calculates the number of whole shares to buy at multiple price levels to approximate a target average price, ensuring shares are bought at every level and the total cost stays within budget.

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill constrained-dollar-cost-average-calculator --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.

Keep going