Logo Kiss Principle

Kiss Principle

Cộng đồng
markpitt
kiss-principle

Áp dụng nguyên tắc K.I.S.S (Keep It Simple, Stupid — giữ mọi thứ đơn giản) để giảm độ phức tạp, cải thiện khả năng bảo trì và giải quyết vấn đề một cách hiệu quả. Dùng khi thiết kế hệ thống, viết mã, lập kế hoạch giải pháp, soạn tài liệu, thiết kế kiến trúc tính năng hoặc đưa ra quyết định khi sự đơn giản là yếu tố nâng cao chất lượng và hiệu quả.

Tổng quan

Nhà phát hànhmarkpitt
Kho mãclaude-skills
Tên kỹ năngkiss-principle
Sao
25
Bản fork
3
Tệp đi kèm
5
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 5 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được markpitt công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Kiss Principle trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/markpitt/claude-skills/tree/main/skills/kiss-principle
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/markpitt/claude-skills.git /tmp/claude-skills
mkdir -p .claude/skills
cp -r /tmp/claude-skills/skills/kiss-principle .claude/skills/kiss-principle
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Kiss Principle trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Kiss Principle ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Kiss Principle với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

K.I.S.S Principle Orchestration Skill

This skill helps you apply the K.I.S.S principle—"Keep It Simple, Stupid"—to systematically reduce unnecessary complexity while maintaining functionality and effectiveness. Simplicity is not about removing necessary features; it's about eliminating unnecessary complications.

Quick Reference: When to Load Which Resource

Your SituationLoad ResourceWhy
Need to understand KISS fundamentals and why simplicity mattersresources/kiss-fundamentals.mdLearn core concepts, history, and empirical benefits
Reviewing code, design, or system for unnecessary complexityresources/complexity-analysis.mdIdentify complexity sources, anti-patterns, red flags
Want proven strategies to simplify solutionsresources/simplification-strategies.mdLearn 10+ actionable techniques with software/UX examples
Building or designing something new with KISS in mindresources/kiss-driven-design.mdApply KISS during design, architecture, feature planning
Comparing simple vs complex approachesresources/decision-frameworks.mdUse frameworks to evaluate tradeoffs, make smart choices
Seeing worked examples of effective simplificationresources/case-studies.mdReal cases: code refactoring, API design, UX improvements

Core Principle

Simplicity is the ultimate sophistication. — Leonardo da Vinci

The K.I.S.S principle states that most systems work better when kept simple rather than made complex. Unnecessary complexity:

  • Increases bugs and maintenance burden
  • Makes systems harder to understand and modify
  • Reduces performance and reliability
  • Wastes development time and resources
  • Creates cognitive overload for users and developers

The Goal: Solve problems with the minimum necessary complexity while preserving correctness and user value.

Orchestration Protocol

Phase 1: Assess Your Situation

Quickly identify what you're simplifying and why:

Context Type:

  • Code Review/Refactoring: Existing code has unnecessary complexity → Load complexity-analysis.md
  • Feature Design: Planning new functionality → Load kiss-driven-design.md
  • Architecture/System Design: Building infrastructure or large systems → Load simplification-strategies.md
  • Problem-Solving: Finding solution to technical challenge → Load decision-frameworks.md
  • UX/Documentation: Improving clarity and usability → Load simplification-strategies.md
  • Learning: Understanding KISS principles → Load kiss-fundamentals.md

Complexity Level:

  • Light: Minor improvements, small scope → Use simplification-strategies.md directly
  • Medium: Significant redesign needed, moderate scope → Use complexity-analysis.md + decision-frameworks.md
  • Heavy: Major architectural changes, system-wide complexity → Use all resources systematically

Action: Load appropriate resource file(s) based on situation.

Phase 2: Analyze and Plan

Based on context, follow these steps:

StepWhat to DoResource
1. Identify complexityWhat makes this complex? What's unnecessary?complexity-analysis.md
2. Understand tradeoffsWhat are we gaining/losing with each approach?decision-frameworks.md
3. Select strategiesWhich simplification techniques apply here?simplification-strategies.md
4. Design simplyHow would we design this with KISS in mind?kiss-driven-design.md
5. Verify valueDoes the simple solution meet requirements?decision-frameworks.md
6. Reference examplesHow have others solved this simply?case-studies.md

Phase 3: Execution & Validation

Before Simplifying:

  • Preserve core functionality and requirements
  • Document why current complexity exists
  • Identify what stakeholders actually need vs. want
  • Create rollback plan if needed

During Simplification:

  1. Remove one layer of complexity at a time
  2. Verify functionality after each change
  3. Measure improvement (LOC, cyclomatic complexity, performance)
  4. Document decisions and rationale

After Simplification:

  • Test thoroughly (more bugs often hide in complexity)
  • Gather feedback from team and users
  • Monitor performance and stability
  • Document simpler approach for future reference

Complexity Assessment Framework

Quickly evaluate if something is too complex:

Red Flags - This is Too Complex:

  • ❌ You can't explain it in 2-3 sentences
  • ❌ It requires extensive documentation to understand
  • ❌ New team members struggle to modify it for weeks
  • ❌ It has many interdependencies and side effects
  • ❌ Performance problems correlate with feature addition
  • ❌ Bugs consistently appear in this component
  • ❌ It has deeply nested conditionals (>3 levels)
  • ❌ Multiple abstractions on top of each other
  • ❌ Over-engineered for current and foreseeable needs

Green Flags - This is Appropriately Simple:

  • ✅ You can explain it clearly in 1-2 minutes
  • ✅ New developers understand it quickly
  • ✅ It does one thing well (single responsibility)
  • ✅ Dependencies are explicit and minimal
  • ✅ It's stable with few bugs
  • ✅ Code is readable and self-documenting
  • ✅ It serves current needs without speculation

KISS vs Over-Engineering

AspectKISSOver-Engineering
ScopeSolves current problemAnticipates future needs
Code~100-200 LOC~500+ LOC
Time to Ship1-2 weeks4-8+ weeks
MaintenanceEasy to modifyComplex to change
PerformanceGood enoughHighly optimized
BugsFew, obviousMany, hidden
ApproachAdd complexity when neededRemove complexity as possible

Key Principles to Remember

  1. Necessity Test: Does every component, line, and feature serve a current user need?
  2. Clarity First: Clear code beats clever code
  3. Single Responsibility: Each function/module does one thing well
  4. Minimal Dependencies: Fewer connections = fewer failure points
  5. Explicit Better Than Implicit: Code should be obvious, not magical
  6. Measure Before Optimizing: Don't optimize prematurely
  7. Refactor Incrementally: Simplify gradually, test continuously

Common Complexity Anti-Patterns

See resources/complexity-analysis.md for detailed analysis of:

  • Over-abstraction (too many layers)
  • Premature optimization (optimizing before profiling)
  • Gold plating (adding nice-to-haves)
  • Speculative generalization (over-generalizing)
  • Feature creep (scope expansion)
  • Accidental complexity vs essential complexity
  • Technical debt accumulation

Simplification Strategies

See resources/simplification-strategies.md for 10+ proven techniques:

  • Constraint-based design
  • Default assumptions
  • Removing features
  • Consolidating logic
  • Flattening architecture
  • Eliminating abstractions
  • Standardizing approaches
  • And more...

Resource Files Summary

resources/kiss-fundamentals.md

Foundation and philosophy:

  • KISS principle definition and history
  • Why simplicity matters (empirical evidence)
  • Simplicity vs complexity tradeoffs
  • Principles of effective simplification
  • Common misconceptions

resources/complexity-analysis.md

Identifying and understanding complexity:

  • Complexity sources and types
  • Measuring complexity (cyclomatic, LOC, coupling)
  • Identifying unnecessary complexity
  • Recognizing over-engineering
  • Red flags and anti-patterns

