You've already forked template-MP-ts
- 添加了三个新的 iFlow CLI 命令配置文件
- cleanproject.toml: 用于清理开发工件的命令 - commit.toml: 用于分析更改并创建有意义提交消息的命令 - docs.toml: 用于智能文档管理和更新的命令 - 这些命令将帮助提高开发效率和项目维护质量
This commit is contained in:
11
.iflow/commands/cleanproject.toml
Normal file
11
.iflow/commands/cleanproject.toml
Normal file
@@ -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.
|
||||||
|
"""
|
||||||
11
.iflow/commands/commit.toml
Normal file
11
.iflow/commands/commit.toml
Normal file
@@ -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 命令)、更改的文件中没有明显错误。我会分析更改,以确定修改了哪些文件、更改的性质(功能、修复、重构等)以及受影响的范围/组件。基于分析结果,我会创建一条常规的提交消息,其中包含类型(功能|修复|文档|样式|重构|测试|杂项)、范围(受影响的组件或区域)、主题(用现在时清晰描述)和正文(如果需要,说明更改的原因)。
|
||||||
|
"""
|
||||||
11
.iflow/commands/docs.toml
Normal file
11
.iflow/commands/docs.toml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# Command: docs
|
||||||
|
# Description: Smart documentation management and updates
|
||||||
|
# Category: documentation
|
||||||
|
# Version: 1
|
||||||
|
# Author: 10169
|
||||||
|
|
||||||
|
description = "智能文档管理和更新"
|
||||||
|
|
||||||
|
prompt = """
|
||||||
|
我将根据代码变更更新、整理和维护文档,帮助您智能地管理文档。我将同步文档与实现变更,识别过时的章节,提出改进建议,并确保文档之间的一致性。功能包括自动文档更新、交叉引用链接、版本跟踪和质量评估。
|
||||||
|
"""
|
||||||
Reference in New Issue
Block a user