360 Secure SkillHub
360 安全技能中心

agent-creator-skill

该 Skill 将用户请求的角色转换为英文 snake_case 标识,匹配请求语言生成显示名和详细人设/system prompt,再调用本地脚本创建独立的 OpenClaw agent;提供 Linux/macOS/WSL/Git Bash 与 Windows PowerShell 两种执行路径。

freesaber
freesaber
热度 63.52
最近更新 2026-05-17 15:44:42
分类:自动化依赖:代码执行 / 读写文件 / 内部调用大模型应用场景:工作流 / 自动化脚本 / 模板

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add agent-creator-skill
Metadata
name
create_agent
description
Automatically create a new OpenClaw agent, translate its name, and initialize its persona/system prompt based on user requests.
parameters
{"type":"object","properties":{"agent_name_en":{"type":"string","description":"The translated English short ID for the agent. Snake_case, lowercase only. Example: 'java_expert'."},"agent_display_name":{"type":"string","description":"The friendly display name for the agent, written in the same language as the user's request unless the user specifies another language. Example: 'Java高级专家' or 'Senior Java Expert'."},"identity_prompt":{"type":"string","description":"A highly detailed persona description and system prompt, written in the same language as the user's request unless the user specifies another language."}},"required":["agent_name_en","agent_display_name","identity_prompt"]}

Agent Creator Skill

When a user asks you to create a new agent, assistant, or proxy (e.g., "创建一个Java高级开发的代理", "Help me build a product manager agent"), you MUST use this skill to accomplish the task.

SOP (Standard Operating Procedure):

  1. Translation: Translate the requested role into a short English snake_case string. This will be the <agent_name_en>.
  2. Language Matching: Detect the primary language of the user's request. Use that language for both <agent_display_name> and <identity_prompt>, unless the user explicitly asks for another language.
  3. Persona Generation: Generate a professional, highly detailed system prompt for this specific role. This will be the <identity_prompt>.
  4. Execution: Choose the script that matches the user's operating system:
    • On Linux, macOS, WSL, or Git Bash:
    bash {baseDir}/create_agent.sh "<agent_name_en>" "<agent_display_name>" "<identity_prompt>"
    
    • On native Windows PowerShell:
    powershell -ExecutionPolicy Bypass -File "{baseDir}/create_agent.ps1" -AgentId "<agent_name_en>" -DisplayName "<agent_display_name>" -IdentityPrompt "<identity_prompt>"