本文へ移動
cccskills
無料GitHub で公開

keyword-graph-view

Extract exactly 8 context-sensitive keywords from Chinese, English, or mixed text and turn them into a distributed weighted Graph View with no center goal node. Use when Codex needs keyword extraction, blacklist filtering, co-occurrence edges, node definitions/notes, weighted graph JSON, or an online Graph View tool for text analysis.

インストール方法を見る

含まれるファイル(29)

  • SKILL.md3.9 KB
  • agents/openai.yaml208 B
  • assets/web-app/.gitignore491 B
  • assets/web-app/.openai/hosting.json91 B
  • assets/web-app/app/cases.ts31.6 KB
  • assets/web-app/app/chatgpt-auth.ts2.3 KB
  • assets/web-app/app/globals.css12.7 KB
  • assets/web-app/app/layout.tsx1.4 KB
  • assets/web-app/app/page.tsx29.6 KB
  • assets/web-app/build/sites-vite-plugin.ts1.2 KB
  • assets/web-app/db/index.ts423 B
  • assets/web-app/db/schema.ts169 B
  • assets/web-app/drizzle.config.ts148 B
  • assets/web-app/drizzle/meta/_journal.json61 B
  • assets/web-app/eslint.config.mjs465 B
  • assets/web-app/next.config.ts133 B
  • assets/web-app/package-lock.json370.3 KB
  • assets/web-app/package.json1.2 KB
  • assets/web-app/postcss.config.mjs94 B
  • assets/web-app/public/favicon.svg712 B
  • assets/web-app/public/file.svg391 B
  • assets/web-app/public/globe.svg1.0 KB
  • assets/web-app/public/og.png1.2 MB
  • assets/web-app/public/window.svg385 B
  • assets/web-app/tests/rendered-html.test.mjs1.5 KB
  • assets/web-app/tsconfig.json666 B
  • assets/web-app/vite.config.ts1.7 KB
  • assets/web-app/worker/index.ts1.7 KB
  • scripts/extract_keyword_graph.py9.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Keyword Graph View

Create a centerless keyword network from raw text. The output should contain 8 keyword nodes, weighted undirected edges, and a short definition/note for every node.

Live Tool

  • Open the public app at https://keyword-graph-view.twhsi.chatgpt.site/ when the user wants an interactive Graph View.
  • Use assets/web-app/ when the user wants to inspect, adapt, or redeploy the validated website source.
  • In the web app, paste or import text, edit the blacklist, select a case, and press the generate button. Click a node to inspect its definition, note, evidence, and weighted connections.

Workflow

  1. Read the source text and any user-provided blacklist.
  2. Remove blacklisted phrases before token scoring, then filter blacklisted tokens during ranking.
  3. Extract exactly 8 keywords by frequency, term length, and spread through the source.
  4. Build weighted co-occurrence edges by scanning a configurable token window.
  5. Do not create a "center", "main goal", "中心目標", or hub node unless the user explicitly asks for a radial Mandalart layout.
  6. Generate a definition for each node from its strongest evidence sentence and connected keywords.
  7. Render or return a distributed graph: positions should be balanced across the canvas, with edge width and node area showing weight.

Output Schema

Return graph JSON with this shape when the user asks for data or a reusable artifact:

{
  "meta": {
    "model": "keyword_graph_view",
    "keyword_count": 8,
    "layout": "distributed_weighted_network"
  },
  "nodes": [
    {
      "id": "k0",
      "label": "keyword",
      "count": 5,
      "score": 1,
      "weight": 9,
      "definition": "Context-specific definition",
      "note": "Longer note for side panel display",
      "evidence": ["source sentence"]
    }
  ],
  "edges": [
    {
      "id": "e0",
      "source": "k0",
      "target": "k1",
      "weight": 7,
      "relation": "co_occurs"
    }
  ]
}

Visual Rules

  • Use dark mode by default for online tools.
  • Keep the graph centerless and distributed; avoid drawing a privileged center node.
  • Show edge labels or widths for weights.
  • Make nodes clickable or keyboard focusable when interactive output is possible.
  • Provide a right-side Note panel that updates from the selected node.
  • Include each node's definition, evidence sentences, score, count, and connected keywords in the note.
  • Keep labels readable in Traditional Chinese: use system CJK fonts, strong contrast, and label wrapping where needed.
  • Map edge weight from purple (W1) through blue, cyan, green, yellow, and orange to red (W9); increase line thickness with weight.
  • Provide visible zoom-in and zoom-out controls for the graph canvas.

Blacklist

Treat the blacklist as both phrase removal and token filtering. Default blacklist terms should include common structural words and Mandalart-center words such as:

中心目標
主目標
main goal
goal
中心
目標

Preserve the user's blacklist in the output metadata when useful.

Script

Use scripts/extract_keyword_graph.py for deterministic text-to-graph JSON:

python3 scripts/extract_keyword_graph.py input.txt --blacklist blacklist.txt --out graph.json

Patch the script only when the project needs a new schema or scoring behavior; otherwise prefer running it with options.

Web App

Run the bundled app locally only when interactive verification or customization is needed:

cd assets/web-app
npm install
npm run dev

Before publishing a modified app, run npm test and npm run lint.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Use A4 Eight Page Booklet 2.2 to create, write, repair, impose, and validate a printable A4 one-sheet eight-page mini book or zine from text, notes, images, BIRD Graph JSON, iMandalArt/九宮, FIRE, outlines, templates, or PDFs. Use whenever the user says A4八頁小書, 八頁小書, 八頁小冊, 八格小書, A4一張八頁, 八頁在一頁, 8頁在一頁, 八張一頁, 一張紙變八頁, 摺頁書, 折頁小書, 迷你書, 小誌, zine, mini zine, booklet, 做成小書, 印成小書, 單張印出八頁, 幫我拼版, 八頁PDF, 合併八頁, 6-7-8-1/5-4-3-2排列, or asks for eight upright page PDFs, an eight-page reading PDF, an editable DOCX, or a correctly rotated A4 landscape print sheet.

日本語の概要は準備中です。原文の説明を表示しています。

twhsi/skills2582026年7月22日 更新

Assign, validate, normalize, and explain Luhmann/Zettelkasten-style project-note codes for Chinese book manuscripts, Obsidian Markdown folders, Mandala-Grid section files, HyperCard Markdown stacks, and project-note JSON to EPUB workflows. Use when Codex needs to scan folders for 部/章/節/項/目 numbering, generate stable card ids, insert branch codes without renumbering existing notes, map letter-coded branches to Obsidian Mandala sections, preserve K### keyword index cards, sanitize private catalogs into public examples, or prepare card IDs for EPUB and HyperCard output.

日本語の概要は準備中です。原文の説明を表示しています。

twhsi/skills2582026年7月22日 更新

Create companion Codex workflows from book chapters, reader exercises, prompts, field notes, and teaching material. Use when Codex needs to turn a chapter excerpt, 書籍練習, AI 提示詞, worksheet, or author note into a reusable Skill-style workflow, GitHub-shareable companion artifact, or book link resource for readers.

日本語の概要は準備中です。原文の説明を表示しています。

twhsi/skills2582026年7月22日 更新

Compress answers to the highest practical information density with minimal wording while preserving essential meaning. Use when the user asks for 言簡意賅, 講重點, Concise, 精簡回答, 簡潔回答, 只講重點, 直接回答, brief, TL;DR, or otherwise requests a concise key-points response.

日本語の概要は準備中です。原文の説明を表示しています。

twhsi/skills2582026年7月22日 更新

Convert EPUB card books into Obsidian-ready HyperCard Markdown folders and portable zip files. Use when Codex needs to turn an EPUB with XHTML chapters, table-of-contents cards, keyword index cards, backlinks, Luhmann/Zettelkasten numbers, or cross-links into one Markdown file per card with verified relative links, keyword cards, previous/home/next navigation, and GitHub/shareable zip output.

日本語の概要は準備中です。原文の説明を表示しています。

twhsi/skills2582026年7月22日 更新

Create Fantastical calendar events and reminders from Codex on macOS. Use when the user asks Codex to add, schedule, parse, preview, or send a meeting, appointment, task, reminder, time block, daily plan item, 行事曆, 日曆, 會議, 待辦, or 提醒 into Fantastical.

日本語の概要は準備中です。原文の説明を表示しています。

twhsi/skills2582026年7月22日 更新

twhsi のスキルをすべて見る

このスキルの問題を報告する