From team-standards
Logs user-corrected coding violations like dependency layering, naming norms, and architecture constraints into docs/coding-violations.md. Reviews log before coding to prevent repeats.
npx claudepluginhub exception-coder/team-standards --plugin team-standardsThis skill uses the workspace's default tool permissions.
**被纠正的错误必须登记,登记的错误不能再犯。**
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Guides code writing, review, and refactoring with Karpathy-inspired rules to avoid overcomplication, ensure simplicity, surgical changes, and verifiable success criteria.
Executes ctx7 CLI to fetch up-to-date library documentation, manage AI coding skills (install/search/generate/remove/suggest), and configure Context7 MCP. Useful for current API refs, skill handling, or agent setup.
Share bugs, ideas, or general feedback.
被纠正的错误必须登记,登记的错误不能再犯。
本 Skill 建立"犯错→登记→编码前回顾"的闭环,确保同一类编码规范错误不会在项目中反复出现。
当用户通过以下方式纠正 AI 的编码错误时,必须立即触发:
每次开始编写或修改代码前,必须先检查项目中是否存在 docs/coding-violations.md,如存在则先读取,避免重犯已登记的错误。
flowchart TD
A(["用户纠正了编码错误"]) --> B{"docs/coding-violations.md\n存在?"}
B -->|否| C["创建文件,写入表头"]
B -->|是| D["读取已有记录"]
C --> E["追加本次违规记录"]
D --> F{"相同类型违规\n是否已登记?"}
F -->|是| G["更新已有条目的发生次数"]
F -->|否| E
E --> H(["告知用户已登记"])
G --> H
docs/coding-violations.md
# 编码违规记录
> 本文件由 `coding-violation-log` Skill 自动维护。
> AI 编码前必须读取本文件,避免重犯已记录的错误。
| # | 类型 | 违规描述 | 正确做法 | 涉及文件 | 首次发生 | 次数 |
|---|------|---------|---------|---------|---------|------|
| 1 | 分层依赖 | Application 层直接引用 Infrastructure 层类 | 在 Domain 层定义接口,Infrastructure 层实现,Application 层依赖接口 | ScanNode.java | 2026-04-12 | 1 |
| 字段 | 说明 |
|---|---|
| 类型 | 违规分类:分层依赖 / 命名规范 / 异常处理 / 架构约束 / 代码风格 / 其他 |
| 违规描述 | 一句话描述做错了什么 |
| 正确做法 | 一句话描述应该怎么做 |
| 涉及文件 | 发生违规的文件名(不含完整路径) |
| 首次发生 | 首次登记日期(YYYY-MM-DD) |
| 次数 | 累计发生次数,重犯时 +1 |
每次开始编写代码时,按以下步骤执行:
docs/coding-violations.md 是否存在| Skill | 关系 |
|---|---|
java-coding-standards | 互补。java-coding-standards 是通用规范(阿里黄山版),本 Skill 登记项目级的具体违规 |
pre-implementation-code-orientation | 本 Skill 的"编码前回顾"应在 pre-implementation-code-orientation 之后、实际编码之前执行 |
| 错误做法 | 正确做法 |
|---|---|
| 用户纠正后只改代码不登记 | 改代码的同时必须追加违规记录 |
| 只在用户明确说"记一下"时才登记 | 只要用户纠正了写法就必须登记,不等显式指令 |
| 登记时写大段描述 | 违规描述和正确做法各一句话,简洁明确 |
| 每次编码前跳过回顾 | 存在 coding-violations.md 就必须读取 |
| 重犯已登记的错误 | 编码前回顾记录,特别注意相关模块的历史违规 |