Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问clear审计通过

writer-selfloop作家自循环

Agent Skill

writer-selfloop 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

823

周安装

35

GitHub Stars

422

下载量

288
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:writer-selfloop(作家自循环)
来源仓库:https://github.com/willoscar/research-units-pipeline-skills
仓库路径:skills/writer-selfloop
安装命令:
npx skills add https://github.com/willoscar/research-units-pipeline-skills --skill writer-selfloop
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/willoscar/research-units-pipeline-skills --skill writer-selfloop

简介

writer-selfloop 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于研究检索类任务,可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需确认权限范围和维护状态。
  • 安装前建议确认是否会触发联网、命令执行或文件读写,避免误操作生产数据。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Writer Self-loop (fix only what fails)

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.jsonl
  • citations/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

  1. Run the gate
  • Run the writer self-loop script (see Script section below). It reads sections/sections_manifest.jsonl and the actual sections/*.md files.
  1. Read the TODO report
  • Open output/WRITER_SELFLOOP_TODO.md and identify the failing file paths.
  • 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), consult outline/chapter_briefs.jsonl.
  1. Triage (writing vs evidence)

Route upstream (run evidence-selfloop) when:

  • output/EVIDENCE_SELFLOOP_TODO.md already indicates missing anchors/comparisons for the same subsection
  • the pack in outline/writer_context_packs.jsonl is 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
  1. Use the right playbook for the failing file type
  • Front matter (sections/abstract.md, sections/S<sec_id>.md for Intro/Related Work, sections/discussion.md, sections/conclusion.md): use front-matter-writer.
  • Chapter leads (sections/S<sec_id>_lead.md): use chapter-lead-writer.
  • H3 bodies (sections/S<sub_id>.md): use subsection-writer (draft) or subsection-polisher (local fix).
  1. Keep scope + citations stable
  • Keep citation keys unchanged and validate them against citations/ref.bib.
  • Stay in scope per outline/evidence_bindings.jsonl (prefer subsection-first).
  1. Rerun the gate until PASS

After PASS (merge-aware voice safety):

  • Proceed to section-logic-polisher -> argument-selfloop -> paragraph-curator -> style-harmonizer -> opener-variator -> evaluation-anchor-checker -> transition-weaver -> section-merger -> post-merge-voice-gate.
  • If post-merge-voice-gate FAILs with source: transitions, fix outline/transitions.md via transition-weaver and re-merge (do not patch the merged draft).

After PASS (mandatory style hygiene for survey/deep):

  • Open output/WRITER_SELFLOOP_TODO.md and read ## Style Smells.
  • If it flags opener cadence / overview narration, run opener-variator on the listed files.
  • If it flags count-based limitation slots (e.g., Two limitations...), run limitation-weaver on the listed files.
  • Otherwise (or after micro-fixes), run style-harmonizer on the listed sections/*.md files.
  • Before merge, run evaluation-anchor-checker on the settled H3 files so any remaining numeric claims keep same-sentence task/metric/constraint context. Treat this as the last section-level sweep, not as a post-audit patch.
  • Keep meaning + citations fixed; treat this as surface-level rewrite, not new content.

How to fix a failing H3 (semantic recipe)

  • Use tension_statement + thesis from the pack to rewrite paragraph 1 (end with the thesis).
  • Use comparison_cards to write explicit A-vs-B contrast sentences.
  • Use evaluation_anchor_minimal / protocol snippets to add task/metric/constraint context.
  • Use limitation hooks to add a real caveat (not boilerplate).

Paper voice repairs (high-impact, low-risk)

Narration opener -> content claim:

  • Bad: This subsection surveys...
  • Better: start with a tension/decision/lens sentence, then end paragraph 1 with the thesis.

Slide navigation -> argument bridge:

  • Bad: Next, we move from X to Y.
  • Better: Having established X, we can now examine how Y changes the trade-offs under comparable protocols.

Meta "survey should" -> literature-facing observation:

  • Bad: Therefore, survey comparisons should...
  • Better: Across reported protocols,... varies, which makes... fragile unless...

Disclaimer spam -> one policy paragraph + local caveat only when needed:

  • Keep evidence policy once in front matter; delete repeated "abstract-only" boilerplate inside H3.

Stop conditions (when rewriting is the wrong move)

Stop and route upstream if:

  • you cannot write a contrast or evaluation anchor without guessing
  • the pack lacks benchmarks/metrics/protocol details needed for the subsection\x27s core claim
  • fixing one H3 keeps forcing out-of-scope citations

Failure codes -> routing (how to read the gate)

The writer gate emits short issue codes. Treat them as routers and stop trying to pad prose around missing evidence.

First classify failures:

  • Evidence substrate: packs/anchors/comparisons are too thin to execute argument moves without guessing. Route upstream (evidence-selfloop).
  • Writing execution: packs are rich enough, but the section did not execute moves (thesis/contrast/eval/limitation). Rewrite locally.
  • Voice contamination: narration/slide/pipeline voice. Rewrite locally (opener + bridges), do not touch citations.
  • Citation hygiene: undefined keys / out-of-scope pressure. Fix citations/bindings or rewrite to in-scope; do not add new keys.

Quick map (common codes):

  • missing_sections_manifest, empty_sections_manifest, sections_missing_files: run subsection-writer (create missing files + refresh manifest).
  • sections_h3_has_headings: remove headings; H3 bodies are body-only.
  • sections_intro_*, sections_related_work_*: rewrite front matter via front-matter-writer (dense positioning + one methodology note).
  • sections_h3_too_few_paragraphs, sections_h3_too_short: if the pack is rich, expand by executing contrasts + eval anchor + limitation; if the pack is thin, route to evidence-selfloop.
  • sections_h3_missing_contrast: add explicit A-vs-B using comparison_cards; if cards are missing, route to evidence-selfloop (briefs/packs).
  • sections_h3_missing_eval_anchor, sections_h3_missing_cited_numeric: add minimal protocol context (task/metric/constraint) in the same paragraph; if unknown, route upstream or weaken the claim.
  • sections_h3_missing_limitation: add a subsection-specific limitation; if none exists in the pack, route upstream.
  • sections_h3_narration_template_opener, sections_h3_slide_narration, sections_contains_pipeline_voice: rewrite openers/bridges to paper voice (no navigation commentary).
  • sections_h3_evidence_policy_disclaimer_spam: delete repeats; keep evidence policy once in front matter.
  • sections_cites_missing_in_bib: rerun citation-verifier (do not invent keys).
  • sections_cites_outside_mapping: rewrite to in-scope OR fix mapping/bindings (C2/C4) and rebuild packs; do not patch in the merged draft.
  • sections_h3_sparse_citations: if scope allows, plan adds via citation-diversifier then apply via citation-injector; if scope is too tight, expand mapping/bindings upstream.

Script (optional; deterministic gate)

Quick Start

  • python.codex/skills/writer-selfloop/scripts/run.py --workspace workspaces/<ws>

All Options

  • --workspace <dir>
  • --unit-id <U###>
  • --inputs <semicolon-separated>
  • --outputs <semicolon-separated>
  • --checkpoint <C#>

Examples

  • Generate an actionable TODO list for failing sections/*.md:

- python.codex/skills/writer-selfloop/scripts/run.py --workspace workspaces/<ws>

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

30.32%
按下载量换算87

Gemini CLI

23.73%
按下载量换算68

Cursor

18.78%
按下载量换算54

Codex

11.41%
按下载量换算33

OpenCode

8.14%
按下载量换算23

Antigravity

3.73%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills