microwind/ai-skills/consistency-principle
Claude Code and agent skill by microwind/ai-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
在整个系统中保持设计、命名、模式和行为的一致性,降低认知负担,提高可维护性。
Install
npx vskill@latest install microwind/ai-skills/consistency-principleSKILL.md
一致性原则 (Consistency Principle)
概述
一致性原则:相似的问题用相似的方式解决,相同的概念用相同的名称表达。一致性降低了认知负担,让开发者能凭直觉理解新代码。
一致性维度:
- 命名一致 - 相同概念用相同的词
- 模式一致 - 相似问题用相同的设计模式
- 风格一致 - 代码格式、结构统一
- 行为一致 - 相似的API有相似的行为
命名一致性
模式一致性
一致性检查清单
何时打破一致性
与其他原则的关系
总结
一致性核心:相似问题用相似方案,降低认知负担。
实践要点:
- 建立并遵循团队编码规范
- 命名、模式、错误处理全项目统一
- 新代码参考现有代码的模式
- 有充分理由时可以例外,但需记录
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdesign-principles/consistency-principle/SKILL.md
Popularity
- Repository stars
- 51
- Repository forks
- 13
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 29 Sep 2026, a month ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microwind/ai-skills/consistency-principle)