dutch-auction-patterns

dutch-auction-patterns is a skill for Claude Code, Codex from ccashwell/evm-cortex. It costs 49 tokens per session (1,565 once invoked), scanned A, original, MIT.

A guide to Dutch auctions, where an item's price starts high and falls over time until buyers accept it. It also covers batch auctions and gradual price changes.

In plain words
What is it for?
Use it for token sales, NFT mints, fair launches, and auctions with prices that decrease linearly or exponentially.
Why use it?
It helps create predictable price discovery for sales while addressing trading advantages such as maximal extractable value, where transaction ordering can affect profits.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for token sales, NFT mints, fair launches, and auctions with prices that decrease linearly or exponentially.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ccashwell/evm-cortex/dutch-auction-patterns
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ccashwell/evm-cortex --skill dutch-auction-patterns
Clone the repo
git clone --depth 1 https://github.com/ccashwell/evm-cortex

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dutch-auction-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/ccashwell/evm-cortex/dutch-auction-patterns/github.svg)](https://agentmods.dev/skills/ccashwell/evm-cortex/dutch-auction-patterns)
Your own site
<a href="https://agentmods.dev/skills/ccashwell/evm-cortex/dutch-auction-patterns"><img src="https://agentmods.dev/badge/skills/ccashwell/evm-cortex/dutch-auction-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dutch-auction-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/ccashwell/evm-cortex/dutch-auction-patterns"><img src="https://agentmods.dev/badge/skills/ccashwell/evm-cortex/dutch-auction-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,565 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00049 $0.01565
Opus 5 $0.00024 $0.00783
Sonnet 5 $0.00010 $0.00313
Haiku 4.5 $0.00005 $0.00156

Measured 6d ago against content hash 7219d7ed218a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

dutch-auction-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/dutch-auction-patterns/SKILL.md · 203 lines

How it starts

The opening of the file, as written. The whole thing — 203 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Dutch Auction Patterns

How Dutch Auctions Work

Price starts high and decreases over time until buyers step in. This is inherently fair — buyers pay their maximum willingness-to-pay, and price discovery happens naturally.

price(t) = startPrice - (startPrice - endPrice) * elapsed / duration   // linear
price(t) = startPrice * decay^elapsed                                  // exponential

Linear Dutch Auction

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

contract DutchAuction is ReentrancyGuard {
    using SafeERC20 for IERC20;

    IERC20 public immutable token;
    address public immutable seller;

    uint256 public immutable startPrice;
    uint256 public immutable endPrice;
    uint256 public immutable startTime;
    uint256 public immutable duration;
    uint256 public immutable totalTokens;
    uint256 public tokensSold;

    constructor(
        IERC20 _token,
        uint256 _startPrice,
        uint256 _endPrice,
        uint256 _startTime,
        uint256 _duration,
        uint256 _totalTokens
    ) {
        require(_startPrice > _endPrice, "start must exceed end");
        require(_startTime >= block.timestamp, "start in future");
        require(_duration > 0, "duration > 0");

        token = _token;
        seller = msg.sender;
        startPrice = _startPrice;
        endPrice = _endPrice;
        startTime = _startTime;
        duration = _duration;
        totalTokens = _totalTokens;
    }

    function currentPrice() public view returns (uint256) {
        if (block.timestamp < startTime) return startPrice;

        uint256 elapsed = block.timestamp - startTime;
        if (elapsed >= duration) return endPrice;

        uint256 priceDrop = (startPrice - endPrice) * elapsed / duration;
        return startPrice - priceDrop;
    }

    function buy(uint256 amount) external payable nonReentrant {
        require(block.timestamp >= startTime, "not started");
        require(tokensSold + amount <= totalTokens, "sold out");

        uint256 price = currentPrice();
        uint256 cost = price * amount / 1e18;
        require(msg.value >= cost, "insufficient payment");

        tokensSold += amount;
        token.safeTransfer(msg.sender, amount);

        uint256 refund = msg.value - cost;
        if (refund > 0) {
            (bool ok, ) = msg.sender.call{value: refund}("");
            require(ok, "refund failed");
        }

        emit Purchase(msg.sender, amount, price);
    }

    function withdrawProceeds() external {
        require(msg.sender == seller, "only seller");
        (bool ok, ) = seller.call{value: address(this).balance}("");
        require(ok, "transfer failed");
    }

    function withdrawUnsold() external {
        require(msg.sender == seller, "only seller");
        require(block.timestamp >= startTime + duration, "auction active");
        uint256 unsold = totalTokens - tokensSold;
        if (unsold > 0) token.safeTransfer(seller, unsold);
    }

    event Purchase(address indexed buyer, uint256 amount, uint256 price);
}

Read the full file on GitHub · 203 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 203 lines · 49 tokens per session scan A 7219d7ed218a

Subscribe to this mod's changes

dutch-auction-patterns is a skill published in the GitHub repository ccashwell/evm-cortex (128 stars, last pushed 3d ago), licensed MIT. It adds 49 tokens to every session and 1,565 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

nft-standards

Implement NFT standards (ERC-721, ERC-1155) with proper metadata handling, minting strategies, and marketplace integration. Use when creating NFT contracts, building NFT marketplaces, or implementing digital asset systems.

wshobson/agents · 48 tokens

nft-standards

Implement NFT standards (ERC-721, ERC-1155) with proper metadata handling, minting strategies, and marketplace integration. Use when creating NFT contracts, building NFT marketplaces, or implementing digital asset systems.

rmyndharis/antigravity-skills · 48 tokens

agentic-commerce-forthecult

Agentic Commerce skills enables agents to autonomously browse and search for quality lifestyle, wellness, and tech products and gifts, view details, create orders with multi-chain payments (Solana, Ethereum, Base, Polygon, Arbitrum, Bitcoin, Dogecoin, Monero), apply CULT token-holder discounts, and track orders from…

LeoYeAI/openclaw-master-skills · 106 tokens

opensea

Query OpenSea marketplace data — listings, offers, sales / events, floor prices, collection stats, drops, traits — and execute Seaport trades via the official @opensea/cli and OpenSea REST API across Ethereum, Base, Arbitrum, Optimism, Polygon, and more. Includes search across collections / NFTs / tokens / accounts.…

alchemyplatform/skills · 175 tokens

bitcoin-infrastructure-btcpay

BTCPay Server: open-source merchant payment processor. Self-hosted, supports BTC + Lightning + altcoins, plugin ecosystem, Lightning Address resolver, point-of-sale. USE WHEN: deploying merchant payments, integrating with BTCPay, building plugins.

claude-dev-suite/claude-dev-suite · 58 tokens

sell

Sell access to services via x402 payment gating. Create ServiceOffer CRDs that automatically health-check upstreams, create payment-gated routes, and optionally pull models and register on ERC-8004. Supports inference, HTTP, and fine-tuning service types. Use for ServiceOffer plumbing: listing offers, checking/waiting…

ObolNetwork/obol-stack · 103 tokens