tiangong-kb-sci-search
Skill11 starsChanged 3 months agoMITView on GitHub
Perform one isolated owner-requested SCI search outside Tiangong Auto Research, or provide SCI method guidance when Auto Research discovery invokes the locked broker capability. Searches only `sci`. 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-patent-searchSkill
- tiangong-kb-report-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
- could be automatic: a setting could enforce it
- Very specific: line 34
Put the source-specific key in TIANGONG_SCI_APIKEY, or use TIANGONG_AI_APIKEY as the common fallback.
- Very specific: line 129
After research setup has selected and configured this Skill, discovery uses:
- Very specific: line 143
Use only documented non-secret request fields.
≈ “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 SCI Search
This Skill is deliberately single-source. Search sci only; never broaden to
all, report, or patent. Access requires the deployment owner's normal key
and entitlement. Stop on authentication, authorization, subscription, VPN, or
service failure; do not try to bypass it.
Choose the execution mode
- For a direct standalone search outside a managed workspace, use
scripts/sci_search.shas described below. Inside a managed workspace, only an explicit user-requested isolated query may set"execution_mode":"standalone"; the wrapper records a non-secret mode event. - Inside a Tiangong Auto Research discovery package, do not execute this
script or its CLI/curl examples. Use locked capability ID
database.tiangong.sci-searchthroughfetch_candidate_source. The broker owns the exact POST method, endpoint, region header, credential injection, response bounds, sanitization, and permanent evidence receipt.
Direct-search prerequisites
- The standalone wrapper defaults to its separately tested CLI version
0.0.62. This is not the Auto Research workspace runtime. Managed research resolves its exact version from the immutable setup plan orruntime-lock.jsonand must use the broker. SetTIANGONG_AI_CLI_BINto one exact executable path, orTIANGONG_AI_CLIto an explicitly reviewed command, only when overriding the standalone entrypoint intentionally. - Put the source-specific key in
TIANGONG_SCI_APIKEY, or useTIANGONG_AI_APIKEYas the common fallback. Credentials are never accepted in wrapper JSON, a request file, or CLI arguments. jqis required by the wrapper.- Optional endpoint variables are
TIANGONG_SCI_SEARCH_URL,TIANGONG_RESEARCH_API_BASE_URL,TIANGONG_AI_SEARCH_API_BASE_URL, orTIANGONG_AI_API_BASE_URL;TIANGONG_REGIONandTIANGONG_RESEARCH_TIMEOUTare also supported.
Direct query
export TIANGONG_SCI_APIKEY='owner-authorized key'
./scripts/sci_search.sh '{
"query": "mechanical recycling reduces lifecycle emissions",
"top_k": 5,
"get_meta": true
}'The wrapper invokes the pinned CLI equivalent of:
npx --yes --package "@tiangong-ai/cli@0.0.62" -- tiangong-ai research search \
--query <query> --sources sci --jsonTo write a result, pass one explicit output path as the second argument. The wrapper writes a unique temporary file and renames it only after the CLI exits successfully; it never reports success based on file existence alone.
Exact request payload
Inline supported edge-function fields are converted to a temporary request file:
{
"query": "critical metal material flows",
"filter": {
"journal": ["JOURNAL OF INDUSTRIAL ECOLOGY"]
},
"datefilter": {
"date": { "gte": 1262304000 }
},
"topK": 5,
"extK": 2,
"getMeta": true
}Or reference an existing regular non-symlink JSON file:
./scripts/sci_search.sh '{
"request_file": "/absolute/path/to/sci-request.json",
"dry_run": true
}'filter accepts metadata term arrays. datefilter accepts numeric gte/lte
ranges. topK, extK, and getMeta are the raw service names; top_k,
ext_k, and get_meta are convenience query-mode names.
Optional dotenv loading
An explicit env_file must exist, be a regular non-symlink file, and have
owner-only permissions (chmod 600). If request_file is supplied without an
explicit env file, a same-directory .env is loaded only when it exists and
passes the same checks. Existing process variables win.
The parser does not execute shell syntax and loads only documented Tiangong key, endpoint, region, and timeout names. All other keys are ignored. Never put an agent key, browser cookie, Authorization header, session token, proxy password, or unrelated secret in this file.
Accepted wrapper fields
query,input, orclaim;request_fileorinput_file;env_file;execution_mode, onlystandaloneand only after an explicit isolated-query request when a managed workspace is detected;filter,datefilter,topK,extK,getMeta;top_k,ext_k,get_metain query mode;sources, onlysciordefault;api_base_url,sci_url,region,timeoutas non-secret routing values;dry_run.
Any key that looks like an API key, token, Authorization, Cookie, password, credential, secret, or session is rejected recursively before the CLI starts. The wrapper does not echo rejected values or failed command stdout.
Auto Research broker call
After research setup has selected and configured this Skill, discovery uses:
{
"capability_id": "database.tiangong.sci-search",
"url": "<the exact manifest endpoint>",
"request_body": {
"query": "research claim",
"topK": 5,
"getMeta": true
}
}Use only documented non-secret request fields. Never add the API key, headers,
cookies, endpoint override, or token to request_body. The broker injects the
logical tiangong.sci.api-key as x-api-key, sends the locked x-region,
refuses POST redirects, and records only the request-body SHA-256 outside the
permanent raw response object. This database supplements but does not replace
Auto Research's independent public-internet evidence requirement.
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.

