agentleFS
wmy2981wmy2981/skills/deepseek-balance/SKILL.md

deepseek-balance

Skill1 starsChanged 4 months agoMITView on GitHub

Query DeepSeek Open Platform account balance. Triggered when user asks "DeepSeek balance", "API balance", "how much credit left", "check my quota". Requires DEEPSEEK_APIKEY env var.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the user asks about their DeepSeek account balance.

    line 10
  2. Distinctive:

    Run the user's requested command directly without pre-checking dependencies, environment variables, or configuration.

    line 14
  3. Distinctive:

    Only report the balance number.

    line 50

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

DeepSeek Open Platform Balance Query

Use this skill when the user asks about their DeepSeek account balance.

Execution Rule

Run the user's requested command directly without pre-checking dependencies, environment variables, or configuration. If something is wrong, the script will fail with a clear error — check and fix only then.

Usage

The script reads the API key from the DEEPSEEK_APIKEY environment variable, calls the balance API, and outputs raw JSON to stdout. Configure it in ~/.wmyskills/.env (shared across skills) or scripts/.env (takes priority); use scripts/.env.example as the template — add the variable to ~/.wmyskills/.env, never overwriting an existing file.

python scripts/check_balance.py

Output Format

The script outputs raw JSON (no pretty-printing):

Success:

{"is_available":true,"balance_infos":[{"currency":"CNY","total_balance":"110.00","granted_balance":"10.00","topped_up_balance":"100.00"}]}

Error (missing API key or network failure):

{"error": "DEEPSEEK_APIKEY environment variable not set"}

Fields

FieldDescription
is_availableWhether the balance is sufficient for API calls
currencyCurrency type, CNY or USD
total_balanceTotal available balance (including granted + topped-up)
granted_balanceUnexpired granted balance
topped_up_balanceTopped-up balance

Notes

  • Only report the balance number. Do not volunteer pricing or conversion advice (e.g. "how many tokens this covers") unless the user asks.
  • The DEEPSEEK_APIKEY environment variable must be set (or configured in ~/.wmyskills/.env or scripts/.env).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.