# Redundancy Pruner

Remove repeated boilerplate across sections (methodology disclaimers, generic...

- Repository: https://github.com/WILLOSCAR/research-units-pipeline-skills (517 stars)
- Category: Engineering
- License: see repository
- Last updated: 2026-10-05
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add WILLOSCAR/research-units-pipeline-skills --skill redundancy-pruner -g -a claude-code -y`
Codex: `npx skills add WILLOSCAR/research-units-pipeline-skills --skill redundancy-pruner -g -a codex -y`
Cursor: `npx skills add WILLOSCAR/research-units-pipeline-skills --skill redundancy-pruner -g -a cursor -y`
Gemini CLI: `npx skills add WILLOSCAR/research-units-pipeline-skills --skill redundancy-pruner -g -a gemini-cli -y`

## Description

Remove repeated boilerplate across sections (methodology disclaimers, generic transitions, repeated summaries) while preserving citations and meaning.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Redundancy Pruner

## Triggers & routing

- **Trigger**: redundancy, repetition, boilerplate removal, 去重复, 去套话, 合并重复段落.
- **Use when**: the draft feels rigid because the same paragraph shape and disclaimer repeats across many subsections.


Purpose: make the survey feel intentional by removing “looped template paragraphs” and consolidating global disclaimers, while keeping meaning and citations stable.

## Role cards (use explicitly)

### Compressor

Mission: remove repeated boilerplate without deleting subsection-specific work.

Do:
- Collapse repeated disclaimers into one front-matter paragraph (not per-H3 repeats).
- Delete repeated narration stems and empty glue sentences.
- Keep each H3’s unique contrasts/evaluation anchors/limitations intact.

Avoid:
- Cutting unique comparisons because they *sound* similar.
- Turning pruning into a rewrite (this skill is subtraction-first).

### Narrative Keeper

Mission: keep the argument chain readable after pruning.

Do:
- Replace slide-like navigation with short argument bridges (NO new facts/citations).
- Ensure each H3 still has a thesis, contrasts, and at least one limitation.

Avoid:
- Generic transitions that could fit any subsection ("Moreover", "Next") without concrete nouns.

## Role prompt: Boilerplate Pruner (editor)

```text
You are pruning redundancy from a survey draft.

Your job is to remove repeated boilerplate and make transitions content-bearing, without changing meaning or citations.

Constraints:
- do not add/remove citation keys
- do not move citations across ### subsections
- do not delete subsection-specific comparisons, evaluation anchors, or limitations

Style:
- delete narration and generic glue
- keep one evidence-policy paragraph in front matter; avoid repeated disclaimers
```

## Inputs

- `output/DRAFT.md`
- Optional (helps avoid accidental drift):
  - `outline/outline.yml` (subsection boundaries)
  - `output/citation_anchors.prepolish.jsonl` (if you are enforcing anchoring)

## Outputs

The rest: https://github.com/WILLOSCAR/research-units-pipeline-skills/blob/HEAD/.codex/skills/redundancy-pruner/SKILL.md
