Imported from tiangong-ai/agent-skills (
tiangong-kb-report-search/SKILL.md). Install upstream withnpx skills add tiangong-ai/agent-skills --skill tiangong-kb-report-search. Copyright stays with the author.
Tiangong KB Report Search
Use this skill for Tiangong report-source retrieval. It is intentionally
single-source: always search report, never all, sci, or patent.
In Auto Research, an industry-report requirement must name the reviewed report
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 report 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_REPORT_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 report 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/report_search.sh '{
"query": "mechanical recycling policy report",
"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 report --json
For exact edge-function payloads, provide request_file or input_file:
./scripts/report_search.sh '{
"request_file": "./report-request.json",
"dry_run": true
}'
Raw Payload Filters
Wrapper JSON can include inline raw report_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": "mechanical recycling policy report",
"filter": {
"source": ["IEA"]
},
"topK": 5,
"extK": 2
}
filter: metadata term filters, shaped as{ "field": ["value"] }.topK,extK: raw edge-function names for result count and adjacent chunk expansion.datefilterandgetMetaare not supported byreport_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,topK,extK: optional inline raw payload fields for report search.sources: optional compatibility field; onlyreportordefaultis 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.report_url,region,timeout.top_k,ext_k: only used in query mode.