Agenticx Query Data Source logo

Agenticx Query Data Source

Community
DemonDamon
agenticx-query-data-source

Use when the user asks about verifiable quantitative facts (stock prices, financial indicators, macro data, company registry, academic metrics, legal statutes) that must come from a live data source rather than training memory.

Overview

PublisherDemonDamon
RepositoryAgenticX
Skill nameagenticx-query-data-source
Stars
608
Forks
68
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by DemonDamon on GitHub. Read the source before you install it.

Installation

Install the Agenticx Query Data Source AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/DemonDamon/AgenticX/tree/main/agenticx/skills/agenticx-query-data-source
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/DemonDamon/AgenticX.git /tmp/AgenticX
mkdir -p .claude/skills
cp -r /tmp/AgenticX/agenticx/skills/agenticx-query-data-source .claude/skills/agenticx-query-data-source
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Agenticx Query Data Source in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Agenticx Query Data Source on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Agenticx Query Data Source is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Query Data Source

When to use

  • Any question about stock price, financial indicators, macro economic data, company registry, academic citation counts, or legal statute text that has a real, checkable current value.
  • Do NOT answer from training memory for these categories — training data is stale and the user can verify against a real source.
  • Call list_data_sources first when unsure which plugin or API fits (optional domain: finance / macro / academic / enterprise / legal).

How to call

  1. list_data_sources(domain="finance") — discover enabled plugins and api_name values.
  2. query_data_source(data_source_name=..., api_name=..., params={...}) — fetch structured JSON.
    • Default chart window: days: 60 (≈3 个月交易日). A candlestick chart with only 5–10 bars looks sparse/empty in the chat widget, so this is the default for any "走势/行情/表现如何" style question — including casual phrasing like "最近一周走势" (interpret as "show me how it's been doing lately", not literally 5 trading days).
    • Only request a shorter window when the user gives an unambiguous analytical ask for an exact short range (e.g. "对比昨天和前天的收盘价" or "最近3个交易日的具体数字"). Map common asks: 1个月→days:20, 3个月→days:60(默认), 6个月→days:120, 1年→days:250.
  3. For time-series results (price history, macro trend), must follow with show_widget:
    • Prefer structured JSON (Desktop renders via ECharts):
    • The top-level "type": "stock_chart" field is MANDATORY. Omitting it makes the Desktop client treat the payload as a generic HTML widget and render the raw JSON text instead of a chart — always double-check this field is present before calling show_widget.

Single stock:

json
{
  "type": "stock_chart",
  "title": "火炬电子 603678",
  "chart_type": "candlestick",
  "data_source_label": "获取数据 | AkShare(免费行情)",
  "points": [
    {"date": "2026-07-01", "open": 80, "high": 90, "low": 78, "close": 85, "volume": 120000}
  ],
  "attribution": "数据来源:AkShare"
}

Multiple focused stocks (Kimi-style tabs — user can switch 火炬电子 / 祥鑫科技 / 天齐锂业):

json
{
  "type": "stock_chart",
  "data_source_label": "获取数据 | AkShare(免费行情)",
  "attribution": "数据来源:AkShare",
  "watchlist": [
    {
      "symbol": "603678.SH",
      "name": "火炬电子",
      "chart_type": "candlestick",
      "points": [{"date": "2026-07-03", "open": 81.26, "high": 89.4, "low": 77.93, "close": 85.48, "volume": 42942215}]
    },
    {
      "symbol": "002965.SZ",
      "name": "祥鑫科技",
      "chart_type": "candlestick",
      "points": [...]
    },
    {
      "symbol": "002466.SZ",
      "name": "天齐锂业",
      "chart_type": "candlestick",
      "points": [...]
    }
  ]
}

When the user mentions several tickers they are tracking, fetch each via query_data_source and pass one show_widget with a watchlist array — do not render three separate widgets.

CRITICAL — never hand-roll HTML/ECharts for stock charts. Always pass the structured stock_chart JSON (single points or watchlist). The Desktop client has a dedicated, theme-aware StockChartWidget (dark/light adaptive tabs, 红涨绿跌, quote header). Hand-written <div>+ECharts <script> HTML produces broken results (e.g. white tab text on white background, sparse charts) and must not be used for stock/candlestick data.

Copy the OHLCV rows from the query_data_source result verbatim into points — the result is already trimmed to date/open/high/low/close/volume and the full window (e.g. 60 rows) fits, so there is no need to re-query with a smaller days. If a result ever looks truncated, use whatever rows you have; do NOT loop re-querying the same symbol.

  • Macro trends: same shape with "chart_type": "line" and points like {"date": "2021", "value": 8.1}.
  1. Workflow (same as show_widget discipline): 1–3 sentences visible intro → query_data_source → show_widget → interpret numbers from tool output only.

Example calls

User intentdata_source_nameapi_nameparams notes
A-share K-line / recent trendaksharestock_price_historysymbol: 6-digit code without exchange suffix (e.g. 603678, not 603678.SH); market: a; days: 60 default (3 个月), 20/120/250 for 1mo/6mo/1yr
A-share snapshotaksharestock_realtime_quotesymbol: 603678
China / global macroworld_banksee list_data_sourcescountry/indicator codes from API schema
IMF indicatorsimfsee list_data_sourcesper plugin schema
Tushare (needs MCP)tushareper MCP toolsrequires connected tushareMcp in settings
iFinD (enterprise)ifindper plugincredential-gated; often unavailable on desktop

Map query_data_source OHLCV rows to stock_chart.points (normalize date/open/high/low/close/volume field names from the JSON).

Fallback discipline

  • MissingCredentialError or connection failure on ifind / tushare → try free sources (akshare, world_bank, imf) before giving up.
  • Tushare without MCP → tell user to connect tushareMcp in Desktop settings; do not invent prices.
  • If all applicable sources fail: say explicitly 「当前数据源暂不可用,无法核实最新数据」. Never substitute a remembered or guessed number.

Known plugins (authoritative list: list_data_sources)

domainpluginnotes
financeaksharefree, no credential, A/HK/US history & A-share quote
financetusharerequires connected tushareMcp
financeifindenterprise-only, credential-gated
macroworld_bankfree, global development indicators
macroimffree macro indicators

Frequently asked questions

What does the Agenticx Query Data Source AI skill do?

Use when the user asks about verifiable quantitative facts (stock prices, financial indicators, macro data, company registry, academic metrics, legal statutes) that must come from a live data source rather than training memory.

Why use Agenticx Query Data Source on TypingMind?

Because you install it once and use it with any model. Agenticx Query Data Source is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Agenticx Query Data Source in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/DemonDamon/AgenticX/tree/main/agenticx/skills/agenticx-query-data-source. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Agenticx Query Data Source?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Agenticx Query Data Source?

As many as you like. As long as a model supports skills, you can use Agenticx Query Data Source with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Agenticx Query Data Source AI skill free?

Yes. It is published on GitHub by DemonDamon under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