Database Query logo

Database Query

Community
robinspt
database_query

Query TickFlow Assist LanceDB tables, schemas, and stored records through the query_database tool.

Overview

Publisherrobinspt
Repositorytickflow-assist
Skill namedatabase_query
Stars
65
Forks
14
Bundled files
Instructions only
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 robinspt on GitHub. Read the source before you install it.

Installation

Install the Database Query 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/robinspt/tickflow-assist/tree/main/skills/database-query
  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/robinspt/tickflow-assist.git /tmp/tickflow-assist
mkdir -p .claude/skills
cp -r /tmp/tickflow-assist/skills/database-query .claude/skills/database_query
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Database Query 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 Database Query 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 Database Query 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.

LanceDB 数据查询

这个技能用于查询 TickFlow Assist 插件写入的 LanceDB 数据,包括数据表列表、表结构,以及表内记录。

优先使用 query_database 工具,不要改用 exec、shell 命令、node -e、python -c、LanceDB 脚本或直接读数据库文件,也不要在没有工具返回结果的前提下猜测数据库内容。

适用场景:

  • 查看当前有哪些数据表
  • 查看某张表有哪些字段
  • 查询某只股票在某张表中的记录
  • 查看最近几条分析日志、告警日志、指标数据
  • 按关键词在表记录里做简单检索

中文意图与工具映射:

  • “数据库里有哪些表”、“列出数据库表” -> query_database,action=tables
  • “看技术指标表结构”、“分析日志有哪些字段” -> query_database,action=schema
  • “查 002261 的指标数据”、“看 002261 的日K” -> query_database,action=query
  • “看最近 5 条分析日志”、“查告警日志” -> query_database,action=query
  • “在分析日志里搜索突破” -> query_database,action=query

参数理解规则:

  • 常用表名可按自然语言理解并映射:
    • “自选” -> watchlist
    • “日K”、“日线” -> klines_daily
    • “分钟K”、“分钟线”、“分时” -> klines_intraday
    • “指标” -> indicators
    • “关键价位” -> key_levels
    • “分析日志” -> analysis_log
    • “告警日志” -> alert_log
  • 股票代码按用户原始输入提取,例如 002261,传给 symbol。
  • “最近 N 条”、“前 N 条”对应 limit。
  • “字段 A、B、C”对应 fields。
  • “按 trade_date 排序”可传 sortBy="trade_date",最近数据默认优先考虑 sortOrder="desc"。
  • “搜索某个关键词”可传 contains。
  • 如果用户只是问数据库里有什么,优先先列出表,不要直接猜测表内容。
  • 禁止使用 exec、shell、node -e、python -c、直接打开 LanceDB 文件、临时写脚本查询或任何绕过 query_database 的方式。
  • 如果当前环境拿不到 query_database 工具,直接说明当前无法按技能约束查询,不要回退到命令行或脚本直读数据库。

输出规则:

  • 对 query_database 的返回尽量原样输出。
  • 不要把数据库结果改写成分析结论,除非用户明确要求解释数据含义。
  • 当用户问“数据库有没有某类数据”但工具结果为空时,直接说明没查到,不要臆测是没同步还是没入库。

示例:

  • “数据库里有哪些表”
  • “看技术指标表结构”
  • “查 002261 最近 5 条技术指标”
  • “看最近 3 条分析日志”
  • “在分析日志里搜索 突破”

Frequently asked questions

What does the Database Query AI skill do?

Query TickFlow Assist LanceDB tables, schemas, and stored records through the query_database tool.

Why use Database Query on TypingMind?

Because you install it once and use it with any model. Database Query 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 Database Query in TypingMind?

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

Which AI models can use Database Query?

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 Database Query?

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

Is the Database Query AI skill free?

It is published on GitHub by robinspt. Check the repository for licensing terms. 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 👇