draft-writing
FreeNo executable scriptsNot checked論文草稿的撰寫、讀取、引用管理。 LOAD THIS SKILL WHEN: 寫草稿、draft、撰寫、Introduction、Methods、Results、Discussion、引用、citation、字數、patch、編輯草稿 CAPABILITIES…
by u9401066★ 15 GitHub starsAbout this skill
草稿撰寫技能
觸發:寫草稿、draft、section、引用、citation、字數、patch、寫作順序
前置條件
project_action(action="current")確認專案- 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 合作,純粹在寫入路徑中觸發
- 使用
DraftSnapshotManager(infrastructure/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 |
前置:Results 需 Methods、Discussion 需 Results+Intro、Conclusion 需 Discussion、Abstract 需全部。
draft_action(action="check_order") 產生警告,不阻止。警告出現時詢問用戶是否繼續。
Flow A: 撰寫新 Section
draft_action(action="check_order")→ 確認前置validate_for_section(section)→ ✅/❌draft_action(action="read", filename="concept.md")→ 提取 🔒 NOVELTY + 🔒 SELLING POINTS- 參考下方 Section 指南撰寫
draft_action(action="count_words")pipeline_action(action="approve_section", section=section, decision="approve|revise")→ 用戶審閱 approve/revise(Phase 5 時 MANDATORY)
Flow B: Citation-Aware 編輯
draft_action(action="available_citations")→ 取得可用 citation keysdraft_action(action="patch", filename=..., old_text=..., new_text=...)→ 自動驗證 wikilinksdraft_action(action="sync_references", filename=...)→ 生成 References
🔒 受保護內容
- Introduction 開頭/結尾必須呼應 🔒 NOVELTY
- Discussion 必須逐條強調 🔒 SELLING POINTS
- 不可刪除或弱化 🔒 區塊。修改前必須詢問用戶
Section 寫作指南
以下每條指南都有對應的 Code-Enforced Hook(B9-B16),
run_quality_checks(action="writing_hooks")會自動檢查。
Introduction (400-600 words)
結構(Funnel Model — Hook B12 自動偵測):
- Broad Context (1-2 段):臨床問題的重要性與盛行率,用具體數字(發生率、死亡率)
- Evidence Base (1-2 段):目前文獻的發現,必須有
wikilinks引用 - Knowledge Gap (1 段):先前研究的不足之處→ 對應 🔒 NOVELTY
- Study Objective (最後一段):「This study aimed to...」或「We sought to...」
時態(Hook B9):
- 已確立的事實 → 現在式(「Diabetes is characterized by...」)
- 先前研究的結果 → 過去式(「Smith et al. reported that...」)
禁止事項:
- 🚫 "In recent years..." / "With the rapid development of..."
- 🚫 每段開頭用 "Furthermore" / "Moreover" / "Additionally"
- 🚫 在 Introduction 透露自己的 Results(Hook B12 CRITICAL)
- 🚫 過多 hedging:「may potentially suggest...」(Hook B15)
Checklist(Agent 自行確認):
- 第一段有具體流行病學數字
- 有 ≥3 個引用支持 Evidence Base
- Knowledge Gap 用轉折語(however, nevertheless, yet)
- 最後一段明確陳述研究目的
Methods (800-1200 words)
結構:
- Study Design & Setting:研究類型、單/多中心、時間範圍
- Participants:納入/排除標準、年齡、母群體
- Intervention / Exposure:介入描述或暴露定義
- Outcomes:Primary + Secondary endpoints,明確定義
- Statistical Analysis:分析方法、軟體版本、顯著性標準
時態(Hook B9 CRITICAL):
- 所有描述必須用過去式(「We enrolled...」「Data were collected...」)
- 🚫 禁止用現在式描述已完成的方法步驟
倫理聲明(Hook B14 CRITICAL):
- ✅ 必須包含 IRB / Ethics committee approval + 核准編號
- ✅ 必須包含 Informed consent statement(或 waiver 說明)
- ✅ 如為介入研究:必須包含 Trial registration number (e.g., NCT12345678)
統計報告規範(Hook B8 / B16):
- 必須在 M
Install draft-writing in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the draft-writing skill do?
論文草稿的撰寫、讀取、引用管理。 LOAD THIS SKILL WHEN: 寫草稿、draft、撰寫、Introduction、Methods、Results、Discussion、引用、citation、字數、patch、編輯草稿 CAPABILITIES: draft_action(action="write"|"section"|"read"|"list"|"insert_citation"|"sync_references"|"count_words"|"available_citations"|"patch")
How do I install the draft-writing skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the draft-writing skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
by Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
by Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
by Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
by Anthropic