Skip to content
Agentmart
Submit a tool

formula-protection

数学公式保护。

Skill by Murchey

IndexedGPL-3.0★ 4
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/murchey-formula-protection

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

数学公式保护。

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/formula-protection

What's inside

Skill name
formula-protection
Description
数学公式保护。
License
GPL-3.0
Instructions
49 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (2)

  • SKILL.md
  • formula_detector.py · scripts/

SKILL.md (first lines)

# Formula Protection

锁定并保护数学公式,防止格式化过程中被修改或删除。

**输入**:`validated_ast` 或 DOCX 文件路径
**输出**:`workspace/normalized/protected_ast.json`

---

# 调用方式

```python
import sys
sys.path.insert(0, 'SKILLS/formula-protection/scripts')
from formula_detector import FormulaDetector

detector = FormulaDetector('workspace/input/input.docx')
detector.run()
# 输出: workspace/normalized/protected_ast.json
```

**参数**:
- `__init__(docx_path)` - DOCX 文件路径
- `run()` - 执行公式检测与保护

---

# 保护内容

必须保护:
- OMML 公式
- MathType 公式
- LaTeX 公式
- Equation Numbering

---

# 安全规则

**禁止**:修改公式内容、删除公式 XML、修改公式 namespace
**必须**:保留公式原始结构、保持公式与文本的关联

---

# 错误处理

公式损坏 → 输出警告日志、保留原公式、继续处理

From Murchey/doc-form-master, GPL-3.0.

More from Murchey/doc-form-master

Signals

Stars
4
Forks
0
Open issues
0
Last commit (this folder)
May 28, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
GPL-3.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Murchey

Cite this page

formula-protection skill. Agent Mart. https://agentmart.dev/skills/murchey-formula-protection (last updated 2026-10-24)