Sandbox
@kgraph57/paper-writer-skill

Claude Code skill for academic manuscript writing

This skill walks you through research question discovery, literature search, outlining, drafting, humanizing, references, quality review, and revision. It uses `SKILL.md` as the workflow spine, with reusable templates, reference guides, and tested Python and shell utilities to support manuscript prep.

55 stars6 forksPythonUpdated 1mo ago
Who it's for

Builders who want Claude Code, Cursor, or Codex to help prepare academic manuscripts and revision packages.

What it delivers

You can move from a research idea to a submission-ready manuscript with fewer missed checks and more consistent structure.

What it does

Stage-gated manuscript workflow

Runs discovery, literature search, outline, tables and figures, drafting, humanizing, references, quality review, adversarial review, and revision as separate phases.

Paper-type templates

Includes templates for original articles, case reports, reviews, systematic reviews, study protocols, letters, and submission materials.

Humanizing guides

Provides English and Japanese guidance for reducing AI-like writing patterns with section-specific examples.

Quality gates and review loops

Checks literature, citations, section consistency, and submission readiness, then sends failures back through fixer loops.

Utility scripts

Ships scripts for table creation, forest plots, PRISMA counts, PDF linking, manuscript compilation, and word counts.

Reference library

Collects guides for IMRAD structure, reporting guidelines, journal selection, novelty checks, AI disclosure, and submission portals.

