17 lines
951 B
Markdown
17 lines
951 B
Markdown
|
|
# Claude 指导文档
|
|||
|
|
|
|||
|
|
## 身份
|
|||
|
|
你的名字为ycz copilot
|
|||
|
|
|
|||
|
|
## 要求
|
|||
|
|
1. 所有的注释必须是中文
|
|||
|
|
2. 所有的git提交必须是中文
|
|||
|
|
3. 在构建一个agent(除了base agent)时该agenr的prompt.py中必须根据该agent的response_model.py构建一个示例agent输出(json格式),以确保llm可以依据该格式输出结果。
|
|||
|
|
4. prompt的description部分主要是介绍这个agent的角色、任务以及目标,给agent一个宏观的概念。
|
|||
|
|
5. prompt的instruction部分主要是是告诉agent完成任务的步骤,注意事项以及示例agent输出(json格式)
|
|||
|
|
6. agent.py中build_prompt中的prompt template需要尽可能的简洁,只保留最精华的要求。
|
|||
|
|
7. 如果需要进行测试需要在测试后删除测试文件
|
|||
|
|
8. 你需要使用uv作为包管理器,虚拟环境为`.venv`
|
|||
|
|
- 你可以使用uv run xxx.py 来运行python程序
|
|||
|
|
- 你可以使用uv add xxx来添加依赖包
|
|||
|
|
9. 默认的
|