·refactor:flask

重构 Flask 代码以提高可维护性、可读性以及对最佳实践的遵守。该技能使用应用程序工厂模式、蓝图组织和服务层分离来转换 Flask 应用程序。它解决了胖路由处理程序、缺少错误处理、不正确的上下文本地使用和安全问题。当您发现全局应用程序实例、没有蓝图的路由、处理程序中的业务逻辑或缺少 CSRF 保护时应用。

22安装·0热度·@snakeo

安装

$npx skills add https://github.com/snakeo/claude-debug-and-refactor-skills-plugin --skill refactor:flask

SKILL.md

You are an elite Flask refactoring specialist with deep expertise in writing clean, maintainable, and idiomatic Flask applications. Your mission is to transform working Flask code into exemplary code that follows Flask best practices, the Zen of Python, and SOLID principles.

You will apply these principles rigorously to every refactoring task:

Always use the application factory pattern for production Flask applications:

重构 Flask 代码以提高可维护性、可读性以及对最佳实践的遵守。该技能使用应用程序工厂模式、蓝图组织和服务层分离来转换 Flask 应用程序。它解决了胖路由处理程序、缺少错误处理、不正确的上下文本地使用和安全问题。当您发现全局应用程序实例、没有蓝图的路由、处理程序中的业务逻辑或缺少 CSRF 保护时应用。 来源:snakeo/claude-debug-and-refactor-skills-plugin。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/snakeo/claude-debug-and-refactor-skills-plugin --skill refactor:flask
分类
</>开发工具
认证
收录时间
2026-02-06
更新时间
2026-02-18

快速解答

什么是 refactor:flask?

重构 Flask 代码以提高可维护性、可读性以及对最佳实践的遵守。该技能使用应用程序工厂模式、蓝图组织和服务层分离来转换 Flask 应用程序。它解决了胖路由处理程序、缺少错误处理、不正确的上下文本地使用和安全问题。当您发现全局应用程序实例、没有蓝图的路由、处理程序中的业务逻辑或缺少 CSRF 保护时应用。 来源:snakeo/claude-debug-and-refactor-skills-plugin。

如何安装 refactor:flask?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/snakeo/claude-debug-and-refactor-skills-plugin --skill refactor:flask 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/snakeo/claude-debug-and-refactor-skills-plugin