본문으로 건너뛰기
cccskills
무료GitHub에 공개

style-journal-rewrite

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구Word

실행 점수 미검증

설치 방법 보기

포함된 파일(8)

  • SKILL.md7.1 KB
  • eval_report_style-journal-rewrite_result.json10.8 KB
  • POLISH_CHANGELOG.md666 B
  • references/journal-format-extraction.md3.1 KB
  • references/rewriting-criteria.md4.1 KB
  • references/style-profile-extraction.md2.2 KB
  • scripts/convert_ref_format.py10.2 KB
  • scripts/remove_heading_numbers.py1.2 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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.

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.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Transform lengthy academic papers into concise, structured 250-word abstracts.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aipoch/medical-research-skills2천2026년 9월 17일 업데이트

Precision editing tool that reduces abstract word count through intelligent compression techniques, maintaining scientific rigor while meeting strict journal and conference requirements.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aipoch/medical-research-skills2천2026년 9월 17일 업데이트

Refines long medical academic texts into SCI-style unstructured Chinese and English abstracts; use when you need to condense drafts/reports/summaries into bilingual abstracts and generate Summary_Report.md.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aipoch/medical-research-skills2천2026년 9월 17일 업데이트

Generates submission-ready Elsevier/SCI Highlights from manuscript text or extracted PDF/DOCX/TXT content. Use when a user needs 3-5 concise, evidence-grounded highlight bullets for a research paper, review, meta-analysis, case report, or bioinformatics manuscript.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aipoch/medical-research-skills2천2026년 9월 17일 업데이트

Generates complete FAERS pharmacovigilance study designs for multi-drug or class-level safety comparison inside one predefined SOC or AE family using active comparators, disproportionality analysis, subgroup characterization, and reviewer-facing evidence control.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aipoch/medical-research-skills2천2026년 9월 17일 업데이트

Analyze data with `adme-property-predictor` using a reproducible workflow, explicit validation, and structured outputs for review-ready interpretation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aipoch/medical-research-skills2천2026년 9월 17일 업데이트

aipoch의 스킬 모두 보기

이 스킬의 문제 신고