Browse, search, and triage New England Journal of Medicine articles from the terminal Trigger phrases: what's in the current NEJM issue, search NEJM for, get NEJM article, recent NEJM articles, NEJM…

Apache-2.0Auto-check: notesResearch & Science

Install Pp Nejm

skills CLI
$ npx skills add mvanhorn/printing-press-library --skill pp-nejm -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mvanhorn/printing-press-library pp-nejm --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mvanhorn/printing-press-library.git skills-src && mkdir -p .claude/skills && cp -r skills-src/cli-skills/pp-nejm .claude/skills/pp-nejm && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pp-nejm
GitHub stars
2.1k
Token cost
~3k tokens
SKILL.md length
1,269 words
Files
1
Skills in repo
506
Repo updated
First seen
Licence
Apache-2.0

At a glance

Browse, search, and triage New England Journal of Medicine articles from the terminal Trigger phrases: what's in the current NEJM issue, search NEJM for, get NEJM article, recent NEJM articles, NEJM…

  • Works in 3 steps: Install via the Printing Press… → Verify: nejm-pp-cli --version → Ensure the reported install directory is…
  • Phrases: whats in the current NEJM issue
  • SKILL.md covers Prerequisites: Install the CLI, When to Use This CLI, Anti-triggers and Unique Capabilities, plus 12 more sections
  • Calls go, claude and npx

What it does

Pp Nejm is an agent skill from mvanhorn/printing-press-library. Browse, search, and triage New England Journal of Medicine articles from the terminal Trigger phrases: what's in the current NEJM issue, search NEJM for, get NEJM article, recent NEJM articles, NEJM articles on, use nejm, run nejm.

Its SKILL.md is about 3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Research & Science, covering Academic paper search. The repository describes itself as: Official library of CLIs generated by the CLI Printing Press. Endorsed, tested, and community-contributed. The licence is Apache-2.0.

When your agent uses it

  • Phrases: whats in the current NEJM issue
  • Search NEJM for
  • Get NEJM article
  • Recent NEJM articles

Example prompts

  • “/pp-nejm”

Requirements

  • Node.js
  • Pre-approved tools (allowed-tools): Read, Bash

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Install via the Printing Press installer. It defaults binaries to $HOME/.local/bin on macOS/Linux and…
  2. Verify: nejm-pp-cli --version
  3. Ensure the reported install directory is on $PATH for the agent/runtime that will invoke this skill.

What it can do on your machine

Read from SKILL.md and the folder at commit d9a1696. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • go
    • claude
    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • docs.openalex.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Pp Nejm loads about 3k tokens when it runs. Until then it costs about 63 tokens; SKILL.md has 1,269 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~63
When it runs · the whole SKILL.md, loaded when a task matches
~3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Bash

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mvanhorn/printing-press-library at commit d9a1696, republished under its Apache-2.0 licence (© mvanhorn). 1,269 words, ~2,981 tokens.

Download SKILL.mdSave it as .claude/skills/pp-nejm/SKILL.md (or your agent's skills folder).
name
pp-nejm
description
Browse, search, and triage New England Journal of Medicine articles from the terminal Trigger phrases: `what's in the current NEJM issue`, `search NEJM for`, `get NEJM article`, `recent NEJM articles`, `NEJM articles on`, `use nejm`, `run nejm`.
allowed-tools
Read, Bash
author
laci141
license
Apache-2.0
argument-hint
<command> [args] | install cli|mcp
<!-- GENERATED FILE — DO NOT EDIT.
     This file is a verbatim mirror of library/health/nejm/SKILL.md,
     regenerated post-merge by tools/generate-skills/. Hand-edits here are
     silently overwritten on the next regen. Edit the library/ source instead.
     See the repository agent guide, section "Generated artifacts: registry.json, cli-skills/". -->

New England Journal of Medicine — Printing Press CLI

Prerequisites: Install the CLI

This skill drives the nejm-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:

  1. Install via the Printing Press installer. It defaults binaries to $HOME/.local/bin on macOS/Linux and %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows:
    bash
    npx -y @mvanhorn/printing-press-library install nejm --cli-only
  2. Verify: nejm-pp-cli --version
  3. Ensure the reported install directory is on $PATH for the agent/runtime that will invoke this skill.

If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.6 or newer). This installs into $GOPATH/bin (default $HOME/go/bin), so add that directory to $PATH instead:

bash
go install github.com/mvanhorn/printing-press-library/library/health/nejm/cmd/nejm-pp-cli@latest

If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.

NEJM has no public API. This CLI builds an offline-queryable, agent-native corpus of NEJM articles sourced from OpenAlex's CC0 scholarly index (abstracts, authors, publication types, open-access flags), plus per-article metadata by DOI and full-text search over everything you have synced. Novel local-state commands like 'since', 'digest', 'reading-list', 'trends', and 'open-access' do things the website and PubMed wrappers cannot.

When to Use This CLI

Use this CLI when an agent or clinician needs current peer-reviewed NEJM literature metadata programmatically: the current issue, recently published articles, an article's abstract and bibliographic data by DOI, or an offline searchable corpus filtered by specialty, type, author, or free-access. It is the right choice when you want structured, composable output without driving a Cloudflare-gated browser.

Anti-triggers

Do not use this CLI for:

  • Do not use this CLI to read full article text behind the NEJM paywall; it surfaces abstracts and metadata only.
  • Do not use it for a broad multi-journal literature review; use a PubMed/Crossref tool for cross-journal search.
  • Do not use the corpus 'search' command before syncing; it searches only locally synced data. For live archive-wide queries without a sync, use 'openalex search'.

Unique Capabilities

These capabilities aren't available in any other tool for this API.

Local state that compounds
  • since — Show NEJM articles first seen in your local corpus within a time window.

    Reach for this when an agent needs only what changed since the last check, not the whole issue.

    bash
    nejm-pp-cli since 48h --agent
  • digest — Triage the current issue grouped by specialty or type with abstracts and free/paywalled flags.

    Use to summarize the week's NEJM issue in one structured payload instead of fetching each article.

    bash
    nejm-pp-cli digest --agent
  • reading-list — Queue NEJM articles by DOI locally and track read/unread state.

    Use to persist a clinician's to-read queue across sessions without an account.

    bash
    nejm-pp-cli reading-list add 10.1056/NEJMoa2506905
Second data source: OpenAlex (CC0)
  • openalex search — Search NEJM works live in the OpenAlex scholarly index: abstracts, author lists, citation counts, and open-access flags.

    Use when you need abstracts or citation counts without syncing and without the Cloudflare-gated NEJM transport; data is CC0-licensed.

    bash
    nejm-pp-cli openalex search --query "vitamin D" --from-year 2015 --to-year 2026 --per-page 10 --sort cited

    Flags: --query (full-text search), --from-year/--to-year (publication-year range), --per-page (1-50, default 20), --sort (cited or date).

    Set NEJM_OPENALEX_MAILTO to your email to enroll OpenAlex requests (live search and sync) in the polite pool — a dedicated, faster server pool. Unset, requests use the anonymous pool.

Corpus analytics
  • trends — Show how NEJM output distributes by specialty, article type, and issue across the synced corpus.

    Use to quantify NEJM coverage patterns no single page exposes.

    bash
    nejm-pp-cli trends --agent
  • open-access — Surface free full-text NEJM articles in the corpus, newest first.

    Use for unsubscribed readers who can only act on freely-readable articles.

    bash
    nejm-pp-cli open-access --agent --limit 20

HTTP Transport

This CLI uses Chrome-compatible HTTP transport for browser-facing endpoints. It does not require a resident browser process for normal API calls.

Command Reference

article — NEJM articles by DOI

  • nejm-pp-cli article <doi> — Fetch an NEJM article's metadata and abstract by DOI (e.g. 10.1056/NEJMoa2506905)

specialty — NEJM specialty sections

  • nejm-pp-cli specialty — List NEJM specialty sections
Finding the right command

When you know what you want to do but not which command does it, ask the CLI directly:

bash
nejm-pp-cli which "<capability in your own words>"

which resolves a natural-language capability query to the best matching command from this CLI's curated feature index. Exit code 0 means at least one match; exit code 2 means no confident match — fall back to --help or use a narrower query.

Recipes

Current issue, agent-native, narrowed fields
bash
nejm-pp-cli current --agent --select articles.doi,articles.title,articles.authors

Return only the fields an agent needs from the current issue, as compact JSON.

What's new in the last two days
bash
nejm-pp-cli since 48h --agent

List articles first seen in the local corpus within the window.

Triage the week by specialty
bash
nejm-pp-cli digest --group specialty --agent

Group the current issue by specialty with one-line abstracts.

Free full-text only
bash
nejm-pp-cli open-access --limit 20 --agent

Surface freely-readable NEJM articles, newest first.

Show full SKILL.md (548 more words)Show less
Cite an article
bash
nejm-pp-cli article cite 10.1056/NEJMoa2506905 --format bibtex

Emit a BibTeX entry from the local article record.

Auth Setup

No authentication required.

Run nejm-pp-cli doctor to verify setup.

Agent Mode

Add --agent to any command. Expands to: --json --compact --no-input --no-color --yes.

  • Pipeable — JSON on stdout, errors on stderr

  • Filterable — --select keeps a subset of fields. Dotted paths descend into nested structures; arrays traverse element-wise. Critical for keeping context small on verbose APIs:

    bash
    nejm-pp-cli article mock-value --agent --select id,name,status
  • Previewable — --dry-run shows the request without sending

  • Offline-friendly — sync/search commands can use the local SQLite store when available

  • Non-interactive — never prompts, every input is a flag

  • Read-only — do not use this CLI for create, update, delete, publish, comment, upvote, invite, order, send, or other mutating requests

Response envelope

Commands that read from the local store or the API wrap output in a provenance envelope:

json
{
  "meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
  "results": <data>
}

Parse .results for data and .meta.source to know whether it's live or local. A human-readable N results (live) summary is printed to stderr only when stdout is a terminal AND no machine-format flag (--json, --csv, --compact, --quiet, --plain, --select) is set — piped/agent consumers and explicit-format runs get pure JSON on stdout.

Agent Feedback

When you (or the agent) notice something off about this CLI, record it:

nejm-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
nejm-pp-cli feedback --stdin < notes.txt
nejm-pp-cli feedback list --json --limit 10

Entries are stored locally at ~/.local/share/nejm-pp-cli/feedback.jsonl. They are never POSTed unless NEJM_FEEDBACK_ENDPOINT is set AND either --send is passed or NEJM_FEEDBACK_AUTO_SEND=true. Default behavior is local-only.

Write what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.

Output Delivery

Every command accepts --deliver <sink>. The output goes to the named sink in addition to (or instead of) stdout, so agents can route command results without hand-piping. Three sinks are supported:

SinkEffect
stdoutDefault; write to stdout only
file:<path>Atomically write output to <path> (tmp + rename)
webhook:<url>POST the output body to the URL (application/json or application/x-ndjson when --compact)

Unknown schemes are refused with a structured error naming the supported set. Webhook failures return non-zero and log the URL + HTTP status on stderr.

Named Profiles

A profile is a saved set of flag values, reused across invocations. Use it when a scheduled agent calls the same command every run with the same configuration - HeyGen's "Beacon" pattern.

nejm-pp-cli profile save briefing --json
nejm-pp-cli --profile briefing article mock-value
nejm-pp-cli profile list --json
nejm-pp-cli profile show briefing
nejm-pp-cli profile delete briefing --yes

Explicit flags always win over profile values; profile values win over defaults. agent-context lists all available profiles under available_profiles so introspecting agents discover them at runtime.

Exit Codes

CodeMeaning
0Success
2Usage error (wrong arguments)
3Resource not found
5API error (upstream issue)
7Rate limited (wait and retry)
10Config error

Argument Parsing

Parse $ARGUMENTS:

  1. Empty, help, or --help → show nejm-pp-cli --help output
  2. Starts with install → ends with mcp → MCP installation; otherwise → see Prerequisites above
  3. Anything else → Direct Use (execute as CLI command with --agent)

MCP Server Installation

  1. Install the MCP server:
    bash
    go install github.com/mvanhorn/printing-press-library/library/health/nejm/cmd/nejm-pp-mcp@latest
  2. Register with Claude Code:
    bash
    claude mcp add nejm-pp-mcp -- nejm-pp-mcp
  3. Verify: claude mcp list

Direct Use

  1. Check if installed: which nejm-pp-cli If not found, offer to install (see Prerequisites at the top of this skill).
  2. Match the user query to the best command from the Unique Capabilities and Command Reference above.
  3. Execute with the --agent flag:
    bash
    nejm-pp-cli <command> [subcommand] [args] --agent
  4. If ambiguous, drill into subcommand help: nejm-pp-cli <command> --help.

© mvanhorn, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in cli-skills/pp-nejm of mvanhorn/printing-press-library.

Open the folder on GitHubat commit d9a1696

Compare with similar skills

Pp Nejm next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Pp Nejm compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pp Nejm this skillmvanhorn/printing-press-library2.1k—~3kAutomated safety check: NotesApache-2.0
Read arXiv Paperkarpathy/nanochat59k1 repos~494Automated safety check: PassMIT
Perplexity Web Searchdavila7/claude-code-templates33k11 repos~3.5kAutomated safety check: NotesMIT
Literature Reviewneflibata-feng/MyArxiv-Agent12620 repos~5.9kAutomated safety check: NotesMIT
Openalex Databaseneflibata-feng/MyArxiv-Agent12612 repos~3kAutomated safety check: PassCustom licence
Citation ManagementK-Dense-AI/claude-scientific-writer2.4k2 repos~3.9kAutomated safety check: NotesMIT

Similar skills

  • Read arXiv Paper

    karpathy/nanochat

    Fetches the TeX source of an arXiv paper from its URL, reads it and writes a markdown summary tied to the nanochat project.

    59k GitHub starsUsed in 1 repo~494 tokens
    Research & ScienceAuto-check passed
  • Perplexity Web Search

    davila7/claude-code-templates

    Runs web-grounded searches through Perplexity's Sonar models over OpenRouter for current events, recent literature and cited facts beyond the model's training cutoff.

    33k GitHub starsUsed in 11 repos~3.5k tokens
    Research & ScienceAuto-check: notes
  • Literature Review

    neflibata-feng/MyArxiv-Agent

    Conduct comprehensive, systematic literature reviews using multiple academic databases (PubMed, arXiv, bioRxiv, Semantic Scholar, etc.).

    126 GitHub starsUsed in 20 repos~5.9k tokens
    Research & ScienceAuto-check: notes
  • Openalex Database

    neflibata-feng/MyArxiv-Agent

    Query and analyze scholarly literature using the OpenAlex database.

    126 GitHub starsUsed in 12 repos~3k tokens
    Research & ScienceAuto-check passed
  • Citation Management

    K-Dense-AI/claude-scientific-writer

    Finds papers in OpenAlex, PubMed and Google Scholar, turns DOIs, PMIDs and arXiv IDs into clean BibTeX, and validates citations for a manuscript or thesis.

    2.4k GitHub starsUsed in 2 repos~3.9k tokens
    Research & ScienceAuto-check: notes
  • Preprint Search on bioRxiv

    LigphiDonk/Oh-my--paper

    Searches bioRxiv life sciences preprints by keyword, author, date range or category with a Python script, returning JSON metadata and optional PDF downloads.

    739 GitHub starsUsed in 12 repos~3.7k tokens
    Research & ScienceAuto-check passed

More from mvanhorn/printing-press-library

