role

role is a skill for Claude Code, Codex from masa-san-jp/Agent-Aiko. It costs 96 tokens per session (1,135 once invoked), scanned A, original, MIT.

A command for loading a named work role into the current agent session. A role is a set of purpose, skills, tools, principles, and decision rules for a type of work.

In plain words
What is it for?
Use it to list available roles, switch to a role, or check which role is active.
Why use it?
It lets the agent use the instructions for a finance, HR, operations, sales, research, or other role without changing its underlying persona.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to list available roles, switch to a role, or check which role is active.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/masa-san-jp/agent-aiko/role
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add masa-san-jp/Agent-Aiko --skill role
Clone the repo
git clone --depth 1 https://github.com/masa-san-jp/Agent-Aiko

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for role

README.md
[![agentmods](https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/role/github.svg)](https://agentmods.dev/skills/masa-san-jp/agent-aiko/role)
Your own site
<a href="https://agentmods.dev/skills/masa-san-jp/agent-aiko/role"><img src="https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/role/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for role

Your own site · 80×15
<a href="https://agentmods.dev/skills/masa-san-jp/agent-aiko/role"><img src="https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/role.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,135 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00096 $0.01135
Opus 5 $0.00048 $0.00567
Sonnet 5 $0.00019 $0.00227
Haiku 4.5 $0.00010 $0.00113

Measured 9d ago against content hash 5967fdedef57, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

role scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

reference/skills/role/SKILL.md · 71 lines

How it starts

The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/role

capability manifest を解決して、そのロールのコンテキストを現在のセッションに注入する role-switch resolver の参考実装。パス・ロール名は各組織の構成に合わせて調整して使う。

ロールは 1 つの capability manifest(purpose・required_skills・required_tools・原則・判断基準など)で定義される。このスキルはその manifest を読み込んでコンテキストとして注入するだけで、エージェント本体(人格 base)は切り替えない

引数

/role <name>       # 例:finance / hr / ops / sales / pr / research
/role list         # 利用可能なロール一覧(manifest が存在するもの)
/role status       # 現在アクティブなロール(最後に適用したもの)

実行手順

  1. <name> の manifest を解決する。既定は {{ORG_REPO_PATH}}/Agent-team/roles/<name>/manifest.json。 エージェント固有のロールを持つ構成では {{ORG_REPO_PATH}}/Agent-team/agents/<agent>/capability/manifest.json を優先してよい(探索先は自組織の配置に合わせる)
  2. purpose は manifest の purpose、または manifest が指す operating-model ドキュメントから取る
  3. required_skills エントリを解決する:skills/<entry>.md / skills/<entry>.py / skills/<entry>/SKILL.md の順で最初に一致したもの
  4. required_tools{{ORG_REPO_PATH}}/Agent-team/tools/<tool>/ 配下で解決する(<tool> はツール名。ロール名 <name> とは別のプレースホルダ)
  5. communication / common_principles / decision_criteria / prohibitions / imported_capabilities はコンテキストとして扱う
  6. 切替イベントを {{ORG_REPO_PATH}}/Agent-team/logs/role-events/<role>/YYYY-MM-DD.jsonl に 1 行追記する

注入フォーマット

切替時、以下を内部コンテキストとして扱う(ユーザーへの報告は「切り替えました」を 1〜2 行のみ):

[role: <name>]
purpose: <manifest の purpose または operating-model の要約>
manifest_file: <解決された manifest のパス>
communication: <manifest communication>
common_principles: <manifest common_principles>
decision_criteria: <manifest decision_criteria>
prohibitions: <manifest prohibitions>
imported_capabilities: <manifest imported_capabilities>
required_skills:
  - <skill1>: <SKILL.md description の先頭 80 文字>
  - <skill2>: ...
required_tools:
  - <tool1>: <tools/<tool>/README.md の先頭 80 文字(あれば)>

切替報告(ユーザー向け)

ロール "<name>" に切り替えました。
- Required skills: <件数>(例:agent-call / log-push / ...)
- Required tools: <件数>(例:agent-call / peer-inbox / ...)
- Purpose: <manifest からの 1 行要約>

制約

  • 人格 base 不変:人格の切替とは独立。ロールのコンテキストを注入するだけで、人格そのものは切り替えない
  • データスコープはエージェントに従う:各エージェントは自分の data root を保持し、このスキルはそれを変更しない
  • 再帰禁止:切替後にさらに別ロールへ切り替えたい場合は新しいセッションを推奨(コンテキストを clean に保つ)
  • エラー処理:manifest が無い、または required_skills が解決できない場合は切替を中止し、何が欠けているかを報告する

Read the full file on GitHub · 71 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 71 lines · 96 tokens per session scan A 5967fdedef57

Subscribe to this mod's changes

role is a skill published in the GitHub repository masa-san-jp/Agent-Aiko (3 stars, last pushed 1mo ago), licensed MIT. It adds 96 tokens to every session and 1,135 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.