From 73448d9dc978e1dc9bca1548f30a46cb5e840f5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A2=81=E6=B6=9B?= Date: Wed, 15 Oct 2025 01:21:40 +0800 Subject: [PATCH] =?UTF-8?q?=20=20-=20=E6=B7=BB=E5=8A=A0=E4=BA=86=E4=B8=89?= =?UTF-8?q?=E4=B8=AA=E6=96=B0=E7=9A=84=20iFlow=20CLI=20=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=20=20=20-=20cleanproject.t?= =?UTF-8?q?oml:=20=E7=94=A8=E4=BA=8E=E6=B8=85=E7=90=86=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E5=B7=A5=E4=BB=B6=E7=9A=84=E5=91=BD=E4=BB=A4=20=20=20-=20commi?= =?UTF-8?q?t.toml:=20=E7=94=A8=E4=BA=8E=E5=88=86=E6=9E=90=E6=9B=B4?= =?UTF-8?q?=E6=94=B9=E5=B9=B6=E5=88=9B=E5=BB=BA=E6=9C=89=E6=84=8F=E4=B9=89?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=B6=88=E6=81=AF=E7=9A=84=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=20=20=20-=20docs.toml:=20=E7=94=A8=E4=BA=8E=E6=99=BA=E8=83=BD?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E7=AE=A1=E7=90=86=E5=92=8C=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=9A=84=E5=91=BD=E4=BB=A4=20=20=20-=20=E8=BF=99=E4=BA=9B?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E5=B0=86=E5=B8=AE=E5=8A=A9=E6=8F=90=E9=AB=98?= =?UTF-8?q?=E5=BC=80=E5=8F=91=E6=95=88=E7=8E=87=E5=92=8C=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E7=BB=B4=E6=8A=A4=E8=B4=A8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .iflow/commands/cleanproject.toml | 11 +++++++++++ .iflow/commands/commit.toml | 11 +++++++++++ .iflow/commands/docs.toml | 11 +++++++++++ 3 files changed, 33 insertions(+) create mode 100644 .iflow/commands/cleanproject.toml create mode 100644 .iflow/commands/commit.toml create mode 100644 .iflow/commands/docs.toml 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 = """ +我将根据代码变更更新、整理和维护文档,帮助您智能地管理文档。我将同步文档与实现变更,识别过时的章节,提出改进建议,并确保文档之间的一致性。功能包括自动文档更新、交叉引用链接、版本跟踪和质量评估。 +"""