Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

Agent skill · Audited from source

agent-skills

skill · nannanpa/agent-skillsMIT licenceAudited 13 Oct 2026 · source f718b044200f

★ 0pushed todayversion 1.0.0
✓SAFEGrade B · 89/100 · 13 Oct 2026 · f718b04
0repo stars · whole nannanpa/agent-skills

Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit f718b044200f and observed network access and no hard-coded secrets. What it does: This skill should be used when inserting tracked changes (修订模式 / redline revisions) into a .docx document with python-docx + lxml, especially for Chinese official documents that must open cleanly in WPS without the…

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “agent-skills (nannanpa/agent-skills)”. Retrieved 13 Oct 2026. https://modelsatlas.com/skills/nannanpa/agent-skills

8 skills are called “agent-skills”. You are viewing nannanpa/agent-skills. 2 of them are BLOCK.

and 3 more with this name.

Trust audit

Audit 0.4.1 · source read 13 Oct 2026

Trust score89/100✓SAFE B
0 critical0 high0 medium0 low0 info

SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.

What the source does

  • FilesystemNone observedNo reads or writes in the source
  • NetworkDeclared3 observations
  • ShellNone observedNo commands run in the source
  • DependenciesPinnedNothing floats
  • SecretsNone foundNo keys in source

Five audit layers

LayerWhat we checkResultFindings
L0 ProvenanceRepo owner, licence, archive status, activityPASS0
L1 Static sourceSecrets, path traversal, supply chain, hidden codePASS0
L2 InstructionsPrompt injection, authority framing, hidden directivesPASS0
L3 InventoryThe files and declarations match the sourcePASS0
L4 SandboxRun in isolation and watch behaviourSKIPPED why0

Gates applied: no behavioural pass.

Findings (0)

No findings at any severity. We re-audit when the source changes.

Audit 0.4.1 · source sha f718b044200f · 13 Oct 2026Report an issue or request a re-scan

Provenance

Who published it, and what the verdict is pinned to

  • Publishernannanpa GitHub userOwner of the repository this skill is read from
  • Source foldernannanpa/agent-skillsThe exact folder we audited
  • LicenceMITAs the repository states it
  • Commit pinned for this verdictf718b044200fA new audit runs when the source changes
  • Repository statusNot archivedPushed today
  • Sandboxed runNot runSkills are read, not executed; layer L4 is skipped

What it tells the agent

Full source on GitHub ↗

Its description: This skill should be used when inserting tracked changes (修订模式 / redline revisions) into a .docx document with python-docx + lxml, especially for Chinese official documents that must open cleanly in WPS without the…

---
name: docx-track-changes-wps
description: This skill should be used when inserting tracked changes (修订模式 / redline revisions) into a .docx document with python-docx + lxml, especially for Chinese official documents that must open cleanly in WPS without the "rainbow spinner / 无响应" hang. Covers enabling trackChanges, placing w:ins insertions, avoiding the WPS infinite-loop pitfalls, and verifying the result.
---

# docx-track-changes-wps

Insert real, WPS-safe tracked changes into a Word `.docx` using python-docx plus direct `lxml` manipulation. Designed for Chinese official-document redline workflows (e.g. 报送"两个工作要点"修改意见、在发文稿上以"修订模式"标注修改/新增).

## When to use

- A user asks to "另存一份原文稿 / 打开修订模式 / 以修订模式把修改意见修订进去" on a `.docx`.
- The output must open in **WPS** (common in Chinese government / university environments) without hanging on a rainbow spinner.
- Revisions are "修改完善"(revise) or "新增"(add) — i.e. mostly insertions against an existing paragraph.

## Golden rule: prefer `w:ins` over `w:del`

For Chinese redline workflows the safest pattern is **insertion-only**: keep the original run text and insert the new text as a `w:ins` element right after the anchor run. Avoid `w:del` (deletions) wherever possible — `w:del` with `w:delText` and `w:rPrChange` is the single most common trigger of the WPS rainbow-loop hang. If a "replacement" is really "append a suffix", model it as an insertion after the original phrase, not as delete+insert.

