什么是 optimizing-large-skills?
通过外部化、整合和渐进加载模式来减少技能文件大小的系统方法。当技能超过 300 行、具有类似功能的多个代码块(10+)、带有 Markdown 的大量 Python 内联、嵌入的函数超过 20 行时使用。技能低于300行且组织良好时请勿使用。创造新技能 - 使用模块化技能。当技能评估显示“大型技能文件”警告时,请查阅此技能。 来源:athola/claude-night-market。
通过外部化、整合和渐进加载模式来减少技能文件大小的系统方法。当技能超过 300 行、具有类似功能的多个代码块(10+)、带有 Markdown 的大量 Python 内联、嵌入的函数超过 20 行时使用。技能低于300行且组织良好时请勿使用。创造新技能 - 使用模块化技能。当技能评估显示“大型技能文件”警告时,请查阅此技能。
通过命令行快速安装 optimizing-large-skills AI 技能到你的开发环境
来源:athola/claude-night-market。
Systematic methodology for reducing skill file size while preserving functionality through separation of concerns and strategic code organization.
Before: 654-line skill with heavy inline Python implementations After: 150-line skill with external tools and references
| Externalize Python modules | 60-70% reduction | Heavy implementations (>20 lines) | | Consolidate similar functions | 15-20% reduction | Repeated patterns with minor variations | | Replace code with structured data | 10-15% reduction | Configuration-driven logic | | Progressive loading patterns | 5-10% reduction | Multi-stage workflows |
通过外部化、整合和渐进加载模式来减少技能文件大小的系统方法。当技能超过 300 行、具有类似功能的多个代码块(10+)、带有 Markdown 的大量 Python 内联、嵌入的函数超过 20 行时使用。技能低于300行且组织良好时请勿使用。创造新技能 - 使用模块化技能。当技能评估显示“大型技能文件”警告时,请查阅此技能。 来源:athola/claude-night-market。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/athola/claude-night-market --skill optimizing-large-skills通过外部化、整合和渐进加载模式来减少技能文件大小的系统方法。当技能超过 300 行、具有类似功能的多个代码块(10+)、带有 Markdown 的大量 Python 内联、嵌入的函数超过 20 行时使用。技能低于300行且组织良好时请勿使用。创造新技能 - 使用模块化技能。当技能评估显示“大型技能文件”警告时,请查阅此技能。 来源:athola/claude-night-market。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/athola/claude-night-market --skill optimizing-large-skills 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/athola/claude-night-market