Skip to content
OpenAgentSkill
Browsing is open · Catalog captured 2026-11-21 · Automatic updates and account services are paused.
Finance

quant-buddy-view

QBV / quant-buddy-view(用户可能写成 /quant-buddy-view、/qbv、qbv 或 QBV)用于把量化数据做成「公开可分享、实时取数」的网页看板/落地页。 Use this skill when the user asks to create, update, publish, verify, retrofit, or reuse a Quant Buddy dashboard/static page/template, including shareable pages, public URLs, formula packages, share shell, cover/essence cards, poster/share behavior, single-stock profile pages, valuation/financial profile pages, index-anomaly boards, multi-factor screeners, and commodity daily pages. 配合 quant-buddy-skill 使用:简单单一 A 股综合分析可在 trace begin 后直接用 static_page.py new_asset_page 返回实时页面;用户给出既有 QuantBuddy 活页 URL 并要求解读时,直接用 static_page.py interpret 读取该页实时数据,不下载 HTML、不暴露签名,也不进入模板或建页流程;其他固定页面请求先用 templates/template 选择带 recommend 标签的在线范式页。自建实时页先按数据性质选择通道:普通行情、估值和财务优先 Data Grant,自定义计算才验证并注册 Formula Package;两类凭证可在同页混用,随后替换凭证/文案、浏览器验收并发布。默认不从本地历史样板目录或低质 HTML 骨架起步。 用户显式唤起 /quant-buddy-view、/qbv、qbv 或 QBV,且请求不是纯咨询/代码维护/文档解释时,默认视为可分享活页任务:简单单一 A 股分析走 new_asset_page 快速终态;其余请求查官方精选+社区范式卡判定 direct/fork/unmatched。默认 dire

guanzhao · AI review on file

Installation

Read the source and dependencies before running a command. Copying does not install or execute anything.

npx skills add pseudo-longinus/quant-buddy-view --skill quant-buddy-view

About this skill


name: quant-buddy-view slug: quant-buddy-view author: guanzhao version: 0.6.69 description: | QBV / quant-buddy-view(用户可能写成 /quant-buddy-view、/qbv、qbv 或 QBV)用于把量化数据做成「公开可分享、实时取数」的网页看板/落地页。 Use this skill when the user asks to create, update, publish, verify, retrofit, or reuse a Quant Buddy dashboard/static page/template, including shareable pages, public URLs, formula packages, share shell, cover/essence cards, poster/share behavior, single-stock profile pages, valuation/financial profile pages, index-anomaly boards, multi-factor screeners, and commodity daily pages. 配合 quant-buddy-skill 使用:简单单一 A 股综合分析可在 trace begin 后直接用 static_page.py new_asset_page 返回实时页面;用户给出既有 QuantBuddy 活页 URL 并要求解读时,直接用 static_page.py interpret 读取该页实时数据,不下载 HTML、不暴露签名,也不进入模板或建页流程;其他固定页面请求先用 templates/template 选择带 recommend 标签的在线范式页。自建实时页先按数据性质选择通道:普通行情、估值和财务优先 Data Grant,自定义计算才验证并注册 Formula Package;两类凭证可在同页混用,随后替换凭证/文案、浏览器验收并发布。默认不从本地历史样板目录或低质 HTML 骨架起步。 用户显式唤起 /quant-buddy-view、/qbv、qbv 或 QBV,且请求不是纯咨询/代码维护/文档解释时,默认视为可分享活页任务:简单单一 A 股分析走 new_asset_page 快速终态;其余请求查官方精选+社区范式卡判定 direct/fork/unmatched。默认 direct 先交付现成链接、fork/unmatched 用 new_page 返回首链;当 config.json._channel=feishu-group 时,所有分支都禁止提前发送链接,只在终态交付 playground 链接。 Do not use this skill for one-off 行情查询、普通股票涨跌幅/估值问答、选股/回测探索;those belong to quant-buddy-skill unless the user explicitly wants a reusable/shareable page. runtime: python primaryCredential: quant-buddy API Key metadata: version: 0.6.69 author: guanzhao category: quant-finance tags: [quant, dashboard, formula-package, static-page, publish, visualization] runtime: python primaryCredential: quant-buddy API Key requiredCredentials: - quant-buddy API Key requiredConfigPaths: - config.json networkEndpoints: - https://www.quantbuddy.cn/skill - https://www.quantbuddy.cn/user - https://pages.quantbuddy.cn requiredCredentials:

  • name: quant-buddy API Key required: true sensitive: true storage: config_file path: config.json field: api_key description: quant-buddy 平台 API Key。默认存储于 skill 目录下 config.json 的 api_key 字段。优先级(高到低):① 调用方在工具调用参数里显式传入的 api_key(如 Playground 场景,仅当次调用生效,不落盘);② 环境变量 QBV_API_KEY(同一档的显式覆盖通道,专给"这次调用要用哪个 key"、但不方便/不想改现有 @file 参数去塞 api_key 的场景,比如 publish_workflow.py @publish-plan.json——该 plan 文件按设计不含凭证);③ config.json / config.local.json 的 api_key;④ 环境变量 QUANT_BUDDY_API_KEY(仅①②③都为空时才兜底,不是常规覆盖手段,语义与 QBV_API_KEY 完全不同,不要混用)。仅作为 HTTP Authorization 头发送给 networkEndpoints 中声明的 quantbuddy 域名用于鉴权;Formula Package 与 Data Grant 的页面内实时取数都凭 signature,不需要 api_key。 how_to_get: "https://www.quantbuddy.cn/login" requiredConfigPaths:
  • path: config.json required: true description: 仅包含 quant-buddy api_key 与公开端点配置,由本地脚本读取。 requiredEnvVars:
  • name: QBV_API_KEY required: false sensitive: true description: 可选,本次调用的显式 api_key 覆盖(与工具调用参数里的 api_key 字段同一优先级),仅本进程生效、不落盘。适用于"手上是一份现成的 @file 参数(如 publish-plan.json),不想现改这份文件去塞 api_key"的场景;不要和 QUANT_BUDDY_API_KEY 混用,两者优先级和用途完全不同(见上面 api_key 字段的优先级说明)。
  • name: QUANT_BUDDY_API_KEY required: false sensitive: true description: 可选。仅在 config.json / config.local.json 都没有 api_key、且没有更高优先级的 api_key/QBV_API_KEY 覆盖时才兜底生效,不是常规覆盖手段。多步任务里想让某次调用用别的 key,请用 api_key 参数或 QBV_API_KEY,不要指望设置这个环境变量会覆盖 config.json 已有的默认 key。
  • name: QBV_AGENT_MODEL required: false sensitive: false description: 可选。宿主明确知道当前 Agent 的真实运行模型时可注入;优先级低于调用参数里的 agent_model、高于 task-scoped Trace Context。拿不准时留空,禁止猜测,也不得为了补该字段询问用户或阻断活页流程。 networkAccess: true networkEndpoints:
  • https://www.quantbuddy.cn/skill
  • https://www.quantbuddy.cn/user
  • https://pages.quantbuddy.cn runtimeRequirements: python: "3.8+" packages: []