How to get it

  1. 1Tested utilities. table1.py, SR helpers, compile/word-count scripts — CI runs unittest +…
    # 1. Install as an agent skill (Claude Code, Cursor, Codex, and other skills hosts)
    npx skills add kgraph57/paper-writer-skill
  2. 2Or clone into Claude Code’s skills directory
    git clone https://github.com/kgraph57/paper-writer-skill.git ~/.claude/skills/paper-writer
  3. 3Then ask in plain language
    Use the paper-writer skill to start a CARE case report from these de-identified notes…
  4. 4Run
    論文を書く。症例報告。CARE。データは匿名化済み。
  5. 5python -m pip install -r requirements.txt for analysis/PDF helpers
    python -m py_compile scripts/*.py
    bash -n scripts/*.sh
    python -m unittest discover -s tests -v

README

Paper Writer Skill

Not a manuscript factory. A research engine.

A Claude Code / agent skill for medical and scientific manuscripts: Discovery gates, stage-gated IMRAD drafting, EN+JP humanizing, adversarial review, and submission/revision loops. Humans stay sovereign on the 💡 IDEA and the 📊 DATA.

Tests License: MIT Skill Format Release

English | 日本語

Live intro: https://kgraph57.github.io/paper-writer-skill/

Why This Gets Starred

  • Discovery before drafting. Phase −1 forges and ranks research questions, checks novelty against live literature, and designs/powers the study — then stops until a human locks the 💡 IDEA and confirms 📊 DATA (real, IRB-aware, never model-invented).
  • Stage-gates that auto-fix. Eight quality gates. FAIL → structured feedback → fixer agent → re-check (up to 3 loops). No silent proceed to the next phase.
  • Adversarial review can KILL. Before submission, the skill red-teams its own central claim. Fatal problems return to Discovery instead of polishing a bad paper.
  • EN + JP humanizer. Phase 4 removes academic AI-tell patterns (18 English + 13 Japanese) with before/after examples and section priorities — see references/humanizer-academic.md.
  • Six paper types, 20+ guidelines. Original, Case Report, Review, Systematic Review, Letter/Short, Study Protocol — CARE / CONSORT / STROBE / PRISMA / SPIRIT and more wired into templates.
  • Team mode. Seven parallel specialist agents for literature, drafting, humanize, and review (v3.0+).
  • Tested utilities. table1.py, SR helpers, compile/word-count scripts — CI runs unittest + shell syntax checks.

60-Second Start

# 1. Install as an agent skill (Claude Code, Cursor, Codex, and other skills hosts)
npx skills add kgraph57/paper-writer-skill

Or clone into Claude Code’s skills directory:

git clone https://github.com/kgraph57/paper-writer-skill.git ~/.claude/skills/paper-writer

Then ask in plain language:

Use the paper-writer skill to start a CARE case report from these de-identified notes…
論文を書く。症例報告。CARE。データは匿名化済み。

Triggers: write paper / start manuscript / research paper / 論文を書く / 論文執筆 / 原稿作成 — or /paper-writer in Claude Code.

The Pipeline

graph LR
    P0["−1. Discovery\n(question · novelty · design · pre-reg)"] --> P1[1. Literature Search]
    P1 --> P2[2. Outline]
    P2 --> P25[2.5 Tables/Figures]
    P25 --> P3[3. Draft]
    P3 --> P4[4. Humanize]
    P4 --> P5[5. References]
    P5 --> P6[6. Quality Review]
    P6 --> P65["6.5 Adversarial Review"]
    P65 --> P7[7. Pre-Submission]
    P65 -.->|KILL| P0
    P7 --> P8["8. Revision"]
    P8 --> P9["9. Post-Acceptance"]
    P7 -.-> P10["10. Rejection → Resubmit"]
    P10 -.-> P1

Optional Python packages for analysis/PDF utilities: python -m pip install -r requirements.txt. Literature work uses WebSearch/WebFetch and public literature APIs — not a zero-network skill (by design).

Case Study (2-minute read)

Discovery → draft → humanize → adversarial catch — an illustrative CARE spark (PHI-free) showing why gates beat “just write the abstract.”

Supported Paper Types

TypeStructureReporting Guideline
Original ArticleFull IMRADSTROBE / CONSORT
Case ReportIntro / Case / DiscussionCARE
Review ArticleThematic sections
Systematic ReviewPRISMA-compliantPRISMA 2020
Letter / Short CommunicationCondensed IMRADSame as original
Study ProtocolSPIRIT-compliantSPIRIT 2025

Architecture (deep dive)

Autonomous Stage-Gate System (v3.1)

Every phase is guarded by a quality gate. If the gate returns FAIL, the system generates structured feedback, dispatches a fixer agent in revision_mode, and re-checks — up to 3 iterations before escalating to the user.

8 Quality Gates

Literature (≥10 papers, valid DOIs) → Outline (IMRAD + citations mapped) → Tables/Figures → Section draft score → Humanize (high-priority AI patterns = 0) → References (no fabrication / orphans) → Cross-section consistency → Submission package.

Team Mode: 7 Parallel Agents (v3.0)

AgentRole
paper-lit-searcherDatabase-specific literature search
paper-table-figure-plannerTable and figure design
paper-section-drafterSection drafting
paper-humanizerAI writing pattern removal
paper-ref-builderCitation collection and verification
paper-section-reviewerPer-section quality check
paper-quality-gateCross-section consistency + final verdict

Repository Map

PathWhat
SKILL.mdMain workflow definition
docs/GitHub Pages landing
examples/case-studies/Public case study
templates/Section / project / CARE / SR templates
references/Humanizer, adversarial, guidelines, journals…
scripts/Compile, word-count, table1, SR utilities
LAUNCH.mdPosting kit (X JP/EN, Show HN)
SECURITY.mdPHI / network / permissions

Full file tree and phase tables remain in SKILL.md and the templates/references trees (37 templates · 30 reference docs · 8 scripts).

Language Support

LanguageCoverage
EnglishAll templates and guides, 18 AI writing detection patterns
JapaneseBilingual templates, 13 AI writing detection patterns, である-style

Requirements

  • Claude Code CLI or another agent that loads SKILL.md
  • WebSearch / WebFetch (literature)
  • Python 3 for optional utility scripts
  • python -m pip install -r requirements.txt for analysis/PDF helpers

Development

python -m py_compile scripts/*.py
bash -n scripts/*.sh
python -m unittest discover -s tests -v

License

MIT — Copyright (c) 2026 KEN.

Versions

  • v3.2.0 — Research project folder management
  • v3.1.0 — Autonomous Stage-Gate System
  • v3.0.0 — Team Mode (7 parallel agents)

See CHANGELOG.md for details.


If you want manuscripts that survive review — and refuse to lie about data — ★ Star the repo and install it on your agent.

Files in the repo

Repository payload16 top-level entries
  • .github
  • docs
  • examples
  • references
  • scripts
  • templates
  • tests
  • .gitignore
  • CHANGELOG.md
  • LAUNCH.md
  • LICENSE
  • README.ja.md
  • README.md
  • requirements.txt
  • SECURITY.md
  • SKILL.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More skills

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

117k
1 add
Vincentwei1021/
anything2explainer

Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.

666

Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

71k

Agent skill for beautiful, verifiable architecture, workflow, sequence, data-flow, and lifecycle diagrams—self-contained HTML with motion and crisp export.

57k
ayghri/
i-have-adhd

A skill to stop your coding agent from burying the answer. ADHD-friendly output.

38k