Flowleap shared
Skill flowleap-ai/flowleap-plugins/plugins/flowleap/skills/flowleap-shared
The FlowLeap Plugin Marketplace — curated, free-to-install skill packs for patent and IP work.
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.
2 things to look at
- 26 days oldThe repository was created 26 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- 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.
What its author says it does
Copied from the file, not written here
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.
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
Gives 0 of the 12 instructions most auth identity skills give in ~1.5k tokens
Counted across 409 of the 410 authors here whose files we hold, read 2026-08-06
- hash passwords with bcrypt or argon2in 53 of 409, across 43 files
- use parameterized queriesin 47 of 409, across 39 files
- load SECRET_KEY from environment variablesin 23 of 409, across 14 files
- validate all input server-sidein 19 of 409, across 11 files
- refresh access tokens before expiryin 17 of 409, across 9 files
- store tokens in httponly cookiesin 17 of 409, across 16 files
- store refresh tokens securelyin 16 of 409, across 6 files
- validate webhook signatures before processingin 15 of 409, across 5 files
- sanitize user inputsin 15 of 409, across 9 files
- implement rate limiting on auth endpointsin 14 of 409, across 9 files
- encrypt sensitive data at restin 13 of 409, across 10 files
- validate uploaded file extensions and sizesin 12 of 409, across 5 files
Said here and by no other author read
- send bearer credentials with every authenticated request
- pass json output flag for reliable parsing
- check exit codes to handle errors
- run doctor command to check readiness
- execute agent steps from doctor nextsteps list
- relay human steps from doctor to the user
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.