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.
curl -O https://raw.githubusercontent.com/LibreSpark/LibreDomains/main/CLAUDE.mdgit clone --depth 1 https://github.com/LibreSpark/LibreDomainsWrote 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/librespark/libredomains/claude-md)<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.
<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>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.03151 | $0.03151 |
| Opus 5.5 | $0.01260 | $0.01260 |
| Sonnet 5.5 | $0.00630 | $0.00630 |
| Haiku 4.5 | $0.00315 | $0.00315 |
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.
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 │◀─────│ 部署脚本 │
└─────────────┘ └──────────────┘ └───────────────┘
分层架构
- 配置存储层:GitHub 仓库存储所有域名配置(JSON 格式)
- 验证层:Python 脚本 + GitHub Actions 自动验证
- 部署层:Python 脚本通过 Cloudflare API 部署 DNS 记录
- 监控层:定期健康检查确保域名正常工作
关键依赖
-
第三方服务商:
- 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 依赖
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 · 388 lines · 3,151 tokens per session scan A 9e64d37c2833
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.
LibreDomains CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| LibreDomains CLAUDE.mdLibreSpark/LibreDomains | Instructions file | 102 | 11mo ago | MIT | A | 3,151 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| vscode model-prompts.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 2,022 | GitHub Copilot |