twhsi/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.
npx skills add https://github.com/twhsi/skills --skill 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.
https://keyword-graph-view.twhsi.chatgpt.site/ when the user wants an interactive Graph View.assets/web-app/ when the user wants to inspect, adapt, or redeploy the validated website source.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"
}
]
}
W1) through blue, cyan, green, yellow, and orange to red (W9); increase line thickness with weight.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.
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.
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.
Take twhsi/keyword-graph-view from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference npm.
Without those the skill loads but fails at the first command.