Agent skill

Format References Endnote

by aipoch in aipoch/medical-research-skills

EndNote reference formatting workflow — converts [PMID: xxxx] markers in Markdown manuscripts to Word (.docx) using EndNote CWYW-recognized {Author, Year, Title} placeholders, while generating .ris…

MITAuto-check passedDocuments & Office

Install Format References Endnote

skills CLI
$ npx skills add aipoch/medical-research-skills --skill format-references-endnote -a claude-code

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

GitHub CLI
$ gh skill install aipoch/medical-research-skills format-references-endnote --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/format-references-endnote' .claude/skills/format-references-endnote && 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
format-references-endnote
GitHub stars
2k
Token cost
~1.5k tokens
SKILL.md length
718 words
Files
5 (incl. scripts)
Skills in repo
567
Repo updated
First seen
Licence
MIT

At a glance

EndNote reference formatting workflow — converts [PMID: xxxx] markers in Markdown manuscripts to Word (.docx) using EndNote CWYW-recognized {Author, Year, Title} placeholders, while generating .ris…

  • Works in 5 steps: Check environment (first time or on error) → Confirm the target file → Run the bundled processing script → …
  • Tasks that involve Word documents
  • SKILL.md covers When you're invoked, Workflow, Output files and Why this approach works, plus 4 more sections
  • Runs Python scripts from its folder; calls python

What it does

Format References Endnote is an agent skill from aipoch/medical-research-skills. EndNote reference formatting workflow — converts [PMID: xxxx] markers in Markdown manuscripts to Word (.docx) using EndNote CWYW-recognized {Author, Year, Title} placeholders, while generating .ris files for automatic import into the local EndNote library. Users click "Update ...

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including scripts (for example `POLISH_CHANGELOG.md`, `eval_report_format-references-endnote_result.json` and `scripts/check_env.py`).

It sits in Documents & Office, covering Word documents. It works with Microsoft Word, Python, PubMed and Pandoc. 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

  • Tasks that involve Word documents

Example prompts

  • “/format-references-endnote”

Requirements

  • Python 3

Workflow steps

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

  1. Check environment (first time or on error)
  2. Confirm the target file
  3. Run the bundled processing script
  4. Handle failures gracefully
  5. Deliver the result

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:

    • python

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

  • Network

    Links to these hosts (documentation or services it may open):

    • pandoc.org

    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

Format References Endnote loads about 1.5k tokens when it runs. Until then it costs about 77 tokens; SKILL.md has 718 words of instructions outside code blocks.

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

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). 718 words, ~1,515 tokens.

Download SKILL.mdSave it as .claude/skills/format-references-endnote/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
format-references-endnote
description
EndNote reference formatting workflow — converts [PMID: xxxx] markers in Markdown manuscripts to Word (.docx) using EndNote CWYW-recognized {Author, Year, Title} placeholders, while generating .ris files for automatic import into the local EndNote library. Users click "Update ...
license
MIT
author
AIPOCH

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

Medical Literature Reference Formatter

This skill automates the step of turning rough [PMID: xxxx] citation markers into professionally formatted Word documents that work with EndNote's one-click bibliography generation. No COM automation or macros — purely file-based, stable on any machine with Python + Pandoc.

When you're invoked

The user has a Markdown manuscript with inline [PMID: xxxx] markers and wants a .docx with citation placeholders that EndNote can resolve into a formatted bibliography.

Workflow

Step 0 — Check environment (first time or on error)

If this is the first run, or the user reports any unexpected error, run the bundled check script first:

bash
python "<skill_dir>/scripts/check_env.py"

It verifies: Python 3.7+, Pandoc, PubMed API connectivity, EndNote installation, and .ris file association.

If the output shows .ris not associated with EndNote, ask the user: "Would you like to set .ris files to open with EndNote by default? This will allow generated files to trigger automatic import." If they agree, run:

bash
python "<skill_dir>/scripts/check_env.py" --fix-ris
Step 1 — Confirm the target file

If the user didn't specify a full path, ask. If they give a vague location like "on my Desktop", resolve it:

  • Windows: C:\Users\<username>\Desktop\<filename>.md
  • macOS: /Users/<username>/Desktop/<filename>.md
Step 2 — Run the bundled processing script

The Python script is at scripts/process_references.py inside this skill's directory. Find the skill directory from the path this SKILL.md was loaded from, then run:

bash
python "<skill_dir>/scripts/process_references.py" "<absolute_path_to_file.md>"

The script handles the entire pipeline: PMID extraction → PubMed API fetch → placeholder substitution → Pandoc compile → RIS generation → auto-open both files.

Caching mechanism: After the first run, a <stem>_pubmed_cache.json file is generated. Subsequent runs automatically reuse the cache to avoid redundant PubMed fetches. When new PMIDs are added, only the new ones are fetched.

Force refresh: python process_references.py "<file>" --force-refresh clears the cache and re-fetches all records.

Step 3 — Handle failures gracefully

Pandoc not found: Tell the user to install it from https://pandoc.org/installing.html, then re-run.

PubMed API unreachable: The script fills failed PMIDs with {PMIDxxxxx, n.d., [fetch failed]} so the document is still generated. Offer to retry when network is available.

File path issues: Confirm the path exists and has the .md extension, then re-run.

EndNote not opening automatically: The .ris file association may not be configured. Tell the user to open EndNote manually and drag references_temp.ris into the library window.

Step 4 — Deliver the result

After the script exits successfully, say:

References have been automatically imported into EndNote and the document is open. Switch to the EndNote tab in Word and click "Update Citations and Bibliography" to complete formatting.

Also note the output files are saved in the same directory as the original .md file.

Show full SKILL.md (297 more words)Show less

Output files

FilePurpose
<stem>-endnote.docxWord doc with {Author, Year, Title} unformatted citation placeholders
<stem>.risAll references in RIS format — opening this imports them into EndNote
<stem>_pubmed_cache.jsonPubMed metadata cache — avoids repeated network fetches

Why this approach works

EndNote's CWYW (Cite While You Write) engine recognizes {Author, Year, Title} as an "unformatted citation". When the user clicks Update Citations, EndNote scans the document, matches placeholders against the library, and formats them according to the selected style. This is entirely text-based — no macros, no COM, no risk of security dialogs or permission prompts.

Title normalization

The script automatically normalizes titles to ensure EndNote CWYW can match citation placeholders against the RIS-imported library:

TransformationExample
Greek letters → Latinα-synuclein → alpha-synuclein
Smart quotes → ASCII' " → ' "
Em/en dashes → hyphens— → --, – → -
Brackets stripped[Ca²⁺] → Ca²⁺
Commas stripped(field delimiter in {Author, Year, Title})
Trailing period stripped(some libraries omit it)

Both the docx placeholder and the RIS file (TI field) use the identical normalized title.

Troubleshooting

"Update Citations" cannot find many references: Caused by title mismatch between docx and RIS. Re-run with --force-refresh to regenerate with normalized titles. Verify all records imported into EndNote.

EndNote crashes during Update: Split the work — select half the document, update, then the other half.

Requirements

  • Python 3.7+ with standard library only (no pip installs needed)
  • Pandoc for .md → .docx conversion
  • Internet access for NCBI PubMed API calls
  • EndNote installed, with .ris file association configured

Input Validation

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

format-references-endnote 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 4 other files (scripts) in scientific-skills/Academic Writing/format-references-endnote of aipoch/medical-research-skills.

  • SKILL.md
  • POLISH_CHANGELOG.md
  • eval_report_format-references-endnote_result.json
  • scripts/check_env.py
  • scripts/process_references.py

Open the folder on GitHubat commit 686e09d

Compare with similar skills

Format References Endnote 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.

Format References Endnote compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Format References Endnote this skillaipoch/medical-research-skills2k—~1.5kAutomated safety check: PassMIT
DOCX Processing Toolkittelagod/code-abyss243—~668Automated safety check: NotesMIT
Word Document Reader and WriterHKUDS/DeepTutor41k—~2.5kAutomated safety check: PassApache-2.0
Pandoc DOCX TemplateAchuan-2/pandoc_docx_template1.1k—~1kAutomated safety check: PassNone
Word Document Builderspinabot/brigade11k—~2.1kAutomated safety check: PassMIT
DOCX ToolkitXiaomiMiMo/MiMo-Code14k—~2.4kAutomated safety check: PassApache-2.0

Similar skills

  • DOCX Processing Toolkit

    telagod/code-abyss

    Routes Word document tasks to the right tool: pandoc for text, raw OOXML for structure and comments, docx-js for new files, and a mandatory redlining flow for edits to others' documents.

    243 GitHub stars~668 tokensUpdated 2 mo ago
    Documents & OfficeAuto-check: notes
  • Reads, creates and edits Word .docx files with python-docx, and drops to raw OOXML for tracked changes, comments and byte-exact edits.

    41k GitHub stars~2.5k tokensUpdated today
    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
  • Word Document Builder

    spinabot/brigade

    Creates and edits Word documents along four paths of rising capability, from a quick tool to the docx library, an OOXML round-trip and pandoc, then verifies the file.

    11k GitHub stars~2.1k tokensUpdated 5 days ago
    Documents & OfficeAuto-check passed
  • DOCX Toolkit

    XiaomiMiMo/MiMo-Code

    Produces, edits and reads Microsoft Word files through python-docx and lxml, with a decision table for picking the lightest workflow for a given task.

    14k GitHub stars~2.4k tokensUpdated 4 days ago
    Documents & OfficeAuto-check passed
  • Word DOCX Toolkit

    TokenRhythm/opensquilla

    Inspects, edits in place or creates Word .docx files with bundled Python scripts, keeping existing styles intact when content changes.

    7.1k GitHub stars~1.7k tokensUpdated 3 days ago
    Documents & OfficeAuto-check passed

More from aipoch/medical-research-skills

All 567 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 21 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 21 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 21 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 21 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 21 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 21 days ago
    Auto-check passed

Questions about Format References Endnote

What does Format References Endnote do?

EndNote reference formatting workflow — converts [PMID: xxxx] markers in Markdown manuscripts to Word (.docx) using EndNote CWYW-recognized {Author, Year, Title} placeholders, while generating .ris…. Format References Endnote is an agent skill from aipoch/medical-research-skills.ris files for automatic import into the local EndNote library.

When should I use Format References Endnote?

Format References Endnote fits situations like: tasks that involve Word documents.

How do I install Format References Endnote in Claude Code?

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

How do I install Format References Endnote in Codex?

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

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

What does Format References Endnote need to run?

Going by SKILL.md and its folder, Format References Endnote needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Format References Endnote access the network?

SKILL.md names 1 domain. As links in the text: pandoc.org. This is read from the text; nothing was executed.

Is Format References Endnote 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 Format References Endnote use?

Format References Endnote 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 Format References Endnote use?

About 1.5k tokens (SKILL.md is roughly 6.1k 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 Format References Endnote?

Skills that share tags, products or a category with Format References Endnote: DOCX Processing Toolkit (telagod/code-abyss, 243 stars), Word Document Reader and Writer (HKUDS/DeepTutor, 41k stars), Pandoc DOCX Template (Achuan-2/pandoc_docx_template, 1.1k stars) and Word Document Builder (spinabot/brigade, 11k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Format References Endnote?

aipoch (a GitHub organization) maintains it in aipoch/medical-research-skills, which has 1,974 GitHub stars. The repository holds 567 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.