karpathy-principlesAI编程四大原则 - 源自Karpathy法则 (forrestchang/andrej-karpathy-skills 94.2k⭐)。用于在AI编程时强制执行先思考、保持简单、精准修改、目标驱动四大原则。适用于AI代码审查、代码生成、修复bug等场景。
Install via ClawdBot CLI:
clawdbot install 534422530/karpathy-principlesGrade Fair — based on market validation, documentation quality, package completeness, maintenance status, and authenticity signals.
Calls external URL not in known-safe list
https://x.com/karpathy/status/2015883857489522876Uses known external API (expected, informational)
raw.githubusercontent.comAudited Apr 28, 2026 · audit v1.0
Generated May 22, 2026
技术团队在代码审查过程中,利用Karpathy四大原则自动检查代码是否过度复杂、是否有未经确认的假设、是否连带修改了不相关代码。适用于任何使用Git进行协作的开发团队,可结合CI工具实现自动化审查。
开发者在用AI生成代码时(如Copilot、Cursor),套用此原则确保AI先提问需求细节、选择最简方案、编写测试再实现。适用于需要高质量代码生成的场景,避免AI输出臃肿或偏离需求。
QA或开发者收到bug报告后,强制要求先写测试复现bug,再定位修复,最后验证测试通过。适用任何软件项目的bug修复流程,尤其适合采用TDD(测试驱动开发)的团队。
面向初级程序员,在编程练习或实际项目中应用四大原则,培养先思考、保持简单、精准修改、目标驱动的思维习惯。可用于教育机构或企业内训。
对遗留系统或大型项目进行重构时,通过原则避免引入额外风险:不盲目添加抽象层、只修改必要代码、用测试验证每个改动。适用于银行、医疗等对稳定性要求高的行业。
将Karpathy原则嵌入到代码审查或AI编程助手SaaS产品中(如GitHub Actions、CodeRabbit),作为增值功能。用户按使用量或订阅付费。
基于四大原则推出面向企业的编程工作坊或内训课程,帮助团队提升代码质量和开发效率。同时提供代码审计咨询服务。
开发VS Code、JetBrains IDE等编辑器的插件,自动提示或强制执行该原则。通过免费基础功能+高级分析订阅来变现,或在插件市场销售。
💬 Integration Tip
可以通过CLAUDE.md文件将原则配置为AI助手的系统提示,或在CI管道中通过脚本检查代码是否符合四大原则。
Scored May 22, 2026
Control desktop applications on Windows — launch, close, focus, resize, move windows, simulate keyboard/mouse input, manage processes, control VSCode, read clipboard, and capture screen info. Use when the user wants to interact with any running program, switch windows, type text, press shortcuts, open files in VSCode, manage running processes, or get system display information.
Conduct rigorous, adversarial code reviews with zero tolerance for mediocrity. Use when users ask to "critically review" my code or a PR, "critique my code", "find issues in my code", or "what's wrong with this code". Identifies security holes, lazy patterns, edge case failures, and bad practices across Python, R, JavaScript/TypeScript, SQL, and front-end code. Scrutinizes error handling, type safety, performance, accessibility, and code quality. Provides structured feedback with severity tiers (Blocking, Required, Suggestions) and specific, actionable recommendations.
Pragmatic coding standards for writing clean, maintainable code — naming, functions, structure, anti-patterns, and pre-edit safety checks. Use when writing new code, refactoring existing code, reviewing code quality, or establishing coding standards.
Claude Code integration for OpenClaw. This skill provides interfaces to: - Query Claude Code documentation from https://code.claude.com/docs - Manage subagents and coding tasks - Execute AI-assisted coding workflows - Access best practices and common workflows Use this skill when users want to: - Get help with coding tasks - Query Claude Code documentation - Manage AI-assisted development workflows - Execute complex programming tasks
Plan, draft, version, and refine written content with enforced versioning and quality audits.
Use when writing tests, creating test strategies, or building automation frameworks. Invoke for unit tests, integration tests, E2E, coverage analysis, performance testing, security testing.