Agent skill · Audited from source
agent-skills
skill · nannanpa/agent-skillsMIT licenceAudited 13 Oct 2026 · source f718b044200f
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…
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.
- nannanpa/agent-skills★ 0✓SAFE
- addyosmani/agent-skills★ 98k✕BLOCK
- srinivasa-vasu/agent-skills★ 3!CAUTION
- LakehouseBox/agent-skills★ 0!CAUTION
- mikemcg87/agent-skills★ 0✓SAFE
and 3 more with this name.
Trust audit
Audit 0.4.1 · source read 13 Oct 2026
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
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | PASS | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
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
pip install pypdf
git clone https://github.com/nannanpa/agent-skills git -C agent-skills checkout f718b044200f
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
| Agent | Status | More |
|---|---|---|
| Claude Code | Mentioned in its text, not tested | Skills for Claude Code · About Claude Code |
| Codex | Mentioned in its text, not tested | Skills for Codex · About Codex |
| GitHub Copilot | Mentioned in its text, not tested | Skills for GitHub Copilot · About GitHub Copilot |
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
f718b044200f
README badge
For maintainers · shows the latest audit
[](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
helloianneo/ian-xiaohei-illustrations
生成 Ian 风格的中文正文配图。用于用户要求为中文文章、帖子、博客、Notion 文档、工作流文档、方法论、流程、结构、状态、隐喻或观点生成“怪诞”“小黑”“手绘”“正文配图”“文章插图”“配图建议”“shot list”“去标题/改图”等任务;默认使用小黑 IP、纯白手绘、少量红橙蓝批注、简洁清爽但天马行空的视觉风格。
jnMetaCode/superpowers-zh
中文 review 沟通参考——话术模板、分级标注(必须修复/建议修改/仅供参考)、国内团队常见反模式应对。仅在用户显式 /chinese-code-review 时调用,不要根据上下文自动触发。
jnMetaCode/superpowers-zh
中文 commit 与 changelog 配置参考——Conventional Commits 中文适配、commitlint/husky/commitizen 中文模板、conventional-changelog 中文配置。仅在用户显式 /chinese-commit-conventions 时调用,不要根据上下文自动触发。
jnMetaCode/superpowers-zh
中文文档排版参考——中英文空格、全半角标点、术语保留、链接格式、中文文案排版指北约定。仅在用户显式 /chinese-documentation 时调用,不要根据上下文自动触发。
jnMetaCode/superpowers-zh
国内 Git 平台配置参考——Gitee、Coding.net、极狐 GitLab、CNB 的 SSH/HTTPS/凭据/CI 接入差异与镜像同步配置。仅在用户显式 /chinese-git-workflow 时调用,不要根据上下文自动触发。
jnMetaCode/superpowers-zh
当面对 2 个以上可以独立进行、无共享状态或顺序依赖的任务时使用
Add this badge to your README
[](https://modelsatlas.com/skills/nannanpa/agent-skills/)
<a href="https://modelsatlas.com/skills/nannanpa/agent-skills/"><img src="https://modelsatlas.com/skills/nannanpa/agent-skills/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about agent-skills
What does the agent-skills skill do?
Is agent-skills safe to install?
What can agent-skills access on my machine?
Which assistants does agent-skills work with?
How current is this page?
Sources
- github.com/nannanpa/agent-skills — the audited source at commit f718b044200f and every finding aboveObserved · 13 Oct 2026
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.
- What does the agent-skills skill do?
- Is agent-skills safe to install?
- What can agent-skills access on my machine?