Flowleap shared
Skill flowleap-ai/flowleap-plugins/plugins/flowleap/skills/flowleap-shared
Shared reference for every FlowLeap skill — authentication (OAuth device flow, fl_pat_ personal API tokens), credential storage, config precedence, global flags, and output formats. Trigger when a FlowLeap command needs credentials set up, a global flag explained, config file locations, or output-format guidance; for the overall command map start from the `flowleap` skill.From its SKILL.md
npx -y skills add flowleap-ai/flowleap-plugins --skill flowleap-sharedAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
6.2 KB, ~1.5k tokens by cl100k_base, as published. Nobody here has run it
FlowLeap CLI — Shared Reference
Shared authentication, configuration, and global-flag reference used by every
other FlowLeap skill. For the overall map of commands, skills, and workflows,
start from the flowleap skill.
Authentication
Every authenticated request sends Authorization: Bearer <credential> — either
a session JWT from the OAuth device flow or a long-lived personal API token
(fl_pat_…).
Environment variable overrides (highest priority):
FLOWLEAP_API_KEY— personal API token (fl_pat_…)FLOWLEAP_TOKEN— Bearer tokenFLOWLEAP_BASE_URL— API base URL
The login, token minting/listing/revocation, and 401 self-heal commands live in
flowleap-auth. Patent-provider keys (EPO OPS / USPTO ODP BYOK) live in
flowleap-keys.
Global Flags
| Flag | Description | Default |
|---|---|---|
--json | Shorthand for --output json | false |
--output <format> | Output format: json, table, human | human |
--base-url <url> | API base URL | https://api.flowleap.co |
--api-key <key> | Override stored API key (fl_pat_…) | — |
--token <token> | Override stored token | — |
--dry-run | Show request without executing | false |
--dry-run-redacted | Redact sensitive values from dry-run output; requires --dry-run | false |
--verbose, -v | Show request/response details | false |
Configuration
Config is stored in ~/.config/flowleap/config.toml. Credentials live
separately in ~/.config/flowleap/credentials.toml (written mode 0600).
flowleap config set base-url https://api.flowleap.co
flowleap config get base-url
Config Precedence
CLI flags > environment variables > config file
Output Formats
--json(or--output json) — Machine-readable JSON (best for agents)--output table— Formatted table--output human— Human-readable text (default)
When using FlowLeap as an AI agent, always pass --json for reliable parsing.
Subscription, Rate Limits & Exit Codes
All /v1 data routes require an active subscription and share a limit of
60 requests/minute/user. doctor, health, auth, and keys test work
without a subscription, so setup can always be diagnosed. Error envelopes carry
additive hints — subscriptionHint (402, has upgradeUrl, needs a human),
providerKeysHint (missing/rejected EPO/USPTO keys, needs a human), and
rateLimitHint (429, has retryAfterSeconds).
| Exit code | Meaning |
|---|---|
| 0 | Success |
| 1 | Generic failure |
| 2 | Usage error (bad flags/arguments) |
| 3 | Auth required (HTTP 401) — log in or set FLOWLEAP_API_KEY |
| 4 | Subscription required (HTTP 402) — surface subscriptionHint.upgradeUrl to a human |
| 5 | Not found (HTTP 404) |
| 6 | Rate limited (HTTP 429) — back off per rateLimitHint.retryAfterSeconds |
| 7 | Network failure reaching the backend |
Readiness — flowleap --json doctor
Doctor is the machine-readable onboarding contract. Its JSON always carries:
ready: bool— backend reachable AND authenticated AND no blocking next steps. Stricter thanok, which keeps its reachability-only meaning.nextSteps— the pending, blocking onboarding steps in dependency order (empty array when complete). Steps already covered — e.g. a provider the server has its own keys for — are omitted. Each step:
{ "id": "store-epo-keys", "actor": "agent",
"title": "Store the EPO consumer key and secret",
"run": "flowleap keys set epo --key <k> --secret <s>" }
Stable step ids (public contract): auth-login (human), mint-personal-token
(agent — pending while auth is only a session token with no fl_pat_ personal
token), obtain-epo-keys (human), store-epo-keys (agent),
obtain-uspto-key (human), store-uspto-key (agent), verify-keys (agent).
Exit contract: doctor exits 0 iff ready, else 1 — with the checklist
JSON always fully emitted first, so flowleap doctor && <work> gates
pipelines without parsing. An unreachable backend still emits the checklist
from local state (offline diagnosis works); keyValidation.source says
whether provider verdicts came from the server ("server") or fell back to
local key presence ("local", with a note).
Agent-mediated sequence: run flowleap --json doctor; for each step in
nextSteps, execute actor: "agent" steps yourself via their run command,
and relay actor: "human" steps (title + url) to the user; re-run doctor
until ready is true.
Updating the CLI
flowleap upgrade (alias flowleap update) updates the CLI itself, detecting
the install channel from the running binary and acting accordingly: npm runs
npm i -g flowleap@latest, Homebrew runs brew upgrade flowleap, an
install.sh/raw binary self-updates in place (downloads the platform release
asset, verifies its sha256 against checksums.txt, atomically swaps), and a
cargo install prints the cargo install --git … --force command. --check
(and --json/--dry-run) report { channel, currentVersion, latestVersion, updateAvailable, command } with no side effects, so agents branch on the
result. The daily update notice and flowleap doctor both point here.
Upgrading the CLI does not refresh already-installed skill files — run
flowleap skills update for that (see the flowleap umbrella skill).
flowleap upgrade --check --json
flowleap upgrade
Safety
- Use
--dry-runbefore executing mutating operations - Add
--dry-run-redactedwhen the request contains an unpublished invention, claim, document text, URL, or search query that should not enter logs - Never add
--allow-external-processingunless the user has given informed consent to send the description to FlowLeap and Anthropic or OpenAI - Use
--verboseto inspect request details (credentials are redacted) - Never include credentials in commit messages or logs
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.