Xpersona
C

Cournot

CLAWHUB · Unverified

Cournot probabilities, divergence rankings, and prepaid calls

62
Rank
84
Safety
16k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 16.3K downloads reported by the source. Last updated 11/16/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s1721nsja7086t8rrbwy054hn58darkt:cournot
  1. Install using `clawhub skill install s1721nsja7086t8rrbwy054hn58darkt:cournot` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/cournot-ai/cournot before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-cournot-ai-cournot/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

106,061 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: cournot
description: Query Cournot probabilities and divergence rankings; manage prepaid calls, balances, and API keys. Use only for /cournot or an explicit request to use Cournot, not for casual odds questions.
metadata:
  openclaw:
    homepage: https://skill.cournot.ai/
    requires:
      bins:
        - node
    envVars:
      - name: COURNOT_CREDENTIAL_DIR
        required: false
        description: Optional caller-configured private storage directory; defaults to ~/.cournot. Preserve its supplied value unchanged.
      - name: COURNOT_API_KEY
        required: false
        description: Optional key overriding the saved credentials for COURNOT_API_KEY_BASE; never required for anonymous use.
      - name: COURNOT_API_KEY_BASE
        required: false
        description: Origin that owns the environment key; defaults to interface.cournot.ai. Set explicitly for keys belonging to other service origins.
      - name: COURNOT_API_BASE
        required: false
        description: Optional API base override; all production operations default to interface.cournot.ai.
      - name: COURNOT_WALLET_COMMAND
        required: false
        description: Optional compatible wallet command; defaults to baw when a paid request requires a wallet.
      - name: COURNOT_INTENT_DIR
        required: false
        description: Optional directory for short-lived payment intent files; defaults to the operating system temporary directory.
---

# Cournot

Use only for `/cournot` or an explicit request to use Cournot. Reply in the user's language. The API supplies the assessment and evidence; never invent a second estimate.

## Customer communication

Apply these principles silently to every customer-facing message, across queries, account operations, payments, recovery and troubleshooting. They govern how to write; they are not content to announce or explain to the customer:

- Ground the reply in the actual request and client result. Explain the current status, consequences for the user, and the next useful action. Distinguish a planned operation from a completed one; retain uncertainty when completion, payment or remaining calls is unconfirmed.
- Use the language of the user's actual request consistently in all replies, with ordinary product terms and clear units. Do not infer the customer's language from documentation, examples or tool-output language. Localize terms such as API key, rotation, calls and latest payment preview naturally. Preserve API evidence and market-title wording according to the query and response references. Brevity applies to explanatory prose, not to required result fields: do not omit data required by a response contract.
- Keep communication proportional to the decision. Acknowledge the current task briefly without narrating a plan or requesting authorization. Give further progress only when there is a meaningful update or delay. Present an available result or choice directly. Do not narrate internal reading, routing, validati

_meta.json

{
  "ownerId": "kn7fe5b7rnvqcnec801qc03q998dkn5p",
  "slug": "cournot",
  "version": "1.0.1",
  "publishedAt": 1793874881971
}

references/account.md

# Credentials and account management

Use only `scripts/cournot-client.mjs` for these operations. No key goes in a URL, command argument, payment intent, error log, or generic API output. API keys and wallet secrets are different: a user may supply a Cournot key for import, but never request a wallet private key or seed phrase.

## Balance, key, import

```sh
node <skill-root>/scripts/cournot-client.mjs balance
node <skill-root>/scripts/cournot-client.mjs key
node <skill-root>/scripts/cournot-client.mjs import
```

`import` reads the key from **stdin**, not arguments. Use a tool's stdin channel or a hidden local terminal prompt. Do not construct `echo <key>` / inline shell commands containing the secret. If secure input is unavailable, ask the user to run the command locally and supply the key through stdin. Do not echo an imported key back into chat.

- `balance`: show balance and masked key. Label `balance.remaining` as remaining calls, `balance.total` as total calls, and `balance.used` as used calls, localized to the user's language; never label total calls as the available balance. Apply these labels to every account/key/purchase result. `/account` does not return the free allowance; do not promise that it does.
- `key`: run the `key` command first to verify and display the saved key; do not start wallet recovery unless that command reports missing or invalid credentials. This is the only explicit action allowed to reveal `api_key`. Include the client's secrecy warning.
- `import`: validate through `/account` before atomically replacing the saved key. Report import success only when the client returns `credentialSource=import` and `saved=true`; an ordinary account read does not prove import. Invalid or empty keys preserve the old file. Accept KOL/manual keys, including those with no wallet. Import never rotates a key or buys a pack.
- `credential_missing`: ordinary queries still work anonymously. For an explicit `key` request, offer wallet recovery below; for balance, explain that no local key is configured and offer import or wallet recovery.
- `key_invalid`: likely invalid or rotated elsewhere; use another device's current key plus import, or wallet recovery. Do not automatically rotate.

Credentials are stored as `~/.cournot/credentials/<URL-encoded-origin>.json`, shared by agents running as the same OS user. Separate files isolate dev, production and local tests. The caller may set `COURNOT_CREDENTIAL_DIR` to a private storage directory; preserve that supplied value rather than constructing a new path. Unix directory/file modes are 700/600; on Windows ensure the user profile's ACL restricts access. Files are plaintext, not encrypted. `COURNOT_API_KEY` has priority only for its `COURNOT_API_KEY_BASE` (defaults to production). The client never edits environment variables or host configuration files.

