Borrowing it
Nothing to install: this file belongs to mikesparr/enterprise-api-starter-nodejs. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/mikesparr/enterprise-api-starter-nodejs/main/CLAUDE.mdgit clone --depth 1 https://github.com/mikesparr/enterprise-api-starter-nodejsWrote 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.
[](https://agentmods.dev/instructions/mikesparr/enterprise-api-starter-nodejs/claude-md)<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/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.
<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="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.03873 | $0.03873 |
| Opus 5.5 | $0.01549 | $0.01549 |
| Sonnet 5.5 | $0.00775 | $0.00775 |
| Haiku 4.5 | $0.00387 | $0.00387 |
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 2mo 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.
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
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.
- 2mo ago First seen · 366 lines · 3,873 tokens per session scan A d26bed3d5378
enterprise-api-starter-nodejs CLAUDE.md is an instructions file published in the GitHub repository mikesparr/enterprise-api-starter-nodejs (20 stars, last pushed 1y ago), licensed MIT. It adds 3,873 tokens to every session, about $0.0155 per session on Opus 5.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.
enterprise-api-starter-nodejs CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| enterprise-api-starter-nodejs CLAUDE.mdmikesparr/enterprise-api-starter-nodejs | Instructions file | 20 | 1y ago | MIT | A | 3,873 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |