Logo de Draft Polisher

Draft Polisher

Comunidade
WILLOSCAR
draft-polisher

Audit-style editing pass for `output/DRAFT.md`: remove template boilerplate, improve coherence, and enforce citation anchoring.

Add to TypingMind

Visão geral

Publicado porWILLOSCAR
Repositórioresearch-units-pipeline-skills
Nome da habilidadedraft-polisher
Estrelas
513
Forks
39
Arquivos incluídos
1
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 1

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por WILLOSCAR no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Draft Polisher no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/WILLOSCAR/research-units-pipeline-skills/tree/main/.codex/skills/draft-polisher
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/WILLOSCAR/research-units-pipeline-skills.git /tmp/research-units-pipeline-skills
mkdir -p .claude/skills
cp -r /tmp/research-units-pipeline-skills/.codex/skills/draft-polisher .claude/skills/draft-polisher
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Draft Polisher em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Draft Polisher automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Draft Polisher não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Draft Polisher (Audit-style editing)

Triggers & routing

  • Trigger: polish draft, de-template, coherence pass, remove boilerplate, 润色, 去套话, 去重复, 统一术语.
  • Use when: a first-pass draft exists but reads like scaffolding (repetition/ellipsis/template phrases) or needs a coherence pass before global review/LaTeX.

Goal: turn a first-pass draft into readable survey prose without breaking the evidence contract.

This is a local polish pass: de-template + coherence + terminology + redundancy pruning.

Note: if the main issue is structural redundancy from section accumulation, push the change upstream to sections/ and use paragraph-curator before merge. draft-polisher should not be the primary place where you decide which paragraphs to keep.

Role cards (use explicitly)

Style Harmonizer (editor)

Mission: remove generator voice and make prose read like one author wrote it.

Do:

  • Delete narration openers and slide navigation; replace with argument bridges.
  • Vary rhythm; remove repeated template stems.
  • Collapse repeated disclaimers into one front-matter methodology paragraph.

Avoid:

  • Adding or removing citation keys.
  • Moving citations across subsections.

Evidence Contract Guard (skeptic)

Mission: prevent polishing from inflating claims beyond evidence.

Do:

  • Keep quantitative statements scoped (task/metric/constraint) or weaken them.
  • Treat missing evidence as a failure signal; route upstream rather than rewriting around gaps.

Avoid:

  • Overconfident language when evidence is abstract-only.

Role prompt: Style Harmonizer (editor expert)

text
You are the style and coherence editor for a technical survey.

Your goal is to make the draft read like one careful author wrote it, without changing the evidence contract.

Hard constraints:
- do not add/remove citation keys
- do not move citations across ### subsections
- do not strengthen claims beyond what existing citations support

High-leverage edits:
- delete generator voice (This subsection..., Next we move..., We now turn...)
- replace navigation with argument bridges (content-bearing handoffs)
- collapse repeated disclaimers into one methodology paragraph in front matter
- keep quantitative statements well-scoped (task/metric/constraint in the same sentence)

Working style:
- rewrite sentences so they carry content, not process
- vary rhythm, but avoid “template stems” repeating across H3s

Inputs

  • output/DRAFT.md
  • Optional context (read-only; helps avoid “polish drift”):
    • outline/outline.yml
    • outline/subsection_briefs.jsonl
    • outline/evidence_drafts.jsonl
    • citations/ref.bib

Outputs

  • output/DRAFT.md (in-place refinement)
  • output/citation_anchors.prepolish.jsonl (baseline, generated on first run by the script)

