tiangong-kb-patent-search
Skill11 starsChanged 3 months agoMITView on GitHub
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`.
- Reads credentials
In this repository62 other files it gives its agents.
- AGENTS.mdAGENTS.md
- academic-paper-downloadSkill
- airnow-hourly-obs-fetchSkill
- ai-tech-fulltext-fetchSkill
- ai-tech-rss-fetchSkill
- ai-tech-summarySkill
- apply-environmental-thinkingSkill
- bluesky-cascade-fetchSkill
- convert-image-to-jpgSkill
- dify-knowledge-base-searchSkill
- dify-knowledge-base-uploadSkill
- document-granular-decomposeSkill
- domain-onboardingSkill
- eceee-news-fulltext-fetchSkill
- email-imap-appendSkill
- email-imap-fetchSkill
- email-imap-full-fetchSkill
- email-smtp-sendSkill
- epa-eis-records-fetchSkill
- federal-register-doc-fetchSkill
- fetch-abstract-to-kbSkill
- fetch-meta-from-kbSkill
- fetch-meta-to-kbSkill
- figshare-data-downloadSkill
- gdelt-doc-searchSkill
- gdelt-events-fetchSkill
- gdelt-gkg-fetchSkill
- gdelt-mentions-fetchSkill
- gdelt-web-ngrams-searchSkill
- github-contribution-period-analysisSkill
- nasa-firms-fire-fetchSkill
- notebooklmSkill
- openaq-data-fetchSkill
- open-meteo-air-quality-fetchSkill
- open-meteo-flood-fetchSkill
- open-meteo-historical-fetchSkill
- regulationsgov-attachments-fetchSkill
- regulationsgov-comment-detail-fetchSkill
- regulationsgov-comments-fetchSkill
- remove-similar-imageSkill
- river-outfall-status-visualizerSkill
- sustainability-fulltext-fetchSkill
- sustainability-rss-fetchSkill
- sustainability-summarySkill
- synology-file-stationSkill
- tiangong-auto-researchSkill
- tiangong-auto-research-workbuddySkill
- tiangong-kb-course-fulltext-fetchSkill
- tiangong-kb-course-searchSkill
- tiangong-kb-edu-searchSkill
- tiangong-kb-esg-searchSkill
- tiangong-kb-ingestSkill
- tiangong-kb-report-searchSkill
- tiangong-kb-sci-searchSkill
- tiangong-kb-textbook-searchSkill
- tsinghua-graduate-thesisSkill
- usbr-project-records-fetchSkill
- usbr-rise-fetchSkill
- use-thuenv-presentation-styleSkill
- usgs-water-iv-fetchSkill
- The first 60 shown.
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
- Very specific: line 8
Use this skill for Tiangong patent-source retrieval.
- Very specific: line 26
When request_file / input_file is provided, the wrapper loads .env from that file's directory by default.
- Very specific: line 45
When the current directory is inside a managed workspace, this command is blocked before credential loading or network.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.
Files
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.62; this is not the Auto Research workspace runtime. SetTIANGONG_AI_CLIorTIANGONG_AI_CLI_BINonly to intentionally override the standalone entrypoint. - Set
TIANGONG_PATENT_APIKEYor the common fallbackTIANGONG_AI_APIKEY. Credentials are rejected recursively in wrapper JSON, request files, URL query parameters, and CLI arguments. - When
request_file/input_fileis provided, the wrapper loads.envfrom that file's directory by default.env_filecan 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
TIANGONG_AI_API_BASE_URL; the CLI accepts a Supabase project root,/functions/v1, or/rest/v1and 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 --package "@tiangong-ai/cli@0.0.62" -- tiangong-ai research search --query <query> --sources patent --jsonFor exact edge-function payloads, provide request_file or input_file:
./scripts/patent_search.sh '{
"request_file": "./patent-request.json",
"dry_run": true
}'Raw Payload Filters
Wrapper JSON can include inline raw patent_search fields; the wrapper will
forward them through the CLI --input path. The same payload can also be put in
request_file / 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.extKandgetMetaare not supported bypatent_search.
Input Fields
query,input, orclaim: convenience query text.request_fileorinput_file: JSON body forwarded unchanged.env_file: optional dotenv file. Without it,request_file/input_filecauses the wrapper to load.envfrom that file's directory.execution_mode: onlystandalone, 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; onlypatentordefaultis accepted.dry_run: true to return the exact request plan with masked credentials.api_base_url; 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.
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
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.

