claude-code-templates: Instructions file for Claude Code

CLAUDE.md

claude-code-templates CLAUDE.md is an instructions file for Claude Code from davila7/claude-code-templates. It costs 9,583 tokens per session, scanned B, original, MIT.

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 for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions CLAUDE.md.

This is davila7/claude-code-templates's own configuration. It tells Claude Code how to work on claude-code-templates itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-code-templates configures →

About the project

Claude Code Templates is a command-line tool and catalogue for configuring Anthropic’s Claude Code with agents, commands, settings, hooks, integrations, skills, and project templates. Developers use it to browse and install reusable components for their coding workflows. The catalogue includes many of these Claude Code components.

davila7/claude-code-templates · 32,670 stars · on GitHub · aitmpl.com

Reuse

Borrowing it

Nothing to install: this file belongs to davila7/claude-code-templates. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/davila7/claude-code-templates/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/davila7/claude-code-templates

Made for: Claude Code.

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 claude-code-templates CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/davila7/claude-code-templates/claude-md/github.svg)](https://agentmods.dev/instructions/davila7/claude-code-templates/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/davila7/claude-code-templates/claude-md"><img src="https://agentmods.dev/badge/instructions/davila7/claude-code-templates/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.

agentmods 80×15 button for claude-code-templates CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/davila7/claude-code-templates/claude-md"><img src="https://agentmods.dev/badge/instructions/davila7/claude-code-templates/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9,583 This file is loaded in full into every session.
When invoked 9,583 The same file — it is already loaded in full.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.09583 $0.09583
Opus 5.5 $0.03833 $0.03833
Sonnet 5.5 $0.01917 $0.01917
Haiku 4.5 $0.00958 $0.00958

Measured 11d ago against content hash f0a590721405, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

claude-code-templates CLAUDE.md scanned grade B with 2 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 11d 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.

Enumerates other installed skillsmediumAgent snooping

Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.

1. **The project is not trusted.** Claude Code adopts a plugin from a project's `.claude/skills/{name}/` only when `~/.claude.json` has `projects[<path>].hasTrustDialogAccepted: true`; an untrusted folder's `.claude/` is

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 · 639 lines

How it starts

The opening of the file, as written. The whole thing — 639 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 X.Y.Z --ignore-scripts=false  # Sync, commit, and tag all package versions
npm run version:set -- X.Y.Z   # Sync versions without creating a commit or tag
npm publish --ignore-scripts=false  # Publish and run the trusted prepublish guard

# Component catalog
python scripts/generate_components_json.py                   # Update docs/components.json (pulls download counts from Supabase: minutes)
python scripts/generate_components_json.py --skip-downloads  # Same, keeping the counts already in the catalog: seconds

# 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

Read the full file on GitHub · 639 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. 11d ago Changed · +57 tokens per session f0a590721405
  2. 19d ago Changed · +53 tokens per session 32760fa42597
  3. 20d ago Changed · +2 lines · +38 tokens per session 584aebe3d3e3
  4. 24d ago Changed · +17 lines · +441 tokens per session 3295d06e75b6
  5. 25d ago Changed · +272 tokens per session f6154724099d
  6. 26d ago Changed · +11 lines · +800 tokens per session scan A → B 2684322a06ea
  7. 29d ago Changed · +10 lines · +701 tokens per session 5035499ba203
  8. 1mo ago Changed · +24 lines · +310 tokens per session 66ea0a815220
  9. 1mo ago Changed · +1 lines · +228 tokens per session aabafef6e961
  10. 1mo 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 (32,670 stars, last pushed yesterday), licensed MIT. It adds 9,583 tokens to every session, about $0.0383 per session on Opus 5.5. A static security scan graded it B with 2 findings (enumerates other installed skills, 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

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 · 9,649 tokens

next.js AGENTS.md

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,257 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, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 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,680 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,159 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens