---
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](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