resources/simplification-strategies.md

Actionable techniques for simplifying:

  • 10+ proven simplification strategies
  • When to apply each strategy
  • Code examples in multiple languages
  • UX simplification approaches
  • Architecture simplification patterns

resources/kiss-driven-design.md

Applying KISS from the start:

  • Designing for simplicity
  • Requirements gathering with KISS in mind
  • Architecture patterns that promote simplicity
  • Feature design principles
  • Documentation and communication

resources/decision-frameworks.md

Making trade-off decisions:

  • Simple vs Complex evaluation framework
  • When complexity is justified
  • Cost-benefit analysis for features
  • Decision trees for architectural choices
  • Measuring ROI of simplification

resources/case-studies.md

Real-world examples of successful simplification:

  • Code refactoring case studies
  • API design simplifications
  • Architecture improvements
  • UX improvements through simplification
  • Decision-making examples

How This Skill Works

  1. Assess your situation: What are you simplifying and why?
  2. Analyze complexity: Identify unnecessary complication
  3. Select approach: Choose relevant strategies and frameworks
  4. Plan simplification: Design the simpler solution
  5. Execute carefully: Make changes incrementally, test continuously
  6. Validate: Confirm the simple solution meets all needs
  7. Learn: Reference cases and patterns for future decisions

Quick Start: 5-Minute Simplification Check

  1. Can you explain this in 2 sentences? (If no → too complex)
  2. What would the simplest possible version look like?
  3. What complexity is essential? What's optional?
  4. Could you remove one component without breaking functionality?
  5. What would new developers struggle with?

Templates & Checklists

  • Complexity Assessment Checklist in resources/complexity-analysis.md
  • Simplification Planning Template in resources/simplification-strategies.md
  • Decision Framework Template in resources/decision-frameworks.md
  • Design Checklist in resources/kiss-driven-design.md

Common Scenarios

Scenario 1: Code Review → Load complexity-analysis.md → identify issues → Load simplification-strategies.md → suggest improvements

Scenario 2: Feature Design → Load kiss-fundamentals.md → Load kiss-driven-design.md → plan with simplicity in mind

Scenario 3: Architecture Redesign → Load complexity-analysis.md → assess current state → Load decision-frameworks.md → evaluate tradeoffs → Load simplification-strategies.md → plan improvements

Scenario 4: Learning from Examples → Load case-studies.md → study approaches → Load decision-frameworks.md → understand tradeoffs

Next Steps

  1. Identify what you're working on (code, design, system, decision)
  2. Load appropriate resource from table above
  3. Assess complexity and identify problem areas
  4. Select simplification strategies or design approaches
  5. Plan and execute changes incrementally
  6. Validate that simple version meets all requirements
  7. Document decisions for team learning

Remember: The goal is solving the problem correctly with minimum necessary complexity. Simplicity requires discipline—resist the urge to over-engineer, and refactor ruthlessly to remove unnecessary complication.

"Everything should be as simple as it is, but not simpler." — Albert Einstein

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Kiss Principle làm được gì?

Áp dụng nguyên tắc K.I.S.S (Keep It Simple, Stupid — giữ mọi thứ đơn giản) để giảm độ phức tạp, cải thiện khả năng bảo trì và giải quyết vấn đề một cách hiệu quả. Dùng khi thiết kế hệ thống, viết mã, lập kế hoạch giải pháp, soạn tài liệu, thiết kế kiến trúc tính năng hoặc đưa ra quyết định khi sự đơn giản là yếu tố nâng cao chất lượng và hiệu quả.

Vì sao nên dùng Kiss Principle trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Kiss Principle là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Kiss Principle trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/markpitt/claude-skills/tree/main/skills/kiss-principle. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Kiss Principle?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Kiss Principle với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Kiss Principle với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Kiss Principle có miễn phí không?

Kỹ năng này được markpitt phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