Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

role-creator角色创造者

Agent Skill

role-creator 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,294

周安装

55

GitHub Stars

24

下载量

453
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:role-creator(角色创造者)
来源仓库:https://github.com/jsonlee12138/agent-team
仓库路径:skills/role-creator
安装命令:
npx skills add https://github.com/jsonlee12138/agent-team --skill role-creator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/jsonlee12138/agent-team --skill role-creator

简介

用于查找、检索和筛选相关信息。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

  • 适合按关键词快速定位候选结果。
  • 可结合来源仓库 README 进一步核验具体用法。
  • 安装前建议确认是否会触发联网或文件操作。
  • role-creator 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

role-creator

Generate a role skill package in a fixed contract:

  • <target>/SKILL.md
  • <target>/references/role.yaml
  • <target>/system.md

Target directory options:

  • skills/<role-name>/ — for open-source publishing (default)
  • .agent-team/teams/<role-name>/ — for team use with agent-team
  • <custom-path>/<role-name>/ — for custom local output paths

Required Workflow

  1. Normalize Input — validate role name as kebab-case.
  2. Generate Role Fields — auto-generate fields, delegate to /brainstorming on rejection.
  3. Select Skillsfind-skills recommendations, user selection, manual additions.
  4. Execute CLI — run agent-team role create with approved parameters.
  5. Validate Output — verify three managed files match expected template structure.

Step 1: Normalize Input

  • role-name must be kebab-case. The current CLI requires it as a positional argument.
  • If the input is not kebab-case, suggest a normalized version and confirm with user.

Step 2: Generate Role Fields

  1. Auto-generate the following fields (do not ask user to draft them by default):

- description - system goal - in-scope (comma-separated) - out-of-scope (comma-separated)

  1. Present generated fields for user approval.
  2. If user rejects, or AI confidence is low (ambiguous scope, conflicting boundaries, vague goals), delegate to /brainstorming skill for structured refinement.
  3. After fields are approved, ask user for target directory (skills, .agent-team/teams, or a custom path).
  4. If target is skills or .agent-team/teams, note that the CLI checks matching global roles in ~/.agents/roles/ unless --force is passed. If matches are found, the CLI prompts whether to continue creating the local role.

Step 3: Select Skills

  1. Run find-skills to get recommendation candidates.
  2. Show recommendation list and let user select desired skills.
  3. Ask for manual additions after selection.
  4. When confirming the final skill identifiers, prefer the full remote identifier if the skill is known from a remote source (for example jsonlee12138/prompts@design-patterns-principles).
  5. Only use a local short name (for example design-patterns-principles) when no matching remote skill is found and the skill exists only locally.
  6. Merge selected + manual additions with de-duplication, then confirm final list.
  7. Final skills may be empty — will be persisted as skills: [] in references/role.yaml; otherwise persist skills[{name, description}] using the preferred identifier rule above.

If find-skills is unavailable or returns empty, skip recommendations and ask for manual additions only. In that fallback path, still prefer a full remote identifier if the user already provides one; otherwise use a local short name only for local-only skills.

Step 4: Execute CLI

CLI Reference

FlagTypeRequiredDefaultDescription
<role-name>argyesRole name (kebab-case)
--descriptionstringyesRole description
--system-goalstringyesPrimary objective for system.md
--in-scopestring[]no(from description)In-scope items (repeatable, comma-separated)
--out-of-scopestring[]nofallback textOut-of-scope items (repeatable, comma-separated)
--skillsstringno""Final selected skills (comma-separated)
--recommended-skillsstringno""Recommended skills from find-skills
--add-skillsstringno""Skills to add on top of selection
--remove-skillsstringno""Skills to remove from candidate list
--manual-skillsstringno""Manual fallback when recommendations unavailable
--target-dirstringnoskillsTarget: skills, .agent-team/teams, or custom path
--overwritestringnoaskOverwrite mode: ask/yes/no
--repo-rootstringno.Repository root path
--forceboolnofalseSkip global duplicate check

Skills resolution priority: --skills > --recommended-skills > --manual-skills, then --add-skills appended, --remove-skills excluded.

Examples

For open-source publishing (default):

agent-team role create frontend-dev \
  --description "Frontend role for UI implementation" \
  --system-goal "Ship accessible and maintainable UI work" \
  --in-scope "Build components,Improve accessibility" \
  --out-of-scope "Database migrations,Backend API ownership" \
  --skills "ui-ux-pro-max,better-icons"

For team use (agent-team integration):

agent-team role create frontend-dev \
  --target-dir .agent-team/teams \
  --description "Frontend role for UI implementation" \
  --system-goal "Ship accessible and maintainable UI work" \
  --in-scope "Build components,Improve accessibility" \
  --out-of-scope "Database migrations,Backend API ownership" \
  --skills "ui-ux-pro-max,better-icons"

Empty skills example:

agent-team role create product-manager \
  --description "Product role for roadmap and PRD work" \
  --system-goal "Define clear product requirements and priorities"

Step 5: Validate Output

Verify three files against actual template structure:

  1. SKILL.md — contains the role name, generated description frontmatter, and links to references/role.yaml and system.md.
  2. references/role.yaml — must contain:

- name — role name - description — role description - system_prompt_file: system.md - scope.in_scope — list of in-scope items - scope.out_of_scope — list of out-of-scope items - constraints.single_role_focus: true - skills — selected skills as objects with name and description (or empty [])

  1. system.md — contains system goal and operating constraints.

If any file is missing or contains unexpected content relative to the current templates, report the discrepancy and offer to regenerate.

Overwrite Behavior

  • Controlled by --overwrite flag (ask/yes/no).
  • Current CLI does not create a backup directory when overwriting.
  • Only managed files are overwritten (SKILL.md, references/role.yaml, system.md); other files in the role directory are preserved.
  • Legacy root-level role.yaml is removed if present after generation.

Runtime Skill Discovery (Role Usage Guideline)

Generated roles should follow this behavior at runtime:

  1. When a role receives a task that requires a skill not listed in its references/role.yaml, it should invoke find-skills to search for a matching skill.
  2. If a suitable skill is found, it may only attempt project-level installation or use an already available local/project-cached skill.
  3. Global installation is not allowed for worker/runtime resolution.
  4. If the skill is still unavailable locally, emit a warning with the reason and suggested next step, then continue with best-effort execution.
  5. After successful use, suggest adding the skill to the role's references/role.yaml for future sessions by regenerating the role.
  6. If find-skills is unavailable or returns no match, the role should notify the user and proceed with best-effort execution.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.76%
按下载量换算162

Claude

31.71%
按下载量换算144

Cursor

18.59%
按下载量换算84

Gemini CLI

10.06%
按下载量换算46

安全审计

Gen Agent Trust Hub

可疑

Socket

可疑

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills