claude-code-templates CLAUDE.md

A project instruction file for Claude Code that explains a Node.js command-line tool, its dashboard, deployment setup, commands, and development rules.

In plain words
What is it for?
It is for working on the CLI, component catalogue, Astro dashboard, Cloudflare deployment, tests, releases, and security-sensitive configuration.
Why use it?
It gives the coding agent the project context and operating guidance needed to make changes that fit the repository.

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/davila7/claude-code-templates/claude-md
Clone the repo
git clone --depth 1 https://github.com/davila7/claude-code-templates
Per session 6,683 This file is loaded in full into every session.
When invoked 6,683 The same file — it is already loaded in full.
Security scan A 1 finding. 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.06683 $0.06683
Opus 5 $0.03342 $0.03342
Sonnet 5 $0.01337 $0.01337
Haiku 4.5 $0.00668 $0.00668

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

Security

Grade A, and why

claude-code-templates CLAUDE.md scanned grade A with 1 finding 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 2d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST https://pulse-weekly-report.SUBDOMAIN.workers.dev/trigger \
CLAUDE.md · 574 lines

How it starts

The opening of the file, as written. The whole thing — 574 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 when working with this repository.

Project Overview

Node.js CLI tool for managing Claude Code components (agents, commands, MCPs, hooks, settings) with a static website for browsing and installing components. The dashboard and its API routes are deployed on Cloudflare Pages, with supporting cron and monitoring tasks running as Cloudflare Workers.

Essential Commands

# Development
npm install                    # Install dependencies
npm test                       # Run tests
npm version patch|minor|major  # Bump version
npm publish                    # Publish to npm

# Component catalog
python scripts/generate_components_json.py  # Update docs/components.json

# Dashboard + API (Astro on Cloudflare Pages)
cd dashboard && npm run build  # Build before deploy
npm run deploy                 # Deploy www + app.aitmpl.com via wrangler

Deploys to production happen automatically via GitHub Actions on push to main (changes in dashboard/**). Manual deploy uses wrangler pages deploy, not Vercel.

Security Guidelines

⛔ CRITICAL: NEVER Hardcode Secrets or IDs

NEVER write API keys, tokens, passwords, project IDs, org IDs, or any identifier in code. This includes Cloudflare account/project IDs, Supabase URLs, Discord IDs, database connection strings, and any other infrastructure identifier. ALL must go in .env (or Cloudflare secrets via wrangler secret put).

// ❌ WRONG
const API_KEY = "AIzaSy...";

// ✅ CORRECT
const API_KEY = process.env.GOOGLE_API_KEY;

When creating scripts with API keys:

  1. Use process.env (Node.js) or os.environ.get() (Python)
  2. Load from .env file using dotenv
  3. Add variable to .env.example with placeholder
  4. Verify .env is in .gitignore

If you accidentally commit a secret:

  1. Revoke the key IMMEDIATELY
  2. Generate new key
  3. Update .env
  4. Old key is compromised forever (git history)

Component System

Read the full file on GitHub · 574 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. 2d ago First seen · 574 lines · 6,683 tokens per session scan A 1ff6d44a530e

Subscribe to this mod's changes

claude-code-templates CLAUDE.md is an instructions file published in the GitHub repository davila7/claude-code-templates (30,476 stars, last pushed today), licensed MIT. It adds 6,683 tokens to every session, about $0.0334 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

ClawAI CLAUDE.md

Instructions for ihabkhaled/ClawAI, covering clawai — root policy, identity, authority hierarchy (higher wins on conflict), first command, always and work arriving as a document.

ihabkhaled/ClawAI · 4,716 tokens

Claude-PHP-SDK copilot-instructions.md

Instructions for claude-php/Claude-PHP-SDK, covering copilot instructions for claude php sdk, project goals, architecture & core components, directory structure (to be created) and key architectural patterns.

claude-php/Claude-PHP-SDK · 3,375 tokens

par_cc_usage CLAUDE.md

Instructions for paulrobello/par_cc_usage, covering claude.md, project overview, quick start, setup and run monitor.

paulrobello/par_cc_usage · 714 tokens

claude-workspace-snapshot CLAUDE.md

Instructions for REMvisual/claude-workspace-snapshot, covering claude-workspace-snapshot, openviking memory, how it works, session workflow and files (not committed to git).

REMvisual/claude-workspace-snapshot · 378 tokens

agent-config CLAUDE.md

Instructions for wardawgmalvicious/agent-config, covering agent-config: repo instructions, how this repo is structured, how the pieces trigger, editing conventions and validating a change.

wardawgmalvicious/agent-config · 3,063 tokens

Heuris-BioMCP CLAUDE.md

Claude Code instructions for SachinGawande2003/Heuris-BioMCP, covering heuris-biomcp agent guidance, what this server is for, recommended workflows, literature and mechanism grounding and translational gene review.

SachinGawande2003/Heuris-BioMCP · 988 tokens