LibreDomains: Instructions file for Claude Code

CLAUDE.md

LibreDomains CLAUDE.md is an instructions file for Claude Code from LibreSpark/LibreDomains. It costs 3,151 tokens per session, scanned A, original, MIT.

Project instructions that give an AI coding assistant technical context for LibreDomains, a GitHub-based service for distributing second-level domain names. They describe its architecture, workflows, and external services.

In plain words
What is it for?
Understanding the Python scripts, GitHub Actions workflows, JSON domain configuration, and Cloudflare DNS integration. They also provide architecture and API background for project work.
Why use it?
They reduce the need to rediscover how the project works before making changes. This helps the assistant follow the repository’s domain-validation, DNS, and deployment processes.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md.

This is LibreSpark/LibreDomains's own configuration. It tells Claude Code how to work on LibreDomains 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 LibreDomains configures →

Reuse

Borrowing it

Nothing to install: this file belongs to LibreSpark/LibreDomains. 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/LibreSpark/LibreDomains/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/LibreSpark/LibreDomains

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 LibreDomains CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/librespark/libredomains/claude-md"><img src="https://agentmods.dev/badge/instructions/librespark/libredomains/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,151 This file is loaded in full into every session.
When invoked 3,151 The same file — it is already loaded in full.
Security scan A 0 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.03151 $0.03151
Opus 5.5 $0.01260 $0.01260
Sonnet 5.5 $0.00630 $0.00630
Haiku 4.5 $0.00315 $0.00315

Measured 2mo ago against content hash 9e64d37c2833, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

LibreDomains 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.

CLAUDE.md · 388 lines

How it starts

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

LibreDomains - AI 项目上下文

本文档专为 AI 助手提供项目技术上下文,包含架构、工作流程、API 参考等技术细节。

项目概述

LibreDomains 是一个基于 GitHub 的二级域名分发服务,用户通过提交 Pull Request 申请和管理域名。

技术栈:

  • Python 3.x - 验证和部署脚本
  • GitHub Actions - 自动化 CI/CD
  • Cloudflare API - DNS 记录管理
  • Git/GitHub - 配置存储和版本控制

项目架构

系统架构图

┌─────────────┐       ┌──────────────┐       ┌───────────────┐
│ GitHub 用户 │──────▶│ Pull Request │──────▶│ 验证检查脚本  │
└─────────────┘       └──────────────┘       └───────┬───────┘
                                                    │
                                                    ▼
┌─────────────┐       ┌──────────────┐       ┌───────────────┐
│ DNS 记录生效 │◀─────│ Cloudflare   │◀─────│ 部署脚本      │
└─────────────┘       └──────────────┘       └───────────────┘

分层架构

  1. 配置存储层:GitHub 仓库存储所有域名配置(JSON 格式)
  2. 验证层:Python 脚本 + GitHub Actions 自动验证
  3. 部署层:Python 脚本通过 Cloudflare API 部署 DNS 记录
  4. 监控层:定期健康检查确保域名正常工作

关键依赖

  • 第三方服务商:

    • Cloudflare(DNS 解析)
    • GitHub(代码托管、CI/CD)
  • 外部 API:

    • Cloudflare API(DNS 管理)
    • GitHub API(PR 评论)

文件结构

.
├── .github/
│   ├── ISSUE_TEMPLATE/           # Issue 模板
│   └── workflows/                # GitHub Actions 工作流
│       ├── deploy-domains.yml    # 部署域名
│       ├── health-check.yml      # 健康检查
│       ├── validate-domain.yml   # 验证域名申请
│       └── generate-stats.yml    # 生成统计
├── config/
│   └── domains.json              # 全局配置(域名列表、规则)
├── docs/                         # 自动生成的报告和数据
│   ├── stats.json                # 统计数据(自动生成)
│   └── stats_report.md           # 统计报告(自动生成)
├── domains/                      # 域名配置目录
│   ├── ciao.su/                  # ciao.su 域名的子域名配置
│   │   └── *.json                # 每个文件代表一个子域名
│   └── ciallo.de/                # ciallo.de 域名的子域名配置
├── scripts/                      # 所有脚本
│   ├── admin/                    # 管理员工具
│   ├── bot/                      # PR 机器人
│   │   └── pr_checker.py         # 检查 PR 中的域名申请
│   ├── cloudflare/               # Cloudflare 集成
│   │   └── cloudflare_manager.py # DNS 记录管理
│   ├── dns/                      # DNS 工具
│   ├── health/                   # 健康检查
│   │   └── domain_health.py      # 域名健康检查
│   ├── stats/                    # 统计脚本
│   │   └── domain_stats.py       # 生成域名统计
│   ├── utils/                    # 工具函数
│   └── validation/               # 验证逻辑
│       └── domain_validator.py   # 域名配置验证器
├── CLAUDE.md                     # 本文件(AI 项目上下文)
├── GUIDE.md                      # 用户和管理员完整指南
├── README.md                     # 项目主页
├── TERMS_OF_SERVICE.md           # 服务条款
└── requirements.txt              # Python 依赖

Read the full file on GitHub · 388 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. 2mo ago First seen · 388 lines · 3,151 tokens per session scan A 9e64d37c2833

Subscribe to this mod's changes

LibreDomains CLAUDE.md is an instructions file published in the GitHub repository LibreSpark/LibreDomains (102 stars, last pushed 11mo ago), licensed MIT. It adds 3,151 tokens to every session, about $0.0126 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.

Related

LibreDomains CLAUDE.md compared with instructions from other repositories

LibreDomains CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
LibreDomains CLAUDE.mdLibreSpark/LibreDomainsInstructions file10211mo agoMITA3,151Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot