maidan-credits

maidan-credits is a skill for Cursor from david-engelmann/maidan. It costs 97 tokens per session (967 once invoked), scanned A, original, MIT.

A guide for paying for Maidan workspace usage with prepaid credits after the free allowance is exceeded. It checks the balance and explains how to add funds, but does not move money itself.

In plain words
What is it for?
Use it to check a workspace's credit balance, identify the usage meter and prices, and prepare a top-up when calls are refused.
Why use it?
It helps diagnose refused requests caused by an empty or negative credit balance instead of treating them as software failures.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin.

Part of the maidan plugin — 12 skills, 1 MCP server shipped together

Good fit Use it to check a workspace's credit balance, identify the usage meter and prices, and prepare a top-up when calls are refused.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/david-engelmann/maidan/maidan-credits
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 david-engelmann/maidan --skill maidan-credits
Clone the repo
git clone --depth 1 https://github.com/david-engelmann/maidan

Made for: Cursor.

Or install maidan, the plugin that ships this one along with the rest of its 12 skills, 1 MCP server.

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 maidan-credits

README.md
[![agentmods](https://agentmods.dev/badge/skills/david-engelmann/maidan/maidan-credits/github.svg)](https://agentmods.dev/skills/david-engelmann/maidan/maidan-credits)
Your own site
<a href="https://agentmods.dev/skills/david-engelmann/maidan/maidan-credits"><img src="https://agentmods.dev/badge/skills/david-engelmann/maidan/maidan-credits/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 maidan-credits

Your own site · 80×15
<a href="https://agentmods.dev/skills/david-engelmann/maidan/maidan-credits"><img src="https://agentmods.dev/badge/skills/david-engelmann/maidan/maidan-credits.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 967 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.
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.00097 $0.00967
Opus 5.5 $0.00039 $0.00387
Sonnet 5.5 $0.00019 $0.00193
Haiku 4.5 $0.00010 $0.00097

Measured 19d ago against content hash a9c0e8447533, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

maidan-credits 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 19d 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.

examples/claude-code/maidan-credits/SKILL.md · 75 lines

How it starts

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

Maidan credits

An open sign-up workspace on a hosted Maidan gets a free allowance each UTC month. Past it, on a meter the instance prices, usage is charged to the workspace's prepaid credits. When the balance cannot cover the charge, the work is refused until someone tops up:

  • over HTTP, 402 Payment Required, a problem whose detail names the meter (requests, mcp_calls, embedding_calls, deliveries, wasi_ms);
  • over MCP, a tool error (isError: true) with the same text, and structuredContent.meter.

stored_bytes is different: it is a hard cap that credits never lift. Past it, delete what the workspace no longer needs, or ask the operator.

Nothing here moves money by itself. Asking for a top-up only tells you what to pay and where.

When you are refused

  1. Call get_credits with your workspace_id (from whoami). It works past the cutoff. Read enabled and methods: if enabled is false this instance takes no payment, so tell the person and stop. Read balance_micros (USD micros; below zero means overage went unpaid) and prices, the cost per meter past the allowance.
  2. Decide how much to add. A few dollars covers a lot of calls at the listed prices; do not ask for more than the person allowed you to spend.
  3. Call top_up_credits with workspace_id, usd (whole dollars, 1 to 10000) and method.
    • usdc (the default) answers amount_micros, amount, address, chain, chain_id, usdc_contract, an eip681 wallet link and expires_at (24 hours).
    • card is a hosted checkout for a person. It is the next payment rail; until an instance configures it, the call says card top-ups are not configured here.
  4. Pay, or hand it on:
    • You have a wallet (a signer you were given for this): send exactly amount_micros base units of USDC, on that chain, to that address, before expires_at. The amount carries an offset in its last digits that names your workspace, so a rounded amount is not matched to you. Use a plain ERC-20 transfer from the usdc_contract; no memo is needed.
    • You have no wallet: give the person the eip681 link (most wallets open it) or the address, chain and exact amount, and say why: which meter, what it costs, and what you were doing. With card, give them the checkout link instead.
  5. Wait. The deposit counts once it has its confirmations (a few blocks on Base, well under a minute) and the watcher has read it. Call get_credits again: the balance rises, the intent leaves the open list, and the cutoff on priced meters lifts. Then retry the call that was refused.

Read the full file on GitHub · 75 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. 19d ago First seen · 75 lines · 97 tokens per session scan A a9c0e8447533

Subscribe to this mod's changes

maidan-credits is a skill published in the GitHub repository david-engelmann/maidan (11 stars, last pushed yesterday), licensed MIT. It adds 97 tokens to every session and 967 once invoked, about $0.0004 per session on Opus 5.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-11-11.

Related

maidan-credits compared with skills from other repositories

maidan-credits next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
maidan-creditsdavid-engelmann/maidanSkill11yesterdayMITA97Cursor
funding-usdcANAMIZED/YodMCPSkill13mo agononeA26Claude Code, Codex
social-media-intelligenceHKUDS/Vibe-TradingSkill39kyesterdayMITA28Claude Code, Codex
vibe-tradingHKUDS/Vibe-TradingSkill39kyesterdayMITA169Claude Code, Codex
factor-researchHKUDS/Vibe-TradingSkill39kyesterdayMITA32Claude Code, Codex
adr-hshareHKUDS/Vibe-TradingSkill39kyesterdayMITA50Claude Code, Codex
bottleneck-hunterHKUDS/Vibe-TradingSkill39kyesterdayMITA145Claude Code, Codex