CLAUDE.mdA

CLAUDE.md from xianyu-sheng/xenon is a CLAUDE.md file: the standing instructions Claude Code reads in that repo.

Install it, pinned
mdr add xianyu-sheng/xenon/CLAUDE.md@git:20261013.79602e5

Pins git:20261013.79602e5 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
CLAUDE.md file
Repository
xianyu-sheng/xenon
Path
CLAUDE.md
Versions recorded
9
Latest version
git:20261013.79602e5, committed Oct 13, 2026
First version recorded
Jul 15, 2026
Size
4,736 bytes
Repository stars
54
License
MIT

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# CLAUDE.md — Xenon 项目规范

## Bug 修复原则

### 深度根因分析,而非逐洞补漏

当发现一个 bug 时,**不要**只修复眼前的症状。必须追溯数据流全链路,
找到系统性根因,然后**一次性修复所有同类问题**。

**判断标准**:如果修复只改了 1 个文件/1 个函数,很可能是"补漏"而非
"治本"。系统性修复通常需要跨 2-4 个文件建立正确的信息流动路径。

**方法**:
1. 画出受影响功能的完整数据流(从用户输入 → 中间层 → 最终输出)
2. 找出所有信息断裂点(数据存在但未传递到需要它的地方)
3. 设计统一的集成契约(一个接口/一个数据结构/一个生命周期钩子)
4. 在所有断点处同时修复,确保端到端信息流通

**反例**(禁止):
- 发现 LLM 猜错 MCP 工具名 → 只改 system prompt
- 发现 MCP 输出为空 → 只改 `_mcp_call` 返回值
- 发现 MCP 重启丢失 → 只在 `/mcp add` 加保存逻辑

**正例**(期望):
- 画出 MCP 的完整数据流:注册 → 发现 → 提示注入 → 调用 → 结果提取 → 持久化
- 一次性修复所有断裂点,建立统一的 MCP 集成契约

### 通用设计,而非特例枚举

绝不使用封闭集合(如正则枚举"天气|高铁|酒店")来分类/路由。
使用**基于结构特征**的通用规则(如疑问句式、查询动词、时间敏感度)。

**反例**:
```python
# 每次新增 MCP 工具都要加正则 — 不可持续
r"(?:查|查一下).{0,10}(?:高铁|火车|动车|航班|机票)"
```

**正例**:
```python
# 基于语言结构,不依赖领域关键词 — 任何 MCP 工具自动受益
r"(?:查|搜|找|查询).{0,20}"  # 通用查询动词
```

## MCP 集成架构

### 当前问题

MCP 子系统的各项功能(注册、发现、调用、持久化)是孤立实现的,
缺少统一的集成层。导致多个信息断裂点:

1. **MCP 工具 → LLM 提示词**:引擎的 system prompt 构建时不知道 MCP 工具存在
2. **MCP 结果 → LLM 观察**:`_mcp_call` 的返回值缺少标准化的文本字段
3. **MCP 配置 → 磁盘**:注册表纯内存,无持久化
4. **MCP 命令 → 解析器**:参数解析不支持 `--` 分隔符

### 目标架构

MCP 集成应遵循一个统一的契约:

```
MCPRegistry (唯一真相源)
  ├── 注册/发现 → tool_map {name: (server, tool_def)}
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add xianyu-sheng/xenon/CLAUDE.md@sha256:5f7e329b5d0161b3

The line at the top of this page pins the label git:20261013.79602e5, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_mfhey7cyg5ck6g6e.svg)](https://markdownregistry.com/a/art_mfhey7cyg5ck6g6e)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 9 versions of this file, between Jul 15, 2026 and Oct 13, 2026, about one every 11 days.

versioncommittedcommitsizeaudit
git:20261013.79602e5 latest2026-10-13 79602e5 4,736 BA view · diff
git:20261013.e6f41c72026-10-13 e6f41c7 4,702 BA view · diff
git:20261012.88330442026-10-12 8833044 4,808 BA view · diff
git:20261011.6ca86952026-10-11 6ca8695 4,808 BA view · diff
git:20260822.8d824842026-08-22 8d82484 4,808 BA view · diff
git:20260814.34646112026-08-14 3464611 4,710 BA view · diff
git:20260729.7f21e922026-07-29 7f21e92 4,685 BA view · diff
git:20260719.7cef3022026-07-19 7cef302 4,693 BA view · diff
git:20260715.8395bf92026-07-15 8395bf9 4,729 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (4736 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

xianyu-sheng/xenon · 54 stars · license MIT · pushed 2026-10-23 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_mfhey7cyg5ck6g6e
GET https://markdownregistry.com/api/v1/resolve?ref=xianyu-sheng/xenon/CLAUDE.md
GET https://markdownregistry.com/api/v1/blob/5f7e329b5d0161b3080fe45c6086cce9449c263f916e220253bf55e2f8e1ffbd

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: what a CLAUDE.md file is · keeping AGENTS.md and CLAUDE.md in sync · which agent file does what.

Other files named CLAUDE.md

CLAUDE.md CLAUDE.md file
affaan-m/ecc · CLAUDE.md
git:20261020.9471ef4 · audit A · 287,377 stars
CLAUDE.md CLAUDE.md file
firecrawl/firecrawl · CLAUDE.md
git:20261008.5a75dca · audit A · 194,483 stars
CLAUDE.md CLAUDE.md file
garrytan/gstack · CLAUDE.md
git:20261011.5d64745 · audit A · 137,352 stars
CLAUDE.md CLAUDE.md file
juliusbrussee/caveman · CLAUDE.md
git:20261010.505ac30 · audit B · 114,642 stars
CLAUDE.md CLAUDE.md file
addyosmani/agent-skills · CLAUDE.md
git:20260720.8fd2081 · audit A · 110,140 stars
CLAUDE.md CLAUDE.md file
nexu-io/open-design · CLAUDE.md
git:20260430.9b57c22 · audit B · 103,513 stars
CLAUDE.md CLAUDE.md file
thedotmack/claude-mem · CLAUDE.md
git:20261013.84bbb53 · audit A · 102,153 stars
CLAUDE.md CLAUDE.md file
tt-a1i/archify · CLAUDE.md
git:20260916.572e260 · audit B · 88,137 stars

Browse by kind, by grade A, or by owner.