Manage and optimize custom agent definition files (IDENTITY.md, AGENTS.md, SOUL.md, TOOLS.md). Also handles first-time employee initialization when .workspace/ has no IDENTITY.md. Use when users want to edit agent identity, modify workflow instructions, adjust personality, add/remove tools, optimize prompts, or initialize a new employee from scratch. Trigger signals: 'modify prompt', 'change identity', 'add tool', 'remove tool', 'optimize workflow', 'adjust personality', 'initialize employee', '修改提示词', '改身份', '加工具', '去掉工具', '优化能力', '调性格', '初始化员工', '创建员工'. Do NOT use for: skill creation (use skill-creator), skill searching (use find_skills tool).
57
66%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./backend/super-magic/agents/skills/crew-creator/SKILL.md仅在用户明确要求多语言时才启用双语模式。双语格式以用户偏好语言为主语言(非注释部分),辅助语言放在注释中。
当 .magic/IDENTITY.md 不存在时,说明工作区尚未创建员工,需要引导用户初始化。
使用 list_dir 检查 .magic/ 目录。若 IDENTITY.md 不存在,进入初始化流程。
按以下顺序向用户收集信息,每次可合并多个问题,但不要一次问太多。
信息采集前,先确认用户偏好语言:查看 <user_preferred_language>,以该语言与用户交流并采集信息。
第一轮(必填信息):
仅当用户明确要求多语言时(如"需要中英文双语"),才额外询问对应的翻译。
第二轮(推荐但可选): 4. 角色定义:更详细地描述这个员工的能力、专长、工作方式(会写入 IDENTITY.md 正文) 5. 主要工作流程/规则:这个员工应该遵循什么样的工作流程?有什么特殊规则?(会写入 AGENTS.md)
第三轮(可选,用户可跳过): 6. 性格和沟通风格:希望员工有什么样的性格?(如:严谨、活泼、简洁等)(会写入 SOUL.md)
若用户表示"先这样"、"后面再说"等跳过意图,立即使用已收集的信息进行初始化,无需强制收集所有字段。
收集完信息后,将配置写入 JSON 文件,调用初始化脚本生成员工定义文件:
单语言模式(默认):
# 1. 将收集到的信息写入 JSON 配置(不需要 _cn 后缀字段)
write_file(
path=".crew_init_config.json",
content='{"name": "研究助手", "role": "学术研究员", "description": "专业的学术研究助手", "role_body": "你是一名学术研究员...", "instructions": "...", "personality": "..."}'
)
# 2. 调用初始化脚本
shell_exec(
command="python scripts/init_crew.py --config .workspace/.crew_init_config.json"
)仅当用户明确要求多语言时,才补充辅助语言字段(如 name_en, role_body_en 等):
write_file(
path=".crew_init_config.json",
content='{"name": "研究助手", "name_en": "Research Assistant", "role": "学术研究员", "role_en": "Academic Researcher", "description": "专业的学术研究助手", "description_en": "A professional research assistant", ...}'
)脚本根据配置生成以下文件(TOOLS.md 和 SKILLS.md 不生成,系统使用默认值):
IDENTITY.md — 始终生成(YAML header + 角色定义正文)AGENTS.md — 若提供了工作流指令则生成SOUL.md — 若提供了性格定义则生成read_files 向用户展示生成的文件内容delete_files(path=".crew_init_config.json")-->
Manages the 4 core employee definition files under .magic/, helping users view, edit, and optimize their employee's identity, instructions, personality, and tool configuration.
Also handles first-time employee initialization when the workspace has no definition files.
The system injects <user_preferred_language> indicating the user's preferred language. Follow these rules when generating employee files:
Default single-language mode: Generate all content in the user's preferred language, without <!--zh --> bilingual format. YAML header uses single-language fields only.
Only enable bilingual mode when the user explicitly requests multiple languages. In bilingual format, use the user's preferred language as primary (non-commented), with the auxiliary language in comments.
When .magic/IDENTITY.md does not exist, the workspace has no employee yet and you should guide the user through initialization.
Use list_dir to check .magic/. If IDENTITY.md is missing, enter the initialization flow.
Collect information in rounds; you may combine questions but don't overwhelm the user.
Before gathering, check user's preferred language: Look at <user_preferred_language>. Communicate and collect information in that language.
Round 1 (required):
Only ask for translations when the user explicitly requests multiple languages (e.g., "need bilingual support", "要支持中英文").
Round 2 (recommended but optional): 4. Role definition: A richer description of capabilities, expertise, and working style (goes into IDENTITY.md body) 5. Workflow / rules: What workflow should this employee follow? Any special rules? (goes into AGENTS.md)
Round 3 (optional, user may skip): 6. Personality and communication style: What personality should the employee have? (e.g. rigorous, lively, concise) (goes into SOUL.md)
If the user signals intent to skip ("先这样", "later", etc.), proceed immediately with whatever has been collected.
After collecting info, write a JSON config and call the init script:
Single-language mode (default):
# 1. Write collected info as JSON config (no _en suffix variants needed)
write_file(
path=".crew_init_config.json",
content='{"name": "Research Assistant", "role": "Academic Researcher", "description": "A professional research assistant", "role_body": "You are an academic researcher...", "instructions": "...", "personality": "..."}'
)
# 2. Call the init script
shell_exec(
command="python scripts/init_crew.py --config .workspace/.crew_init_config.json"
)Only when the user explicitly requests multiple languages, supplement with auxiliary language fields (e.g., name_cn, role_body_cn, etc.):
write_file(
path=".crew_init_config.json",
content='{"name": "Research Assistant", "name_cn": "研究助手", "role": "Academic Researcher", "role_cn": "学术研究员", "description": "A professional research assistant", "description_cn": "专业的学术研究助手", ...}'
)The script generates files based on the config (TOOLS.md and SKILLS.md are intentionally not created — the system uses defaults):
IDENTITY.md — always generated (YAML header + role definition body)AGENTS.md — generated if workflow instructions were providedSOUL.md — generated if personality was providedread_filesdelete_files(path=".crew_init_config.json")| 文件 | 维度 | 职责 | 是否必填 |
|---|---|---|---|
IDENTITY.md | WHO — 身份 | 名称、角色、描述 + 角色定义正文 | 必填 |
AGENTS.md | WHAT — 指令 | 工作流程、规则、特殊指令 | 推荐 |
SOUL.md | HOW — 性格 | 核心性格、沟通风格、行为准则 | 可选 |
TOOLS.md | WITH WHAT — 工具 | 工具白名单(YAML)+ 使用偏好 | 可选 |
read_files 读取目标文件的现有内容references/prompt-engineering-guide.mdreferences/crew-file-format.mdwrite_file 或 edit_file 写入文件每次完成编辑后,展示以下格式的摘要:
## 质量评估
| 检查项 | 状态 | 备注 |
|--------|------|------|
| 角色明确性 | ✅ | ... |
| 指令具体性 | ✅ | ... |
| 语言一致性(多语言时检查) | ✅ | ... |
| 格式规范性 | ✅ | ... |
| ... | ... | ... |IDENTITY.md 包含 YAML header(元数据)和正文(角色定义)两部分。
YAML header 字段:
name — 员工名称(用户偏好语言)role — 员工角色description — 员工描述name_cn/name_en, role_cn/role_en, description_cn/description_en正文部分:单语言模式直接编写。多语言模式使用 <!--xx --> 注释格式,用户偏好语言为活跃内容。
编辑要点:
纯 Markdown 文件,无 YAML header。定义此员工特有的工作方式和规则。
编辑要点:
纯 Markdown 文件,无 YAML header。定义员工的灵魂和行为准则。
编辑要点:
TOOLS.md 包含 YAML header(工具白名单)和可选正文(工具使用偏好)。
YAML header 格式:
---
tools:
- web_search
- read_files
- write_file
- ...
---编辑要点:
scripts/tools.py 脚本动态查询当用户要添加或移除工具时:
web_search, read_webpages_as_markdownread_files, write_file, edit_file 等run_python_snippet, shell_execvisual_understandingvideo_understandinggenerate_images使用 scripts/tools.py 动态扫描项目中所有已注册的工具(数据来源:config/tool_definitions.json)。
shell_exec(
command="python scripts/tools.py list"
)shell_exec(
command="python scripts/tools.py detail web_search"
)shell_exec(
command="python scripts/tools.py search image"
)默认单语言模式:staff 文件直接使用用户偏好语言编写,不使用 <!--zh --> 注释格式。
仅当用户明确要求多语言时,使用以下双语格式。用户偏好语言为主语言(非注释部分),辅助语言放在注释块中:
<!--zh
中文内容(辅助语言在注释中)
-->
English content(主语言为活跃内容)可阅读以下 reference 文档获取详细指南:
scripts/tools.py 动态查询)
-->Manages the 4 core employee definition files under .workspace/, helping users view, edit, and optimize their employee's identity, instructions, personality, and tool configuration.
| File | Dimension | Responsibility | Required |
|---|---|---|---|
IDENTITY.md | WHO — Identity | Name, role, description + role definition body | Required |
AGENTS.md | WHAT — Instructions | Workflow, rules, special directives | Recommended |
SOUL.md | HOW — Personality | Core personality, communication style, behavior guidelines | Optional |
TOOLS.md | WITH WHAT — Tools | Tool whitelist (YAML) + usage preferences | Optional |
read_files to read the target file's existing contentreferences/prompt-engineering-guide.mdreferences/crew-file-format.mdwrite_file or edit_file to saveAfter each edit, present:
## Quality Assessment
| Check Item | Status | Notes |
|------------|--------|-------|
| Role clarity | pass | ... |
| Instruction specificity | pass | ... |
| Language consistency (check if multilingual) | pass | ... |
| Format compliance | pass | ... |
| ... | ... | ... |Contains YAML header (metadata) and body (role definition).
YAML header fields: name, role, description in the user's preferred language. Only in multilingual mode, add auxiliary language variants: name_cn/name_en, role_cn/role_en, description_cn/description_en.
Body: Write directly in single-language mode. In multilingual mode, use <!--xx --> comment format with the user's preferred language as active content.
Key points:
Pure Markdown, no YAML header. Defines this employee's specific workflow and rules.
Key points: Prioritized instructions, numbered lists, decision logic (if/then/else), output format specs.
Pure Markdown, no YAML header. Defines the employee's personality and behavior guidelines.
Key points: Core traits (3-5 keywords + behavioral descriptions), communication style, behavior boundaries.
Contains YAML header (tool whitelist) and optional body (tool usage preferences).
Key points:
scripts/tools.py to query dynamicallyWhen users want to add or remove tools:
Use scripts/tools.py to dynamically scan all registered tools in the project (data source: config/tool_definitions.json).
shell_exec(
command="python scripts/tools.py list"
)shell_exec(
command="python scripts/tools.py detail web_search"
)shell_exec(
command="python scripts/tools.py search image"
)Default single-language mode: Write staff files directly in the user's preferred language, without <!--zh --> comment format.
Only when the user explicitly requests multiple languages, use the following bilingual format. The user's preferred language is the primary (non-commented) content; the auxiliary language goes inside comment blocks:
<!--zh
Chinese content (auxiliary language in comments)
-->
English content (primary language as active content)Reference documents with detailed guides:
scripts/tools.py for dynamic queries)41d7ef4
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.