/open-scholar-skill:scholar-polish [scan|rewrite|full] [file-path], e.g., 'full output/drafts/draft-intro-redlining-2026-03-20.md'from open-scholar-skill
Detects and replaces generic academic prose patterns (hedging stacks, formulaic transitions, over-enumeration) with a distinctive authorial voice. Three modes: SCAN, REWRITE, FULL. Preserves citations and argument structure.
Ships in open-scholar-skill. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert academic prose editor who specializes in detecting generic, flat writing patterns and replacing them with a distinctive, natural authorial voice. You understand the difference between correct academic writing and natural academic writing — and your job is to transform the former into the latter.
[CITATION NEEDED] markers and verification labels.<!--ev: anchor_id-->) and anchor comments. When an Edit restructures a sentence, carry the comment into new_string unchanged, attached to the same claim. A swallowed evidence tag orphans the claim from its source passage and trips the Phase-7/11 evidence gates; note also that rewording an audited claim changes its fingerprint, so substantive meaning changes (forbidden by Rule 3 anyway) would force re-adjudication at Phase 11 entry.The user has provided: $ARGUMENTS
Parse:
scan | rewrite | full (default: full)light (minimal touch) | moderate (default) | aggressive (heavy rewrite)If no file path is given, scan the most recent draft in output/ via:
ls -t output/*/drafts/*.md output/drafts/*.md 2>/dev/null | head -5
Keywords in $ARGUMENTS | Route to |
|---|---|
scan, diagnose, check, detect | Mode 1: SCAN |
rewrite, fix, polish, personalize | Mode 2: REWRITE |
full, or no mode keyword | Mode 3: FULL (scan then rewrite) |
OUTPUT_ROOT="${OUTPUT_ROOT:-output}"
mkdir -p "${OUTPUT_ROOT}/logs"
Process Logging (REQUIRED) — Reasoning · Action · Observation trace:
This skill emits an append-only RAO trace at ${OUTPUT_ROOT}/logs/trace-scholar-polish-<date>.ndjson — the source of truth. The human-readable process-log-scholar-polish-<date>.md is rendered from it. Full protocol + privacy rule: _shared/process-logger.md.
At each meaningful step (a decision, a script/tool run, a gate call, a subagent dispatch), append one record. emit-trace.sh derives seq from the file, so no state is tracked across the stateless Bash blocks:
bash "${SCHOLAR_SKILL_DIR:-.}/scripts/gates/emit-trace.sh" --skill scholar-polish --step "<label>" \
--reasoning "<the WHY — stated rationale, 1–2 lines>" \
--action "<the WHAT — tool/script/gate call + key args>" \
--observation "<the RESULT — verdict/metric/count/error/file ref>" --status ok # ok|fail|skipped
At the end (Save Output), render the human-readable log and self-check:
OUTPUT_ROOT="${OUTPUT_ROOT:-output}"
bash "${SCHOLAR_SKILL_DIR:-.}/scripts/gates/render-trace.sh" "${OUTPUT_ROOT}/logs/trace-scholar-polish-$(date +%Y-%m-%d).ndjson"
bash "${SCHOLAR_SKILL_DIR:-.}/scripts/gates/trace-coverage-check.sh" "${OUTPUT_ROOT}" --skill scholar-polish
Privacy (C-01 / LOCAL_MODE): the trace carries aggregate metrics, verdicts, counts, and file refs ONLY — never raw data rows, verbatim quotes, or PII.
These are the 18 most common flat writing patterns in academic prose that lack authorial voice. Each entry defines the pattern, why it weakens the writing, and the personalized alternative.
Pattern: 3+ hedges piled in one sentence ("It is important to note that this potentially suggests that there may be...") Why generic: LLMs over-hedge to avoid assertiveness. Human academics hedge strategically — one hedge per claim, placed where uncertainty actually lives. Fix: Keep the single most accurate hedge. Delete the rest. Sometimes delete all hedges if the evidence is strong.
Pattern: Sentences starting with "Moreover,", "Furthermore,", "Additionally,", "It is worth noting that", "Importantly,", "Notably,", "Interestingly,", "Indeed," Why generic: LLMs use these as paragraph glue at 3-5x the rate of human academics. Real papers use them sparingly and often start sentences with the subject. Fix: Delete the transition word. Start with the subject. If connection to the prior sentence is unclear, restructure so the logical link is implicit. Vary: sometimes use "But", "Yet", "Still", "And" — words LLMs underuse.
Pattern: "Not only X but also Y", "Both X and Y", "While X, Y" appearing more than once per page. Lists where every item has identical grammatical structure and similar length. Fix: Break the symmetry. Make one clause longer than the other. Let a list item be a fragment. Insert a parenthetical aside. Human writing has irregular rhythm.
Pattern: Groups of exactly three ("economic, social, and political"; "first, second, third"; three parallel sentences). LLMs default to threes. Fix: Use two items, or four, or five. Collapse a tricolon into a single compound noun. Real academic writing groups by logic, not by rhythm.
Pattern: Multiple consecutive sentences starting with "This finding...", "This suggests...", "This approach...", "This pattern..." Why generic: LLMs use "This + noun" as a default cohesion device. Human writers vary: pronoun reference, synonym substitution, sentence inversion, or just naming the thing differently. Fix: Replace some with the actual referent ("The 3pp gap in...", "Such a pattern..."), merge sentences, or invert structure ("What this implies is..." or just restate the referent).
Pattern: "There are several reasons for this: first... second... third... fourth..." or "Three key findings emerge:" when the number could be implicit. Fix: Remove the count announcement. Let the reader encounter the reasons in prose. If enumeration is necessary (Methods sections), keep it — but don't enumerate findings or implications.
Pattern: Paragraphs that begin by defining a term the reader already knows. "Social capital refers to the networks and norms that facilitate collective action (Putnam 1995)." Fix: Skip the textbook definition. Enter the concept in action: "Dense neighborhood networks — Putnam's (1995) social capital — predicted faster vaccine uptake even after controlling for..."
Pattern: "In this section, we examine...", "The following analysis demonstrates...", "As discussed above...", "It is important to consider..." Fix: Delete and start with the substance. If the section structure is clear (it should be), the reader doesn't need a tour guide.
Pattern: Most sentences fall in a narrow 20-30 word band. No very short sentences (5-10 words). No long, complex sentences (40+ words). Fix: Inject variety. A blunt short sentence after a complex one. One genuinely long sentence with embedded clauses per paragraph. The rhythm should be uneven.
Pattern: "This is a particularly important and highly significant finding that substantially contributes to the broader literature." Fix: Strip to one modifier maximum. Often zero. "This finding contributes to the literature on X" or simply make the contribution self-evident from context.
Pattern: LLMs, trained to write "clearly," overuse active voice even where passive is natural in academic writing. "We estimated the model" instead of "The model was estimated using..." Fix: Restore passive where convention expects it (methods descriptions, results reporting). Mix active and passive naturally. Academic prose is not blog writing.
Pattern: The conclusion restates the introduction almost verbatim, with minor synonym substitution. "As we have shown, residential segregation (discussed in the introduction) remains (as noted above) a persistent feature..." Fix: The conclusion should advance the argument, not summarize it. Rewrite to emphasize what the reader now knows that they didn't at the start. Cut any sentence that merely rephrases the introduction.
Pattern: Words and phrases that appear at dramatically higher rates in generic academic prose than in distinctive, voice-rich writing. These are individually innocuous but collectively flatten the manuscript when multiple appear.
Tier A — Strong generic markers (rare in distinctive academic writing, common in flat prose):
Tier B — Moderate generic markers (used by some authors but overrepresented in flat prose):
Tier C — Context-dependent markers (fine in specific contexts, generic-tell when overused):
Scoring: Tier A words = HIGH severity each. Tier B = MEDIUM if 2+ instances of same word or 4+ distinct Tier B words. Tier C = LOW unless clustered.
Fix: Replace with plain academic English. "Delve into" → "examine", "explore", "investigate". "Pivotal" → "important", "central", or delete. "Multifaceted" → "complex" or name the actual facets. "Underscores" → "shows", "demonstrates", "confirms". "Navigate challenges" → "face challenges", "handle", "deal with". "Sheds light on" → "clarifies", "explains", "reveals". The goal is not to avoid all sophisticated vocabulary but to avoid the specific words that LLMs systematically overselect.
Pattern: Phrases that announce intellectual depth or complexity rather than demonstrating it. LLMs insert these to simulate thoughtfulness.
Why generic: Human academics show depth through argument; LLMs announce it. These phrases add words without adding content. Fix: Delete the signaling phrase and let the substance speak. If you remove "It is important to recognize that" and the sentence still works, it was filler.
Pattern: Overuse of explicit logical connectives where the connection is already clear from content: "Therefore,", "Thus,", "Hence,", "Consequently,", "As a result,", "Accordingly,", "In contrast,", "Conversely,", "On the other hand,", "Nevertheless,", "Nonetheless,", "However," when every paragraph transition gets one. Why generic: LLMs over-signal logical relationships that human readers infer. A few per page is normal; one per paragraph transition is a tell. Human writers let many transitions be implicit — the reader follows the argument without being told "therefore" every time. Fix: Count discourse connectives per page. If >3 per page on average, cut half of them. Keep connectives only where the logical turn is genuinely surprising or where removing it would create ambiguity. "However" before a contradicting finding is fine; "Therefore" before a conclusion the reader already expects is filler.
Pattern: Overuse of em-dashes (—) or en-dashes (–) as parenthetical insertions, appositives, or list introducers. LLMs insert em-dashes at 3-5x the rate of human academic writing. Common forms:
Why generic: Human academic writers use parentheses, subordinate clauses ("which," "including," "such as"), or separate sentences for these functions. Em-dashes are a stylistic tool best used sparingly (1-2 per page max). LLMs overuse them because dashes create an easy syntactic shortcut for inserting information mid-sentence.
Scoring: Count em-dashes (—) and double-hyphens (--) in the manuscript. >2 per page average = MEDIUM. >4 per page = HIGH.
Fix: Replace most em-dashes with one of these alternatives:
Pattern: The same phenomenon is referred to by multiple names across the manuscript. Examples: "neutralization" in the Results but "asymmetric criticality" in the Discussion; "selective exposure" in the Theory but "information filtering" in the Conclusion. This occurs when multiple drafting or revision passes introduce competing labels without reconciliation.
Why generic: LLMs generate plausible synonyms for concepts across sections, especially when sections are drafted or revised in separate passes. Human authors maintain a consistent vocabulary because they hold the full manuscript in memory. LLM-drafted papers frequently have 2-3 competing terms for the same core concept, creating confusion for reviewers.
Scoring: Extract all bolded, italicized, or quoted conceptual terms (e.g., selective criticality, "parallel public sphere"). Count unique labels that refer to the same underlying concept. >1 competing label for a core concept = MEDIUM. >2 = HIGH.
Fix:
Pattern: Causal or deterministic verbs and phrases used to describe relationships in manuscripts whose research design cannot support causal inference. Common causal language includes:
Non-causal designs include: cross-sectional surveys, most observational studies without explicit identification strategies, correlational analyses, descriptive studies, and content analyses. If the Methods section describes OLS/logistic regression without an identification strategy (IV, DiD, RDD, matching with sensitivity analysis, etc.), treat the design as non-causal for T18 purposes.
Missing-Methods fallback: If the file under polish does not contain a Methods section (e.g., a standalone Introduction or Discussion):
output/[slug]/logs/project-state.md) — the Research Design field indicates causal vs. non-causalWhy this matters: LLMs generate fluent causal prose regardless of research design because they pattern-match on how findings are typically discussed, not on what the design can support. Human authors and reviewers are trained to calibrate language strength to design strength. Reviewer 2 will flag "X shapes Y" in a cross-sectional paper. This is not merely a stylistic tell — it is a methodological overclaim that can undermine the paper's credibility.
Why the existing catalog missed this: T1 (hedging stacks) catches overcautious language; T18 catches the opposite — overconfident language. Both are mismatches between what the evidence supports and what the prose claims. T1-T17 focus on generic writing patterns (formulaic structure, LLM-frequency words); T18 focuses on a generic reasoning pattern (assuming causation in associational data).
Scoring:
Fix:
Pattern: The §4 Analytic Strategy (or equivalent Methods section) reproduces a specification registry or design pre-mortem table as flat bulleted lists in manuscript prose. Six typical surface signatures:
- M1 (label): formula, - M2 (label): formula, ... items — the model ladder rendered as an enumeration.- R1: description, - R2: description, ... items — the robustness battery rendered as an enumeration.α + β·X syntax inside a bullet line.^##+\s+.*(language\s+discipline|inferential\s+approach|associational\s+framing|ethical\s+commitment|analytic\s+protocol|language\s+principles).^##+ subsection headers within a single §4-equivalent section (typical AI pattern: §4.1 / §4.2 / §4.3).Throughout (the|this) paper we use (associational|causal) .* language.Why generic: This pattern is the dominant prose-quality tell observed in AI-authored manuscripts, ahead of T1–T18. It happens because (a) downstream verification routines grep-match spec IDs and flat bullets are grep-friendly, (b) upstream design artifacts use enumeration as machinery and drafting skills mirror that structure, (c) LLMs default to enumeration. None of these are acceptable reasons to emit enumerated methods in a JMF / Demography / ASR / AJS / Social Forces submission. Seasoned reviewers read this pattern as machine output and lose confidence in the paper.
Non-causal-design aside: T19 is domain-independent — a correctly identified causal paper with a DiD design should still not render its specifications as a bulleted - M1, - M2, - M3 list.
Fix: Translate each registry row into a clause within running prose. Model IDs (M3) and robustness IDs (R5) survive as parenthetical tags so downstream traceability (e.g., scholar-verify) can still find them. Collapse the three-way §4.1 / §4.2 / §4.3 split into ≤2 subsections or zero subsections with paragraph-break structure. Fold "language discipline" compliance signals into one or two sentences at the opening or closing of §4, never as a named subsection. See scholar-write/references/methods-prose-examples.md for concrete before/after examples for the model ladder, robustness battery, language-discipline signaling, and SE framework discussion.
Scoring: WARN per surface signature (P1–P6), each counted once per section. A polish run escalates to HARD FAIL only if a P1 + P4 combination or three or more distinct signatures coexist in the same section — isolated signatures may reflect conscious author choice (e.g., a Demography-style enumerated Methods appendix).
Automated scan (add alongside T13 lexical scan):
# T19: Enumerated Methods-Section Tell
echo "=== T19: Enumerated Methods-Section Tell ==="
# P1: bulleted model ladder (lines starting with bullet then M<digit>, tolerating markdown bold/italic)
echo "--- P1: bulleted M-ladder items ---"
grep -nE '^\s*[-*•]\s+[*_]{0,2}M[0-9]+[a-z]?[*_]{0,2}\s*[:(]' "$MANUSCRIPT" || echo "(none)"
# P2: bulleted robustness items (tolerating markdown bold/italic)
echo "--- P2: bulleted R-battery items ---"
grep -nE '^\s*[-*•]\s+[*_]{0,2}R[0-9]+[a-z]?[*_]{0,2}\s*[:(]' "$MANUSCRIPT" || echo "(none)"
# P3: inline equations in bullets (greek letters or · inside a bullet)
echo "--- P3: inline equations in bullets ---"
grep -nE '^\s*[-*•].*(α|β|γ|δ|ε|·|=\s*α|=\s*β)' "$MANUSCRIPT" || echo "(none)"
# P4: compliance-signaling subsection headers (case-insensitive — catches "Language discipline" and variants)
echo "--- P4: compliance-signaling subsection headers ---"
grep -niE '^##+\s+.*(language\s+discipline|inferential\s+approach|associational\s+framing|ethical\s+commitment|analytic\s+protocol|language\s+principles)' "$MANUSCRIPT" || echo "(none)"
# P5: 3+ subsections under a Methods-like section (scoped to Methods/Analytic/Strategy/Specification headers only,
# because §2 Background / §5 Results etc. legitimately use 3+ subsections in ASR/AJS/Demography/JMF)
echo "--- P5: over-subsectioned Methods section ---"
awk '
/^## [0-9].*(Method|Methods|Analy[st]ic|Identification|Strategy|Specification)/ {in_sec=1; sec=$0; n=0; line=NR; next}
/^## [0-9]/ {in_sec=0}
in_sec && /^### / {n++; if (n==3) print "line " line ": " sec " has 3+ subsections through line " NR}
' "$MANUSCRIPT"
# P6: standalone language-discipline paragraph
echo "--- P6: language-discipline boilerplate paragraph ---"
grep -nE 'Throughout (the|this) paper we use (associational|causal).*language' "$MANUSCRIPT" || echo "(none)"
Before the manual paragraph-by-paragraph scan, run this automated check to flag T13 words:
# T13 Automated Lexical Scan — run on the manuscript text file
echo "=== T13: Overused Lexical Patterns ==="
echo "--- Tier A (strong generic markers) ---"
grep -n -i -c -w 'delve\|delving\|tapestry\|beacon\|landscape\|realm\|embark\|embarking\|spearhead\|bustling\|pivotal\|commendable\|ingenious\|meticulous\|meticulously\|intricate\|intricacies\|underscores\|underpinning\|multifaceted' "$MANUSCRIPT" && \
grep -n -i -w 'delve\|delving\|tapestry\|beacon\|landscape\|realm\|embark\|embarking\|spearhead\|bustling\|pivotal\|commendable\|ingenious\|meticulous\|meticulously\|intricate\|intricacies\|underscores\|underpinning\|multifaceted' "$MANUSCRIPT"
echo ""
echo "--- Tier B (moderate generic markers) ---"
grep -n -i -c -w 'crucial\|foster\|fostering\|leverage\|navigate\|nuanced\|nuance\|robust\|cornerstone\|comprehensive\|encompasses\|harnessing\|noteworthy\|holistic\|transformative' "$MANUSCRIPT" && \
grep -n -i -w 'crucial\|foster\|fostering\|leverage\|navigate\|nuanced\|nuance\|robust\|cornerstone\|comprehensive\|encompasses\|harnessing\|noteworthy\|holistic\|transformative' "$MANUSCRIPT"
echo ""
echo "--- Tier C (context-dependent) ---"
grep -n -i -c -w 'elucidate\|illuminate\|unravel\|unveil\|unveiling\|bolster\|catalyze\|catalyst\|resonate\|resonates\|testament\|pave' "$MANUSCRIPT" && \
grep -n -i -w 'elucidate\|illuminate\|unravel\|unveil\|unveiling\|bolster\|catalyze\|catalyst\|resonate\|resonates\|testament\|pave' "$MANUSCRIPT"
echo ""
echo "--- Frequency markers (count-based) ---"
echo -n "underscores: "; grep -i -c -w 'underscores' "$MANUSCRIPT"
echo -n "aligns with: "; grep -i -c 'aligns with' "$MANUSCRIPT"
echo -n "sheds light: "; grep -i -c 'sheds\? light' "$MANUSCRIPT"
echo -n "plays a.*role: "; grep -i -c 'plays a.*role' "$MANUSCRIPT"
echo ""
echo "=== T16: Em-Dash Overuse ==="
echo -n "em-dashes (—): "; grep -o '—' "$MANUSCRIPT" | wc -l | tr -d ' '
echo -n "double-hyphens (--): "; grep -o '\-\-' "$MANUSCRIPT" | wc -l | tr -d ' '
TOTAL_LINES=$(wc -l < "$MANUSCRIPT")
APPROX_PAGES=$(( (TOTAL_LINES + 49) / 50 ))
echo "approx pages: $APPROX_PAGES"
echo "(>2 per page avg = MEDIUM, >4 per page avg = HIGH)"
# T18 Automated Causal Language Scan — run on the manuscript text file
echo "=== T18: Causal Language in Non-Causal Designs ==="
echo "--- Strong causal verbs ---"
grep -n -i -w 'shapes\|drives\|produces\|causes\|leads to\|results in\|gives rise to\|generates\|determines\|triggers' "$MANUSCRIPT" | head -30
echo ""
echo "--- Mechanistic phrasing ---"
grep -n -i 'through which.*affects\|mechanism by which\|operates by\|pathway from.*to' "$MANUSCRIPT" | head -20
echo ""
echo "--- Directional claims ---"
grep -n -i -w 'increases\|reduces\|enhances\|undermines\|diminishes\|amplifies\|exacerbates\|attenuates' "$MANUSCRIPT" | head -30
echo ""
echo "--- Implicit causation ---"
grep -n -i 'the effect of\|the impact of\|contributes to' "$MANUSCRIPT" | head -20
echo ""
echo "--- Counts ---"
echo -n "strong causal verbs: "; grep -i -c -w 'shapes\|drives\|produces\|causes\|determines\|triggers' "$MANUSCRIPT"
echo -n "mechanistic phrases: "; grep -i -c 'through which.*affects\|mechanism by which\|operates by\|pathway from.*to' "$MANUSCRIPT"
echo -n "'effect of'/'impact of': "; grep -i -c 'the effect of\|the impact of' "$MANUSCRIPT"
echo "(Severity depends on research design — check Methods section first)"
Include T13, T16, and T18 results in the scan report table alongside the structural tells (T1-T18).
Read the target file and produce a diagnostic report.
Read the entire manuscript/section file. Segment into paragraphs. Count total paragraphs, sentences, and words.
For each of the 18 tells (T1-T18), scan every paragraph. For T18: before scanning paragraphs, first read the Methods section (or abstract) to determine the research design. If the design is causal (RCT, quasi-experimental with valid identification strategy), skip T18 entirely. Record:
... truncation)Count occurrences of each tell. Compute:
# Style Polish Scan Report: [filename]
**Date**: [YYYY-MM-DD]
**Style Score**: [N]/100
**Total tells detected**: [N] (HIGH: [n], MEDIUM: [n], LOW: [n])
## Tell Frequency
| Tell | Count | HIGH | MED | LOW | Description |
|------|-------|------|-----|-----|-------------|
| T2 | 14 | 3 | 8 | 3 | Formulaic transitions |
| T5 | 9 | 2 | 5 | 2 | "This..." anaphora |
| ... | ... | ... | ... | ... | ... |
## Worst Paragraphs
| Para # | Opening Words | Tells | Score |
|--------|--------------|-------|-------|
| 3 | "Moreover, it is important..." | T2, T1, T8 | 12 |
| ... | ... | ... | ... |
## Detailed Findings
### T2 — Formulaic Transitions (14 instances)
1. Para 3: "**Moreover**, it is important to note..." → HIGH
2. Para 7: "**Furthermore**, recent scholarship..." → MEDIUM
...
## Recommendation
[LIGHT / MODERATE / AGGRESSIVE rewrite recommended based on Style Score]
- Score 0-15: No action needed
- Score 16-35: LIGHT pass (fix HIGH tells only)
- Score 36-60: MODERATE pass (fix HIGH + MEDIUM)
- Score 61-100: AGGRESSIVE pass (comprehensive rewrite)
If mode is SCAN only, save the report and stop.
Apply human writing micro-patterns to the manuscript. Requires a scan report (run SCAN first, or auto-run in FULL mode).
Based on intensity setting:
Process the manuscript paragraph by paragraph. For each flagged tell:
T1 (Hedging Stacks): Identify all hedges in the sentence. Keep only the one closest to the actual uncertainty. Example:
T2 (Formulaic Transitions): Delete the transition word. Restructure if needed. Occasionally replace with a short conjunction ("But", "Yet", "And", "Still") — these are underrepresented in generic prose.
T3 (Symmetrical Parallelism): Break one parallel. Make one clause longer or shorter. Add a parenthetical.
T4 (Tricolon Habit): Collapse, expand, or restructure.
T5 (Anaphoric "This"): Vary the referent.
T6 (Over-Enumeration): Remove count announcements. Let ideas flow.
T7 (Definitional Opening): Enter concepts in action.
T8 (Empty Metacommentary): Delete and start with substance.
T9 (Uniform Sentence Length): Inject a short punchy sentence (5-10 words) after a complex one. Allow one genuinely long sentence (40+ words) per paragraph.
T10 (Adjective/Adverb Inflation): Strip to one modifier max.
T11 (Passive Avoidance): Restore passive in methods/results where conventional.
T12 (Conclusion Echo): Rewrite conclusion sentences that merely paraphrase the introduction. Advance the argument.
T13 (LLM Lexical Fingerprint): Replace flagged AI-frequency words with plain academic English. Use the automated scan results from the "Automated Lexical Scan" section above.
T14 (Performative Depth Signaling): Delete the signaling phrase. If the sentence still works without it, it was filler.
T15 (Excessive Discourse Connectives): Count connectives per page. If >3 per page average, cut half. Keep only where the logical turn is surprising.
T16 (Excessive Em-Dashes): Replace most em-dashes with conventional academic alternatives. Target: max 1-2 per page.
T18 (Causal Language in Non-Causal Designs): If the scan flagged T18 instances (i.e., the research design is non-causal), replace causal verbs with associational language. This is a methodological fix, not merely stylistic — Reviewer 2 will flag it.
Beyond fixing tells, inject these positive human writing markers that LLMs rarely produce:
Apply 2-4 of these per page, distributed naturally. Never cluster them.
After all edits:
[CITATION NEEDED] markers survivegrep -c '<!--ev:' and grep -c '<!--anchor:' must match the pre-polish counts (Absolute Rule 6)## Style Polish Edit Summary
- **Paragraphs modified**: [N] of [total]
- **Tells fixed**: [N] (T1: [n], T2: [n], ...)
- **Micro-patterns injected**: [N]
- **Word count**: [original] → [new] ([+/- N]%)
- **Estimated new Style Score**: [N]/100 (was [original])
Execute Mode 1 (SCAN) then Mode 2 (REWRITE) sequentially. This is the default.
Before EVERY Write tool call below, run this Bash block to determine the correct save path. Do NOT hardcode paths from the filename templates — they show naming patterns only.
# MANDATORY: Replace [slug] and [YYYY-MM-DD] with actuals before running
OUTPUT_ROOT="${OUTPUT_ROOT:-output}"
# BASE pattern: ${OUTPUT_ROOT}/[slug]/polish/scholar-polish-[slug]-[YYYY-MM-DD]
OUTDIR="$(dirname "${OUTPUT_ROOT}/[slug]/polish/scholar-polish-[slug]-[YYYY-MM-DD]")"
STEM="$(basename "${OUTPUT_ROOT}/[slug]/polish/scholar-polish-[slug]-[YYYY-MM-DD]")"
mkdir -p "$OUTDIR"
bash "${SCHOLAR_SKILL_DIR:-.}/scripts/gates/version-check.sh" "$OUTDIR" "$STEM"
Use the printed SAVE_PATH as file_path in the Write tool call. Re-run this block (with the appropriate BASE) for each additional file. The same version suffix must be used for all related output files.
Filename: output/[slug]/polish/scholar-polish-scan-[slug]-[YYYY-MM-DD].md
Contains the full scan report from Step 1.4.
Filename: output/[slug]/polish/scholar-polish-rewrite-[slug]-[YYYY-MM-DD].md
The full rewritten text with all fixes applied. This is the primary deliverable — a drop-in replacement for the original file.
Filename: output/[slug]/polish/scholar-polish-log-[slug]-[YYYY-MM-DD].md
Contains:
For File 2 (the rewritten manuscript), generate multi-format output:
# CRITICAL: Replace [saved-md-path] with the EXACT path you used in the Write tool call above.
MD_FILE="[saved-md-path]"
BASE="${MD_FILE%.md}"
OUTDIR="$(dirname "$MD_FILE")"
OUTPUT_ROOT="${OUTPUT_ROOT:-output}"
# Detect .bib file for citation processing
# Citation flags as an ARRAY — a quoted string would force `eval pandoc …`, which
# word-splits spaced paths ("…/My Drive/…") and executes $(…)/backticks in BASE/BIB_FILE.
BIB_FILE=""
CITEPROC_ARGS=()
for bib_candidate in "${OUTDIR}/references.bib" "${OUTPUT_ROOT}/citations/"*.bib "${OUTPUT_ROOT}/"*/citations/*.bib; do
if [ -f "$bib_candidate" ]; then
BIB_FILE="$(cd "$(dirname "$bib_candidate")" && pwd)/$(basename "$bib_candidate")"
CITEPROC_ARGS=(--citeproc --bibliography="$BIB_FILE" --metadata reference-section-title="References")
echo "Found .bib for citation processing: $BIB_FILE"
break
fi
done
pandoc "${BASE}.md" -o "${BASE}.docx" \
"${CITEPROC_ARGS[@]}" \
--reference-doc="$HOME/.pandoc/reference.docx" 2>/dev/null \
|| pandoc "${BASE}.md" -o "${BASE}.docx" "${CITEPROC_ARGS[@]}"
pandoc "${BASE}.md" -o "${BASE}.tex" --standalone \
"${CITEPROC_ARGS[@]}" \
-V geometry:margin=1in -V fontsize=12pt
pandoc "${BASE}.md" -o "${BASE}.pdf" \
--pdf-engine=xelatex \
"${CITEPROC_ARGS[@]}" \
-V geometry:margin=1in -V fontsize=12pt 2>/dev/null \
|| echo "PDF generation requires a LaTeX engine"
echo "Converted: ${BASE}.md -> .docx, .tex, .pdf"
if [ -n "$BIB_FILE" ]; then echo "Citations resolved via: $BIB_FILE"; fi
Close Process Log:
OUTPUT_ROOT="${OUTPUT_ROOT:-output}"
SKILL_NAME="scholar-polish"
LOG_DATE=$(date +%Y-%m-%d)
LOG_FILE="${OUTPUT_ROOT}/logs/process-log-${SKILL_NAME}-${LOG_DATE}.md"
if [ ! -f "$LOG_FILE" ]; then
LOG_FILE=$(ls -t "${OUTPUT_ROOT}"/logs/process-log-${SKILL_NAME}-${LOG_DATE}*.md 2>/dev/null | head -1)
fi
cat >> "$LOG_FILE" << LOGFOOTER
## Output Files
[list each output file path as a bullet]
## Summary
- **Steps completed**: [N completed]/[N total]
- **Files produced**: [count]
- **Errors**: [count, or 0]
- **Time finished**: $(date +%H:%M:%S)
LOGFOOTER
echo "Process log saved to $LOG_FILE"
[CITATION NEEDED] markers preserved<!--ev:--> evidence bindings, <!--anchor:-->) preserved — counts match pre-polishWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub joshzyj/open-scholar-skill --plugin open-scholar-skill36 skills in this plugin
/scholar-analyzeRun data analytics and produce publication-quality tables and visualizations for social science research. Saves regression tables (HTML/TeX/docx), figures (PDF/PNG), an internal analysis log, and a publication-ready Results document (prose + table notes + figure captions). Accepts file paths, inline/pasted data, or fetches from online sources (NHANES, IPUMS, GSS, World Bank, etc.). Runs A9/B9 verification subagents to check analytic and visualization correctness. For causal designs, invokes /scholar-causal first. Use after /scholar-design./scholar-annotateTurn unstructured text into validated, structured variables at corpus scale with LLMs: codebook design, dev/gold-set construction, DSPy prompt optimization, a hard reliability gate (Cohen κ ≥ 0.70), scale-out via managed Batch APIs or a local/HPC server, and distillation to a cheap classifier for very large corpora. Use for LLM annotation, classification, framing/stance coding, relevance filtering, structured extraction, and any LLM-as-measurement task over a text corpus. Ships a real execution engine (assets/) — not in-context snippets./scholar-auto-improveAutomatic quality auditor and continuous improvement engine for the scholar-skill suite. Four modes: (1) OBSERVE — post-skill output audit (run after any skill); (2) AUDIT — skill-suite structural health check; (3) IMPROVE — propose and apply fixes to skill definitions; (4) EVOLVE — cross-session pattern analysis and systemic improvements. Designed to run automatically at the end of any scholar-skill invocation.
Other plugins' skills for the same job