This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is a Clash proxy configuration repository containing domain/IP routing rules for network traffic management. The configuration enables selective proxy routing based on service categories (streaming, AI services, gaming, etc.) with automatic node selection.
RuleSet/
├── kiro-config.yaml # Main Clash configuration (uses remote ACL4SSR rules)
├── kiro-config-override.yaml # Override config (uses local ruleSet/ rules)
└── ruleSet/ # Local rule files for specific services
├── openai.yaml # OpenAI/ChatGPT domains
├── google.yaml # Google services domains
├── microsoft.yaml # Microsoft services
├── netflix.yaml # Netflix domains
├── youtube.yaml # YouTube domains
├── telegram.yaml # Telegram IP ranges
├── telegramcidr.yaml # Telegram CIDR blocks
├── private.yaml # Private/LAN domains
├── lancidr.yaml # LAN IP ranges
├── cncidr.yaml # China IP ranges
├── direct.yaml # Domains for direct connection
├── reject.yaml # Domains to reject
└── ... # Other service-specific rules
- Uses
rule-providersreferencing remote ACL4SSR GitHub repository - Rules auto-update every 86400 seconds (24 hours)
- Health checks run every 600 seconds with
http://www.gstatic.com/generate_204
- Uses
rule-providerspointing tohttps://raw.gitmirror.com/LSauce/RuleSet/master/ruleSet/ - References local ruleSet files in this repository
- Rule files should follow domain-list-community format with
+.example.comsyntax for wildcards
Domain rules use the +.domain.com prefix for domain matching:
payload:
- "+.openai.com"
- "+.chatgpt.com"
- "specific.domain.com"CIDR rules for IP ranges use standard notation.
- Edit the appropriate file in
ruleSet/(e.g.,openai.yamlfor AI services) - Add domain in format
+.example.comfor wildcard matching
- Create new file in
ruleSet/(e.g.,newservice.yaml) - Add
rule-providersentry inkiro-config-override.yaml:newservice: type: http behavior: domain url: "https://raw.gitmirror.com/LSauce/RuleSet/master/ruleSet/newservice.yaml" path: ./ruleset/newservice.yaml interval: 86400
- Add corresponding rule in
kiro-config-override.yamlrules section
Use Chinese prefixes:
feat:- New featuresfix:- Bug fixesrefactor:- Code refactoring- Optional scope in parentheses:
feat(openai):
Examples:
feat(openai): 添加新domain: chatgpt.com
fix: 删除重复规则
feat: 添加ronki.moe直连