nodejs-starter CLAUDE.md

Repository instructions for a minimal Node.js library and command-line starter written in TypeScript. Node.js runs JavaScript outside a web browser, while the template uses yargs for commands and Vitest for tests.

In plain words
What is it for?
Use it when starting a Node.js library or CLI, locating commands and public exports, running tests, or adapting the template to a real project.
Why use it?
It explains the template’s file layout, build assumptions, and placeholder code so developers know what to replace and what guidance may still be generic.

Instructions file

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.

agentmods
npx agentmods add instructions/threeal/nodejs-starter/claude-md
Clone the repo
git clone --depth 1 https://github.com/threeal/nodejs-starter
Per session 773 This file is loaded in full into every session.
When invoked 773 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00773 $0.00773
Opus 5 $0.00387 $0.00387
Sonnet 5 $0.00155 $0.00155
Haiku 4.5 $0.00077 $0.00077

Measured yesterday against content hash a22ec2c6da09, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

nodejs-starter CLAUDE.md 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 yesterday.

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.

CLAUDE.md · 87 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Template notice: This file describes the template repository itself. If working in a project derived from this template, inform the user that this CLAUDE.md still contains template guidance and should be updated with project-specific content.

About This Repository

This is a minimal Node.js library and CLI starter template written in TypeScript targeting Node 24 (ESM). The Fibonacci sequence code in src/ is a placeholder — replace it with your actual library and CLI logic when starting a new project.

Architecture

Source Files

  • src/cli/commands/ — Individual yargs command modules; each exports a createXxxCommand() factory that accepts injected streams/deps for testability.
  • src/cli/index.ts — CLI entry point built with yargs that wires commands and parses process.argv.
  • src/fibonacci.ts — The library implementation (currently a Fibonacci sequence generator as a placeholder example).
  • src/index.ts — The library's public API (re-exports from implementation modules).
  • src/*.test.ts — Vitest test files co-located with source.

Build Outputs

  • dist/cli/index.js — CLI binary.
  • dist/index.js + dist/index.d.ts — Library entry (exported as ".").

Tooling

Dependabot

Keeps GitHub Actions and npm dependencies up to date automatically via .github/dependabot.yaml.

ESLint

Linter configured in eslint.config.ts.

GitHub Actions

Automates CI. Workflow files:

  • .github/workflows/ci.yaml — Triggers on push to main, pull requests, and manual dispatch.

Lefthook

Git hook manager configured in lefthook.yaml.

pnpm

Package manager. Also manages the Node.js runtime — versions for Node.js and pnpm are pinned in package.json.

Prettier

Formatter configured in .prettierrc.json using prettier-plugin-organize-imports — import order is auto-managed.

Read the full file on GitHub · 87 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. yesterday First seen · 87 lines · 773 tokens per session scan A a22ec2c6da09

Subscribe to this mod's changes

nodejs-starter CLAUDE.md is an instructions file published in the GitHub repository threeal/nodejs-starter (5 stars, last pushed 4d ago), licensed Unlicense. It adds 773 tokens to every session, about $0.0039 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-31.