writer-selfloop
БесплатноЗапускает вложенные скриптыНе проверенWriting self-loop for surveys: run the strict section-quality gate, then rewrite only the failing `sections/*.md` files until the report is PASS.
от WILLOSCAR★ 521 звезда на GitHubОб этом скилле
Writer Self-loop (fix only what fails)
Triggers & routing
- Trigger: writer self-loop, writing loop, quality gate loop, rewrite failing sections, 自循环, 反复改到 PASS.
- Use when: per-section files exist but C5 is FAIL/BLOCKED (thin sections, missing leads/front matter, citation-scope violations, generator voice).
Purpose: make writing converge without rewriting the whole paper.
This is the writing self-healing loop:
Default mode: semantic triage (LLM-first)
Treat the gate as a router, not as a reason to rewrite everything.
- First, classify each failure as: evidence substrate vs writing execution vs voice contamination vs citation hygiene.
- Then, fix the earliest responsible artifact (often not the merged draft).
- Rewrite only the failing files; do not churn working sections.
If you do not run the helper script, you can still execute this skill by reading sections/*.md + packs and writing output/WRITER_SELFLOOP_TODO.md manually in the same PASS/FAIL style.
Role cards (use explicitly)
Writing Manager (triage + convergence)
Mission: make the draft converge by fixing only failing units and routing issues upstream when needed.
Do:
- Rewrite only files flagged by the gate (one at a time).
- If evidence is thin, route upstream instead of padding prose.
- Keep citation keys and scope stable during rewrites.
Avoid:
- Global rewrites that churn working sections.
- Rewriting around evidence gaps with generic filler.
Router (earliest responsible artifact)
Mission: connect a visible writing failure to the earliest upstream fix.
Do:
- Template voice -> local rewrite (subsection-polisher / front-matter-writer / chapter-lead-writer).
- Thin evidence -> evidence-selfloop (notes/bindings/packs).
Avoid:
- Repeatedly rewriting the same section when the pack cannot support it.
Role prompt: Writing Manager (triage + convergence)
You are the writing manager for a survey draft.
Your job is to make the draft converge by fixing only what fails, and by routing issues to the earliest responsible artifact.
Rules:
- If a section fails because the evidence is thin or out-of-scope pressure is high, do NOT pad prose.
Route upstream to evidence-selfloop (notes/bindings/packs) and unblock the substrate.
- If a section fails because the prose is templated (narration openers, slide navigation, repeated disclaimer spam), rewrite locally.
- Never change citation keys during rewrites; keep scope local.
Working style:
- small, auditable edits
- one failing file at a time
- every fix either (a) improves argument moves, or (b) restores paper voice
- the gate is deterministic (it inspects
sections/+sections/sections_manifest.jsonl) - the fixes are semantic (rewrite prose to execute argument moves and restore paper voice)
Inputs
sections/sections_manifest.jsonl(expected files + allowed citations)sections/*.md(the actual prose units)outline/writer_context_packs.jsonl(preferred per-H3 pack)outline/evidence_bindings.jsonlcitations/ref.bib
Optional routing context:
output/EVIDENCE_SELFLOOP_TODO.md(if evidence gaps are already known)outline/subsection_briefs.jsonl,outline/chapter_briefs.jsonl
Output
output/WRITER_SELFLOOP_TODO.md(report-class; always written)
Workflow
- Run the gate
- Run the writer self-loop script (see Script section below). It reads
sections/sections_manifest.jsonland the actualsections/*.mdfiles.
- Read the TODO report
- Open
output/WRITER_SELFLOOP_TODO.mdand identify the failing file paths. - Treat repeated evidence-sized sentences within one H3 as blocking; repair support selection or remove the duplicate without changing citation scope.
- For each failing H3, load its pack from
outline/writer_context_packs.jsonl. - If a pack is missing or you need scope reminders, consult
outline/subsection_briefs.jsonl; for chapter-level context (leads/throughlines), consultoutline/chapter_briefs.jsonl.
- Triage (writing vs evidence)
Route upstream (run evidence-selfloop) when:
output/EVIDENCE_SELFLOOP_TODO.mdalready indicates missing anchors/comparisons for the same subsection- the pack in
outline/writer_context_packs.jsonlis too thin to satisfy argument moves without guessing - you keep wanting out-of-scope citations outside
outline/evidence_bindings.jsonl
Rewrite locally when:
- the pack is rich enough, but prose is template-y (narration openers, slide navigation, repeated discourse stems)
- the section has content but lacks a thesis, contrasts, evaluation anchoring, or limitations
- Use the right playbook for the failing file type
- Front matter (
sections/abstract.md,sections/S<sec_id>.mdfor Intro/Related Work,sections/discussion.md,sections/conclusion.md): usefront-matter-writer. - Chapter leads (
sections/S<sec_id>_lead.md): usechapter-lead-writer. - H3 bodies (
sections/S<sub_id>.md): usesubsection-writer(draft) orsubsection-polisher(lo
Установить writer-selfloop в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл writer-selfloop?
Writing self-loop for surveys: run the strict section-quality gate, then rewrite only the failing `sections/*.md` files until the report is PASS.
Как установить скилл writer-selfloop?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл writer-selfloop запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic