agentsclimarketplace

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

Install
npx -y skills add flowleap-ai/flowleap-plugins --skill flowleap-shared

Assembled 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 token
  • FLOWLEAP_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

FlagDescriptionDefault
--jsonShorthand for --output jsonfalse
--output <format>Output format: json, table, humanhuman
--base-url <url>API base URLhttps://api.flowleap.co
--api-key <key>Override stored API key (fl_pat_…)—
--token <token>Override stored token—
--dry-runShow request without executingfalse
--dry-run-redactedRedact sensitive values from dry-run output; requires --dry-runfalse
--verbose, -vShow request/response detailsfalse

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 codeMeaning
0Success
1Generic failure
2Usage error (bad flags/arguments)
3Auth required (HTTP 401) — log in or set FLOWLEAP_API_KEY
4Subscription required (HTTP 402) — surface subscriptionHint.upgradeUrl to a human
5Not found (HTTP 404)
6Rate limited (HTTP 429) — back off per rateLimitHint.retryAfterSeconds
7Network 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 than ok, 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-run before executing mutating operations
  • Add --dry-run-redacted when the request contains an unpublished invention, claim, document text, URL, or search query that should not enter logs
  • Never add --allow-external-processing unless the user has given informed consent to send the description to FlowLeap and Anthropic or OpenAI
  • Use --verbose to 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.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.