If a save returns `active=false`, explain that the environment variable still overrides the file. Do not claim the new key is active, expose e

references/divergence-flow.md

# Divergence ranking

Read for `/cournot divergence [count]`, including its payment and error follow-ups. This ranks cached Cournot probabilities against cached market prices. Do not resolve markets, request a fresh probability, browse for evidence, or add analysis.

## Input and request

Only the first word after `/cournot` triggers `divergence`; an event containing that word elsewhere stays in [query-flow.md](query-flow.md). Interpret all text after the command as a count: `50`, `top 20`, and equivalent natural-language counts in the user's language become integer limits. No text means omit `--limit` entirely so the backend uses its default of 10. For ambiguous, noninteger or out-of-range counts, explain the integer range 1–100 and ask for a new count without making an API call. Never truncate, clamp, or ignore unrecognized text.

An explicit count requires both `--limit` and `--count-text`: copy the entire original count suffix unchanged, using safe shell quoting. Examples: `--limit 50 --count-text '50'`, `--limit 20 --count-text 'top 20'`. Preserve non-English count text in its original language too. The client rejects mismatched numeric conversions, including truncating `2.5` to `2` or clamping `101` to `100`. Do not change the original text to bypass a rejection. For an omitted count, omit both flags. The original text is validation context only and is never sent to the API.

Before making the request, determine the reply language from the user's actual request and conversation. The English `divergence` keyword, API titles and documentation examples do not select the reply language. Supply all three row labels in that language with the required `--labels-json`, including for an omitted/default count. You choose the wording once; JS applies it to every row without detecting a language or falling back to English. Missing or incomplete labels fail locally before the request. Direction labels must mean only "Cournot above market" and "Cournot below market". The `link` label is the visible link text and means "View"; do not append the URL to that text.

- Chinese request: `--labels-json '{"cournot_above":"Cournot 高于市场","cournot_below":"Cournot 低于市场","link":"查看"}'`
- English request: `--labels-json '{"cournot_above":"Cournot above market","cournot_below":"Cournot below market","link":"View"}'`
- Other languages: localize all three values to the user's language too. These examples do not restrict supported languages to Chinese and English.

Never pass `--language` to `divergence`, including payment previews with `--per-call true`. That option belongs to pack commands; divergence accepts localized row labels only.

Example in English (localize the values for the actual user):

```sh
node <skill-root>/scripts/cournot-client.mjs divergence --labels-json '{"cournot_above":"Cournot above market","cournot_below":"Cournot below market","link":"View"}' > '<unique-page-result.json>'
```

Divergence uses the same production default as event queries, `https:

references/errors.md

# Customer-facing errors

Apply this guide to every error in both progress updates and final replies. Use the user's language and ordinary product wording: what happened to their request, what is known about payment/calls/credentials, and the next useful action. Always include a concrete next action or question, including for wallet blockers. Usually two or three short sentences suffice. Avoid repeating an error in several updates.

Do not print internal state names, error codes, raw server messages, HTTP statuses, JSON, intent/recovery IDs, file paths or implementation details in routine error replies. Preserve diagnostic fields internally for recovery. If the user explicitly requests troubleshooting or support details, provide relevant sanitized diagnostics separately; never expose secrets or signing payloads/parameters. Signing details remain internal even in troubleshooting. This does not hide required payment-preview fields, complete route `networkLabel` values (including CAIP and mainnet/testnet labels), public transaction hashes or a host-required approval explanation.

Base the explanation on the returned state and known mappings below. An HTTP success status alone does not establish business success. A server error is not evidence of timeout, insufficient funds, expiry, a refund or a chain failure. For unfamiliar errors, say the requested operation could not be confirmed and offer an appropriate next step; do not invent a cause or copy the raw reason. The only automatic request retry is the client’s bounded, same-signature authorization-timing retry described in [payment.md](payment.md), covered by the original payment confirmation. After a network, API or response-validation failure, never retry, pay, rotate, recover or switch wallet automatically because that error occurred. A local CLI syntax rejection before HTTP may be corrected from the documented arguments; it is not a repeated service request. Never rewrite the user's invalid or ambiguous count to bypass validation.

| Internal result / evidence | Customer meaning and next step |
|---|---|
| `pack_exhausted`, `payment_choice_required` | No ranking or assessment was obtained through the current allowance. Offer topup, import and per-call payment equally; wait for the user's choice. Do not start a wallet or charge automatically. |
| `invalid_response` after divergence | A response arrived but its ranking cannot be displayed reliably. Report any returned billing route and quota using the normal billing rules: `billing=api_key` means a prepaid call was used, even if `charged=false`. Do not contradict that evidence by claiming deduction is unknown. Only absent or contradictory billing evidence is uncertain. Do not retry. Offer checking balance or contacting support. |
| `purchase_unknown`, including business `22000` / `invalid_transaction_state` | The pack has not been confirmed as credited and payment status remains uncertain. A returned settlement exception can be described as a pay

Sponsored

Ads related to Cournot and adjacent AI workflows.