Non-negotiables (hard rules)

  1. Citation keys are immutable
  • Do not add new [@BibKey] keys.
  • Do not delete citation markers.
  • If citations/ref.bib exists, do not introduce any key that is not defined there.
  1. Citation anchoring is immutable
  • Do not move citations across ### subsections.
  • If you must restructure across subsections, stop and push the change upstream (outline/briefs/evidence), then regenerate.
  1. No evidence inflation
  • If a sentence sounds stronger than the evidence level (abstract-only), rewrite it into a qualified statement.
  • When in doubt, check the subsection’s evidence pack in outline/evidence_drafts.jsonl and keep claims aligned to snippets.
  1. Citation shape normalization
  • Merge adjacent citation blocks in the same sentence (avoid [@a] [@b]).
  • Deduplicate keys inside one block (avoid [@a; @a]).
  • Avoid tail-only citation dumps: keep some citations in the claim sentence itself (mid-sentence), not only paragraph end.
  1. Quantitative claim hygiene
  • If you keep a number, ensure the sentence also states (without guessing): task type + metric definition + relevant constraint (budget/cost/tool access), and the citation is embedded in that sentence.
  • Avoid ambiguous model naming (e.g., “GPT-5”) unless the cited paper uses that exact label; otherwise use the paper’s naming or a neutral description.
  1. No pipeline voice
  • Remove scaffolding phrases like:
    • “We use the following working claim …”
    • “The main axes we track are …”
    • “abstracts are treated as verification targets …”
    • “Method note (evidence policy): …” (avoid labels; rewrite as plain survey methodology)
    • “this run is …” (rewrite as survey methodology: “This survey is …”)
    • “Scope and definitions / Design space / Evaluation practice …”
    • “Next, we move from …”
    • “We now turn to …”
    • “From to , ...” (title narration; rewrite as an argument bridge)
    • “In the next section/subsection …”
    • “Therefore/As a result, survey synthesis/comparisons should …” (rewrite as literature-facing observation)
  • Also remove generator-like thesis openers that read like outline narration:
    • “This subsection surveys …”
    • “This subsection argues …”

Three passes (recommended)

Pass 1 — Subsection polish (structure + de-template)

Best-of-2 micro-polish (recommended):

  • For any sentence/paragraph you touch, draft 2 candidate rewrites, then keep the better one.
  • Choose with a simple rubric: move clarity, no template stem, citations stay anchored, and citation shape stays reader-facing (no adjacent cite blocks / dup keys).
  • Do not keep both candidates. Pick one and move on (the goal is convergence, not endless rewriting).

Role split:

  • Editor: rewrite sentences for clarity and flow.
  • Skeptic: deletes any generic/template sentence.

Targets:

  • Each H3 reads like: tension → contrast → evidence → limitation.
  • Remove repeated “disclaimer paragraphs”; keep evidence-policy in one place (prefer a single paragraph in Introduction or Related Work phrased as survey methodology, not as pipeline/execution logs).
  • Use outline/outline.yml (if present) to avoid heading drift during edits.
  • If present, use outline/subsection_briefs.jsonl to keep each H3’s scope/RQ consistent while improving flow.
  • Do a quick “pattern sweep” (semantic, not mechanical):
    • delete outline narration: This subsection ..., In this subsection ...
    • delete slide navigation: Next, we move from ..., We now turn to ..., In the next section ...
    • delete title narration: From <X> to <Y>, ...
    • replace with: content claims + argument bridges + organization sentences (no new facts/citations)
  • If citation-injector was used, smooth any budget-injection sentences so they read paper-like:
    • Keep the citation keys unchanged.
    • Avoid list-injection stems (e.g., “A few representative references include …”, “Notable lines of work include …”, “Concrete examples ... include ...”).
    • Prefer integrating the added citations into an existing argument sentence, or rewrite as a short parenthetical e.g., ... clause tied to the subsection’s lens (no new facts).
    • Vary phrasing; avoid repeating the same opener stem across many H3s.
  • Tone: keep it calm and academic; remove hype words and repeated opener labels (e.g., literal Key takeaway: across many H3s).
  • Reduce repeated synthesis stems (e.g., many paragraphs starting with Taken together, ...); vary synthesis phrasing and keep it content-bearing.
    • Treat repeated "Taken together," as a generator-voice smell. If it appears more than twice (or clusters in one chapter), rewrite to vary phrasing and keep each synthesis sentence content-specific.
    • Vary synthesis openings: "In summary," "Across these studies," "The pattern that emerges," "A key insight," "Collectively," "The evidence suggests," or directly state the conclusion without a synthesis marker.
    • Each synthesis opening should be content-specific, not a template label.

