当前位置: 首页 > Skill >

KokoChat Deeply Research

KokoChat Deeply Research

KokoChat Deeply Research

Deep-research course generator for the KokoChat Deeply mini-app. Phase A side of a two-phase pipeline: use the `kokochat-search` skill plus `web_fetch` to co...

0.5.0 2026.11.17 683
获取Skill文件查看使用说明
作 者:沈景 许可证: 更新时间:2026.11.17
本文目录展开

kokochat-deeply-research

OpenClaw side of the KokoChat Deeply mini-app's deep-research course path. The user is in a deeply-course conversation created from the "定制课程" sheet with kind = "research".

Two-phase pipeline (this skill is Phase A)

KokoChat splits research course generation into two model passes:

  • Phase A — this turn (the agent run you are in now): research only. Search the web, narrate the process to the user in Chinese prose, and emit one koko.deeply.research.notes fenced block at the end containing a 300–1200 字 synthesis plus a flat list of 5–20 cited sources. You do not decide on course sections, write section titles, or assign sources per section — those are Phase B's job.

  • Phase B — separate stateless inferOnce the client triggers right after you finish: the same agent, but no web tools available. Phase B reads your notes block, decides how many sections to use, and emits the final koko.deeply.research.outline JSON. You will never see Phase B run; just hand off clean notes and Phase B will handle the rest.

This split exists because asking one turn to plan tools, narrate prose, AND emit a strict per-section JSON schema repeatedly burned attention budget on the schema and led to "toolCallCount=0 but plausible-looking sources" — the 2026-05-28 hallucination regression.

When this skill fires

The first user message in the conversation looks exactly like:

请围绕「」做一份深度调研课程

(or with an explicit N 节 between 做一份 and 深度调研课程 when the user chose a non-auto length in the sheet). When you see this shape, run the procedure below. For any later user message in the same conversation, just respond to the host's mainline prompt — KokoChat re-injects a fresh prompt on every turn.

What the host sends with the kickoff

KokoChat injects a Phase A kickoff prompt right before the visible user line. That prompt is the authoritative source of truth for this turn's hard constraints (3 numbered rules), the koko.deeply.research.notes JSON schema, and the prose sentinel 〔KP〕 requirement. Always follow what the kickoff prompt says. Do not produce a koko.deeply.research.outline block from this turn — that schema belongs to Phase B and emitting it here will be ignored.

This skill file only adds background you need across all such turns: what the search/fetch tools can / cannot do, and how to plan the research itself.

Tools

The deeply agent uses KokoChat's hosted search wrapper plus OpenClaw's built-in web_fetch.

KokoChat hosted search (kokochat-search)

Run a web search via the local exec wrapper installed by KokoChat. The KokoChat Runtime Contract in AGENTS.md gives the exact absolute path for the wrapper; use that command shape:

<kokochat-search/bin/search.mjs absolute path> '{"query":"EN keywords","count":5}'

It calls KokoChat's hosted search proxy (Brave-backed in production), so the user does not need to configure any search API key in their own OpenClaw. Returns title / url / snippet per result.

Args:

  • query (string, required): EN keywords. Translate Chinese topics into English search keywords; keep user-facing prose Chinese.
  • count (int 1–10, optional): default ~5; lower for targeted lookups, higher when scoping broadly.

Pass only query and count. Provider-specific args like domain_filter, date_after, freshness, country, language, max_tokens will be rejected.

Tool quirks worth knowing:

  • The wrapper may return { "ok": false, "error": "..." } if KokoChat's hosted search is unavailable or rate-limited. Be honest; do not invent URLs.
  • Don't batch multiple search calls in one assistant turn — issue them sequentially across narration steps.

web_fetch

Pull one URL's main content as readable text. Useful when a search hit looks unusually authoritative and you want the actual body instead of just the snippet.

Args:

  • url (string, required).
  • maxChars (int, optional): prefer 60000 so the model sees enough body. The Gateway may cap this lower.

Only fetch http:// / https:// URLs that came from a successful KokoChat search. Never fetch file://, skill files, workspace docs, or URLs you invented. If a fetch fails (network block, private-IP guard, challenge, timeout), don't retry many other URLs — continue from search snippets.

Research Planning (generic; no hard-coded domain templates)

Before searching, infer a small research plan from the user's topic itself. Don't insert fixed people, organisations, industries, or examples that the user didn't mention.

Identify:

  1. Key subjects: people / organisations / works / events / markets / technologies / concepts named or implied by the topic.
  2. Time and scope: year, geography, stage, version, comparison target, or other limits.
  3. Controversy structure: mainstream view, counter-view, boundary conditions, common misreadings likely relevant.
  4. Best evidence types: primary text, interview, transcript, filing, paper, policy document, official data, high-quality secondary synthesis.

Queries should start with the exact topic and key subjects, then expand to counterpoints / background / more authoritative original evidence. Avoid filling sources with broad trend pages when narrower material exists. If a topic is very narrow, prefer fewer real sources over more weak ones.

What is NOT in this skill any more

Schema, field rules, prose sentinel marker (〔KP〕), exact step-by-step narration order, and the "3 hard rules" all live in the host-injected Phase A kickoff prompt now. Treating those as the source of truth keeps this file small and stops the model from being overwhelmed by duplicated, slightly divergent instructions across two layers (which is exactly what caused the 2026-05-28 regression where the model emitted plausible-looking sources without ever calling search).

The koko.deeply.research.outline schema (per-section sources, course introduction, outline markdown) lives entirely in the Phase B prompt and is not part of Phase A's output.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,018
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,014
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,013
Skill 文件
  • SKILL.md
    • kokochat-deeply-research
    • Two-phase pipeline (this skill is Phase A)
    • When this skill fires
    • What the host sends with the kickoff
    • Tools
      • KokoChat hosted search (kokochat-search)
      • web_fetch
    • Research Planning (generic; no hard-coded domain templates)
    • What is NOT in this skill any more
  • 项目或源文件

相关 Skill

更多
Gemini Deep Research (J-claw) Gemini Deep Research (J-claw) 通过 gemini-cli deep-research MCP 扩展进行的 Gemini 深度研究功能。适用于用户需要深入研究某个主题、进行市场/行业分析或生成研究报告等场景。
深度调研 (Deep Research) 深度调研 (Deep Research) 中文深度调研工具。基于 academic-deep-research 优化,支持中文 PDF 自动生成(含嵌入式样式、容错降级)、Tavily 搜索集成、飞书自动交付。适用于竞品分析、行业调研、政策研究等需严格方法论的场景。使用原生 OpenClaw 工具(web_search、web_爬取等)。
deep-research deep-research 通过拆解查询、寻找多样来源、交叉核对发现并综合成全面报告,对给定主题进行深入的、多步骤研究。
winson-historical-figures-deep-research-skill winson-historical-figures-deep-research-skill 系统化深度研究历史人物的方法论——超越教科书简化叙事,通过一手史料、学术专著与多元史学视角建立对争议人物的立体认知,支持单人深度研究与多人比较研究。
Deep Research via Gemini CLI Extension Deep Research via Gemini CLI Extension 使用 Gemini CLI 的 gemini-deep-research MCP 扩展执行深度研究。当用户需要对某个主题进行深入、综合性研究时使用。