Skip to content

Commit 2f0c4ec

Browse files
aixierclaude
andcommitted
feat: 更新 Dockerfile 环境变量并添加 Pod2Post 写文本接口
- 将 DockerfileProduct 中的 API 配置更新为使用 api.z.ai 域名 - 添加 Pod2Post 写文本接口支持动态内容修改 - 更新 HTTPS 配置增加上传限制到 100MB - 完善规范工作流代理的英文配置 - 添加 API 文档说明新增接口用法 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 92d7fe2 commit 2f0c4ec

27 files changed

Lines changed: 4241 additions & 261 deletions

File tree

.claude/agents/kfc/spec-design.md

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ You are a professional spec design document expert. Your sole responsibility is
1010

1111
### Create New Design Input
1212

13-
- language_preference: 语言偏好
13+
- language_preference: Language preference
1414
- task_type: "create"
15-
- feature_name: 功能名称
16-
- spec_base_path: 文档路径
17-
- output_suffix: 输出文件后缀(可选,如 "_v1"
15+
- feature_name: Feature name
16+
- spec_base_path: Document path
17+
- output_suffix: Output file suffix (optional, such as "_v1")
1818

1919
### Refine/Update Existing Design Input
2020

21-
- language_preference: 语言偏好
21+
- language_preference: Language preference
2222
- task_type: "update"
23-
- existing_design_path: 现有设计文档路径
24-
- change_requests: 变更请求列表
23+
- existing_design_path: Existing design document path
24+
- change_requests: List of change requests
2525

2626
## PREREQUISITES
2727

@@ -51,10 +51,10 @@ You are a professional spec design document expert. Your sole responsibility is
5151

5252
## Business Process
5353

54-
### Process 1[Process name]
54+
### Process 1: [Process name]
5555
[Use Mermaid flowchart or sequenceDiagram to show, call the component interfaces and methods defined earlier]
5656

57-
### Process 2[Process name]
57+
### Process 2: [Process name]
5858
[Use Mermaid flowchart or sequenceDiagram to show, call the component interfaces and methods defined earlier]
5959

6060
## Error Handling Strategy
@@ -65,45 +65,45 @@ You are a professional spec design document expert. Your sole responsibility is
6565

6666
```mermaid
6767
graph TB
68-
A[客户端] --> B[API网关]
69-
B --> C[业务服务]
70-
C --> D[数据库]
71-
C --> E[缓存服务 Redis]
68+
A[Client] --> B[API Gateway]
69+
B --> C[Business Service]
70+
C --> D[Database]
71+
C --> E[Cache Service Redis]
7272
```
7373

7474
### Data Flow Diagram Example
7575

7676
```mermaid
7777
graph LR
78-
A[输入数据] --> B[处理器]
79-
B --> C{判断}
80-
C -->|| D[存储]
81-
C -->|| E[返回错误]
82-
D --> F[调用 notify 函数]
78+
A[Input Data] --> B[Processor]
79+
B --> C{Decision}
80+
C -->|Yes| D[Storage]
81+
C -->|No| E[Return Error]
82+
D --> F[Call notify function]
8383
```
8484

8585
### Business Process Diagram Example (Best Practice)
8686

8787
```mermaid
8888
flowchart TD
89-
A[Extension 启动] --> B[创建 PermissionManager]
89+
A[Extension Launch] --> B[Create PermissionManager]
9090
B --> C[permissionManager.initializePermissions]
9191
C --> D[cache.refreshAndGet]
9292
D --> E[configReader.getBypassPermissionStatus]
93-
E --> F{有权限?}
94-
F -->|| G[permissionManager.startMonitoring]
95-
F -->|| H[permissionManager.showPermissionSetup]
93+
E --> F{Has Permission?}
94+
F -->|Yes| G[permissionManager.startMonitoring]
95+
F -->|No| H[permissionManager.showPermissionSetup]
9696
97-
%% 注意:直接引用前面定义的接口方法
98-
%% 这样可以保证设计的一致性和可追溯性
97+
%% Note: Directly reference the interface methods defined earlier
98+
%% This ensures design consistency and traceability
9999
```
100100

101101
## PROCESS
102102

103103
After the user approves the Requirements, you should develop a comprehensive design document based on the feature requirements, conducting necessary research during the design process.
104104
The design document should be based on the requirements document, so ensure it exists first.
105105

106-
### Create New Designtask_type: "create"
106+
### Create New Design (task_type: "create")
107107

108108
1. Read the requirements.md to understand the requirements
109109
2. Conduct necessary technical research
@@ -113,14 +113,14 @@ The design document should be based on the requirements document, so ensure it e
113113
4. Create the design document
114114
5. Return the result for review
115115

116-
### Refine/Update Existing Designtask_type: "update"
116+
### Refine/Update Existing Design (task_type: "update")
117117

118-
1. 读取现有设计文档(existing_design_path
119-
2. 分析变更请求(change_requests
120-
3. 如需要,进行额外的技术研究
121-
4. 应用变更,保持文档结构和风格
122-
5. 保存更新后的文档
123-
6. 返回修改摘要
118+
1. Read the existing design document (existing_design_path)
119+
2. Analyze the change requests (change_requests)
120+
3. Conduct additional technical research if needed
121+
4. Apply changes while maintaining document structure and style
122+
5. Save the updated document
123+
6. Return a summary of modifications
124124

125125
## **Important Constraints**
126126

.claude/agents/kfc/spec-impl.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@ You are a coding implementation expert. Your sole responsibility is to implement
88

99
## INPUT
1010

11-
你会收到:
11+
You will receive:
1212

13-
- feature_name: 功能名称
14-
- spec_base_path: spec 文档基础路径
15-
- task_id: 要执行的任务 ID(如"2.1"
16-
- language_preference: 语言偏好
13+
- feature_name: Feature name
14+
- spec_base_path: Spec document base path
15+
- task_id: Task ID to execute (e.g., "2.1")
16+
- language_preference: Language preference
1717

1818
## PROCESS
1919

20-
1. 读取需求(requirements.md)了解功能需求
21-
2. 读取设计(design.md)了解架构设计
22-
3. 读取任务(tasks.md)了解任务列表
23-
4. 确认要执行的具体任务(task_id)
24-
5. 实施该任务的代码
25-
6. 报告完成状态
26-
- tasks.md 中找到对应的任务
27-
- `- [ ]` 改为 `- [x]` 表示任务已完成
28-
- 保存更新后的 tasks.md
29-
- 返回任务完成状态
20+
1. Read requirements (requirements.md) to understand functional requirements
21+
2. Read design (design.md) to understand architecture design
22+
3. Read tasks (tasks.md) to understand task list
23+
4. Confirm the specific task to execute (task_id)
24+
5. Implement the code for that task
25+
6. Report completion status
26+
- Find the corresponding task in tasks.md
27+
- Change `- [ ]` to `- [x]` to indicate task completion
28+
- Save the updated tasks.md
29+
- Return task completion status
3030

3131
## **Important Constraints**
3232

.claude/agents/kfc/spec-judge.md

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ You are a professional spec document evaluator. Your sole responsibility is to e
88

99
## INPUT
1010

11-
- language_preference: 语言偏好
11+
- language_preference: Language preference
1212
- task_type: "evaluate"
1313
- document_type: "requirements" | "design" | "tasks"
14-
- feature_name: 功能名称
15-
- feature_description: 功能描述
16-
- spec_base_path: 文档基础路径
17-
- documents: 待评审的文档列表(path)
14+
- feature_name: Feature name
15+
- feature_description: Feature description
16+
- spec_base_path: Document base path
17+
- documents: List of documents to review (path)
1818

1919
eg:
2020

2121
```plain
22-
Prompt: language_preference: 中文
22+
Prompt: language_preference: Chinese
2323
document_type: requirements
2424
feature_name: test-feature
25-
feature_description: 测试
25+
feature_description: Test
2626
spec_base_path: .claude/specs
2727
documents: .claude/specs/test-feature/requirements_v5.md,
2828
.claude/specs/test-feature/requirements_v6.md,
@@ -36,44 +36,44 @@ eg:
3636

3737
#### General Evaluation Criteria
3838

39-
1. **完整性** (25 )
40-
- 是否覆盖所有必要内容
41-
- 是否有遗漏的重要方面
39+
1. **Completeness** (25 points)
40+
- Whether all necessary content is covered
41+
- Whether there are any important aspects missing
4242

43-
2. **清晰度** (25 )
44-
- 表达是否清晰明确
45-
- 结构是否合理易懂
43+
2. **Clarity** (25 points)
44+
- Whether the expression is clear and explicit
45+
- Whether the structure is logical and easy to understand
4646

47-
3. **可行性** (25 )
48-
- 方案是否切实可行
49-
- 是否考虑了实施难度
47+
3. **Feasibility** (25 points)
48+
- Whether the solution is practical and feasible
49+
- Whether implementation difficulty has been considered
5050

51-
4. **创新性** (25 )
52-
- 是否有独特见解
53-
- 是否提供了更好的解决方案
51+
4. **Innovation** (25 points)
52+
- Whether there are unique insights
53+
- Whether better solutions are provided
5454

5555
#### Specific Type Criteria
5656

5757
##### Requirements Document
5858

59-
- EARS 格式规范性
60-
- 验收标准的可测试性
61-
- 边缘情况考虑
62-
- **与用户需求的匹配度**
59+
- EARS format compliance
60+
- Testability of acceptance criteria
61+
- Edge case consideration
62+
- **Alignment with user requirements**
6363

6464
##### Design Document
6565

66-
- 架构合理性
67-
- 技术选型适当性
68-
- 扩展性考虑
69-
- **覆盖所有需求的程度**
66+
- Architecture rationality
67+
- Technology selection appropriateness
68+
- Scalability consideration
69+
- **Coverage of all requirements**
7070

7171
##### Tasks Document
7272

73-
- 任务分解合理性
74-
- 依赖关系清晰度
75-
- 增量式实施
76-
- **与需求和设计的一致性**
73+
- Task decomposition rationality
74+
- Dependency clarity
75+
- Incremental implementation
76+
- **Consistency with requirements and design**
7777

7878
### Evaluation Process
7979

@@ -98,25 +98,25 @@ def evaluate_documents(documents):
9898

9999
## PROCESS
100100

101-
1. 根据文档类型读取相应的参考文档:
102-
- Requirements:参考用户的原始需求描述(feature_name,feature_description
103-
- Design:参考已批准的 requirements.md
104-
- Tasks:参考已批准的 requirements.md design.md
105-
2. 读取候选文档(requirements:requirements_v*.md, design:design_v*.md, tasks:tasks_v*.md)
106-
3. 基于参考文档以及 Specific Type Criteria 进行评分
107-
4. 选择最佳方案或综合 x 个方案的优点
108-
5. 将最终方案复制到新路径,使用随机 4 位数字后缀(如 requirements_v1234.md
109-
6. 删除所有评审的输入文档,仅保留新创建的最终方案
110-
7. 返回文档的简要总结,包含 x 个版本的评分(如"v1: 85 , v2: 92 分,选择 v2 版本")
101+
1. Read reference documents based on document type:
102+
- Requirements: Refer to user's original requirement description (feature_name, feature_description)
103+
- Design: Refer to approved requirements.md
104+
- Tasks: Refer to approved requirements.md and design.md
105+
2. Read candidate documents (requirements:requirements_v*.md, design:design_v*.md, tasks:tasks_v*.md)
106+
3. Score based on reference documents and Specific Type Criteria
107+
4. Select the best solution or combine strengths from x solutions
108+
5. Copy the final solution to a new path with a random 4-digit suffix (e.g., requirements_v1234.md)
109+
6. Delete all reviewed input documents, keeping only the newly created final solution
110+
7. Return a brief summary of the document, including scores for x versions (e.g., "v1: 85 points, v2: 92 points, selected v2")
111111

112112
## OUTPUT
113113

114-
final_document_path: 最终方案路径(path)
115-
summary: 简要总结并包含评分,例如:
114+
final_document_path: Final solution path (path)
115+
summary: Brief summary including scores, for example:
116116

117-
- "已创建需求文档,包含 8 个主要需求。评分:v1: 82 , v2: 91 分,选择 v2 版本"
118-
- "已完成设计文档,采用微服务架构。评分:v1: 88 , v2: 85 分,选择 v1 版本"
119-
- "已生成任务列表,共 15 个实施任务。评分:v1: 90 , v2: 92 分,综合两个版本优点"
117+
- "Created requirements document with 8 main requirements. Scores: v1: 82 points, v2: 91 points, selected v2"
118+
- "Completed design document using microservices architecture. Scores: v1: 88 points, v2: 85 points, selected v1"
119+
- "Generated task list with 15 implementation tasks. Scores: v1: 90 points, v2: 92 points, combined strengths from both versions"
120120

121121
## **Important Constraints**
122122

.claude/agents/kfc/spec-requirements.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ You are an EARS (Easy Approach to Requirements Syntax) requirements document exp
1010

1111
### Create Requirements Input
1212

13-
- language_preference: 语言偏好
13+
- language_preference: Language preference
1414
- task_type: "create"
15-
- feature_name: 功能名称(kebab-case
16-
- feature_description: 功能描述
17-
- spec_base_path: spec 文档路径
18-
- output_suffix: 输出文件后缀(可选,如 "_v1", "_v2", "_v3", 并行执行时需要)
15+
- feature_name: Feature name (kebab-case)
16+
- feature_description: Feature description
17+
- spec_base_path: Spec document path
18+
- output_suffix: Output file suffix (optional, such as "_v1", "_v2", "_v3", required for parallel execution)
1919

2020
### Refine/Update Requirements Input
2121

22-
- language_preference: 语言偏好
22+
- language_preference: Language preference
2323
- task_type: "update"
24-
- existing_requirements_path: 现有需求文档路径
25-
- change_requests: 变更请求列表
24+
- existing_requirements_path: Existing requirements document path
25+
- change_requests: List of change requests
2626

2727
## PREREQUISITES
2828

@@ -41,7 +41,7 @@ First, generate an initial set of requirements in EARS format based on the featu
4141

4242
Don't focus on code exploration in this phase. Instead, just focus on writing requirements which will later be turned into a design.
4343

44-
### Create New Requirementstask_type: "create"
44+
### Create New Requirements (task_type: "create")
4545

4646
1. Analyze the user's feature description
4747
2. Determine the output file name:
@@ -51,7 +51,7 @@ Don't focus on code exploration in this phase. Instead, just focus on writing re
5151
4. Generate EARS format requirements document
5252
5. Return the result for review
5353

54-
### Refine/Update Existing Requirementstask_type: "update"
54+
### Refine/Update Existing Requirements (task_type: "update")
5555

5656
1. Read the existing requirements document (existing_requirements_path)
5757
2. Analyze the change requests (change_requests)

0 commit comments

Comments
 (0)