## WPS rainbow-loop avoidance checklist (mandatory)

1. **Unique `w:id`** across the whole document (use a global counter, start high like 10001 to avoid clashing with any existing ids).
2. **Valid `w:date`** in ISO 8601 form, e.g. `2026-07-23T09:00:00Z`.
3. **`w:author`** present on every `w:ins`.
4. **Enable track changes properly**: in `word/settings.xml` add `<w:trackChanges w:val="true"/>` AND add `<w:rsidRoot w:val="..."/>` (reuse the existing `w:rsidRDefault` value if present, else a fixed 8-hex value). Missing `rsidRoot` while runs carry `w:rsidR` is a known WPS hang trigger.
5. **Inserted `w:r` carries NO `w:rPr`** (plain `<w:r><w:t>...</w:t></w:r>` inside the `w:ins`). An `rPr` that references a font/style not present can make WPS loop.
6. **Never touch the body-level `w:sectPr`** (it is a direct child of `w:body`, not inside the last paragraph) and never wrap the final section-break paragraph in `w:ins`/`w:del`.
7. Keep `w:t` text with `xml:space="preserve"` so leading/trailing spaces survive.

## Procedure

1. Copy the original `.docx` to a new filename first (keep the source pristine).
2. Open with python-docx; enable `trackChanges` + `rsidRoot` in `doc.settings.element`.
3. For each revision, locate the target paragraph and the anchor **run** that contains the boundary phrase. All runs in these docs typically have `style=None` (inherited paragraph font) — safe to copy or omit `rPr`.
4. Insert the new text as a `w:ins` element placed as a sibling right after the anchor run. If the boundary phrase ends mid-run, split the run at the offset (copy `rPr` to the new suffix run, set the original run's text to the prefix), then insert the `w:ins` between prefix and suffix.
5. `doc.save(...)` and verify (see below).

## Known pitfalls

- **Hidden characters in anchor phrases.** Chinese documents frequently embed `》(U+300B)`, ``(U+300C)`, `—(U+2014)` etc. inside what looks like plain text (e.g. `《...(2025—2027年)》` ends with `年)》。`). A literal anchor like `"年),"` will NOT match because of the hidden `》`. **Construct tricky anchors with explicit Unicode escapes** (`"年"+"\uFF09"+"\u300B"+"\uFF0C"`) and/or print `repr()` of the candidate run to confirm exact characters before matching.
- **python-docx `paragraph.text` omits `w:ins` content.** After editing, `paragraph.text` will NOT show inserted text (it only concatenates direct `w:r` children, not runs inside `w:ins`). To verify placement, parse `word/document.xml` and concatenate all descendant `w:t` (including those under `w:ins`/`w:del`).
- **Run boundaries**: a phrase often spans multiple runs (e.g. `"一院一策"` split as `一院`+`策`). Anchor on the run that *starts* with the phrase tail, or split at the run boundary, rather than assuming one run.

## Verification (always run after save)

- `zipfile.ZipFile(path).testzip()` is `None` (archive intact).
- `etree.fromstring(z.read('word/document.xml'))` parses (well-formed).
- `trackChanges` value is `true`; `rsidRoot` present.
- Count `w:ins` == expected, `w:del` == 0 (if insertion-only), `w:id` set is unique, each `w:ins` has author+date+inner `w:r`.
- For each target paragraph, full-text (incl. `w:ins`) contains the inserted keywords.

See `scripts/apply_track_changes.py` for a ready-to-use, WPS-safe implementation with an `apply(paragraph_index, anchor_phrase, insert_text)` helper.

Excerpt, first 4,801 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.

Install

Pinned to the audited commit f718b04

Download folder ↗
pip install pypdf

Commands as the repository documents them: shown, never run by us. Our verdict covers commit f718b044200f only.

Works in which agents?

What its own text says, not a test

AgentStatusMore
Claude CodeMentioned in its text, not testedSkills for Claude Code · About Claude Code
CodexMentioned in its text, not testedSkills for Codex · About Codex
GitHub CopilotMentioned in its text, not testedSkills for GitHub Copilot · About GitHub Copilot
“Mentioned” means the skill’s text names the agent. We have not run it there.

Audit history

Every audit, every source change

  1. ✓SAFE B 89 / 100

    first audit · source f718b044200f

README badge

For maintainers · shows the latest audit

ModelsAtlas: SAFE BMODELSATLASSAFE · B
[![ModelsAtlas: SAFE B](https://modelsatlas.com/skills/nannanpa/agent-skills/badge.svg)](https://modelsatlas.com/skills/nannanpa/agent-skills/)

The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.

Similar skills

ian-xiaohei-illustrations✓SAFE

helloianneo/ian-xiaohei-illustrations

生成 Ian 风格的中文正文配图。用于用户要求为中文文章、帖子、博客、Notion 文档、工作流文档、方法论、流程、结构、状态、隐喻或观点生成“怪诞”“小黑”“手绘”“正文配图”“文章插图”“配图建议”“shot list”“去标题/改图”等任务;默认使用小黑 IP、纯白手绘、少量红橙蓝批注、简洁清爽但天马行空的视觉风格。

★ 13kGrade B
Chinese Code Review✓SAFE

jnMetaCode/superpowers-zh

中文 review 沟通参考——话术模板、分级标注(必须修复/建议修改/仅供参考)、国内团队常见反模式应对。仅在用户显式 /chinese-code-review 时调用,不要根据上下文自动触发。

★ 8.3kGrade B
Chinese Commit Conventions✓SAFE

jnMetaCode/superpowers-zh

中文 commit 与 changelog 配置参考——Conventional Commits 中文适配、commitlint/husky/commitizen 中文模板、conventional-changelog 中文配置。仅在用户显式 /chinese-commit-conventions 时调用,不要根据上下文自动触发。

★ 8.3kGrade B
Chinese Documentation✓SAFE

jnMetaCode/superpowers-zh

中文文档排版参考——中英文空格、全半角标点、术语保留、链接格式、中文文案排版指北约定。仅在用户显式 /chinese-documentation 时调用,不要根据上下文自动触发。

★ 8.3kGrade B
Chinese Git Workflow✓SAFE

jnMetaCode/superpowers-zh

国内 Git 平台配置参考——Gitee、Coding.net、极狐 GitLab、CNB 的 SSH/HTTPS/凭据/CI 接入差异与镜像同步配置。仅在用户显式 /chinese-git-workflow 时调用,不要根据上下文自动触发。

★ 8.3kGrade B
Dispatching Parallel Agents✓SAFE

jnMetaCode/superpowers-zh

当面对 2 个以上可以独立进行、无共享状态或顺序依赖的任务时使用

★ 8.3kGrade B

Add this badge to your README

[![ModelsAtlas: SAFE B](https://modelsatlas.com/skills/nannanpa/agent-skills/badge.svg)](https://modelsatlas.com/skills/nannanpa/agent-skills/)

Questions about agent-skills

What does the agent-skills skill do?
Battle-tested agent skills for university planning & discipline construction: gongwen writing, proposal grilling, WPS-safe docx tracked changes, oversized-image reading, PDF-to-Markdown cleanup, Civil Code lookup & Dream of the Red Chamber corpus. Open Agent Skills spec — works with Claude Code & an
Is agent-skills safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can agent-skills access on my machine?
The audit observed that it reaches the network. Each of those is consistent with what it says it does. Secrets in the source: none found.
Which assistants does agent-skills work with?
Its documentation mentions claude-code, codex and copilot. That is what the text claims, not a compatibility test we ran.
How current is this page?
The grade is for one exact copy of the source (f718b044200f), read on 2026-10-13. The repository is watched, and a new audit runs when it changes — this is the first audit.

Sources

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.