Rewrite recipe for subsection openers (paper voice, no new facts):

  • Delete: This subsection surveys/argues... / In this subsection, we...
  • Replace with a compact opener that does 2–3 of these (no labels; vary across subsections):
    • Content claim: the subsection-specific tension/trade-off (optionally with 1–2 embedded citations)
    • Why it matters: link the claim to evaluation/engineering constraints (benchmark/protocol/cost/tool access)
    • Preview: what you will contrast next and on what lens (A vs B; then evaluation anchors; then limitations)
  • Example skeletons (paraphrase; don’t reuse verbatim):
    • Tension-first: A central tension is ...; ...; we contrast ...
    • Decision-first: For builders, the crux is ...; ...
    • Lens-first: Seen through the lens of ..., ...

Pass 2 — Terminology normalization

Role split:

  • Taxonomist: chooses canonical terms and synonym policy.
  • Integrator: applies consistent replacements across the draft.

Targets:

  • One concept = one name across sections.
  • Headings, tables, and prose use the same canonical terms.

Pass 3 — Redundancy pruning (global repetition)

Role split:

  • Compressor: collapses repeated boilerplate.
  • Narrative keeper: ensures removing repetition does not break the argument chain.

Targets:

  • Cross-section repeated intros/outros are removed.
  • Only subsection-specific content remains inside subsections.

Script

Quick Start

  • uv run python .codex/skills/draft-polisher/scripts/run.py --help
  • uv run python .codex/skills/draft-polisher/scripts/run.py --workspace <workspace>

All Options

  • --workspace <dir>: workspace root
  • --unit-id <U###>: unit id (optional; for logs)
  • --inputs <semicolon-separated>: override inputs (rare; prefer defaults)
  • --outputs <semicolon-separated>: override outputs (rare; prefer defaults)
  • --checkpoint <C#>: checkpoint id (optional; for logs)

Examples

  • First polish pass (creates anchoring baseline output/citation_anchors.prepolish.jsonl):

    • uv run python .codex/skills/draft-polisher/scripts/run.py --workspace <workspace>
  • Reset the anchoring baseline (only if you intentionally accept citation drift):

    • Delete output/citation_anchors.prepolish.jsonl, then rerun the polisher.

Acceptance checklist

  • No TODO/TBD/FIXME/(placeholder).
  • No … or ... truncation.
  • No repeated boilerplate sentence across many subsections.
  • Citation anchoring passes (no cross-subsection drift).
  • Each H3 has at least one cross-paper synthesis paragraph (>=2 citations).

Troubleshooting

Issue: polishing causes citation drift across subsections

Fix:

  • Keep citations inside the same ### subsection; if restructuring is intentional, delete output/citation_anchors.prepolish.jsonl and regenerate a new baseline.

Issue: draft polishing is requested before writing approval

Fix:

  • Record the relevant approval in DECISIONS.md (typically Approve C2) before doing prose-level edits.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Draft Polisher faz?

Audit-style editing pass for `output/DRAFT.md`: remove template boilerplate, improve coherence, and enforce citation anchoring.

Por que usar Draft Polisher no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Draft Polisher é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Draft Polisher no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/WILLOSCAR/research-units-pipeline-skills/tree/main/.codex/skills/draft-polisher. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Draft Polisher?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Draft Polisher?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Draft Polisher com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Draft Polisher é gratuita?

A habilidade é publicada no GitHub por WILLOSCAR. Consulte os termos de licenciamento no repositório. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