Skip to content

feat: 完善 Claude 规则数据源,添加 claude.com 等关键域名#1671

Open
Whohahaha wants to merge 1 commit intoblackmatrix7:masterfrom
Whohahaha:feat/add-clude-rules
Open

feat: 完善 Claude 规则数据源,添加 claude.com 等关键域名#1671
Whohahaha wants to merge 1 commit intoblackmatrix7:masterfrom
Whohahaha:feat/add-clude-rules

Conversation

@Whohahaha
Copy link
Copy Markdown

概述

完善 Claude 规则数据源,添加了 Claude AI 服务相关的关键域名。

问题背景

当前 Claude 规则集仅包含 3 条规则:

  • cdn.usefathom.com
  • anthropic.com
  • claude.ai

缺少的关键域名

  • claude.com - Claude 官方网站(Claude Code 等产品都在此域名)
  • claudeusercontent.com - 用户上传内容域名
  • 其他 CDN 和分析服务域名

本次更新

添加以下域名到数据源:

域名 用途
claude.com Claude 官方网站
claude.ai Claude AI 前端
anthropic.com Claude API 后端
claudeusercontent.com 用户上传内容
sentrian.io Anthropic 相关服务
statsig.com 功能开关服务
statsigcdn.com Statsig CDN
featuregates.org 功能开关服务
cdn.usefathom.com 分析服务
servd-anthropic-website.b-cdn.net Anthropic CDN

参考资料

测试

数据源文件格式参考了项目中其他规则数据源(如 source/rule/Proxy/Proxy.list)的格式。

- Add claude.com (official Claude website)
- Add claude.ai (Claude AI frontend)
- Add anthropic.com (Claude API backend)
- Add claudeusercontent.com (user uploaded content)
- Add related CDN and analytics domains

This enables automatic rule generation for Claude AI services.
Copilot AI review requested due to automatic review settings March 31, 2026 03:46
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

本 PR 为规则生成器补全 Claude/Anthropic 相关的规则数据源(source/rule/Claude/Claude.list),以覆盖 claude.com、上传内容域名及部分功能开关/分析/CDN 域名,从而提升 Claude 服务在各客户端规则集中的可用性与命中率。

Changes:

  • 新增 Claude 规则数据源文件 source/rule/Claude/Claude.list
  • 补充 claude.comclaudeusercontent.com 以及 Statsig / Fathom / CDN 等相关域名

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

.statsig.com
.statsigcdn.com
.featuregates.org
.cdn.usefathom.com
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

source/rule 的域名数据源里,前导点号通常表示“后缀匹配”(会生成 DOMAIN-SUFFIX / HOST-SUFFIX),而不带点号表示“精确域名”(会生成 DOMAIN/HOST)。cdn.usefathom.com 在现有生成规则里是精确域名(例如 rule/*/Claude/Claude.list 里的 DOMAIN,cdn.usefathom.com),这里写成 .cdn.usefathom.com 会把匹配范围扩大到所有子域名,语义与现有规则不一致。建议改为不带前导点号的 cdn.usefathom.com

Suggested change
.cdn.usefathom.com
cdn.usefathom.com

Copilot uses AI. Check for mistakes.
.statsigcdn.com
.featuregates.org
.cdn.usefathom.com
.servd-anthropic-website.b-cdn.net No newline at end of file
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同上,servd-anthropic-website.b-cdn.net 在现有生成规则里是精确域名(例如 rule/*/Anthropic/Anthropic.list 中的 DOMAIN,servd-anthropic-website.b-cdn.net)。这里写成 .servd-anthropic-website.b-cdn.net 会变成后缀匹配,可能引入不必要的覆盖范围。建议改为不带前导点号的 servd-anthropic-website.b-cdn.net

Suggested change
.servd-anthropic-website.b-cdn.net
servd-anthropic-website.b-cdn.net

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants