scientific-writer-init

scientific-writer-init is a command for Claude Code from K-Dense-AI/claude-scientific-writer. It costs 26 tokens per session (1,578 once invoked), scanned A, original, MIT.

A project setup command for Scientific Writer, a research and writing tool that combines AI-assisted research with formatted written documents. It adds project instruction files for Claude Code and other agent clients.

In plain words
What is it for?
Use it to initialize a project with Scientific Writer instructions in CLAUDE.md and AGENTS.md.
Why use it?
Agents need project-specific instructions to follow the same research and writing workflow. This setup also makes existing instruction files and replacement or backup choices explicit.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Good fit Use it to initialize a project with Scientific Writer instructions in CLAUDE.md and AGENTS.md.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/k-dense-ai/claude-scientific-writer/scientific-writer-init
About the project

Claude Scientific Writer is an AI-assisted research and writing tool that searches literature and produces documents such as scientific papers, reports, posters, grant proposals, and reviews with citations. Researchers and technical writers can use it as a Claude Code plugin, Python package, or command-line tool, with the catalogue entries defining agent workflows for it.

K-Dense-AI/claude-scientific-writer · 2,324 stars · on GitHub · k-dense.ai

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/K-Dense-AI/claude-scientific-writer

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 scientific-writer-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/k-dense-ai/claude-scientific-writer/scientific-writer-init/github.svg)](https://agentmods.dev/commands/k-dense-ai/claude-scientific-writer/scientific-writer-init)
Your own site
<a href="https://agentmods.dev/commands/k-dense-ai/claude-scientific-writer/scientific-writer-init"><img src="https://agentmods.dev/badge/commands/k-dense-ai/claude-scientific-writer/scientific-writer-init/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 scientific-writer-init

Your own site · 80×15
<a href="https://agentmods.dev/commands/k-dense-ai/claude-scientific-writer/scientific-writer-init"><img src="https://agentmods.dev/badge/commands/k-dense-ai/claude-scientific-writer/scientific-writer-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,578 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.00026 $0.01578
Opus 5 $0.00013 $0.00789
Sonnet 5 $0.00005 $0.00316
Haiku 4.5 $0.00003 $0.00158

Measured 12d ago against content hash 95ce829bcb48, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

scientific-writer-init 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 12d 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/scientific-writer-init.md · 160 lines

How it starts

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

Scientific Writer Project Setup

When the user runs /claude-scientific-writer:scientific-writer-init, do the following:

⚠️ CRITICAL RULE: NEVER READ THE TEMPLATE FILE

Throughout this entire process, you must NEVER use the read_file tool on a template file. The template files are very long and reading them wastes time and tokens. Only use terminal commands (cp, cat, mv) to handle them.

Instruction Files Installed

Scientific Writer configures two project instruction files so both Claude Code and other agent clients pick it up:

Project file Template
CLAUDE.md CLAUDE.scientific-writer.md
AGENTS.md AGENTS.scientific-writer.md

The two templates hold identical instructions; only the generated header differs. Steps 1 and 3 apply to each of these files independently.

Step 1: Check for Existing Instruction Files

  1. Check whether CLAUDE.md and/or AGENTS.md exist in the current working directory.

  2. For each file that already exists:

    • Ask the user whether to:
      • a) Back up the existing file as <FILE>.bak and replace it with the Scientific Writer configuration, or
      • b) Merge the Scientific Writer settings into the existing file (append to end), or
      • c) Skip this file.
    • If both files exist, ask once and apply the same choice to both unless the user says otherwise.
  3. If the user wants to cancel the whole operation, stop here.

  4. Wait for user response before proceeding.

Step 2: Locate the Template File Paths

CRITICAL: Do NOT use the read_file tool. Do NOT read the template contents. Only locate the file paths.

Find the paths to the Scientific Writer templates. Use one of these methods:

  1. Use glob_file_search to find CLAUDE.scientific-writer.md and AGENTS.scientific-writer.md in the templates directory
  2. Use list_dir to check if the files exist in known locations
  3. Directly try these paths (in order):
    • ~/.claude/plugins/*/claude-scientific-writer/templates/ (installed plugin)
    • <path-to-claude-scientific-writer-checkout>/templates/ (local development)

Read the full file on GitHub · 160 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. 12d ago First seen · 160 lines · 26 tokens per session scan A 95ce829bcb48

Subscribe to this mod's changes

scientific-writer-init is a command published in the GitHub repository K-Dense-AI/claude-scientific-writer (2,324 stars, last pushed 23d ago), licensed MIT. It adds 26 tokens to every session and 1,578 once invoked, about $0.0001 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.