SQLite 业务报表
Skill9 starsChanged 25 days agoMITView on GitHub
查询本机业务库并生成报表。当用户要统计客户、询盘、报价、审批、订单、芯片货源、知识事实等业务指标,或导出业务数据表格时使用此技能。基于 SQLite,不适用于外部 MySQL 数据源。
In this repository42 other files it gives its agents.
- AGENTS.mdAGENTS.md
- B2B 静态站搭建Skill
- b2b-reddit-engagementSkill
- b2b-short-videoSkill
- 芯片 BOM 与型号寻源Skill
- 芯片供应商与真伪风险核验Skill
- 芯片贸易合规与交易关口Skill
- 芯片贸易入门路线Skill
- conversation-contextSkill
- customs-lead-sopSkill
- customs-pitfallsSkill
- 深度研究编排Skill
- 外贸专家丙 · 品牌出海Skill
- 外贸专家丑 · 半导体销售Skill
- 外贸专家丁 · 外贸社媒Skill
- 外贸专家庚 · 聊外贸Skill
- 外贸专家癸 · 芯片生意Skill
- 外贸专家甲 · 社媒新外贸Skill
- 外贸专家己 · 外贸通Skill
- 外贸专家壬 · 出海Skill
- 外贸专家戊 · 工厂出海Skill
- 外贸专家辛 · B2BSkill
- 外贸专家寅 · 外贸实战Skill
- 外贸专家乙 · 外贸社媒Skill
- 外贸专家子 · 芯片采购Skill
- foreign-trade-researchSkill
- ft-geoSkill
- html-previewSkill
- icp-architectSkill
- image-genSkill
- knowledge-baseSkill
- 外联决策 · 首次触达Skill
- product-coachingSkill
- prospect-qualificationSkill
- sales-copilotSkill
- 供应商寻源与初筛Skill
- trade-buyer-checkSkill
- trade-deskSkill
- trade-follow-upSkill
- tradehotSkill
- trade-inquiry-replySkill
- trade-simulation-coachSkill
The file
Files
SQLite 业务报表
本工程的业务库是 SQLite(yuxi.db,WAL 模式),不是 MySQL。
所有查询直连本机文件,不要尝试连接外部数据库。
数据边界
- 业务库:
<数据目录>/yuxi.db,<数据目录>由部署方通过环境变量DATA_DIR指定(未设置时使用应用默认数据目录) - 另有vendor 侧库
yuxi_full.db,两者表结构不完全一致,不要混查 - 库文件可能处于 WAL 模式,读写都要走 SQLite,不要用文本工具直接打开
常用表
| 表 | 内容 |
trade_accounts | 客户档案 |
trade_inquiries | 询盘 |
trade_quotes | 报价 |
trade_approvals | 审批记录 |
trade_orders | 订单 |
trade_business_outcomes | 业务结果 |
chip_parts | 芯片型号 |
chip_supplier_part | 供应商货源 |
knowledge_documents / knowledge_facts | 知识库 |
audit_logs | 审计日志 |
操作流程
- 确认库路径与目标表是否存在(部分表在未启用过的功能下可能为空)
- 生成只读 SQL 并执行
- 用表格呈现结果,注明数据源与取数时间
关键约束
- 只读。一律用
SELECT,不得INSERT/UPDATE/DELETE/DROP,也不得改写业务库。 - 避免全表扫描;大表先看
LIMIT与索引命中情况。 - 报数时附上 SQL,让用户能自行复核,不要只给结论。
- 涉及金额、价格、审批状态的数字如实报,不要估算或取整。
- 不要输出密钥类配置的值;只说明缺少哪个变量名。
- 用户要的是「外贸日报/情报简报」时,改用
tradehot技能,不要用本技能硬凑。
允许的工具
- 终端:执行只读 SQL 查询
list_tables/describe_table:查看表与表结构
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.

