tiangong-ai/skills

tiangong-kb-patent-search

Perform one isolated owner-requested Tiangong patent search outside Auto Research, or provide patent-source method guidance for a separately reviewed locked broker capability. Searches only `patent`. If an ancestor contains `.tiangong-research` and the request is open-ended, multi-source, analytical, builds on prior outputs, or produces a conclusion/artifact, route to `tiangong-auto-research` and do not execute this standalone wrapper. Inside a managed workspace, standalone use requires the use…

First seen Jun 13, 2026

Installation

$ npx skills add tiangong-ai/skills --skill tiangong-kb-patent-search

Summary

  • Perform one isolated owner-requested Tiangong patent search outside Auto Research, or provide patent-source method guidance for a separately reviewed locked broker capability.
  • Searches only `patent`.
  • If an ancestor contains `.tiangong-research` and the request is open-ended, multi-source, analytical, builds on prior outputs, or produces a conclusion/artifact, route to `tiangong-auto-research` and do not execute this standalone wrapper.
  • Inside a managed workspace, standalone use requires the user's explicit isolated-query request and `execution_mode=standalone`.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from tiangong-ai/skills · top by installs.

npx skills add tiangong-ai/skills

Browse all from tiangong-ai/skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 9
License LICENSE
Default branch main
Open issues 3
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 4,457 B
  • docs SUMMARY.md 600 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 9 installs

SKILL.md

Tiangong KB Patent Search

Use this skill for Tiangong patent-source retrieval. It is intentionally single-source: always search patent, never all, sci, or report.

In Auto Research, a patent-source requirement must name the reviewed patent capability in requiredCapabilityIds; Brave or SCI results cannot stand in for it. If that capability is absent, stop at preflight and have the owner import, configure, license, credential, lock, and smoke the exact patent capability. The standalone wrapper never reads the workspace broker credential store.

Prerequisites

  • The standalone wrapper defaults to its separately tested CLI version

0.0.30; this is not the Auto Research workspace runtime. Set TIANGONGAICLI or TIANGONGAICLI_BIN only to intentionally override the standalone entrypoint.

  • Set TIANGONGPATENTAPIKEY or the common fallback

TIANGONGAIAPIKEY. Credentials are rejected recursively in wrapper JSON, request files, URL query parameters, and CLI arguments.

  • When requestfile / inputfile is provided, the wrapper loads .env from

that file's directory by default. env_file can point to a different dotenv file. It must be owner-only, regular, and non-symlinked; only documented Tiangong patent credential, endpoint, region, and timeout variables are loaded, and existing environment values win.

  • Optionally set TIANGONGAIAPIBASEURL; the CLI accepts a Supabase project

root, /functions/v1, or /rest/v1 and derives Functions URLs.

Search

For normal searches, pass a query:

./scripts/patent_search.sh '{
  "query": "mechanical recycling polymer purification patent",
  "top_k": 5
}'

When the current directory is inside a managed workspace, this command is blocked before credential loading or network. Only a user who explicitly asks for one isolated query may add "execution_mode":"standalone"; the wrapper then emits a non-secret audit event.

The script calls:

npx --yes @tiangong-ai/[email protected] research search --query <query> --sources patent --json

For exact edge-function payloads, provide requestfile or inputfile:

./scripts/patent_search.sh '{
  "request_file": "./patent-request.json",
  "dry_run": true
}'

Raw Payload Filters

Wrapper JSON can include inline raw patentsearch fields; the wrapper will forward them through the CLI --input path. The same payload can also be put in requestfile / input_file:

{
  "query": "battery recycling equipment",
  "filter": {
    "assignee": ["example company"]
  },
  "datefilter": {
    "publication_date": { "gte": 1262304000 }
  },
  "topK": 5
}
  • filter: metadata term filters, shaped as { "field": ["value"] }.
  • datefilter: numeric range filters, shaped as

{ "field": { "gte"?: number, "lte"?: number } }, for indexed numeric/date metadata fields.

  • topK: raw edge-function name for result count.
  • extK and getMeta are not supported by patent_search.

Input Fields

  • query, input, or claim: convenience query text.
  • requestfile or inputfile: JSON body forwarded unchanged.
  • envfile: optional dotenv file. Without it, requestfile /

input_file causes the wrapper to load .env from that file's directory.

  • execution_mode: only standalone, and only after an explicit isolated

owner request when a managed workspace is detected.

  • filter, datefilter, topK: optional inline raw payload fields for patent

search.

  • sources: optional compatibility field; only patent or default is

accepted.

  • dry_run: true to return the exact request plan with masked credentials.
  • apibaseurl; credentials must come from allowed owner environment

variables or an owner-only env file.

  • patent_url, region, timeout.
  • top_k: only used in query mode.