npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

academic-writer-setup

v0.1.0

Published

Interactive setup CLI for the Academic Writer Claude Code plugin

Readme

Academic Writer — Claude Code Plugin

AI-first academic writing assistant for Humanities researchers. Produces rigorously cited, style-matched academic articles as .docx files.

Features

  • Style-matched writing — analyzes your past articles to extract your writing style, then applies it to new work
  • Collaborative workflow — subject → sources → thesis proposal → outline → write → audit → publish
  • Parallel processing — sections written simultaneously, each audited independently for speed
  • Full workflow tracking — every pipeline step logged to Cognetivy for transparency and auditability

Installation

1. Prerequisites

You need at least one of these integrations:

| Tool | What it does | Setup | |------|-------------|-------| | Candlekeep | Cloud document library for source PDFs | https://github.com/romiluz13/candlekeep | | Cognetivy | Workflow audit trail (optional) | Built-in — no setup needed |

Choose which tools you want to use during /academic-writer-init.

2. Install the Plugin

Navigate to the folder where you do your research work, then run both commands:

cd your-research-folder
claude plugin marketplace add yodem/academic-writer
claude plugin install academic-writer --scope project

The --scope project flag activates the plugin only in this folder, not globally.

3. Initialize Your Profile

/academic-writer-init

This is a one-time setup. You'll be asked to provide:

  • Your field of study
  • Citation style (Inline Parenthetical / Chicago / MLA / APA)
  • 5–10 past articles for style analysis (placed in past-articles/ folder)
  • Which integrations to enable (Candlekeep, RAG, MongoDB, Cognetivy)
  • Your research sources (if using Candlekeep)

Your profile is saved to .academic-writer/profile.json and automatically loaded each time you use the plugin.

Usage

Write an Article

/academic-writer

Workflow:

  1. Describe your article topic
  2. Select relevant sources (from Candlekeep or provide manually)
  3. Deep read your sources to understand coverage
  4. Propose thesis statements (2–3 options to choose from)
  5. Outline the article together (back-and-forth refinement)
  6. Approve the outline
  7. Automated: Sections written in parallel, each audited for citations
  8. Automated: Final synthesis for coherence and style
  9. Export as .docx with Chicago footnotes

Quick Commands

| Command | What it does | |---------|-------------| | /academic-writer | Write a new article | | /academic-writer-init | First-time setup | | /academic-writer-update-field | Change your field of study | | /academic-writer-update-tools | Add/remove integrations (Candlekeep, RAG, etc.) | | /academic-writer-research | Research a topic using your sources | | /academic-writer-edit | Edit a previously written article | | /academic-writer-edit-section | Quick edit of a single section | | /academic-writer-health | Check all integrations & profile status | | /academic-writer-help | Show plugin info |

File Structure

your-project/
├── past-articles/              ← Drop your published papers here (5–10 PDFs/DOCXs)
├── .academic-writer/
│   └── profile.json           ← Your profile (auto-created, never edit manually)
├── .cognetivy/                ← Workflow audit trail (auto-managed)
├── articles/                  ← Output .docx files go here
└── .claude-plugin/            ← Claude Code plugin cache (auto-managed)

Profile Structure

Your profile (.academic-writer/profile.json) contains:

{
  "fieldOfStudy": "Your field",
  "citationStyle": "chicago",
  "styleFingerprint": {
    "sentenceLevel": { ... },
    "vocabularyAndRegister": { ... },
    "paragraphStructure": { ... },
    "toneAndVoice": { ... },
    "transitions": { ... },
    "citations": { ... },
    "rhetoricalPatterns": { ... },
    "representativeExcerpts": [ ... ]
  },
  "tools": {
    "candlekeep": { "enabled": true },
    "mongodb-agent-skills": { "enabled": false },
    "cognetivy": { "enabled": true }
  },
  "sources": [
    { "id": "...", "title": "...", "type": "pdf" }
  ]
}

Update tools with /academic-writer-update-tools. Update your field with /academic-writer-update-field.

Configuration

Environment Variables (Optional)

export CANDLEKEEP_CLI=ck                       # Candlekeep CLI path
export COGNETIVY_CLI=cognetivy                 # Cognetivy CLI path

MCP Servers (Optional)

If you enable MongoDB Agent Skills, add to .mcp.json:

{
  "mcpServers": {
    "mongodb-agent-skills": {
      "command": "node",
      "args": ["/path/to/mongodb-agent-skills/dist/index.js"],
      "env": {
        "MONGODB_URI": "your-connection-string"
      }
    }
  }
}

Troubleshooting

"No profile found" error

Run /academic-writer-init first to set up your profile.

"Candlekeep not detected" error

Install Candlekeep CLI: https://github.com/romiluz13/candlekeep

brew tap CandleKeepAgents/candlekeep
brew install candlekeep-cli
# or
cargo install candlekeep-cli

Then authenticate:

ck auth login

Citation verification fails

Ensure:

  1. Your sources are indexed (the init process does this automatically)
  2. The cited passage actually exists in your source materials

Articles won't export to .docx

Ensure python-docx is installed:

pip install python-docx

Architecture

Agents

Each agent is a specialized prompt that runs as a subagent:

  • Deep Reader — Explores source material before writing to understand coverage
  • Architect — Proposes thesis statements and generates article outline
  • Section Writer — Writes one complete section with citations (runs in parallel)
  • Auditor — Hard gate: verifies every citation against source material
  • Synthesizer — Final review for coherence, transitions, and style consistency

RAG Query Modes

The plugin uses different RAG query modes for different tasks:

| Mode | Use case | |------|----------| | mix | General search (default) | | bypass | Citation verification — exact quotes and page numbers | | local | Deep dive on a specific entity | | global | Thematic overview across all sources |

Contributing

This is a Claude Code plugin. To modify:

  1. Edit .md files in skills/, agents/, hooks/
  2. Commit and push to GitHub
  3. In your research folder, pull the latest:
    claude plugin marketplace update academic-writer
    claude plugin update academic-writer@academic-writer --scope project
    If that fails, reinstall:
    claude plugin uninstall academic-writer --scope project
    claude plugin install academic-writer --scope project
  4. Restart Claude Code to apply changes

License

MIT

Support

  • Plugin issues: Open an issue on yodem/academic-writer
  • Candlekeep help: https://github.com/CandleKeepAgents/candlekeep-cli
  • RAG help: https://github.com/romiluz13/Agentic-Search-Vectorless