diff --git a/.iflow/commands/cleanproject.toml b/.iflow/commands/cleanproject.toml new file mode 100644 index 0000000..563b33c --- /dev/null +++ b/.iflow/commands/cleanproject.toml @@ -0,0 +1,11 @@ +# Command: cleanproject +# Description: Clean up development artifacts while preserving your working code +# Category: utility +# Version: 1 +# Author: 10169 + +description = "Clean up development artifacts while preserving your working code" + +prompt = """ +I'll help clean up development artifacts while preserving your working code. I'll identify cleanup targets using native tools: Glob tool to find temporary and debug files, Grep tool to detect debug statements in code, Read tool to verify file contents before removal. Critical directories are automatically protected: .claude directory (commands and configurations), .git directory (version control), node_modules, vendor (dependency directories), Essential configuration files. When I find multiple items to clean, I'll create a todo list to process them systematically. +""" diff --git a/.iflow/commands/commit.toml b/.iflow/commands/commit.toml new file mode 100644 index 0000000..71d7056 --- /dev/null +++ b/.iflow/commands/commit.toml @@ -0,0 +1,11 @@ +# Command: commit +# Description: Analyze your changes and create a meaningful commit message +# Category: utility +# Version: 1 +# Author: 10169 + +description = "分析您的更改并创建有意义的提交消息" + +prompt = """ +我会分析您的更改并创建一条有意义的提交消息。提交前,我会验证以下事项:构建通过(如果存在构建命令)、测试通过(如果存在测试命令)、Linter 通过(如果存在 lint 命令)、更改的文件中没有明显错误。我会分析更改,以确定修改了哪些文件、更改的性质(功能、修复、重构等)以及受影响的范围/组件。基于分析结果,我会创建一条常规的提交消息,其中包含类型(功能|修复|文档|样式|重构|测试|杂项)、范围(受影响的组件或区域)、主题(用现在时清晰描述)和正文(如果需要,说明更改的原因)。 +""" diff --git a/.iflow/commands/docs.toml b/.iflow/commands/docs.toml new file mode 100644 index 0000000..6e8a14f --- /dev/null +++ b/.iflow/commands/docs.toml @@ -0,0 +1,11 @@ +# Command: docs +# Description: Smart documentation management and updates +# Category: documentation +# Version: 1 +# Author: 10169 + +description = "智能文档管理和更新" + +prompt = """ +我将根据代码变更更新、整理和维护文档,帮助您智能地管理文档。我将同步文档与实现变更,识别过时的章节,提出改进建议,并确保文档之间的一致性。功能包括自动文档更新、交叉引用链接、版本跟踪和质量评估。 +"""