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.
npx agentmods add instructions/librespark/libredomains/claude-mdgit clone --depth 1 https://github.com/LibreSpark/LibreDomainsWhat 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 | $0.03151 | $0.03151 |
| Opus 5 | $0.01576 | $0.01576 |
| Sonnet 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 3d 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.
- 3d 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 9mo ago), licensed MIT. It adds 3,151 tokens to every session, about $0.0158 per session on Opus 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.
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).
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
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.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
next.js AGENTS.md
Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.