med-paper-assistant: Skill for Claude Code

.claude/skills/draft-writing/SKILL.md

draft-writing is a skill for Claude Code from u9401066/med-paper-assistant. It costs 98 tokens per session (3,366 once invoked), scanned A, original, Apache-2.0.

A writing and citation workflow for research-paper drafts. It can create, read, list, edit, and count words in drafts, while managing linked citations and generating a references section.

In plain words
What is it for?
Use it to write full drafts or individual sections, check writing order, insert citations, synchronise references, count words, and make validated partial edits.
Why use it?
It reduces mistakes when editing papers and references, including links to citations that do not exist. It also keeps changes auditable through automatic snapshots.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is u9401066/med-paper-assistant's own configuration. It tells Claude Code how to work on med-paper-assistant itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything med-paper-assistant configures →

Reuse

Borrowing it

Nothing to install: this file belongs to u9401066/med-paper-assistant. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/u9401066/med-paper-assistant/master/.claude/skills/draft-writing/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/u9401066/med-paper-assistant

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for draft-writing

README.md
[![agentmods](https://agentmods.dev/badge/skills/u9401066/med-paper-assistant/draft-writing/github.svg)](https://agentmods.dev/skills/u9401066/med-paper-assistant/draft-writing)
Your own site
<a href="https://agentmods.dev/skills/u9401066/med-paper-assistant/draft-writing"><img src="https://agentmods.dev/badge/skills/u9401066/med-paper-assistant/draft-writing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for draft-writing

Your own site · 80×15
<a href="https://agentmods.dev/skills/u9401066/med-paper-assistant/draft-writing"><img src="https://agentmods.dev/badge/skills/u9401066/med-paper-assistant/draft-writing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,366 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00098 $0.03366
Opus 5 $0.00049 $0.01683
Sonnet 5 $0.00020 $0.00673
Haiku 4.5 $0.00010 $0.00337

Measured 9d ago against content hash 42eff449f183, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

draft-writing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/draft-writing/SKILL.md · 281 lines

How it starts

The opening of the file, as written. The whole thing — 281 lines — stays where its author put it; the contents beside it link to each section on GitHub.

草稿撰寫技能

觸發:寫草稿、draft、section、引用、citation、字數、patch、寫作順序

前置條件

  1. project_action(action="current") 確認專案
  2. concept.md 存在且 🔒 區塊非空(寫 concept.md 本身除外)

MCP Tools

撰寫

工具 說明
draft_action(action="write") 建立/覆寫草稿(filename, content, project
draft_action(action="section") 根據 notes 產出 section(topic, notes
draft_action(action="read") 讀取草稿
draft_action(action="list") 列出所有草稿
draft_action(action="check_order") ⭐ 檢查寫作順序與進度(advisory, 不阻止)

引用(⚠️ 修改引用必須用 draft_action(action="patch"),禁止 replace_string_in_file

工具 說明
draft_action(action="available_citations") ⚠️ 編輯前必呼叫!列出可用 [[citation_key]]
draft_action(action="patch") 部分編輯草稿,自動驗證 wikilinks
draft_action(action="insert_citation") 定點插入引用(filename, target_text, pmid
draft_action(action="sync_references") 掃描 [[wikilinks]] 生成 References
draft_action(action="count_words") 計算字數

draft_action(action="patch") vs replace_string_in_file:draft facade 會驗證引用、自動修復格式、拒絕不存在的引用。


自動快照(CONSTITUTION §22 Auditable)

所有草稿寫入路徑(透過 draft_action(action="write"|"patch"|"insert_citation"),以及 full-surface legacy verbs)在覆寫前自動建立快照,儲存於 drafts/.snapshots/

  • 最多保留 20 個快照/檔案,自動清理
  • 不依賴 git 或 agent 合作,純粹在寫入路徑中觸發
  • 使用 DraftSnapshotManagerinfrastructure/persistence/

寫作順序(Advisory)

Paper Type 順序
original-research Methods → Results → Introduction → Discussion → Conclusion → Abstract
systematic-review Methods → Results → Discussion → Introduction → Conclusion → Abstract
case-report Case Presentation → Discussion → Introduction → Conclusion → Abstract
review-article Introduction → Body → Conclusion → Abstract

Read the full file on GitHub · 281 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 281 lines · 98 tokens per session scan A 42eff449f183

Subscribe to this mod's changes

draft-writing is a skill published in the GitHub repository u9401066/med-paper-assistant (12 stars, last pushed 8d ago), licensed Apache-2.0. It adds 98 tokens to every session and 3,366 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

thesis-control

Use when AI-assisted thesis or manuscript edits risk claim drift, scope creep, loss of intended use, experiment-role promotion, or repeated revisions that fail to converge; provides author-intent control, lightweight or strict contracts, drift audits, revision escalation, and human gates.

yha9806/academic-writing-toolkit · 57 tokens

manuscript-reframe

Reframe report-like academic drafts into paper-form scientific arguments while preserving or explicitly renegotiating author intent; requires an approved old-versus-proposed spine, evidence and argument baselines, analysis-role control, and post-edit drift review.

yha9806/academic-writing-toolkit · 53 tokens

tikz-figure-review

Review and fix alignment, label collision, clipping, legend-over-data, overlap, and layout issues in TikZ and pgfplots figures inside LaTeX documents. Use when the user wants to review figures in a paper, tutorial, lecture notes, or thesis before submission; when a reviewer flags figure problems; when a rendered…

shubham0704/claude-skills · 177 tokens

animating-computational-mechanics

Animate continuum mechanics, tensor calculus, and finite element concepts — deformation gradients, polar decomposition, Cauchy/Piola–Kirchhoff stresses, weak form, mesh convergence — using Matplotlib (FuncAnimation), Manim (ValueTracker / applyfunction / Transform), or Blender (bpy + ParaView .obj pipeline). Use when…

shubham0704/claude-skills · 185 tokens

refining-ml-papers

Refines ML/scientific LaTeX papers based on reviewer or advisor feedback. Handles structural reorganization (moving problem statements, merging sections), concrete instantiations of abstract tables, cross-file deduplication, and compilation verification. Use when the user requests paper revisions, addresses reviewer…

shubham0704/claude-skills · 75 tokens

rigorous-paper-reviewer

Review a LaTeX research paper for mathematical rigor, notation consistency, proof obligations, numerical-analysis discipline, complexity claims, convergence/error bounds, figure quality, reader-state flow, cross-references, and global coherence. Use when the user wants a deep technical review or verification pass on a…

shubham0704/claude-skills · 128 tokens