analyze-writing

analyze-writing is a command for Claude Code from TobiasBlask/open-paper-machine. It costs 46 tokens per session (373 once invoked), scanned A, original, MIT.

A command that reviews an academic paper draft for writing quality. It checks issues such as passive voice, unclear openings, sentence length, repeated words, paragraph structure, transitions, and citation style.

In plain words
What is it for?
Use it to review an entire paper, one section, or a chosen file. It saves scores and suggested improvements to writing_analysis.md.
Why use it?
It gives section-by-section feedback in one report, so writers can find style problems without reviewing every sentence manually.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the open-academic-paper-machine plugin — 33 skills, 21 commands, 4 agents shipped together

Good fit Use it to review an entire paper, one section, or a chosen file. It saves scores and suggested improvements to writing_analysis.md.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/tobiasblask/open-paper-machine/analyze-writing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/TobiasBlask/open-paper-machine

Made for: Claude Code.

Or install open-academic-paper-machine, the plugin that ships this one along with the rest of its 33 skills, 21 commands, 4 agents.

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 analyze-writing

README.md
[![agentmods](https://agentmods.dev/badge/commands/tobiasblask/open-paper-machine/analyze-writing/github.svg)](https://agentmods.dev/commands/tobiasblask/open-paper-machine/analyze-writing)
Your own site
<a href="https://agentmods.dev/commands/tobiasblask/open-paper-machine/analyze-writing"><img src="https://agentmods.dev/badge/commands/tobiasblask/open-paper-machine/analyze-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 analyze-writing

Your own site · 80×15
<a href="https://agentmods.dev/commands/tobiasblask/open-paper-machine/analyze-writing"><img src="https://agentmods.dev/badge/commands/tobiasblask/open-paper-machine/analyze-writing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 373 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.00046 $0.00373
Opus 5 $0.00023 $0.00187
Sonnet 5 $0.00009 $0.00075
Haiku 4.5 $0.00005 $0.00037

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

Security

Grade A, and why

analyze-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.

commands/analyze-writing.md · 39 lines

What it actually says

Analyze Writing: $ARGUMENTS

Activate the writing-engine skill. Read skills/writing-engine/SKILL.md in full, then execute a style analysis (not a drafting task):

  1. READ the paper (draft.md or paper.tex)
  2. ANALYZE each section for writing quality indicators:
    • Passive voice ratio (target: <30% of sentences)
    • Weak openings ("It is important...", "There are...", "In today's world...")
    • Hedging balance (under-hedging vs. over-hedging)
    • Average sentence length and variation (target: 15-25 words, varied)
    • Word/phrase repetitions in consecutive sentences
    • Paragraph length consistency (target: 4-8 sentences per paragraph)
    • Transition quality between paragraphs
    • Citation integration style (parenthetical vs. narrative balance)
  3. SCORE each section (Strong / Adequate / Needs Work)
  4. LIST specific improvements with line/section references
  5. SAVE to writing_analysis.md

Input

$ARGUMENTS can be:

  • Empty — analyzes the entire paper
  • Section name (e.g., "Introduction", "Discussion") — analyzes one section
  • File path to a specific file

Output

  • writing_analysis.md — section-by-section quality scores + specific improvement suggestions
  • Each suggestion includes the problematic text and a concrete rewrite option
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 · 39 lines · 46 tokens per session scan A 2057f0371fa3

Subscribe to this mod's changes

analyze-writing is a command published in the GitHub repository TobiasBlask/open-paper-machine (18 stars, last pushed 5mo ago), licensed MIT. It adds 46 tokens to every session and 373 once invoked, about $0.0002 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.