kiss-dry-yagni✓ ناجح

Principes KISS, DRY, YAGNI. Use when reviewing code quality or refactoring.

٨٢
★ نجوم
١
↓ تنزيلات
١١
◉ مشاهدات

// تثبيت المهارة

تثبيت المهارة

المهارات هي كود تابع لأطراف ثالثة من مستودعات GitHub العامة. يفحص SkillHub الأنماط الخبيثة المعروفة، لكنه لا يستطيع ضمان السلامة. راجع الكود المصدري قبل التثبيت.

تثبيت عام (على مستوى المستخدم):

npx skillhub install majiayu000/claude-skill-registry/kiss-dry-yagni

تثبيت في المشروع الحالي:

npx skillhub install majiayu000/claude-skill-registry/kiss-dry-yagni --project

skill.install.customTargetHelp

npx skillhub install majiayu000/claude-skill-registry/kiss-dry-yagni --target-dir /path/to/skills

المسار المقترح: ~/.claude/skills/kiss-dry-yagni/

محتوى SKILL.md

---
name: kiss-dry-yagni
description: Principes KISS, DRY, YAGNI. Use when reviewing code quality or refactoring.
triggers:
  files: ["*.cs"]
  keywords: ["simple", "simplify", "duplicate", "duplication", "refactor", "KISS", "DRY", "YAGNI"]
auto_suggest: true
---

# Principes KISS, DRY, YAGNI

This skill provides simplicity and code quality guidelines.

See @REFERENCE.md for detailed documentation.

## Quick Reference

- **KISS**: Methods < 20 lines, complexity < 10, indent < 3 levels
- **DRY**: Abstract after 3 occurrences, single source of truth
- **YAGNI**: Only build what's explicitly required NOW
- **Early returns**: Prefer guard clauses over nested else
- **Composition**: Prefer over inheritance

الترخيص

الترخيص المُعلن: MIT

MIT License

Copyright (c) 2026 majiayu000

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

عرض الترخيص في المستودع المصدري — النسخة المنشورة هناك هي المرجع.