Agent skill

Algo Price Elasticity

by asgard-ai-platform in asgard-ai-platform/skills

Calculate price elasticity of demand to quantify how price changes affect sales volume.

MITAuto-check passed

Install Algo Price Elasticity

skills CLI
$ npx skills add asgard-ai-platform/skills --skill algo-price-elasticity -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install asgard-ai-platform/skills algo-price-elasticity --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/asgard-ai-platform/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/algo-price-elasticity .claude/skills/algo-price-elasticity && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
algo-price-elasticity
GitHub stars
242
Token cost
~1.1k tokens
SKILL.md length
376 words
Files
5 (incl. scripts, references)
Skills in repo
207
Repo updated
First seen
Licence
MIT

At a glance

Calculate price elasticity of demand to quantify how price changes affect sales volume.

  • Works in 4 steps: Input Validation → Core Algorithm → Verification → …
  • The user needs to estimate demand sensitivity
  • SKILL.md covers Overview, When to Use, Algorithm and Output Format, plus 4 more sections
  • Runs Python scripts from its folder; calls python

What it does

Algo Price Elasticity is an agent skill from asgard-ai-platform/skills. Calculate price elasticity of demand to quantify how price changes affect sales volume. Use this skill when the user needs to estimate demand sensitivity, set optimal prices, or evaluate the revenue impact of price changes — even if they say 'how sensitive are customers to price', 'will a price increase hurt sales', or 'elasticity calculation'.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts and reference files (for example `examples/sample_input.json`, `references/cross-price.md` and `references/regression-estimation.md`).

The repository describes itself as: 301 open-source coding agent skills across 22 domains — methodology, judgment & gotchas packaged as Claude Agent Skills for the Asgard AI Platform. The licence is MIT.

When your agent uses it

  • The user needs to estimate demand sensitivity
  • Set optimal prices
  • Evaluate the revenue impact of price changes — even if they say how sensitive are customers to price
  • Will a price increase hurt sales

Example prompts

  • “how sensitive are customers to price”
  • “will a price increase hurt sales”
  • “elasticity calculation”
  • “/algo-price-elasticity”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Input Validation
  2. Core Algorithm
  3. Verification
  4. Output

What it can do on your machine

Read from SKILL.md and the folder at commit 4e7f4f8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Algo Price Elasticity loads about 1.1k tokens when it runs, and up to ~5.6k if it reads all its reference files. Until then it costs about 92 tokens; SKILL.md has 376 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~92
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from asgard-ai-platform/skills at commit 4e7f4f8, republished under its MIT licence (© asgard-ai-platform). 376 words, ~1,081 tokens.

Download SKILL.mdSave it as .claude/skills/algo-price-elasticity/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
algo-price-elasticity
description
Calculate price elasticity of demand to quantify how price changes affect sales volume. Use this skill when the user needs to estimate demand sensitivity, set optimal prices, or evaluate the revenue impact of price changes — even if they say 'how sensitive are customers to price', 'will a price increase hurt sales', or 'elasticity calculation'.
metadata.category
WP-39 定價演算法
metadata.tags
pricing, elasticity, demand-analysis, economics

Price Elasticity of Demand

Overview

Price elasticity measures the percentage change in quantity demanded for a 1% change in price. Ed = %ΔQ / %ΔP. |Ed| > 1 = elastic (price-sensitive), |Ed| < 1 = inelastic (price-insensitive). Critical for pricing decisions and revenue optimization.

When to Use

Trigger conditions:

  • Estimating how a price change will affect unit sales and revenue
  • Determining if demand is elastic or inelastic for a product
  • Optimizing price for maximum revenue or profit

When NOT to use:

  • When you need consumer willingness-to-pay distribution (use Van Westendorp or conjoint)
  • When pricing multiple products together (use bundle pricing)

Algorithm

IRON LAW: Elasticity Is NOT Constant Along a Linear Demand Curve
It varies at every price point. At high prices, demand is elastic
(small price increase → big volume drop). At low prices, demand is
inelastic. Always calculate at the SPECIFIC price point of interest.
Revenue-maximizing price is where Ed = -1 (unit elastic).
Phase 1: Input Validation

Collect: price-quantity pairs over time (or across markets). Control for: seasonality, promotions, competitor actions, other confounders. Gate: Minimum 10 price-quantity observations, confounders identified.

Phase 2: Core Algorithm

Point elasticity: Ed = (dQ/dP) × (P/Q) at a specific price point Arc elasticity: Ed = ((Q₂-Q₁)/((Q₂+Q₁)/2)) / ((P₂-P₁)/((P₂+P₁)/2)) between two points Regression method: log(Q) = α + β×log(P) + controls → β is the elasticity (constant elasticity model)

Phase 3: Verification

Check: sign should be negative (price up → quantity down). Cross-validate with holdout periods. Gate: Elasticity is negative, confidence interval is reasonable.

Phase 4: Output

Return elasticity estimate with revenue impact projection.

Output Format

json
{
  "elasticity": -1.5,
  "interpretation": "elastic — 1% price increase → 1.5% quantity decrease",
  "revenue_impact": {"price_change_pct": 10, "quantity_change_pct": -15, "revenue_change_pct": -6.5},
  "metadata": {"method": "log-log regression", "r_squared": 0.82, "observations": 52}
}

Examples

Sample I/O

Input: Price increased 10% from $100 to $110, quantity dropped from 1000 to 850 Expected: Arc elasticity = ((-150/925) / (10/105)) = -1.70 (elastic)

Show full SKILL.md (159 more words)Show less
Edge Cases
InputExpectedWhy
Luxury goodMay be positive (Veblen)Higher price → higher perceived value
Necessity (insulin)Near zeroDemand barely responds to price
Perfect substitute availableVery elastic (< -3)Customers switch immediately

Gotchas

  • Omitted variable bias: Without controlling for advertising, seasonality, and competitor prices, elasticity estimates are biased.
  • Short-run vs long-run: Short-run elasticity is typically lower (customers are locked in). Long-run gives them time to find substitutes.
  • Cross-price elasticity: Demand for product A may depend on product B's price. Ignoring this in a portfolio context leads to suboptimal pricing.
  • Asymmetric elasticity: Consumers may react differently to price increases vs decreases. Don't assume symmetry.
  • Small sample noise: With few observations, elasticity estimates have wide confidence intervals. Report intervals, not just point estimates.

Scripts

ScriptDescriptionUsage
scripts/arc_elasticity.pyCompute arc elasticity and revenue impactpython scripts/arc_elasticity.py --help

Run python scripts/arc_elasticity.py --verify to execute built-in sanity tests.

References

  • For regression-based elasticity estimation, see references/regression-estimation.md
  • For cross-price elasticity analysis, see references/cross-price.md

© asgard-ai-platform, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (scripts, references) in algo-price-elasticity of asgard-ai-platform/skills.

  • SKILL.md
  • examples/sample_input.json
  • references/cross-price.md
  • references/regression-estimation.md
  • scripts/arc_elasticity.py

Open the folder on GitHubat commit 4e7f4f8

Compare with similar skills

Algo Price Elasticity next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Algo Price Elasticity compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Algo Price Elasticity this skillasgard-ai-platform/skills242—~1.1kAutomated safety check: PassMIT
Price Elasticity Calculatorrevfactory/harness-1001.3k—~1.3kAutomated safety check: PassApache-2.0
Pricingsickn33/agentic-awesome-skills47k1 repos~1.9kAutomated safety check: PassMIT
Pricing Calculatormohitagw15856/pm-claude-skills1.4k—~942Automated safety check: PassMIT
Pricing Strategyphuryn/pm-skills27k—~913Automated safety check: PassMIT
Pricing Strategyalirezarezvani/claude-skills28k1 repos~3.5kAutomated safety check: PassMIT

Similar skills

  • Price Elasticity Calculator

    revfactory/harness-100

    A methodology for calculating price elasticity and deriving optimal pricing.

    1.3k GitHub stars~1.3k tokensUpdated 6 mo ago
    Research & ScienceAuto-check passed
  • Pricing

    sickn33/agentic-awesome-skills

    When the user wants help with pricing decisions, packaging, or monetization strategy.

    47k GitHub starsUsed in 1 repo~1.9k tokens
    Sales & SupportAuto-check passed
  • Pricing Calculator

    mohitagw15856/pm-claude-skills

    Model pricing scenarios — tiers, margins, break-even, and the revenue impact of a price change.

    1.4k GitHub stars~942 tokensUpdated 2 days ago
    Sales & SupportAuto-check passed
  • Pricing Strategy

    phuryn/pm-skills

    Analyze and design pricing strategies including pricing models, competitive pricing analysis, willingness-to-pay estimation, and price elasticity.

    27k GitHub stars~913 tokensUpdated yesterday
    Sales & SupportAuto-check passed
  • Pricing Strategy

    alirezarezvani/claude-skills

    Design, optimize, and communicate SaaS pricing — tier structure, value metrics, pricing pages, and price increase strategy.

    28k GitHub starsUsed in 1 repo~3.5k tokens
    Sales & SupportAuto-check passed
  • Pricing Strategist

    alirezarezvani/claude-skills

    A skill your agent uses when designing or revisiting product pricing — selecting a pricing model (subscription seat-based, usage-based, value-based, freemium, or hybrid), running Van Westendorp…

    28k GitHub stars~2.3k tokensUpdated 1 mo ago
    Sales & SupportAuto-check passed

More from asgard-ai-platform/skills

All 207 skills in this repo
  • Algo Ecom Bm25

    asgard-ai-platform/skills

    Implement BM25 ranking function for e-commerce product search relevance scoring.

    242 GitHub stars~1.4k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Mfg Cpk

    asgard-ai-platform/skills

    Calculate Cpk process capability index to assess whether a process meets specification requirements.

    242 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Rank Bayesian

    asgard-ai-platform/skills

    Apply Bayesian averaging to rank items by combining observed ratings with prior expectations.

    242 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Rank Elo

    asgard-ai-platform/skills

    Implement Elo rating system to rank items or players from pairwise comparison outcomes.

    242 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Rank Wilson

    asgard-ai-platform/skills

    Calculate Wilson Score confidence intervals for ranking items by positive proportion with sample size correction.

    242 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Risk Altman Z

    asgard-ai-platform/skills

    Calculate Altman Z-Score to predict corporate bankruptcy probability from financial ratios.

    242 GitHub stars~1.5k tokensUpdated 4 mo ago
    Auto-check passed

Questions about Algo Price Elasticity

What does Algo Price Elasticity do?

Calculate price elasticity of demand to quantify how price changes affect sales volume. Algo Price Elasticity is an agent skill from asgard-ai-platform/skills. Calculate price elasticity of demand to quantify how price changes affect sales volume.

When should I use Algo Price Elasticity?

Algo Price Elasticity fits situations like: the user needs to estimate demand sensitivity; set optimal prices; evaluate the revenue impact of price changes — even if they say how sensitive are customers to price; will a price increase hurt sales.

How do I install Algo Price Elasticity in Claude Code?

Run `npx skills add asgard-ai-platform/skills --skill algo-price-elasticity -a claude-code`. Or copy the skill folder (algo-price-elasticity in asgard-ai-platform/skills) into .claude/skills/algo-price-elasticity in your project. Claude Code loads it when a task matches its description.

How do I install Algo Price Elasticity in Codex?

Run `npx skills add asgard-ai-platform/skills --skill algo-price-elasticity -a codex`. Or copy the skill folder (algo-price-elasticity in asgard-ai-platform/skills) into .agents/skills/algo-price-elasticity in your project. Codex loads it when a task matches its description.

Can I use Algo Price Elasticity in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add asgard-ai-platform/skills --skill algo-price-elasticity -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/algo-price-elasticity, .gemini/skills/algo-price-elasticity, .github/skills/algo-price-elasticity and .opencode/skills/algo-price-elasticity in your project.

What does Algo Price Elasticity need to run?

Going by SKILL.md and its folder, Algo Price Elasticity needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Algo Price Elasticity access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Algo Price Elasticity safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Algo Price Elasticity use?

Algo Price Elasticity is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Algo Price Elasticity use?

About 1.1k tokens (SKILL.md is roughly 4.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.6k tokens, read only when the agent opens those files.

What are the alternatives to Algo Price Elasticity?

Skills that share tags, products or a category with Algo Price Elasticity: Price Elasticity Calculator (revfactory/harness-100, 1.3k stars), Pricing (sickn33/agentic-awesome-skills, 47k stars), Pricing Calculator (mohitagw15856/pm-claude-skills, 1.4k stars) and Pricing Strategy (phuryn/pm-skills, 27k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Algo Price Elasticity?

asgard-ai-platform (a GitHub organization) maintains it in asgard-ai-platform/skills, which has 242 GitHub stars. The repository holds 207 skills in this directory. The repository was last updated on June 6, 2026.

Source: asgard-ai-platform/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.