All 506 skills in this repo
  • Agent Desktop

    mvanhorn/printing-press-library

    Desktop automation through the real Rust agent-desktop CLI, published in Printing Press through a small bridge.

    2.1k GitHub stars~2.3k tokensUpdated today
    Auto-check: notes
  • Gfonts

    mvanhorn/printing-press-library

    Search, browse, and download Google Fonts from the terminal via the gfonts CLI.

    2.1k GitHub stars~574 tokensUpdated today
    Auto-check passed
  • Pp 1688

    mvanhorn/printing-press-library

    The free, offline Trigger phrases: search 1688 for, find a factory on 1688 for, wholesale price on 1688 for, who is the cheapest supplier on 1688 for, compare 1688 suppliers for, use 1688, run 1688.

    2.1k GitHub stars~3k tokensUpdated today
    Auto-check: notes
  • Pp Activity Japan

    mvanhorn/printing-press-library

    Inspect known Activity Japan plan IDs or URLs, compare dated prices and sessions, check language-sitemap coverage, and hand off to canonical booking pages.

    2.1k GitHub stars~2k tokensUpdated today
    Auto-check: notes
  • Pp Adminbyrequest

    mvanhorn/printing-press-library

    Every Admin By Request portal action, plus a local SQLite mirror of audit, events, inventory and requests for ad-hoc...

    2.1k GitHub stars~3.3k tokensUpdated today
    Auto-check: notes
  • Pp Agent Capture

    mvanhorn/printing-press-library

    macOS screen capture, window recording, GIF conversion, and agent evidence bundles from the terminal.

    2.1k GitHub stars~1.6k tokensUpdated today
    Auto-check: notes

Questions about Pp Nejm

What does Pp Nejm do?

Browse, search, and triage New England Journal of Medicine articles from the terminal Trigger phrases: what's in the current NEJM issue, search NEJM for, get NEJM article, recent NEJM articles, NEJM…. Pp Nejm is an agent skill from mvanhorn/printing-press-library. Browse, search, and triage New England Journal of Medicine articles from the terminal Trigger phrases: what's in the current NEJM issue, search NEJM for, get NEJM article, recent NEJM articles, NEJM articles on, use nejm, run nejm.

When should I use Pp Nejm?

Pp Nejm fits situations like: phrases: whats in the current NEJM issue; search NEJM for; get NEJM article; recent NEJM articles.

How do I install Pp Nejm in Claude Code?

Run `npx skills add mvanhorn/printing-press-library --skill pp-nejm -a claude-code`. Or copy the skill folder (cli-skills/pp-nejm in mvanhorn/printing-press-library) into .claude/skills/pp-nejm in your project. Claude Code loads it when a task matches its description.

How do I install Pp Nejm in Codex?

Run `npx skills add mvanhorn/printing-press-library --skill pp-nejm -a codex`. Or copy the skill folder (cli-skills/pp-nejm in mvanhorn/printing-press-library) into .agents/skills/pp-nejm in your project. Codex loads it when a task matches its description.

Can I use Pp Nejm in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mvanhorn/printing-press-library --skill pp-nejm -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pp-nejm, .gemini/skills/pp-nejm, .github/skills/pp-nejm and .opencode/skills/pp-nejm in your project.

What does Pp Nejm need to run?

Going by SKILL.md and its folder, Pp Nejm needs the command-line tools its instructions call (go, claude and npx). Our summary lists: Node.js. Its frontmatter pre-approves these tools: Read, Bash.

Does Pp Nejm access the network?

SKILL.md names 1 domain. As links in the text: docs.openalex.org. This is read from the text; nothing was executed.

Is Pp Nejm safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Pp Nejm use?

Pp Nejm is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Pp Nejm use?

About 3k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Pp Nejm?

Skills that share tags, products or a category with Pp Nejm: Read arXiv Paper (karpathy/nanochat, 59k stars), Perplexity Web Search (davila7/claude-code-templates, 33k stars), Literature Review (neflibata-feng/MyArxiv-Agent, 126 stars) and Openalex Database (neflibata-feng/MyArxiv-Agent, 126 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pp Nejm?

mvanhorn (a GitHub user) maintains it in mvanhorn/printing-press-library, which has 2,056 GitHub stars. The repository holds 506 skills in this directory. The repository was last updated on October 9, 2026.

Source: mvanhorn/printing-press-library on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.