Agent Skills
› hikariming/openkoto
› generate-mindmap
generate-mindmap
GitHub将文本内容转化为符合严格JSON Schema的层级思维导图。通过增量读取源文、提取主题与实体关系构建知识树,并处理长文本或低质量内容的边界情况,最终输出结构化JSON结果。
触发场景
需要生成文章级思维导图
将非结构化文本转换为结构化JSON
安装
npx skills add hikariming/openkoto --skill generate-mindmap -g -y
SKILL.md
Frontmatter
{
"name": "generate-mindmap",
"description": "Generate an evidence-grounded article-level mind map as strict JSON."
}
Purpose
Generate an article-level mind map for TextLingo content and return strict JSON that matches the project schema.
Hard Rules
- Treat raw source text as the semantic source of truth.
- Do not rely on existing translations or explanations as the primary source.
- For long content, do not attempt to ingest the full document in one step.
- Use only the provided project tools to inspect source material, report progress, and save results.
- If the content is not suitable for a mind map, return
not_applicable. - Return only schema-valid JSON.
Execution Flow
- Get article overview.
- Determine whether the content is suitable for a mind map.
- Read source windows incrementally when needed.
- Build a concise topic tree from themes, entities, events, and relations.
- Re-check evidence for uncertain or important nodes.
- Return a strict JSON result and save it as a
mind_mapartifact.
Boundary Handling
music_only: returnnot_applicable.empty_transcript: returnnot_applicable.poor_source_quality: returnpartialornot_applicabledepending on severity.too_long_partial_only: returnpartialwith only the high-salience structure.
Output Contract
status:applicable | partial | not_applicablereason: nullable string reason codemap: nullable mind map payloaddiagnostics: required diagnostics object
版本历史
- 2a8dc13 当前 2026-08-20 07:30


