AgentSkillsCN

anti-pattern-detection

在积极编码过程中,主动对照已记录的反模式进行自查。在做出架构决策、编写异常处理逻辑、添加校验器,或当解决方案显得过度工程化时使用。

SKILL.md
--- frontmatter
name: anti-pattern-detection
description: Proactively check work against documented anti-patterns during active coding. Use when making architectural decisions, writing exception handling, adding validators, or when solution feels over-engineered.

Anti-Pattern Detection Skill

Purpose

Proactively check current work against documented anti-patterns. Catches problematic patterns BEFORE they become user corrections. Prevention over reaction.

When to Use

  • About to make architectural decisions
  • Writing exception handling code
  • Adding validators or fallback logic
  • Creating "comprehensive" solutions
  • Suggesting "best practices"
  • Adding backwards compatibility logic
  • Solution feels complex or over-engineered
  • Every 10-15 minutes during active coding

Protocol Reference

For complete instructions, see: {{MEMORY_PATH}}/protocols/anti_pattern_detection.md

The protocol contains all documented anti-patterns, warning signs, and the complete detection workflow.


Key Principle: Catch yourself doing what you know to avoid. Proactive detection prevents reactive correction.