Kiss Principle 标志

Kiss Principle

社区
markpitt
kiss-principle

运用 K.I.S.S 原则(Keep It Simple, Stupid,保持简单),降低复杂度、提升可维护性并优雅地解决问题。在设计系统、编写代码、规划解决方案、编写文档、设计功能架构,或在简单性有助于提升质量和效率时做决策时使用。

概览

发布者markpitt
代码仓库claude-skills
技能名称kiss-principle
星标数
25
复刻数
3
附带文件
5
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 5 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 markpitt 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Kiss Principle AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/markpitt/claude-skills/tree/main/skills/kiss-principle
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

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
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Kiss Principle,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Kiss Principle。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Kiss Principle 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

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

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Kiss Principle AI 技能有什么作用?

运用 K.I.S.S 原则(Keep It Simple, Stupid,保持简单),降低复杂度、提升可维护性并优雅地解决问题。在设计系统、编写代码、规划解决方案、编写文档、设计功能架构,或在简单性有助于提升质量和效率时做决策时使用。

为什么在 TypingMind 中使用 Kiss Principle?

因为您只需安装一次,就能搭配任何模型使用。Kiss Principle 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Kiss Principle?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/markpitt/claude-skills/tree/main/skills/kiss-principle。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Kiss Principle?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Kiss Principle 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Kiss Principle 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Kiss Principle AI 技能免费吗?

markpitt 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