agentleFS
flowleap-aiflowleap-ai/flowleap-cli/skills/flowleap-ops/SKILL.md

flowleap-ops

Skill1 starsChanged 5 months agoMITView on GitHub

Direct EPO Open Patent Services access through the FlowLeap backend — CQL search plus per-document bibliography, claims, description, family, legal status, and abstract. Trigger when an agent needs authoritative EPO document data for a known publication number, full claims or description text, family members, legal-status events, or a raw OPS CQL search. For query-building or ranked discovery use flowleap-patent; use OPS for authoritative per-document data.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All document commands take a patent document number (e.g., EP1234567).

    line 40
  2. Very specific:

    Every ops command runs a tool on the Tools facade — search_patents for ops search, then get_bibliography, get_abstract, get_claims, …

    line 67
  3. Very specific:

    Check legal status: flowleap ops legal EP1234567 — its designatedStates name the countries an EP filing designates

    line 163

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

FlowLeap OPS

Auth and global flags: see flowleap-shared.

In a chat client with the FlowLeap connector, call the tools named in the flowleap-shared connector table instead of these commands.

Direct access to the European Patent Office (EPO) Open Patent Services API.

OPS needs the user's own EPO patent-data key. If a command returns the gate code — the CLI's providerKeysHint.code provider_keys_required, raised from the backend's data_keys_required or patent_provider_key_invalid (each carrying provider: "epo") — EP/WO is a user-action stop: decline that read and name the free key as the fix; never serve the claims, description, or bibliography from Google Patents, Espacenet, or a web search instead. Only those explicit codes mean gated, and only the code — never the message wording — decides: an empty payload, a truncated response, or a 5xx is an ordinary dead route with the usual fallbacks. See flowleap-keys.

Commands

Search

flowleap ops search --cql <query> [flags]
FlagDescriptionDefault
--cqlCQL query string (required)—
--startStart position1
--endEnd position25

Document Commands

All document commands take a patent document number (e.g., EP1234567). claims and description accept --lang (defaults to en):

flowleap ops biblio <doc>                  # Bibliographic data
flowleap ops biblio <doc> --designated-states  # …plus the EPC states it designates
flowleap ops claims <doc> --lang en        # Claims text
flowleap ops description <doc> --lang en   # Full description
flowleap ops family <doc>                  # Patent family members
flowleap ops legal <doc>                   # Legal status events + designated states
flowleap ops abstract <doc>                # Abstract text

Doc IDs are normalized server-side — ep1.000.000 and EP1000000 both resolve.

For a non-EP-style number (US grant/application, or an original-format KR/CN number), convert it to DOCDB first so OPS can match it:

flowleap convert-number US5443036.A --to docdb

A SERVER.EntityNotFound on some KR/CN documents is an OPS coverage gap, not a retryable error — don't retry it; fall back to another source for that document.

Response envelope

Every ops command runs a tool on the Tools facade — search_patents for ops search, then get_bibliography, get_abstract, get_claims, get_description, get_legal_status, and get_family for the document reads. The per-source provider route each used to call is a retired endpoint.

The facade answers one envelope, { success, tool, data, executionTimeMs, cached? }; the CLI unwraps it so --json prints just data. Pass --verbose to see the cache verdict and execution time on stderr.

Failures carry { success: false, error: { code, message }, status }. Branch on error.code, never on message — codes come from a closed registry and never change once shipped, while wording is freely editable. The codes you will see here: INVALID_INPUT (422, carries issues[]), UNKNOWN_TOOL (404), NOT_FOUND (404), RATE_LIMITED (429, carries retryAfterSeconds), TOOL_EXECUTION_ERROR (422), INTERNAL_ERROR (500), plus the key gate (data_keys_required / patent_provider_key_invalid, each carrying provider).

ops family returns the INPADOC extended family. get_patent_family is the narrower simple-family tool — the same invention republished across offices, without the divisionals and continuations. They answer different questions; pick deliberately.

Designated-state coverage: designated states, not family members

For a European regional filing the designated contracting states are its designated-state coverage — which countries the right can reach. ops family cannot answer that: it names the offices the invention published in (EP, TW, WO), never the EPC states an EP application designates. Keep the two words apart — bare "coverage" means the extended family elsewhere in FlowLeap.

ops legal carries them at the top level of its payload, rolled up from the INPADOC AK and AX events:

{
  "docId": "EP3804704",
  "designatedStates": ["AL", "AT", "BE", "BG", "CH", "..."],
  "extensionStates": ["BA", "ME"],
  "events": [ { "code": "AK", "designatedStates": ["AL", "AT", "..."] } ]
}
  • designatedStates — the EPC states the filing designates (OPS AK event).
  • extensionStates — extension/validation states (OPS AX event).
  • Both are rolled up from the AK/AX event with the latest date: a designation set can be narrowed after publication, so the newest event is the current one and a union would report states no longer designated.
  • Caveat: if that newest AK event carries no readable state list, an older AK answers instead, so the set can be a superseded, WIDER one. When the answer must be exact, read the AK rows in events yourself. For a clearance call the wide direction is the dangerous one.
  • Both are always present and empty for a document with no such event — every non-EP publication. Empty means "designates no states", not "unknown".
  • Designated ≠ still in force. Subtract the states lapsed per the PG25/PGFP events (each carries its state) to get the states still live.

flowleap --json summary <doc> carries the same two lists under legalStatus — one call for the whole designation question. ops biblio --designated-states joins them onto the bibliography instead; it costs a second EPO read, so prefer summary or ops legal when you are reading legal status anyway. On that biblio path a failed join lands in errors.designatedStates and the bibliography still returns: read that key before you treat an absent list as "designates none".

Examples

# CQL search
flowleap ops search --cql "ti=solar AND pa=Tesla"

# Get bibliographic data
flowleap ops biblio EP1234567

# Bibliography plus the EPC states the filing designates (extra EPO read)
flowleap ops biblio EP1234567 --designated-states

# Get claims in German
flowleap ops claims US10123456 --lang de

# Get family members (JSON for agents)
flowleap ops family EP1234567 --json

# Search with pagination
flowleap ops search --cql "ti=battery" --start 1 --end 50

# Verbose shows cache status and timing
flowleap ops biblio EP1234567 --verbose

Workflow: Deep Patent Analysis

  1. Search: flowleap ops search --cql "ti=solar AND pa=Tesla"
  2. Get details: flowleap ops biblio EP1234567
  3. Read claims: flowleap ops claims EP1234567
  4. Check family: flowleap ops family EP1234567
  5. Check legal status: flowleap ops legal EP1234567 — its designatedStates name the countries an EP filing designates

One-call alternative: flowleap --json summary EP1234567 bundles biblio, legal status, family, and term.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.