Add files via upload

This commit is contained in:
公明
2026-01-15 23:56:41 +08:00
committed by GitHub
parent d80c5914df
commit 749cf6e37e
13 changed files with 93 additions and 2 deletions

View File

@@ -17,4 +17,6 @@ tools:
- record_vulnerability
- list_knowledge_risk_types
- search_knowledge_base
- list_skills
- read_skill
enabled: true

View File

@@ -30,4 +30,6 @@ tools:
- record_vulnerability
- list_knowledge_risk_types
- search_knowledge_base
- list_skills
- read_skill
enabled: true

67
roles/README.md Normal file
View File

@@ -0,0 +1,67 @@
# 角色配置文件说明
本目录包含所有角色配置文件每个角色定义了AI的行为模式、可用工具和技能。
## 创建新角色
创建新角色时,请在 `roles/` 目录下创建 YAML 文件,格式如下:
**方式1显式指定工具列表推荐**
```yaml
name: 角色名称
description: 角色描述
user_prompt: 用户提示词追加到用户消息前用于引导AI行为
icon: "图标(可选)"
tools:
# 添加你需要的工具...
# ⚠️ 重要建议包含以下5个内置MCP工具
- record_vulnerability
- list_knowledge_risk_types
- search_knowledge_base
- list_skills
- read_skill
enabled: true
```
**方式2不设置tools字段使用所有已开启的工具**
```yaml
name: 角色名称
description: 角色描述
user_prompt: 用户提示词追加到用户消息前用于引导AI行为
icon: "图标(可选)"
# 不设置tools字段将默认使用所有MCP管理中已开启的工具
enabled: true
```
## ⚠️ 重要提醒内置MCP工具
**如果设置了 `tools` 字段请务必在列表中添加以下5个内置MCP工具**
1. **`record_vulnerability`** - 漏洞管理工具,用于记录发现的漏洞
2. **`list_knowledge_risk_types`** - 知识库工具,列出可用的风险类型
3. **`search_knowledge_base`** - 知识库工具,搜索知识库内容
4. **`list_skills`** - Skills工具列出可用的技能
5. **`read_skill`** - Skills工具读取技能详情
这些内置工具是系统核心功能,建议所有角色都包含它们,以确保:
- 能够记录和管理发现的漏洞
- 能够访问知识库获取安全测试知识
- 能够查看和使用可用的安全测试技能
**注意**:如果不设置 `tools` 字段系统会默认使用所有MCP管理中已开启的工具包括这5个内置工具但为了明确控制角色可用的工具范围建议显式设置 `tools` 字段。
## 角色配置字段说明
- **name**: 角色名称(必填)
- **description**: 角色描述(必填)
- **user_prompt**: 用户提示词会追加到用户消息前用于引导AI采用特定的测试方法和关注点可选
- **icon**: 角色图标支持Unicode emoji可选
- **tools**: 工具列表,指定该角色可用的工具(可选)
- **如果不设置 `tools` 字段**:默认会选中**全部MCP管理中已开启的工具**
- **如果设置了 `tools` 字段**只使用列表中指定的工具建议至少包含5个内置工具
- **skills**: 技能列表,指定该角色关联的技能(可选)
- **enabled**: 是否启用该角色必填true/false
## 示例
参考本目录下的其他角色文件,如 `渗透测试.yaml``Web应用扫描.yaml` 等。

View File

@@ -22,4 +22,6 @@ tools:
- record_vulnerability
- list_knowledge_risk_types
- search_knowledge_base
- list_skills
- read_skill
enabled: true

View File

@@ -16,4 +16,6 @@ tools:
- record_vulnerability
- list_knowledge_risk_types
- search_knowledge_base
- list_skills
- read_skill
enabled: true

View File

@@ -28,4 +28,6 @@ tools:
- record_vulnerability
- list_knowledge_risk_types
- search_knowledge_base
- list_skills
- read_skill
enabled: true

View File

@@ -1,7 +1,7 @@
name: 云安全审计
description: 云安全审计专家,多云环境安全检测
user_prompt: 你是一个专业的云安全审计专家。请使用专业的云安全工具对AWS、Azure、GCP等云环境进行全面的安全审计包括配置检查、合规性评估、权限审计、安全最佳实践验证等工作。
icon: "\U00002601"
icon:
tools:
- prowler
- scout-suite
@@ -14,4 +14,6 @@ tools:
- record_vulnerability
- list_knowledge_risk_types
- search_knowledge_base
- list_skills
- read_skill
enabled: true

View File

@@ -28,4 +28,6 @@ tools:
- record_vulnerability
- list_knowledge_risk_types
- search_knowledge_base
- list_skills
- read_skill
enabled: true

View File

@@ -20,4 +20,6 @@ tools:
- record_vulnerability
- list_knowledge_risk_types
- search_knowledge_base
- list_skills
- read_skill
enabled: true

View File

@@ -15,4 +15,6 @@ tools:
- record_vulnerability
- list_knowledge_risk_types
- search_knowledge_base
- list_skills
- read_skill
enabled: true

View File

@@ -21,4 +21,6 @@ tools:
- record_vulnerability
- list_knowledge_risk_types
- search_knowledge_base
- list_skills
- read_skill
enabled: true

View File

@@ -30,4 +30,6 @@ tools:
- record_vulnerability
- list_knowledge_risk_types
- search_knowledge_base
- list_skills
- read_skill
enabled: true

View File

@@ -1,7 +1,7 @@
name: 综合漏洞扫描
description: 综合漏洞扫描专家,多类型漏洞检测
user_prompt: 你是一个专业的综合漏洞扫描专家。请使用各种漏洞扫描工具对目标进行全面的安全检测包括Web漏洞、网络服务漏洞、配置缺陷等多种类型的漏洞识别和分析。
icon: "\U000026A0"
icon:
tools:
- nuclei
- nikto
@@ -20,4 +20,6 @@ tools:
- record_vulnerability
- list_knowledge_risk_types
- search_knowledge_base
- list_skills
- read_skill
enabled: true