quant-buddy-view · 量化看板发布

把「已验证的量化数据与公式」沉淀成一个公开可分享、实时取数的网页看板/落地页。本技能不做一次性行情查询或回测探索;默认执行路线是:

feishu-group 渠道:打包渠道为 feishu-group 时,direct/fork/unmatched/update 等所有分支禁止发送非终态链接;终态 contract 统一把 pages.quantbuddy.cn/pages/<owner>/<page_id>.html 转成 www.quantbuddy.cn/playground/<owner>/<page_id>,内部发布与验收仍使用原始托管 URL。

最高优先级:既有活页解读。 用户给出 pages.quantbuddy.cn/pages/... 的 QuantBuddy 活页 URL,且意图是“解读 / 分析当前活页 / 看这页数据”时,先且只运行:

python scripts/static_page.py interpret '{"url":"用户提供的页面 URL"}'

这是只读数据路径,不要运行 trace_context.py、templates、template、direct_deliver、new_page、fork、download、浏览器或 HTML 搜索,也不要创建、更新、发布页面。它调用 getPageDetail?need_data=true;服务端使用页面绑定的公式包和 Data Grant 取最新数据,并附加 interpretation_bundle,不返回 signature。直接按用户的自定义要求解读详情与 interpretation_bundle.runtime_data。未指定格式时,依次输出一句话结论、关键指标及变化、风险/异常、3 个继续追问方向。详见 workflows/interpret-existing-page.md。

若 interpretation_bundle.runtime_data.grants[].data.mode="csv",先返回的 csv_fields[].csv_url 是短期下载链接而非可直接计算的数据。必须紧接着运行一次 python scripts/static_page.py interpret_csv '{}':它只下载该次 interpret 已返回的 CSV、保留链接并补出 results[].fields[].series,然后再计算和解读;禁止重跑 interpret、另查数据接口或把 CSV 链接给用户。

  1. 除上述既有活页解读分支外,在任何后端请求前运行 scripts/trace_context.py begin,保存唯一 task_id 并在后续命令中复用。这步本身就是后端写入调用,必须和后续命令带同一个身份(QBV_API_KEY 环境变量或参数里的 api_key),不带会被记成 skill 默认账号。
  2. 若用户只是要简单分析一只 A 股并返回页面,且没有定制栏目/版式、额外指标/公式/图表、对比或多标的要求,直接运行一次 scripts/static_page.py new_asset_page。成功结果包含完整数据草稿 agent_reply_markdown_draft;当前 Agent只需依据用户原问题和草稿前五章数据补写综合观察,不再查 templates,也不另跑 QBS 验证或注册 Grant。
  3. 除上述快速场景外,运行一次 scripts/static_page.py templates,查询统一 public 命中池(服务端一次返回官方精选+社区)。
  4. direct 只有在范式、范围和全部请求维度三轴均有证据时成立;direct_deliver 必须提交 dimension_check。缺维度改走 fork + same_paradigm_augment_dimension。
  5. fork/unmatched 调用 new_page 时由 Agent 根据 items_summary 显式传 routing_decision;fork 还必须声明 borrow_mode=inherit|inherit_augment|compose。fork 一旦判定只能继承、增强继承或 Compose,禁止改判 unmatched。
  6. new_asset_page 成功后,按 agent_summary_request 用当前 Agent补写草稿中的唯一 summary_marker,保持其余内容不变并立即发送;direct、fork/unmatched 仍按 agent_reply_contract 和回复模板生成证据绑定草稿,再运行返回的 reply_validation_command,只有 valid=true 才最终回复。

多轮追问:首次用户消息运行 scripts/trace_context.py begin;同一 task_id 的每条后续用户消息先运行 `scripts/trace_co

Read the complete source ↗