Agent skill

Style Journal Rewrite

by aipoch in aipoch/medical-research-skills

Rewrite drafts according to target writing style or target journal format.

MITAuto-check passedDocuments & Office

Install Style Journal Rewrite

skills CLI
$ npx skills add aipoch/medical-research-skills --skill style-journal-rewrite -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aipoch/medical-research-skills style-journal-rewrite --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/'scientific-skills/Academic Writing/style-journal-rewrite' .claude/skills/style-journal-rewrite && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
style-journal-rewrite
GitHub stars
1.9k
Token cost
~1.8k tokens
SKILL.md length
837 words
Files
8 (incl. scripts, references)
Skills in repo
578
Repo updated
First seen
Licence
MIT

At a glance

Rewrite drafts according to target writing style or target journal format.

  • Works in 2 steps: Define Boundaries → Extract Target Profile
  • User says rewrite in XX style
  • SKILL.md covers Trigger Conditions, Requirements, Process and Path A: Pure Style Adaptation…, plus 6 more sections
  • Runs Python scripts from its folder; calls pip

What it does

Style Journal Rewrite is an agent skill from aipoch/medical-research-skills. Rewrite drafts according to target writing style or target journal format. Triggers when user says "rewrite in XX style", "match this tone", "format for XX journal", "rewrite following this format". Input can be .docx / .md / .txt or conversation text.

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts and reference files (for example `POLISH_CHANGELOG.md`, `eval_report_style-journal-rewrite_result.json` and `references/journal-format-extraction.md`).

It sits in Documents & Office, covering Word documents, Brand voice and tone and Citation management. It works with Microsoft Word. The repository describes itself as: Hundreds of agent skills for medical research, including protocol design, data analysis, evidence insights, and academic writing. The licence is MIT.

When your agent uses it

  • User says rewrite in XX style
  • Match this tone
  • Format for XX journal
  • Rewrite following this format

Example prompts

  • “rewrite in XX style”
  • “match this tone”
  • “format for XX journal”
  • “/style-journal-rewrite”

Requirements

  • Python 3

Workflow steps

2 steps, taken from the step headings in SKILL.md.

  1. Define Boundaries
  2. Extract Target Profile

What it can do on your machine

Read from SKILL.md and the folder at commit 686e09d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Style Journal Rewrite loads about 1.8k tokens when it runs, and up to ~4.2k if it reads all its reference files. Until then it costs about 69 tokens; SKILL.md has 837 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~69
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from aipoch/medical-research-skills at commit 686e09d, republished under its MIT licence (© aipoch). 837 words, ~1,806 tokens.

Download SKILL.mdSave it as .claude/skills/style-journal-rewrite/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
style-journal-rewrite
description
Rewrite drafts according to target writing style or target journal format. Triggers when user says "rewrite in XX style", "match this tone", "format for XX journal", "rewrite following this format". Input can be .docx / .md / .txt or conversation text.
license
MIT
author
AIPOCH

Source: https://github.com/aipoch/medical-research-skills

Style and Journal Format Adaptation Skill

Trigger Conditions

Triggers
  • Style change: "rewrite in XX style", "write like XX", "match this tone"
  • Journal format: "format for XX journal", "rewrite following this format", "convert to NC format"
  • Adjust reference style or abstract structure
Does Not Trigger
  • Factual additions, content expansion
  • Proofreading typos
  • Complete structural rewrite (unrelated to style/format)
  • Adding references only (use find-paper-references)

Requirements

  • python-docx: pip install python-docx (required for B4/C4 visual formatting, B1/B2 scripts)

Process

0. Define Boundaries

Determine three things:

  • Input format: DOCX / MD / TXT / conversation text?
  • Task type: Style only / format only / both?
  • Output format: Same as input or specific format requested?

Then branch into the corresponding path below.

1. Extract Target Profile

Read extraction guides from references/:

  • Style adaptation → references/style-profile-extraction.md
  • Journal format adaptation → references/journal-format-extraction.md

Do not fabricate rules not found in the user's materials.


Path A: Pure Style Adaptation (any input format)

Read references/rewriting-criteria.md directly, rewrite according to profile. Change only expression style, not formatting.

Output matches input format. DOCX: change text only, not styles; MD/TXT: output same format; conversation text: output directly.

After completion, skip to Section 5 QC.


Path B: DOCX + Format Adaptation

Input is .docx, requires journal format changes (may also include style changes).

B1. Structure Layer
  • Heading numbering:
    • Reference article has no numbering → run scripts/remove_heading_numbers.py <input> <output>
    • Reference article has numbering but different format → manually edit heading text
  • Abstract structure, section order: AI modifies directly
B2. Citation Layer
  • End-of-text list numbering: use convert_ref_format.py --ref-list-style to switch between [N] / N.
  • In-text citations: use convert_ref_format.py --style to switch superscript (Unicode / font format)
  • --range-joiner and --group-separator must be extracted from the reference article's actual writing style, do not assume
  • How the reference article combines consecutive citations: observe multi-citation sequences in text, then set parameters
B3. Field Code Detection

Scan w:instrText in DOCX XML:

  • Contains ADDIN ZOTERO_ITEM → load format-references-zotero skill, search CSL style → install → Refresh
  • Contains {Author, Year, Title} → load format-references-endnote skill, check .ris in same directory → deliver
  • Plain text citations (no field codes) → skip this step, B2 already handled
B4. Visual Formatting

python-docx adjusts font, size, line spacing, paragraph spacing, indentation, alignment per paragraph. Use para.runs to set font.name / font.size, use para.paragraph_format for spacing.

**/!** Do NOT use para._element.clear() to clear paragraphs containing field codes — this destroys Zotero/EndNote field codes. B4 only modifies w:rPr and w:pPr.


Path C: MD + Format Adaptation

Input is .md, requires journal format changes (may also include style changes).

C1. Check PMID Markers

MD must contain [PMID:xxxxxxxx] markers to use this path.

  • Has markers → continue
  • No markers → prompt user: run find-paper-references first to insert PMID markers, then return to this skill
C2. Style and Structure Adjustment

AI directly modifies MD text:

  • Remove heading numbers, adjust abstract structure, adjust section order
  • Change writing style (if needed)

/!\ Critical constraint: When moving or rewriting sentences with citations, [PMID:xxxxxxxx] markers must follow the text — do not lose, change numbers, or modify spaces.

Show full SKILL.md (361 more words)Show less
C3. Hand Off to Citation Formatting Skill

Load the corresponding skill based on user's tool:

  • Zotero → Skill("format-references-zotero")
  • EndNote → Skill("format-references-endnote")

Both skills do: parse [PMID:xxxxx] → fetch PubMed metadata → download target journal CSL style → output DOCX (in-text citations and bibliography formatted per journal style).

This step replaces all work done by convert_ref_format.py in Path B, with more professional results — citation formatting is driven by Zotero/EndNote engines, avoiding inconsistencies from manual Unicode superscript assembly.

C4. Visual Formatting

python-docx applies journal-required font, size, line spacing, margins, and figure/table caption positioning on the DOCX produced by C3.

Same as B4: only modify w:rPr and w:pPr, do not affect Zotero/EndNote field codes.

C5. Output

Final DOCX = C2 (structure+style) → C3 (citation formatting) → C4 (visual formatting)


4. Output and Delivery

  • DOCX → doc.save() → deliver_attachments
  • MD → Write() → deliver_attachments
  • TXT → Write() → deliver_attachments
  • Conversation text → output directly to conversation
  • After delivery, summarize changes in one sentence

5. Quality Check

Verify each item:

  • Original key information fully preserved, no example content mixed in
  • If style target: consistent tone throughout, not just first few paragraphs
  • If journal format target:
    • Heading numbering matches reference article
    • Abstract structure matches reference article
    • (DOCX path) Field codes detected, corresponding citation skill executed
    • (MD path) PMID markers intact, citation skill executed
    • Visual formatting (font/size/line spacing) applied
  • No fabricated "journal rules" unsupported by user materials
  • File opens normally, no formatting issues (MD path: final DOCX opens with working Refresh/Update Citations)

Error Handling

  • If required inputs are missing, state exactly which fields are missing and request only the minimum additional information.
  • If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.
  • If execution fails, report the failure point, summarize what can still be completed safely, and provide a manual fallback.
  • Do not fabricate files, citations, data, search results, or execution outcomes.

Input Validation

This skill accepts requests that match the documented purpose of style-journal-rewrite and include enough context to complete the workflow safely.

Do not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:

style-journal-rewrite only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.

© aipoch, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files (scripts, references) in scientific-skills/Academic Writing/style-journal-rewrite of aipoch/medical-research-skills.

  • SKILL.md
  • POLISH_CHANGELOG.md
  • eval_report_style-journal-rewrite_result.json
  • references/journal-format-extraction.md
  • references/rewriting-criteria.md
  • references/style-profile-extraction.md
  • scripts/convert_ref_format.py
  • scripts/remove_heading_numbers.py

Open the folder on GitHubat commit 686e09d

Compare with similar skills

Style Journal Rewrite next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Style Journal Rewrite compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Style Journal Rewrite this skillaipoch/medical-research-skills1.9k—~1.8kAutomated safety check: PassMIT
Docsagentdocsagent/docsagent625—~834Automated safety check: PassNone
Journal Copyeditor DOCXmikemikeqqq/copyeditor-skill292—~3.9kAutomated safety check: PassMIT
Latex To Word Workflowhajimi-kun/latex-to-word-workflow128—~2.3kAutomated safety check: PassMIT
Review Papermaxwell2732/my-submission-formatting-agent111—~1.2kAutomated safety check: PassNone
Ultralytics Brandingfcakyon/claude-codex-settings1.2k—~1.3kAutomated safety check: PassApache-2.0

Similar skills

  • Docsagent

    docsagent/docsagent

    Search and manage private, local document collections (PDF, PPTX, DOCX) offline.

    625 GitHub stars~834 tokensUpdated 12 days ago
    Documents & OfficeAuto-check passed
  • Journal Copyeditor DOCX

    mikemikeqqq/copyeditor-skill

    Comprehensive academic journal copyediting and manuscript review for Microsoft Word (.docx) files across disciplines and target journals.

    292 GitHub stars~3.9k tokensUpdated 2 mo ago
    Documents & OfficeAuto-check passed
  • Latex To Word Workflow

    hajimi-kun/latex-to-word-workflow

    Load when the user asks to convert an academic LaTeX manuscript, thesis, or report into an editable Word DOCX, adapt it to a Word template, preserve citations or cross-references, or diagnose a…

    128 GitHub stars~2.3k tokensUpdated 2 mo ago
    Documents & OfficeAuto-check passed
  • Review Paper

    maxwell2732/my-submission-formatting-agent

    Comprehensive manuscript review covering argument structure, methodology, citation completeness, writing quality, and potential referee objections.

    111 GitHub stars~1.2k tokensUpdated 6 mo ago
    Documents & OfficeAuto-check passed
  • Ultralytics Branding

    fcakyon/claude-codex-settings

    This skill should be used when creating Ultralytics-branded content of any kind, including PDF, PPTX, Canva, or Google Slides presentations, DOCX documents, marketing or newsletter HTML emails…

    1.2k GitHub stars~1.3k tokensUpdated yesterday
    Documents & OfficeAuto-check passed
  • De Aigc Skills

    brycewang-stanford/Auto-Empirical-Research-Skills

    中英双语学术降 AIGC / bilingual academic de-AIGC skill. An agent skill from brycewang-stanford/Auto-Empirical-Research-Skills.

    4.6k GitHub stars~5k tokensUpdated 5 days ago
    Documents & OfficeAuto-check passed

More from aipoch/medical-research-skills

All 578 skills in this repo
  • Academic Poster Generator

    aipoch/medical-research-skills

    Complete workflow for generating academic research posters from PDF literature; use when you need to extract paper content from PDFs and produce a LaTeX-based poster…

    1.9k GitHub stars~2.2k tokensUpdated 23 days ago
    Auto-check passed
  • Diagnostic Study Quality Assessment Quadas

    aipoch/medical-research-skills

    Analyzes clinical diagnostic accuracy studies for bias using the QUADAS-2 tool.

    1.9k GitHub stars~1.4k tokensUpdated 23 days ago
    Auto-check passed
  • Exploratory Data Analysis

    aipoch/medical-research-skills

    Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats.

    1.9k GitHub stars~3.7k tokensUpdated 23 days ago
    Auto-check passed
  • Iso Certification

    aipoch/medical-research-skills

    A toolkit for preparing ISO 13485:2016 certification documentation for medical device QMS.

    1.9k GitHub stars~1.8k tokensUpdated 23 days ago
    Auto-check passed
  • Journal Skills

    aipoch/medical-research-skills

    Recommends target journals for manuscript submission by analyzing the paper topic/abstract and the journal distribution of similar PubMed literature; use when users ask for journal…

    1.9k GitHub stars~1.7k tokensUpdated 23 days ago
    Auto-check passed
  • Latex Posters

    aipoch/medical-research-skills

    Creates academic-poster writing packages for LaTeX using beamerposter, tikzposter, or baposter.

    1.9k GitHub stars~1.3k tokensUpdated 23 days ago
    Auto-check passed

Works with

Questions about Style Journal Rewrite

What does Style Journal Rewrite do?

Rewrite drafts according to target writing style or target journal format. Style Journal Rewrite is an agent skill from aipoch/medical-research-skills. Rewrite drafts according to target writing style or target journal format.

When should I use Style Journal Rewrite?

Style Journal Rewrite fits situations like: user says rewrite in XX style; match this tone; format for XX journal; rewrite following this format.

How do I install Style Journal Rewrite in Claude Code?

Run `npx skills add aipoch/medical-research-skills --skill style-journal-rewrite -a claude-code`. Or copy the skill folder (scientific-skills/Academic Writing/style-journal-rewrite in aipoch/medical-research-skills) into .claude/skills/style-journal-rewrite in your project. Claude Code loads it when a task matches its description.

How do I install Style Journal Rewrite in Codex?

Run `npx skills add aipoch/medical-research-skills --skill style-journal-rewrite -a codex`. Or copy the skill folder (scientific-skills/Academic Writing/style-journal-rewrite in aipoch/medical-research-skills) into .agents/skills/style-journal-rewrite in your project. Codex loads it when a task matches its description.

Can I use Style Journal Rewrite in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aipoch/medical-research-skills --skill style-journal-rewrite -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/style-journal-rewrite, .gemini/skills/style-journal-rewrite, .github/skills/style-journal-rewrite and .opencode/skills/style-journal-rewrite in your project.

What does Style Journal Rewrite need to run?

Going by SKILL.md and its folder, Style Journal Rewrite needs Python for the scripts in its folder and the command-line tools its instructions call (pip). Our summary lists: Python 3.

Does Style Journal Rewrite access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Style Journal Rewrite safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Style Journal Rewrite use?

Style Journal Rewrite is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Style Journal Rewrite use?

About 1.8k tokens (SKILL.md is roughly 7.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.4k tokens, read only when the agent opens those files.

What are the alternatives to Style Journal Rewrite?

Skills that share tags, products or a category with Style Journal Rewrite: Docsagent (docsagent/docsagent, 625 stars), Journal Copyeditor DOCX (mikemikeqqq/copyeditor-skill, 292 stars), Latex To Word Workflow (hajimi-kun/latex-to-word-workflow, 128 stars) and Review Paper (maxwell2732/my-submission-formatting-agent, 111 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Style Journal Rewrite?

aipoch (a GitHub organization) maintains it in aipoch/medical-research-skills, which has 1,937 GitHub stars. The repository holds 578 skills in this directory. The repository was last updated on September 17, 2026.

Source: aipoch/medical-research-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.