Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add wangyendt/wayne-skills --skill data-structuregit clone --depth 1 https://github.com/wangyendt/wayne-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/wangyendt/wayne-skills/data-structure)<a href="https://agentmods.dev/skills/wangyendt/wayne-skills/data-structure"><img src="https://agentmods.dev/badge/skills/wangyendt/wayne-skills/data-structure/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/wangyendt/wayne-skills/data-structure"><img src="https://agentmods.dev/badge/skills/wangyendt/wayne-skills/data-structure.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00046 | $0.00932 |
| Opus 5.5 | $0.00018 | $0.00373 |
| Sonnet 5.5 | $0.00009 | $0.00186 |
| Haiku 4.5 | $0.00005 | $0.00093 |
Grade A, and why
pywayne-data-structure scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Pywayne Data Structure
数据结构工具集,提供逻辑条件树、并查集和 XML 文件读写功能。
Quick Start
from pywayne.data_structure import ConditionTree, UnionFind, XmlIO
# 逻辑条件树
tree = ConditionTree("root")
tree.append_by_path([{'tag': 'if', 'attrib': {}, 'text': '条件1'}])
tree.append_by_path([{'tag': 'else', 'attrib': {}, 'text': '条件2'}])
# 并查集操作
uf = UnionFind(10)
rep = uf.find(3) # 返回集合标识
uf.union(1, 2) # 合并两个集合
# XML 读写
xml_io = XmlIO("config.xml", "output.xml")
tree = xml_io.read()
xml_io.write("root", tree)
ConditionTree - 逻辑条件树
用于存储和管理条件表达式的树形结构。
初始化
from pywayne.data_structure import ConditionTree
tree = ConditionTree("root")
添加节点
通过路径列表添加节点。
# 根节点
tree.append_by_path([{'tag': 'if', 'attrib': {}, 'text': '条件1'}])
# 子节点
path = [{'tag': 'if', 'attrib': {}, 'text': '条件1-1'}]
tree.append_by_path(path)
节点字典格式:{'tag': 标签名, 'attrib': 属性字典, 'text': 文本内容}
查找节点
按标签名查找:find(nick_name) - 查找指定标签名的节点
tree.find("if") # 返回 if 节点
按路径查找:find_by_path(path) - 沿给定路径查找节点
node = tree.find_by_path(["root", "if", "条件1-1"])
打印树路径
打印从根到所有叶子的完整路径。
tree.print_path()
UnionFind - 并查集
并查集数据结构,支持按秩合并与路径压缩。
初始化
from pywayne.data_structure import UnionFind
uf = UnionFind(10) # N 个元素
查找集合标识
rep = uf.find(3) # 返回元素 3 所在集合的标识(整数)
合并集合
uf.union(1, 2) # 合并集合 1 和 2
检查连接性
uf.connected(1, 2) # 检查元素 1 和 2 是否在同一集合
元素计数
count = uf.count() # 返回集合中元素数量
XmlIO - XML 读写
用于 XML 文件的读取和写入,支持与 ConditionTree 互转。
初始化
from pywayne.data_structure import XmlIO
xml_io = XmlIO("input.xml", "output.xml")
参数说明:
| 参数 | 类型 | 说明 |
|---|---|---|
file_read |
str | 待读取的 XML 文件路径 |
file_write |
str | 待输出的 XML 文件路径 |
读取 XML
tree = xml_io.read()
返回:解析得到的 ConditionTree 对象
写入 XML
xml_io.write("root", tree)
参数说明:
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 162 lines · 46 tokens per session scan A ee8fdb89ad62
pywayne-data-structure is a skill published in the GitHub repository wangyendt/wayne-skills (9 stars, last pushed 7d ago), licensed MIT. It adds 46 tokens to every session and 932 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
matlab
Builds, reviews, migrates, and plans MATLAB or GNU Octave numerical workflows. Use for arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.
pennylane
Builds and differentiates PennyLane quantum circuits, hybrid PyTorch or JAX models, molecular VQE and QAOA workflows. Use for variational quantum algorithms, quantum machine learning, simulator validation, and moving validated circuits to provider plugins. For hardware-specific compilation use qiskit or cirq; for…
holoscan-install-wheel
Install Holoscan SDK 5.x CUDA 13 Python wheels in an isolated environment, choosing the full stack or version-matched components.
rocm-kernels
Provides guidance for writing and benchmarking optimized Triton kernels for AMD GPUs (MI355X, R9700) on ROCm, targeting HuggingFace diffusers (LTX-Video, SD3, FLUX) and transformers. Core kernels: RMSNorm, RoPE 3D, GEGLU, AdaLN. Includes XCD swizzle, autotune, diffusers integration patterns, and LTX-Video pipeline…
typing-exclusion-worker
Python typing exclusion worker: remove assigned mypy exclusion modules in small scoped batches, fix typing issues, run validation, and produce a structured completion summary. Use when running parallel typing-debt workers or when asked to remove modules from pyproject mypy exclusion overrides.
python
Python development with ruff, mypy, pytest - TDD and type safety.