archived/xmind/SKILL.md
Programmatically create, read, and modify XMind mind map files (.xmind). Provides Python utilities for parsing xmind files, inserting topics, setting background colors, and creating new mind maps from templates. Use when working with XMind files for automation, batch processing, or generating mind maps programmatically.
npx skillsauth add cruldra/skills xmind-processorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Programmatically work with XMind mind map files (.xmind format).
This skill provides Python utilities to:
All scripts are located in scripts/ directory.
from scripts.xmind_utils import read_content, write_content, modify_content
# Read xmind file
content = read_content("file.xmind")
# Write modified content back
write_content("file.xmind", new_content, output_path="output.xmind")
# Modify with a function
modify_content("file.xmind", lambda c: do_something(c), output_path="output.xmind")
from scripts.create_xmind import create_xmind
# Create blank mind map
create_xmind("new.xmind")
# Create with custom titles
create_xmind(
"new.xmind",
sheet_title="My Canvas",
root_topic_title="Central Topic"
)
Command line:
uv run scripts/create_xmind.py output.xmind --sheet-title "Project" --root-topic "Goals"
from scripts.insert_topic import insert_topic, insert_topics_batch
# Insert single topic
insert_topic(
"file.xmind",
parent_jsonpath="$[0].rootTopic",
topic_title="New Child Topic",
output_path="output.xmind"
)
# Batch insert
insert_topics_batch(
"file.xmind",
"$[0].rootTopic.children.attached[0]",
["Sub-topic 1", "Sub-topic 2", "Sub-topic 3"],
output_path="output.xmind"
)
Command line:
# List available paths
uv run scripts/insert_topic.py file.xmind --list-topics
# Insert topic
uv run scripts/insert_topic.py file.xmind --parent '$[0].rootTopic' --title "New Topic"
# Batch insert
uv run scripts/insert_topic.py file.xmind --parent '$[0].rootTopic.children.attached[0]' --titles "A" "B" "C"
from scripts.set_background import set_sheet_background, set_all_sheets_background, list_sheets
# Set single sheet background
set_sheet_background("file.xmind", color="#000000FF", sheet_index=0)
# Set all sheets
set_all_sheets_background("file.xmind", color="#FF0000FF")
# List sheets
sheets = list_sheets("file.xmind")
Command line:
uv run scripts/set_background.py file.xmind --color "#000000FF"
uv run scripts/set_background.py file.xmind --color "#FF0000FF" --all
uv run scripts/set_background.py file.xmind --list
XMind files are ZIP archives containing:
content.json - Main content (sheets, topics, structure)metadata.json - File metadatamanifest.json - Package manifestThumbnails/thumbnail.png - Preview image[
{
"id": "...",
"title": "画布 1",
"rootTopic": {
"id": "...",
"title": "中心主题",
"children": {
"attached": [
{"id": "...", "title": "分支主题 1"},
{"id": "...", "title": "分支主题 2"}
]
}
}
}
]
Use JSONPath to locate topics in the mind map:
$[0].rootTopic - First sheet's central topic$[0].rootTopic.children.attached[0] - First branch topic$[0].rootTopic.children.attached[?(@.title=="分支主题 1")] - Find by titleuv add jsonpath-ng
A blank template is available at assets/demo.xmind.
from scripts.create_xmind import create_xmind
from scripts.insert_topic import insert_topics_batch
# Create new file
create_xmind("project.xmind", sheet_title="Q1 Planning", root_topic_title="Goals")
# Add branch topics
insert_topics_batch(
"project.xmind",
"$[0].rootTopic",
["Marketing", "Development", "Sales"]
)
from scripts.xmind_utils import read_content, write_content
content = read_content("existing.xmind")
# Modify content directly
content[0]['title'] = "New Title"
write_content("existing.xmind", content, output_path="modified.xmind")
from pathlib import Path
from scripts.set_background import set_all_sheets_background
for xmind_file in Path("mindmaps/").glob("*.xmind"):
set_all_sheets_background(xmind_file, color="#000000FF")
When creating topics programmatically:
{
"id": "uuid-here",
"title": "Topic Name",
"titleUnedited": True,
"children": {
"attached": [
# Child topics here
]
}
}
"#000000FF" not #000000FFCommon errors and solutions:
FileNotFoundError: Check file path existsValueError: 不是有效的xmind文件: File is corrupted or not a ZIPIndexError: sheet_index超出范围: Requested sheet doesn't existModuleNotFoundError: jsonpath_ng: Run uv add jsonpath-ngtesting
智能体 UAT 验收测试技能。用于验证智能体在真实场景下的表现是否满足预期。支持任意智能体框架(langchain、langgraph、deepagents、crewai 等)。触发词:测试智能体、验收测试、agent test、UAT
tools
Use when you need to create a Gitea issue, update its spec/plan markers, read or merge an issue's state JSON, or post a PR review comment in a repo that uses the spx CLI (superpowers-vscode workflow).
development
Use when implementing, modifying, refactoring, or reviewing code and the agent must follow explicit coding standards for simplicity, readability, maintainability, testability, project conventions, and minimal safe changes.
development
Use when integrating the deepagents SDK into a Python project — creating agents, configuring backends, adding subagents, middleware, memory, or skills. Also use when debugging deepagents agents or choosing between StateBackend, FilesystemBackend, and LocalShellBackend.