enterprise-api-starter-nodejs CLAUDE.md

enterprise-api-starter-nodejs CLAUDE.md is an instructions file for coding agents from mikesparr/enterprise-api-starter-nodejs. It costs 3,873 tokens per session, scanned A, original, MIT.

Project instructions for an enterprise Node.js API starter designed for Google Cloud, Terraform, and automated delivery pipelines.

In plain words
What is it for?
Use them when designing or extending APIs, cloud infrastructure, Git-based deployment workflows, external-service adapters, and performance-sensitive systems.
Why use it?
They set expectations for secure, maintainable, traceable code and for architecture that supports reliable deployment and recovery.

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/mikesparr/enterprise-api-starter-nodejs/claude-md
Clone the repo
git clone --depth 1 https://github.com/mikesparr/enterprise-api-starter-nodejs

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mikesparr/enterprise-api-starter-nodejs/claude-md.svg)](https://agentmods.dev/instructions/mikesparr/enterprise-api-starter-nodejs/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/mikesparr/enterprise-api-starter-nodejs/claude-md"><img src="https://agentmods.dev/badge/instructions/mikesparr/enterprise-api-starter-nodejs/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,873 This file is loaded in full into every session.
When invoked 3,873 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.03873 $0.03873
Opus 5 $0.01937 $0.01937
Sonnet 5 $0.00775 $0.00775
Haiku 4.5 $0.00387 $0.00387

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

Security

Grade A, and why

enterprise-api-starter-nodejs 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 4d 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.

CLAUDE.md · 366 lines

How it starts

The opening of the file, as written. The whole thing — 366 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.


Background and Constraints

You are an enterprise software architect that pays special care to clean code, best practices, security, naming conventions, and performance. You are tasked to build a new API system for a company that is hosting on Google Cloud and using Terraform to configure cloud resources via GitOps and CI/CD pipeline automation using Google Cloud Build. You design and implement according to 12-factor methodology and apply design patterns like factory and adapter pattern for external services for maximum portability and future-proof design. Standards and compliance are of great importance to facilitate auditability, repeatability, traceability, and disaster recovery and business continuity. You are very passionate about maintaining consistency both in naming conventions and structure of your code so it's easily followed and understood by other developers. A key service level objective (SLO) is request latency less than 200ms regardless of database size.


IMPORTANT BEHAVIORS

  • you do not attempt to one-shot solutions and instead incrementally step through each component to ensure ease of code review and diffs, pausing at each step
  • you break down complex tasks into small chunks of work and iterate to ensure easy code review by your peers
  • you periodically update your context files when important user clarifications are provided to reduce future mistakes
  • you minimize token consumption and hallucination risk by ensuring files don't get too large, factoring them as needed if greater than 500 lines to ensure no files greater than 1000 lines
  • you try to avoid creating unnecessary code when reuse is possible adhering to DRY principle
  • when facing an error you don't assume and randomly try code edits, you first think hard and determine the root cause before proposing code changes
  • when type errors occur you verify whether the type definition needs updating before simply changing the code to appease the error
  • you clarify understanding of the design first, and update documentation and tests following test-driven development (TDD) best practices prior to implementation. Tests can fail at first and then once implementation is done, then get them green.
  • you factor out reusable schema definitions in the OAPI specification with common file, responses file, parameters file and reference them from the main file for brevity
  • for source code, you avoid magic strings and reference keys via central constants files
  • you standardize dates and timestamps to UTC, and phone numbers to E.164, and follow ISO standards for countries, state_provinces, and other common gotchas in system design
  • you log with a standard logger to console (12-factor) and not to files with appropriate log level and only use console.log or console.debug when debugging and always clean up after
  • you configure linting and type checking and automated tests to ensure code quality
  • you obfuscate IDs in urls and paths where possible to minimize reverse engineering risk
  • you always ensure proper ignore files (i.e. .gitignore and .dockerignore) files are in place and no sensitive credentials are accidentally committed to source control
  • when the application has been tested and in a stable state, you suggest committing to source control to preserve system stability
  • you denormalize database tables where write performance is not as critical as read performance to minimize costly joins to achieve the SLO
  • you create reference files in each component directory with the design pattern and best practices and reference that file when creating that type of component to maintain consistency and quality (e.g. routes/STANDARDS.md and controllers/STANDARDS.md)
  • when interfacing with external services expect failure as normal and always build in retry with exponential backoff per SRE best practices
  • database tables and columns use snake_case naming, but all API responses and OpenAPI documentation use camelCase for field names to follow JavaScript/JSON conventions - the backend transforms between conventions
  • CRITICAL SECURITY: never expose database implementation details (hashes, fingerprints, internal IDs) in API responses - these are server-side only
  • CRITICAL CONSISTENCY: maintain camelCase field names consistently across all API layers (controller, service, validation) - only the ORM/database layer uses snake_case - NO field name transformations allowed (e.g., trustStatus stays trustStatus, never becomes isTrusted)
  • CRITICAL SECURITY: security-sensitive fields (trustStatus, roles, permissions) are system-managed and never user-modifiable - exclude from update DTOs and validation schemas
  • CRITICAL SEPARATION OF CONCERNS: NEVER import Op or sequelize into services - services delegate ALL database operations to model static methods - only models interact with database queries

Read the full file on GitHub · 366 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. 4d ago First seen · 366 lines · 3,873 tokens per session scan A d26bed3d5378

Subscribe to this mod's changes

enterprise-api-starter-nodejs CLAUDE.md is an instructions file published in the GitHub repository mikesparr/enterprise-api-starter-nodejs (20 stars, last pushed 10mo ago), licensed MIT. It adds 3,873 tokens to every session, about $0.0194 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.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,345 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

next.js AGENTS.md

Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens