Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Miles

БесплатноБез исполняемых скриптовНе проверен

Ask Miles (askmiles.ai) card and points questions against the owner's real wallet: which card to get next, keep-or-cancel math, transfer partners and ratios…

assarehот assareh813 установок в других каталогах

Об этом скилле

Ask Miles

Last updated 2026-11-28. The latest version of this file lives at https://askmiles.ai/skills/ask-miles.md; re-fetch it to upgrade.

Miles is a credit card rewards engine. Through this skill your agent asks it one question at a time and gets back the same answer Miles gives on its own site, reasoned against the owner's real wallet with Miles' current card catalog, valuations, and transfer data. Miles does the reasoning on its side; you spend one tool call where the MCP server offers 63.

The endpoint

OpenAI-compatible chat completions:

POST https://askmiles.ai/v1/chat/completions
Authorization: Bearer <credential>
{"model": "miles", "messages": [{"role": "user", "content": "<question>"}]}
  • Model is miles, the only one.
  • Use a real client library (openai-python, openai-node) or set your own User-Agent. The stock Python-urllib User-Agent gets an opaque Cloudflare 403, not an API error.
  • Non-streaming responses carry a miles object with tools_called and duration_ms. Read it: see Provenance below.
  • Turns can take a while. Miles runs classification, tool rounds, and synthesis before answering. Allow at least 90 seconds.

Authentication

Chat completions come with Membership, including during a Membership trial. If a request returns 403 membership_required, share the Membership link from the error with the account owner.

Two credentials reach this endpoint. If you are the account owner's own agent, use a personal API key: that is almost always the right one.

Personal API key (start here)

Ask the owner to turn on Connected AI Apps in Settings (it starts off), then mint one at https://askmiles.ai/settings?utm_source=skill&utm_medium=assistant#api-keys: "API keys" → name it after your agent → Create. It is shown once, looks like miles_sk_…, and is pasted straight into any OpenAI-compatible client:

from openai import OpenAI
client = OpenAI(base_url="https://askmiles.ai/v1", api_key="miles_sk_…")

No browser dance, no registration, no refresh loop. The key does not expire; it lives until the owner revokes it in the same place. Store it the way you store any other secret: never in a file you commit, never echoed into a transcript. If a call returns 401 invalid_api_key, the key was revoked or mistyped: ask the owner for a new one, don't retry.

While the owner has Connected AI Apps off, creating a key is refused and an existing key gets 403 connections_paused. The fix is theirs to make in Settings, not something to retry around.

OAuth 2.1 (only to reach someone else's account)

Use this only when your agent must ask on behalf of a person who is not the one who configured it: an installed app with many users, not a personal agent. OAuth 2.1 against mcp.askmiles.ai, scope miles:chat, with dynamic client registration. The grant belongs to the Miles account of the person who approves it, and requires a one-time browser consent. Access tokens expire after one hour, so store the refresh token and refresh. An app other people use, free or paid, needs written permission before it ships: email [email protected] first (https://askmiles.ai/terms#personal-use).

Getting a token: follow this recipe, don't improvise. In particular, do NOT register mcp.askmiles.ai as an MCP server (claude mcp add, MCP connectors): that is a different integration. It grants MCP tool scopes and stores its token where your HTTP calls can't reach it, and it never produces a token this endpoint accepts.

  1. Discover. GET https://mcp.askmiles.ai/.well-known/oauth-authorization-server for the authorization, token, and registration endpoints. Every URL below comes from this document.
  2. Register once (DCR is unauthenticated). POST the registration endpoint with JSON: a client_name naming your agent, redirect_uris: ["http://127.0.0.1:<your port>/callback"] (loopback HTTP is supported per RFC 8252, so pick any free port), grant_types: ["authorization_code", "refresh_token"], response_types: ["code"], token_endpoint_auth_method: "client_secret_post", and scope: "miles:chat". Store the returned client_id and client_secret. They are reused for every refresh.
  3. Prepare. Generate a PKCE code_verifier and its S256 code_challenge, plus a state value, and listen once on your loopback port.
  4. Consent, the one human step. Send the account owner to the authorization endpoint with response_type=code, your client_id and redirect_uri, scope=miles:chat, state, code_challenge, and code_challenge_method=S256. They approve in a browser where they are signed in to askmiles.ai; the redirect hands your listener code and state. Reject a state that doesn't match yours.
  5. Exchange. POST the token endpoint (form-encoded): grant_type=authorization_code, the code, the same redirect_uri, client_id, client_secret, code_verifier. The
Полный SKILL.md на ClawHub

Установить Miles в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Miles?

Ask Miles (askmiles.ai) card and points questions against the owner's real wallet: which card to get next, keep-or-cancel math, transfer partners and ratios, award strategy, and which card to use for a purchase. Use when a current multiplier, active offer, or the owner's actual card lineup decides the answer.

Как установить скилл Miles?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Miles запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Miles с