by yb2460
CLI harness for WPS Office -- let AI agents control Writer, Calc & Impress via COM automation
# Add to your Claude Code skills
git clone https://github.com/yb2460/harness-anythingGuides for using ai agents skills like harness-anything.
Last scanned: 5/31/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-31T07:46:14.472Z",
"npmAuditRan": true,
"pipAuditRan": true
}No comments yet. Be the first to share your thoughts!
47 个 CLI 命令,通过 COM 自动化接口操控 WPS Office 或 Microsoft Office(Word/Excel/PowerPoint)。
pip install git+https://github.com/yb2460/cli-anything-wps.git
文献管理 + 27 个学术 Skill 集成。写综述、写论文、审稿、做图表一站式。
cli-anything-zotero skills list # 列出所有学术 Skill
cli-anything-zotero skills pipeline original_article # 论著推荐流程
cli-anything-zotero skills pipeline meta_analysis # Meta分析流程
cli-anything-zotero skills journal "Nature" # 期刊图表规范
7 大 Skill 分类:
| 分类 | Skill 数 | 能力 | |------|---------|------| | search | 3 | 快速检索 / 系统评价 / 深度文献搜索 | | research | 4 | 创意生成 / 头脑风暴 / 假设 / 深度研究 | | writing | 5 | 写论文 / IMRAD稿件 / 引用 / 大纲 / 修改 | | review | 5 | 5人审稿 / 同行评审 / 七轮对抗 / 引用验证 | | visualization | 4 | 幻灯片 / 示意图 / 海报 / 期刊图表 | | analysis | 3 | 探索分析 / 统计 / 证据评估 | | pipeline | 2 | 完整学术流水线 / 研究到论文 |
通过 Windows COM 自动化接口操控 Adobe Illustrator,让 AI Agent 直接创建和编辑矢量图形。
CLI 命令 → Click CLI → Core 模块 → COM Bridge → Illustrator.Application → Illustrator 引擎
cd illustrator-harness/agent-harness
pip install -e .
| 命令组 | 功能 |
|--------|------|
| project | 新建/打开/保存 AI 文档 |
| layers | 图层增删改、可见性、锁定 |
| shapes | 矩形、椭圆、线条、多边形绘制 |
| text | 文字添加/修改(字体、大小、颜色) |
| export | 导出 PNG / JPEG / SVG / PDF / AI |
# 快速上手
cli-anything-illustrator project new logo.ai -w 500 -h 500
cli-anything-illustrator text add "Brand" --x 100 --y 100 --font "Arial" --size 72
cli-anything-illustrator shapes rect --x 50 --y 50 --w 200 --h 100
cli-anything-illustrator export svg output.svg
前置条件:Windows 10/11 + Adobe Illustrator 2023+ + Python 3.10+ + pywin32 + click
通过 Windows COM 自动化接口操控 Adobe Photoshop,让 AI Agent 直接创建和编辑位图图像。
CLI 命令 → Click CLI → Core 模块 → COM Bridge → Photoshop.Application → Photoshop 引擎
cd photoshop-harness/agent-harness
pip install -e .
| 命令组 | 功能 |
|--------|------|
| project | 新建/打开/保存 PSD 文档 |
| document | 文档属性(尺寸、分辨率、色彩模式) |
| layer | 图层增删改、可见性、透明度、混合模式 |
| selection | 选区操作(全选/羽化/反选/扩展) |
| image | 图像调整(裁切、旋转、翻转、画布大小) |
| text | 文字图层(字体、大小、颜色) |
| export | 导出 PNG / JPEG / WebP / PSD |
| filter | 滤镜操作 |
# 快速上手
cli-anything-photoshop project new poster.psd -w 1920 -h 1080
cli-anything-photoshop text add --content "Hello World" --font "Arial" --size 72
cli-anything-photoshop export png --output result.png
前置条件:Windows 10/11 + Adobe Photoshop 2023+ + Python 3.10+ + pywin32
# WPS 办公
cli-anything-wps document new --type impress --name "演示"
cli-anything-wps preset apply academic --talk-type defense
cli-anything-wps export render output.pptx -p pptx
# Zotero 学术
cli-anything-zotero skills pipeline thesis
cli-anything-zotero catalog search "machine learning"
# Illustrator 设计
cli-anything-illustrator project new logo.ai -w 500 -h 500
cli-anything-illustrator shapes rect --w 200 --h 200
# Photoshop 设计
cli-anything-photoshop project new banner.psd -w 1920 -h 1080
cli-anything-photoshop export png banner.png
COM 接口与 Microsoft Office VBA 兼容。如需操控 MS Office,将 ProgID 改为
PowerPoint.Application/Word.Application/Excel.Application即可。
MIT