replacewords
Replace sentence-by-sentence revised or paraphrased text back into an original paper or document while preserving the original formatting, typography, paragraph settings, citation layout, and document conventions as the source of truth. Use when the user provides revised text that maps back to original sentences, paragraphs, sections, or the whole document, but may also contain clear local sentence merges or splits, and asks to replace it back into the source, keep the original formatting, do sentence-by-sentence replacement, preserve original formatting, or only swap wording without rewriting the document. Only allow minimal edits to the rewritten text when fixing citation formatting, restoring protected original content, restoring the original person reference, or minimally splitting/merging text back into original sentence slots; otherwise do not improve grammar, style, logic, or wording.
zxzin · 已有静态检查记录
安装与使用
运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。
npx skills add zxzin/runpro --skill replacewords技能说明
name: replacewords description: Replace sentence-by-sentence revised or paraphrased text back into an original paper or document while preserving the original formatting, typography, paragraph settings, citation layout, and document conventions as the source of truth. Use when the user provides revised text that maps back to original sentences, paragraphs, sections, or the whole document, but may also contain clear local sentence merges or splits, and asks to replace it back into the source, keep the original formatting, do sentence-by-sentence replacement, preserve original formatting, or only swap wording without rewriting the document. Only allow minimal edits to the rewritten text when fixing citation formatting, restoring protected original content, restoring the original person reference, or minimally splitting/merging text back into original sentence slots; otherwise do not improve grammar, style, logic, or wording.
Replacewords
Overview
Use this skill to take rewritten text that was made from the original paper's sentences, paragraphs, sections, or full text and replace the original wording while keeping the original document's formatting and conventions intact. Treat the original text as the standard for position, run-level formatting, typography, paragraph settings, citation style, person reference, and document structure.
Preserve the original file type whenever feasible. If the source artifact is a native office file, the default output should remain in that same native format rather than silently degrading to plain text.
Core Standard
Follow these rules in order:
- Treat the original text as correct.
- Create a new working copy from the original before making any replacements, and keep the original unchanged unless the user explicitly requests otherwise.
- Create that working copy in the same directory as the original file by default.
- Name that working copy by keeping the original filename stem and replacing any old replacement suffix such as
-replacedwith the current date as a trailing suffix inYYYY-MM-DDformat before the extension, for examplepaper-2026-04-15.docx. - If the same-directory date-suffixed filename already exists, append a minimal numeric suffix instead of overwriting it, for example
paper-2026-04-15-2.docx. - If the original artifact is
.docx, default both the working copy and the final deliverable to.docx. - If the original artifact is
.pptx, default both the working copy and the final deliverable to.pptx. - Only fall back to plain text or markdown when the current environment truly cannot produce or safely edit the required native format, and state that limitation explicitly.
- Replace only the text content that the user intends to swap.
- Preserve the original location, formatting, typography, paragraph settings, numbering, emphasis, citation placement, punctuation style, and surrounding structure unless one of the allowed fixes is required.
- Preserve protected formatted content from the original, especially italicized works/titles/names and superscript content, even if the rewritten text changes or omits them.
- Preserve protected factual and reference content from the original, including names, numbers, identifiers, abbreviations, and cross-reference markers, even if the rewritten text changes them.
- Assume the rewritten text exists only to replace the original wording in the same source slots, not to improve writing quality.
- Never "polish" the rewritten text for fluency, grammar, style, precision, tone, or academic quality.
- Because this skill's default purpose is source-based replacement, assume the provided rewritten text was made from the original sentence, paragraph, section, or whole document unless the user says otherwise. Treat noisy factual, citation, table/figure, or cross-reference drift as a recoverable alignment problem first, not an immediate stop condition. Map the rewritten text back to original slots, restore protected original content, and stop only if the mapping remains unrecoverable after that reconciliation attempt.
Native File Output Rule
Native format preservation is the default, not an optional enhancement.
- If the original file is
.docx, the default final output must be.docx. - If the original file is
.pptx, the default final output must be.pptx. - The skill should preserve the original file type in both the working copy and the saved final artifact whenever the source file and current environment make that possible.
- The working copy should be created in the same directory as the original file by default.
- The working copy should keep the original filename stem and append the current date as a trailing suffix in
YYYY-MM-DDformat before the extension whenever feasible. - If that date-suffixed filename already exists in the same directory, append a minimal numeric suffix instead of overwriting the existing file.
- Do not silently downgrade a document or slide replacement task into markdown or plain text merely because text replacement is easier.
- Only if the current environment truly cannot produce or safely edit the native format may the skill fall back to markdown or plain text, and that limitation must be made explicit in the final response.
Native Style Fidelity Rule
Formatting preservation means inheriting the original document's style settings, not merely approximating them.
- Reuse the original styled container, paragraph, run, shape, or text box whenever feasible instead of recreating content with default styles.
- Preserve typography from the original, including font family, font size, bold, italics, underline, color, highlight, small caps, superscript, subscript, and character spacing when present.
- Preserve paragraph settings from the original, including alignment, left and right indent, first-line or hanging indent, tabs, line spacing, spacing before and after, numbering level, bullet style, and keep-with-next style