Prompt Override (#54) will override the AutoDev prompt with your own prompt.
How to use
create a folder named prompt/
in your project root directory, then create the prompt file which defined in Supported Action.
For example, create a file named prompts/sql/sql-gen-clarify.vm
, will override the clarify prompt of AutoSQL/GenSQL
Supported Action
├── cicd
│ └── generate-github-action.vm
├── code
│ ├── api-test-gen.vm
│ ├── code-gen.vm
│ └── test-gen.vm
├── error
│ └── fix-error.vm
├── harmonyos
│ ├── arkui-clarify.vm
│ └── arkui-design.vm
├── page
│ ├── page-gen-clarify.vm
│ └── page-gen-design.vm
├── practises
│ ├── code-review.vm
│ ├── gen-commit-msg.vm
│ ├── refactoring.vm
│ ├── release-note.vm
│ └── shell-suggest.vm
├── quick
│ └── quick-action.vm
├── sql
│ ├── sql-gen-clarify.vm
│ └── sql-gen-design.vm
└── sre
└── generate-dockerfile.vm
系统自带的 Prompt 文件在 src/main/resources/genius/
目录下,可以参考这些文件进行自定义(保持变量名一致)。
详细见:https://github.com/unit-mesh/auto-dev/tree/master/core/src/main/resources/genius