Qcc dev

From yxhpy/qcc_plus · View interactive version

Qcc dev is an AI agent skill from the GitHub repository yxhpy/qcc_plus. Use for coding standards, project conventions, and development best practices in qcc_plus project

How to use this skill

Skill file

QCC Plus 开发规范

项目概述

Go 语言规范

通用规则

项目特异规则

| 规则 | 说明 |

|------|------|

| Builder 模式 | 代理服务器使用 Builder 模式构建,参考 internal/proxy/ |

| 环境变量配置 | 所有配置通过环境变量注入,参考 .env.example |

| MySQL 持久化 | 节点配置持久化到 MySQL,设置 PROXY_MYSQL_DSN 启用 |

| SSE 流处理 | SSE 流读取逻辑在 internal/client/ 中实现 |

| 请求指纹复刻 | 保持与官方 CLI 一致的请求头和参数 |

| 节点权重与切换 | 权重值越小优先级越高(1 > 2 > 3);事件驱动切换 |

| 时间格式统一 | 使用 timeutil.FormatBeijingTime(),格式 2006年01月02日 15时04分05秒 |

错误处理

前端规范

禁止硬编码颜色

重要: 所有颜色必须使用 index.css 中定义的 CSS 变量:

确保深色/浅色主题兼容。

UI 高信息密度

安全规范

避免过度工程

不要做的事

正确做法

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.