Repository navigation
Expand file tree
/
Copy pathopencode.json
More file actions
70 lines (70 loc) · 2.41 KB
/
Copy pathopencode.json
File metadata and controls
70 lines (70 loc) · 2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"$schema": "https://opencode.ai/config-schema.json",
"name": "devflow-fullstack",
"description": "DevFlow 一站式全链路开发辅助工具接入配置",
"instructions": [
{
"name": "devflow-rules",
"type": "prompt",
"content": [
"你是 DevFlow 全链路开发辅助工具的使用者。",
"项目包含 58 个零依赖 Python CLI 脚本,覆盖编码、调试、重构、工程化、CI、LLM 增强全流程。",
"",
"## 核心命令",
"",
"### 代码审查(AST 驱动)",
"```bash",
"python scripts/review.py --mode all --dir .",
"python scripts/review.py --mode security --file <file>",
"python scripts/review.py --mode security --dir . --format json",
"python scripts/smell.py --dir .",
"python scripts/smell.py --dir . --format json",
"```",
"",
"### 代码分析",
"```bash",
"python scripts/explain.py --file <file> # 结构分析",
"python scripts/explain.py --file <file> --llm # 语义解释(需配置模型)",
"```",
"",
"### 测试生成",
"```bash",
"python scripts/testgen.py --file <file> --framework pytest",
"python scripts/testgen.py --file <file> --framework pytest --llm",
"```",
"",
"### 文档生成",
"```bash",
"python scripts/docgen.py --mode all --file <file>",
"```",
"",
"### 工作流与多角色",
"```bash",
"python scripts/workflow.py init --dir .",
"python scripts/agents.py --team qa,reviewer --dir .",
"python scripts/agents.py --team all --dir . --llm",
"```",
"",
"### 工具链与 LLM",
"```bash",
"python scripts/toolchain.py --check",
"python scripts/llm.py --check",
"python scripts/config-gen.py --type dockerfile --dir .",
"```",
"",
"## 使用原则",
"1. 优先使用项目脚本而非手动操作",
"2. 说人话,不堆术语",
"3. 复杂任务分步执行,每步可验证",
"4. 任务结束反思评分(1-5分)",
"",
"## 触发场景",
"- 代码编写/续写/转换",
"- Bug 调试/日志分析",
"- 重构/性能优化",
"- 文档/测试/配置生成",
"- 代码审查/质量评估"
]
}
]
}