section-logic-polisher
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSection Logic Polisher (thesis + argument bridges)
Section Logic Polisher(论点+论证过渡)
Purpose: close the main “paper feel” gap that remains even when a subsection is long and citation-dense:
- missing/weak thesis (paragraph 1 never commits to a claim)
- weak inter-paragraph flow (paragraph islands; no content-bearing bridges)
This is a local, per-H3 polish step that happens after drafting and before merging.
Note: if the main problem is redundancy/overgrowth (sections only get longer), use for a select->fuse pass. This skill stays focused on thesis + bridges.
paragraph-curator目的:填补即使子章节篇幅较长、引用密集时仍存在的「论文质感」缺口:
- 论点缺失或薄弱(第一段未明确提出主张)
- 段落间衔接性差(段落孤岛;无承载实质内容的过渡句)
这是一个本地化的、针对单个H3章节的润色步骤,完成于草稿撰写后、章节合并前。
注意:如果主要问题是内容冗余/膨胀(章节篇幅只增不减),请使用进行筛选融合处理。本工具专注于论点优化与段落衔接。
paragraph-curatorWhat this skill blocks on (and what it does not)
本工具的阻塞项与非阻塞项
Blocking (must fix):
- paragraph 1 lacks an explicit thesis / takeaway (a content claim)
Non-blocking (diagnostic only):
- connector word counts (e.g., “moreover/however/therefore”). Counts are a proxy for paragraph islands, but forcing them as a quota often creates “generator cadence” (paragraph-initial adverbs). Treat these stats as signals, not goals.
阻塞项(必须修复):
- 第一段缺乏明确的论点/核心结论(实质性主张)
非阻塞项(仅用于诊断):
- 连接词使用数量(例如「moreover/however/therefore」)。这些数量仅作为段落孤岛的参考指标,但若强行将其作为硬性配额,往往会导致「生成式语气」(段落开头使用副词)。请将这些统计数据视为信号,而非目标。
Role prompt: Logic Editor (argument flow)
角色提示:Logic Editor(论证连贯性)
text
You are the logic editor for one survey subsection.
Your job is to make the subsection read like a single argument:
- paragraph 1 commits to a clear thesis (content claim)
- each paragraph has an explicit logical relation to the previous one
- bridges are content-bearing (contrast/causal/implication), not slide narration
Constraints:
- do not add new citations
- do not change citation keys
- do not invent facts
Editing lens:
- if a paragraph does not advance the argument (claim/contrast/eval/limitation), compress or delete it
- if a transition is empty, rewrite it as a content-bearing bridgetext
You are the logic editor for one survey subsection.
Your job is to make the subsection read like a single argument:
- paragraph 1 commits to a clear thesis (content claim)
- each paragraph has an explicit logical relation to the previous one
- bridges are content-bearing (contrast/causal/implication), not slide narration
Constraints:
- do not add new citations
- do not change citation keys
- do not invent facts
Editing lens:
- if a paragraph does not advance the argument (claim/contrast/eval/limitation), compress or delete it
- if a transition is empty, rewrite it as a content-bearing bridgeInputs
输入项
- (expects H3 body files like
sections/)S<sec>_<sub>.md - (use
outline/subsection_briefs.jsonl+thesisas intent)paragraph_plan[].connector_phrase - Optional: (preferred; has trimmed anchors/comparisons +
outline/writer_context_packs.jsonl)must_use
- (预期包含H3章节正文文件,格式如
sections/)S<sec>_<sub>.md - (使用其中的
outline/subsection_briefs.jsonl+thesis作为意图参考)paragraph_plan[].connector_phrase - 可选:(优先使用;包含精简的锚点/对比内容 +
outline/writer_context_packs.jsonl强制要求项)must_use
Outputs
输出项
- (PASS/FAIL for thesis; connector stats shown for diagnosis)
output/SECTION_LOGIC_REPORT.md
Manual / LLM-first (in place):
- Update the H3 body files under (e.g.,
sections/) to fix thesis/bridges (no new citations; keep keys stable)sections/S<sec>_<sub>.md
- (包含论点检查的通过/失败状态;连接词统计数据用于诊断)
output/SECTION_LOGIC_REPORT.md
手动/LLM优先修改(原地修改):
- 更新下的H3章节正文文件(例如
sections/),以修复论点/衔接问题(不得添加新引用;保留引用标识稳定)sections/S<sec>_<sub>.md
Workflow (self-loop)
工作流(自循环)
-
Run the checker script to surface the exact failing files.
-
For each failing H3 file:
-
Work on the concrete H3 body file (pattern):
sections/S<sec>_<sub>.md -
Useas the source of truth for the subsection thesis and paragraph-plan intent.
outline/subsection_briefs.jsonl -
If available, preferto stay aligned with
outline/writer_context_packs.jsonlanchors/constraints (no new cites).must_use -
Thesis (blocking)
- Make paragraph 1 end with a conclusion-first thesis sentence.
- Prefer a content claim, not meta narration. Avoid repetitive openers like .
This subsection argues/surveys ... - Minimal shape (3 sentences; paraphrase, don’t copy):
- claim / tension
- why it matters (protocol/evaluation relevance)
- how the subsection will resolve it (what contrasts/anchors it will use)
-
Flow (fix only when needed)
- Add 1–2 short bridges where paragraphs feel disconnected.
- Prefer subject-first sentences and mid-sentence glue (because/while/which) over paragraph-start adverbs.
- Avoid PPT navigation (,
Next, we ...).We now turn to ...
- Rerun the checker until is PASS, then proceed to
output/SECTION_LOGIC_REPORT.mdandtransition-weaver.section-merger
-
运行检查脚本,定位具体的未通过文件。
-
针对每个未通过的H3文件:
-
处理具体的H3章节正文文件(格式):
sections/S<sec>_<sub>.md -
将作为子章节论点和段落计划意图的权威来源。
outline/subsection_briefs.jsonl -
如果有,优先使用以确保符合
outline/writer_context_packs.jsonl锚点/约束(不得添加新引用)。must_use -
论点优化(阻塞项)
- 确保第一段结尾有一个结论先行的论点句。
- 优先使用实质性主张,而非元叙事。避免重复的开头,如。
This subsection argues/surveys ... - 最简结构(3句话;改写而非复制):
- 主张/矛盾点
- 重要性(与协议/评估的相关性)
- 子章节的解决方式(将使用的对比/锚点)
-
衔接优化(仅在必要时修复)
- 在段落间衔接不畅的地方添加1-2句简短的过渡句。
- 优先使用主语先行的句子和句中衔接词(because/while/which),而非段落开头的副词。
- 避免PPT式导航语(如、
Next, we ...)。We now turn to ...
- 重新运行检查脚本,直到显示「- Status: PASS」,然后再运行
output/SECTION_LOGIC_REPORT.md和transition-weaver。section-merger
Examples
示例
Thesis signal (paragraph 1)
论点示例(第一段)
Bad (topic setup only):
Tool interfaces vary across agent systems, and many recent works explore different designs.
Better (conclusion-first claim):
A central tension in tool interfaces is balancing expressivity with verifiability; as a result, interface contracts often determine which evaluation claims transfer across environments.
Bad (meta narration):
This subsection argues that memory is important for agents.
Better (content claim):
Memory designs trade off retrieval reliability against write-time contamination, and this trade-off shows up as distinct failure modes under fixed evaluation protocols.
反面示例(仅话题引入):
Tool interfaces vary across agent systems, and many recent works explore different designs.
正面示例(结论先行的主张):
A central tension in tool interfaces is balancing expressivity with verifiability; as a result, interface contracts often determine which evaluation claims transfer across environments.
反面示例(元叙事):
This subsection argues that memory is important for agents.
正面示例(实质性主张):
Memory designs trade off retrieval reliability against write-time contamination, and this trade-off shows up as distinct failure modes under fixed evaluation protocols.
Bridges (avoid paragraph islands)
衔接示例(避免段落孤岛)
Bad (no relation):
- (para 2)
X does ... - (para 3)
Y does ...
Better (explicit tie):
Whereas X optimizes for <axis>, Y shifts the bottleneck to <axis>; under fixed budgets, this changes whether the reported gains reflect better planning or simply more expensive search.
反面示例(无关联):
- (第二段)
X does ... - (第三段)
Y does ...
正面示例(明确关联):
Whereas X optimizes for <axis>, Y shifts the bottleneck to <axis>; under fixed budgets, this changes whether the reported gains reflect better planning or simply more expensive search.
Done criteria
完成标准
- shows
output/SECTION_LOGIC_REPORT.md- Status: PASS - No section file contains placeholders (/
TODO/…) or outline meta markers (.../Intent:/RQ:)Evidence needs: - Every H3 has a clear paragraph-1 thesis; bridges are added only where flow is actually broken
- 显示「- Status: PASS」
output/SECTION_LOGIC_REPORT.md - 所有章节文件中无占位符(/
TODO/…)或大纲元标记(.../Intent:/RQ:)Evidence needs: - 每个H3章节的第一段都有清晰的论点;仅在衔接确实不畅的地方添加过渡句
Script
脚本
Quick Start
快速开始
python .codex/skills/section-logic-polisher/scripts/run.py --workspace workspaces/<ws>
Notes:
- The script is a checker; it does not rewrite prose.
- Connector stats are printed for diagnosis. Do not “write to the counter”; write to the argument.
python .codex/skills/section-logic-polisher/scripts/run.py --workspace workspaces/<ws>
注意:
- 本脚本仅为检查工具;不会自动重写文本。
- 连接词统计数据仅用于诊断。请勿「为了凑数而添加连接词」,应围绕论证逻辑进行写作。
All Options
所有可选参数
--workspace <dir>--unit-id <U###>--inputs <semicolon-separated>--outputs <semicolon-separated>--checkpoint <C#>
--workspace <dir>--unit-id <U###>--inputs <semicolon-separated>--outputs <semicolon-separated>--checkpoint <C#>
Examples
示例命令
-
Default run:
python .codex/skills/section-logic-polisher/scripts/run.py --workspace workspaces/<ws> -
Explicit output path (rare override; prefer defaults):
python .codex/skills/section-logic-polisher/scripts/run.py --workspace workspaces/<ws> --outputs output/SECTION_LOGIC_REPORT.md
-
默认运行:
python .codex/skills/section-logic-polisher/scripts/run.py --workspace workspaces/<ws> -
指定输出路径(罕见场景;优先使用默认路径):
python .codex/skills/section-logic-polisher/scripts/run.py --workspace workspaces/<ws> --outputs output/SECTION_LOGIC_REPORT.md