← 返回 Skills 市场
narrative-topology
作者
TurinFohlen
· GitHub ↗
· v1.0.0
· MIT-0
122
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install narrative-topology
功能描述
Extract semantic relationships from long narratives, architectures, or complex discussions using RDF-style triple notation. Generate adjacency matrices to re...
安全使用建议
This skill appears to do what it says: a small Python scanner that finds single-line '<<{Subject, Predicate, Object}.' entries and outputs a subject→object adjacency matrix. It does not access the network or secrets. Before running: 1) Run the script in a dedicated directory (or a copy of your docs) because it recursively reads files under the current working directory and will process any matching extensions. 2) Note that the predicate is ignored by the code — if you need predicate-aware graphs, the script will need modification. 3) The scanner only matches one-line triples that end with '}.', so multi-line or differently formatted triples will be missed. If these limitations are acceptable, the skill is coherent and low-risk; otherwise ask the author for predicate handling, multi-line support, or a narrower file-glob.
功能分析
Type: OpenClaw Skill
Name: narrative-topology
Version: 1.0.0
The narrative-topology skill is a utility designed to extract semantic relationships from text files using a custom RDF-style triple syntax. The provided Python script (scanner.py) recursively scans the current directory for specific file extensions (.md, .txt, etc.), parses the triples, and outputs a compressed adjacency matrix to stdout. The code contains no network calls, no data exfiltration logic, and no suspicious execution patterns; its behavior is entirely consistent with its documented purpose.
能力评估
Purpose & Capability
Name/description (extract RDF-style triples and produce adjacency matrices) align with the included scanner.py and SKILL.md. The only substantive mismatch: the scanner explicitly ignores the predicate field (comment: "p is ignored (predicate)") — the tool converts triples into subject→object edges only. This is coherent for adjacency matrices but means predicate semantics are discarded.
Instruction Scope
SKILL.md tells the user to place scanner.py in a markdown directory and run it; the script recursively reads all files under the current working directory with extensions (.txt, .def, .erl, .ex, .md). It only matches single-line triples that start with '<<{' and end with '}.' so multi-line triples won't be picked up. Scanning entire cwd is expected for this use case but could process files you did not intend (e.g., source files) — run in a dedicated folder if needed.
Install Mechanism
No install spec and no external downloads; this is an instruction-only skill with a small Python script. No packages are installed, nothing is written to disk beyond standard script execution.
Credentials
No environment variables, credentials, or external config paths are requested or used. The script performs only local filesystem reads and stdout writes.
Persistence & Privilege
Skill does not request persistent/system-wide presence (always:false) and does not modify other skills or system settings. It does not persist tokens or change config.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install narrative-topology - 安装完成后,直接呼叫该 Skill 的名称或使用
/narrative-topology触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of narrative-topology skill.
- Introduces RDF-style triple notation for semantic extraction from narratives.
- Provides a Python scanner to extract and expand triples, generating an adjacency matrix.
- Supports parallel subjects/objects with cartesian product notation.
- Outputs compressed adjacency matrices and basic narrative graph statistics.
- Enables downstream graph analysis (degree, paths, cycles) for complex discussions.
- Includes instructions for extending output to weighted edges and Mermaid diagram generation.
元数据
常见问题
narrative-topology 是什么?
Extract semantic relationships from long narratives, architectures, or complex discussions using RDF-style triple notation. Generate adjacency matrices to re... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 122 次。
如何安装 narrative-topology?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install narrative-topology」即可一键安装,无需额外配置。
narrative-topology 是免费的吗?
是的,narrative-topology 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
narrative-topology 支持哪些平台?
narrative-topology 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 narrative-topology?
由 TurinFohlen(@turinfohlen)开发并维护,当前版本 v1.0.0。
推荐 Skills