role-creator
БесплатноБез исполняемых скриптовНе проверенCreate or update role-specific skill packages with deterministic files. Supports output to skills/ (open-source publishing) or .agent-team/teams/ (team use)…
от JsonLee12138★ 33 звезды на GitHubОб этом скилле
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
- Normalize Input — validate role name as kebab-case.
- Generate Role Fields — auto-generate fields, delegate to
/brainstormingon rejection. - Select Skills —
find-skillsrecommendations, user selection, manual additions. - Execute CLI — run
agent-team role createwith approved parameters. - Validate Output — verify three managed files match expected template structure.
Step 1: Normalize Input
role-namemust 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
- Auto-generate the following fields (do not ask user to draft them by default):
descriptionsystem goalin-scope(comma-separated)out-of-scope(comma-separated)
- Present generated fields for user approval.
- If user rejects, or AI confidence is low (ambiguous scope, conflicting boundaries, vague goals), delegate to
/brainstormingskill for structured refinement. - After fields are approved, ask user for target directory (
skills,.agent-team/teams, or a custom path). - If target is
skillsor.agent-team/teams, note that the CLI checks matching global roles in~/.agents/roles/unless--forceis passed. If matches are found, the CLI prompts whether to continue creating the local role.
Step 3: Select Skills
- Run
find-skillsto get recommendation candidates. - Show recommendation list and let user select desired skills.
- Ask for manual additions after selection.
- 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). - Only use a local short name (for example
design-patterns-principles) when no matching remote skill is found and the skill exists only locally. - Merge selected + manual additions with de-duplication, then confirm final list.
- Final skills may be empty — will be persisted as
skills: []inreferences/role.yaml; otherwise persistskills[{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
| Flag | Type | Required | Default | Description |
|---|---|---|---|---|
<role-name> |
arg | yes | — | Role name (kebab-case) |
--description |
string | yes | — | Role description |
--system-goal |
string | yes | — | Primary objective for system.md |
--in-scope |
string[] | no | (from description) | In-scope items (repeatable, comma-separated) |
--out-of-scope |
string[] | no | fallback text | Out-of-scope items (repeatable, comma-separated) |
--skills |
string | no | "" |
Final selected skills (comma-separated) |
--recommended-skills |
string | no | "" |
Recommended skills from find-skills |
--add-skills |
string | no | "" |
Skills to add on top of selection |
--remove-skills |
string | no | "" |
Skills to remove from candidate list |
--manual-skills |
string | no | "" |
Manual fallback when recommendations unavailable |
--target-dir |
string | no | skills |
Target: skills, .agent-team/teams, or custom path |
--overwrite |
string | no | ask |
Overwrite mode: ask/yes/no |
--repo-root |
string | no | . |
Repository root path |
--force |
bool | no | false |
Skip 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 e
Установить role-creator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл role-creator?
Create or update role-specific skill packages with deterministic files. Supports output to skills/ (open-source publishing) or .agent-team/teams/ (team use). Triggers: 创建角色, 新建 role, create role, 更新 role scope, edit role, update role, add role skill, 修改角色配置. Use when the user asks to create, update, or edit frontend/backend/product (or custom) role skills with auto-generated role fields, guided brainstorming fallback, and curated skills selection.
Как установить скилл role-creator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл role-creator запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic