Agent skill

Text Format Organizer

by aipoch in aipoch/medical-research-skills

A local text formatting organizer for biomedical/academic writing; use it when you need to clean whitespace/line endings while preserving Markdown structures or when normalizing .docx/.md/.txt…

MITAuto-check passedDocuments & Office

Install Text Format Organizer

skills CLI
$ npx skills add aipoch/medical-research-skills --skill text-format-organizer -a claude-code

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

GitHub CLI
$ gh skill install aipoch/medical-research-skills text-format-organizer --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/Other/text-format-organizer .claude/skills/text-format-organizer && 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
text-format-organizer
GitHub stars
2k
Token cost
~1.9k tokens
SKILL.md length
797 words
Files
3
Skills in repo
578
Repo updated
First seen
Licence
MIT

At a glance

A local text formatting organizer for biomedical/academic writing; use it when you need to clean whitespace/line endings while preserving Markdown structures or when normalizing .docx/.md/.txt…

  • Works in 5 steps: Format a Markdown or text file → Format a Word document → Preview changes without writing output → …
  • You need to clean whitespace/line endings while preserving Markdown structures
  • SKILL.md covers Validation Shortcut, When to Use, Key Features and Dependencies, plus 12 more sections
  • Calls python

What it does

Text Format Organizer is an agent skill from aipoch/medical-research-skills. A local text formatting organizer for biomedical/academic writing; use it when you need to clean whitespace/line endings while preserving Markdown structures or when normalizing .docx/.md/.txt before submission or proofreading.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `POLISH_CHANGELOG.md` and `eval_report_text-format-organizer_result.json`).

It sits in Documents & Office, covering Word documents, Copy editing and proofreading and Markdown. 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

  • You need to clean whitespace/line endings while preserving Markdown structures
  • Normalizing .docx/.md/.txt before submission

Example prompts

  • “/text-format-organizer”

Requirements

  • Python 3

Workflow steps

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

  1. Format a Markdown or text file
  2. Format a Word document
  3. Preview changes without writing output
  4. Programmatic usage (core module)
  5. Workflow with an academic proofreading tool

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

    Shell commands in SKILL.md call:

    • python

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

  • Network

    No URLs in SKILL.md.

    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

Text Format Organizer loads about 1.9k tokens when it runs. Until then it costs about 62 tokens; SKILL.md has 797 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~62
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

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); files beside SKILL.md are not scanned.

SKILL.md

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

Download SKILL.mdSave it as .claude/skills/text-format-organizer/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
text-format-organizer
description
A local text formatting organizer for biomedical/academic writing; use it when you need to clean whitespace/line endings while preserving Markdown structures or when normalizing .docx/.md/.txt before submission or proofreading.
license
MIT
author
AIPOCH

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

Validation Shortcut

Run this minimal command first to verify the supported execution path:

bash
python scripts/init_run.py --help

When to Use

  • Cleaning biomedical manuscripts where extra blank lines, trailing spaces, or mixed line endings break journal templates.
  • Normalizing Markdown notes (lists/tables/code blocks) before converting to PDF/Word.
  • Formatting clinical research reports or protocol records exported from multiple editors (Windows/macOS/Linux).
  • Pre-processing .docx drafts before running downstream proofreading/QA tools (e.g., academic-proofreader).
  • Preparing theses/dissertations to enforce consistent indentation and whitespace rules across chapters.

Key Features

  • Intelligent cleaning
    • Removes redundant empty lines while keeping paragraph boundaries.
    • Strips trailing whitespace while preserving leading indentation.
    • Unifies line endings (unix, windows, mac).
    • Converts tabs to spaces (configurable indentation size).
  • Structure protection
    • Preserves Markdown list structures (-, *, 1.).
    • Keeps fenced code blocks (...) unchanged.
    • Preserves Markdown table formatting.
  • Multi-format I/O
    • Supports .txt, .md, and .docx input/output.

Dependencies

  • python >= 3.8
  • python-docx >= 1.0.0

Example Usage

1) Format a Markdown or text file
bash
python scripts/init_run.py --input input.md --output output.md
2) Format a Word document
bash
python scripts/init_run.py -i paper.docx -o paper_clean.docx
3) Preview changes without writing output
bash
python scripts/init_run.py -i input.md --preview
4) Programmatic usage (core module)
python
from scripts.text_formatter import TextFormatter, FormatOptions

text = "Line with trailing spaces   \n\n\n- item 1\n\t- item 2\n"
options = FormatOptions(
    line_ending="unix",
    indent="spaces",
    indent_size=4,
)

formatter = TextFormatter(options=options)
formatted = formatter.format(text)
print(formatted)
5) Workflow with an academic proofreading tool
bash
# Step 1: Format organization
python scripts/init_run.py -i paper.docx -o paper_clean.docx

# Step 2: Content/format checking (separate project)
cd ../academic-proofreader
python scripts/init_run.py -i paper_clean.docx

Implementation Details

CLI parameters
ParameterDescriptionDefault
--input / -iInput file path (.txt / .md / .docx)Required
--output / -oOutput file pathAuto-generated
--line-endingLine ending: unix / windows / macunix
--indentIndentation type: spaces / tabsspaces
--indent-sizeNumber of spaces per indent level4
--previewPreview mode (no output written)false
--docx-fontFont used for Word outputTimes New Roman
--docx-sizeFont size used for Word output12
Formatting rules (high level)
  • Whitespace normalization
    • Collapses excessive blank lines while preserving paragraph separation.
    • Removes trailing spaces at line ends; does not remove leading indentation.
  • Line ending normalization
    • Converts all line endings to the selected target (unix/windows/mac).
  • Indentation normalization
    • Converts tab characters to spaces when indent=spaces, using indent_size.
  • Markdown-safe processing
    • Skips transformations inside fenced code blocks.
    • Preserves list markers and table pipes/alignment to avoid structural breakage.
  • DOCX handling
    • Reads .docx, applies the same normalization at the text/paragraph level, then writes a new .docx using the configured font and size.

When Not to Use

  • Do not use this skill when the required source data, identifiers, files, or credentials are missing.
  • Do not use this skill when the user asks for fabricated results, unsupported claims, or out-of-scope conclusions.
  • Do not use this skill when a simpler direct answer is more appropriate than the documented workflow.

Required Inputs

  • A clearly specified task goal aligned with the documented scope.
  • All required files, identifiers, parameters, or environment variables before execution.
  • Any domain constraints, formatting requirements, and expected output destination if applicable.
  1. Validate the request against the skill boundary and confirm all required inputs are present.
  2. Select the documented execution path and prefer the simplest supported command or procedure.
  3. Produce the expected output using the documented file format, schema, or narrative structure.
  4. Run a final validation pass for completeness, consistency, and safety before returning the result.
Show full SKILL.md (325 more words)Show less

Output Contract

  • Return a structured deliverable that is directly usable without reformatting.
  • If a file is produced, prefer a deterministic output name such as text_format_organizer_result.md unless the skill documentation defines a better convention.
  • Include a short validation summary describing what was checked, what assumptions were made, and any remaining limitations.

Validation and Safety Rules

  • Validate required inputs before execution and stop early when mandatory fields or files are missing.
  • Do not fabricate measurements, references, findings, or conclusions that are not supported by the provided source material.
  • Emit a clear warning when credentials, privacy constraints, safety boundaries, or unsupported requests affect the result.
  • Keep the output safe, reproducible, and within the documented scope at all times.

Failure Handling

  • If validation fails, explain the exact missing field, file, or parameter and show the minimum fix required.
  • If an external dependency or script fails, surface the command path, likely cause, and the next recovery step.
  • If partial output is returned, label it clearly and identify which checks could not be completed.

Input Validation

This skill accepts requests that match the documented purpose of text-format-organizer 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:

text-format-organizer only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.

Quick Validation

Run this minimal verification path before full execution when possible:

bash
python scripts/init_run.py --help

Expected output format:

text
Result file: text_format_organizer_result.md
Validation summary: PASS/FAIL with brief notes
Assumptions: explicit list if any

Deterministic Output Rules

  • Use the same section order for every supported request of this skill.
  • Keep output field names stable and do not rename documented keys across examples.
  • If a value is unavailable, emit an explicit placeholder instead of omitting the field.

Completion Checklist

  • Confirm all required inputs were present and valid.
  • Confirm the supported execution path completed without unresolved errors.
  • Confirm the final deliverable matches the documented format exactly.
  • Confirm assumptions, limitations, and warnings are surfaced explicitly.

© 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 2 other files in scientific-skills/Other/text-format-organizer of aipoch/medical-research-skills.

  • SKILL.md
  • POLISH_CHANGELOG.md
  • eval_report_text-format-organizer_result.json

Open the folder on GitHubat commit 686e09d

Compare with similar skills

Text Format Organizer 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.

Text Format Organizer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Text Format Organizer this skillaipoch/medical-research-skills2k—~1.9kAutomated safety check: PassMIT
Chinese Official Document Draftingzhaohui-yang/official-document-drafting140—~1.5kAutomated safety check: PassMIT
MarkitdownImCa0/just-laws78214 repos~3.2kAutomated safety check: NotesMIT
Gzh Designisjiamu/gzh-design-skill3.9k1 repos~2.2kAutomated safety check: PassAGPL-3.0
Pandoc DOCX TemplateAchuan-2/pandoc_docx_template1.1k—~1kAutomated safety check: PassNone
Markitshift-labs-ai/markit1.3k—~299Automated safety check: PassMIT

Similar skills

  • Chinese Official Document Drafting

    zhaohui-yang/official-document-drafting

    Drafts, rewrites and standardizes Chinese official documents and formal reports such as notices, requests and meeting minutes, and exports the result to Word.

    140 GitHub stars~1.5k tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed
  • Markitdown

    ImCa0/just-laws

    Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.

    782 GitHub starsUsed in 14 repos~3.2k tokens
    Documents & OfficeAuto-check: notes
  • Gzh Design

    isjiamu/gzh-design-skill

    微信公众号文章排版引擎,将 Markdown 转换为可直接粘贴到公众号编辑器的 HTML。主题风格从 references/theme-index.md 注册的自定义主题库中选取,自动章节编号、关键词下划线标记、引言卡片、目录导航、代码块、图片/GIF、作者签名。支持 Markdown / Word(.docx) / PDF / 纯文本输入(非 Markdown…

    3.9k GitHub starsUsed in 1 repo~2.2k tokens
    Documents & OfficeAuto-check passed
  • Pandoc DOCX Template

    Achuan-2/pandoc_docx_template

    A skill your agent uses when converting Markdown to Word DOCX or DOCX back to Markdown with Pandoc, especially when the output should use the bundled Chinese Word reference templates, heading…

    1.1k GitHub stars~1k tokensUpdated 3 mo ago
    Documents & OfficeAuto-check passed
  • Markit

    shift-labs-ai/markit

    Convert files and URLs to Markdown. An agent skill from shift-labs-ai/markit.

    1.3k GitHub stars~299 tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed
  • 将访谈稿、聊天记录、简历、公开内容、业务资料、案例和既有 DOCX/Markdown 文档,提炼成可被 AI 长期调用的个人 IP 知识库。适用于用户要求“生成个人知识库”“整理成个人 IP 成品知识库”“为创始人/专家/讲师/主播/顾问建立AI知识库”“把资料变成个人IP底层提示词/写作风格库/故事素材库/话术库”的场景。

    1.5k GitHub stars~892 tokensUpdated yesterday
    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…

    2k GitHub stars~2.2k tokensUpdated 22 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.

    2k GitHub stars~1.4k tokensUpdated 22 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.

    2k GitHub stars~3.7k tokensUpdated 22 days ago
    Auto-check passed
  • Iso Certification

    aipoch/medical-research-skills

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

    2k GitHub stars~1.8k tokensUpdated 22 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…

    2k GitHub stars~1.7k tokensUpdated 22 days ago
    Auto-check passed
  • Latex Posters

    aipoch/medical-research-skills

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

    2k GitHub stars~1.3k tokensUpdated 22 days ago
    Auto-check passed

Works with

Questions about Text Format Organizer

What does Text Format Organizer do?

A local text formatting organizer for biomedical/academic writing; use it when you need to clean whitespace/line endings while preserving Markdown structures or when normalizing .docx/.md/.txt…. Text Format Organizer is an agent skill from aipoch/medical-research-skills.txt before submission or proofreading.

When should I use Text Format Organizer?

Text Format Organizer fits situations like: you need to clean whitespace/line endings while preserving Markdown structures; normalizing .docx/.md/.txt before submission.

How do I install Text Format Organizer in Claude Code?

Run `npx skills add aipoch/medical-research-skills --skill text-format-organizer -a claude-code`. Or copy the skill folder (scientific-skills/Other/text-format-organizer in aipoch/medical-research-skills) into .claude/skills/text-format-organizer in your project. Claude Code loads it when a task matches its description.

How do I install Text Format Organizer in Codex?

Run `npx skills add aipoch/medical-research-skills --skill text-format-organizer -a codex`. Or copy the skill folder (scientific-skills/Other/text-format-organizer in aipoch/medical-research-skills) into .agents/skills/text-format-organizer in your project. Codex loads it when a task matches its description.

Can I use Text Format Organizer 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 text-format-organizer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/text-format-organizer, .gemini/skills/text-format-organizer, .github/skills/text-format-organizer and .opencode/skills/text-format-organizer in your project.

What does Text Format Organizer need to run?

Going by SKILL.md and its folder, Text Format Organizer needs the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Text Format Organizer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Text Format Organizer 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. Review the folder before installing.

What licence does Text Format Organizer use?

Text Format Organizer 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 Text Format Organizer use?

About 1.9k tokens (SKILL.md is roughly 7.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Text Format Organizer?

Skills that share tags, products or a category with Text Format Organizer: Chinese Official Document Drafting (zhaohui-yang/official-document-drafting, 140 stars), Markitdown (ImCa0/just-laws, 782 stars), Gzh Design (isjiamu/gzh-design-skill, 3.9k stars) and Pandoc DOCX Template (Achuan-2/pandoc_docx_template, 1.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Text Format Organizer?

aipoch (a GitHub organization) maintains it in aipoch/medical-research-skills, which has 1,978 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.