Agent Skillshikariming/openkoto › generate-mindmap

generate-mindmap

GitHub

将文本内容转化为符合严格JSON Schema的层级思维导图。通过增量读取源文、提取主题与实体关系构建知识树,并处理长文本或低质量内容的边界情况,最终输出结构化JSON结果。

textlingo-desktop/agent-worker/.claude/skills/generate-mindmap/SKILL.md hikariming/openkoto

触发场景

需要生成文章级思维导图 将非结构化文本转换为结构化JSON

安装

npx skills add hikariming/openkoto --skill generate-mindmap -g -y
更多选项

非标准路径

npx skills add https://github.com/hikariming/openkoto/tree/main/textlingo-desktop/agent-worker/.claude/skills/generate-mindmap -g -y

不安装直接使用

npx skills use hikariming/openkoto@generate-mindmap

指定 Agent (Claude Code)

npx skills add hikariming/openkoto --skill generate-mindmap -a claude-code -g -y

安装 repo 全部 skill

npx skills add hikariming/openkoto --all -g -y

预览 repo 内 skill

npx skills add hikariming/openkoto --list

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

  1. Get article overview.
  2. Determine whether the content is suitable for a mind map.
  3. Read source windows incrementally when needed.
  4. Build a concise topic tree from themes, entities, events, and relations.
  5. Re-check evidence for uncertain or important nodes.
  6. Return a strict JSON result and save it as a mind_map artifact.

Boundary Handling

  • music_only: return not_applicable.
  • empty_transcript: return not_applicable.
  • poor_source_quality: return partial or not_applicable depending on severity.
  • too_long_partial_only: return partial with only the high-salience structure.

Output Contract

  • status: applicable | partial | not_applicable
  • reason: nullable string reason code
  • map: nullable mind map payload
  • diagnostics: required diagnostics object

版本历史

  • 2a8dc13 当前 2026-08-20 07:30

元信息

文件数
0
版本
9b99799
Hash
fdba3819
收录时间
2026-08-20 07:30

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-03 23:45
浙ICP备14020137号-1 $访客地图$