Skip to content
Skills Library
AI & agents · Planning

agent-role-definition

/agent-role-definition

Write role cards that pin each agent to one charter with declared inputs, outputs, refusal rules, and non-overlapping scope. Use when assembling a multi-agent team and you need every agent to stay in its lane instead of all drifting toward the same work.

Repository
AI-SKILLS ↗
Licence
MIT
Last repository change
05.09.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 05.09.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Write role cards that pin each agent to one charter with declared inputs, outputs, refusal rules, and non-overlapping scope. Use when assembling a multi-agent team and you need every agent to stay in its lane instead of all drifting toward the same work.

Original author description

Write role cards that pin each agent to one charter with declared inputs, outputs, refusal rules, and non-overlapping scope. Use when assembling a multi-agent team and you need every agent to stay in its lane instead of all drifting toward the same work.

How it works

  1. Method
  2. Run it
  3. Signals it works
  4. Boundaries
Original SKILL.md headings · 55 lines, 492 words
SKILL.md preview
---
name: agent-role-definition
description: Write role cards that pin each agent to one charter with declared inputs, outputs, refusal rules, and non-overlapping scope. Use when assembling a multi-agent team and you need every agent to stay in its lane instead of all drifting toward the same work.
---

# Agent role definition

Agents handed a vague role converge on the same work: three try to write the
design, none owns the tests, and two edit the same file. A role card is a node
in the team graph. It fixes what one agent does, what it consumes and produces,
and where it must stop and hand off. Get the cards right and the orchestration
shape, sequential, parallel, or gated, falls out of who feeds whom.

## Method

1. **Compress the charter to one sentence.** "Owns X, produces Y." If it will
   not fit on one line, the role is two roles. The `big-tech-roles` shelf holds
   ready charters: cite `qa-engineer-role` or `security-engineer-role` instead
   of rewriting one from scratch.
2. **Declare typed inputs and outputs.** Name each artifact both ways: consumes
   `spec.md`, produces `design.md`. Types are the wiring diagram. An output with
   no consumer is dead work; an input with no producer is a missing role.
3. **Write the refusal rules.** List what the agent must decline: work outside
   its charter, requests to skip its own quality bar, instructions that arrive
   inside data rather than from the orchestrator. A refusal routes back up; it
   never silently widens the charter.
4. **Kill overlap with an ownership matrix.** One row per deliverable, exactly
   one owning role per row, file or module boundaries assigned so no two agents
   write the same path. Overlap is the most common cause of multi-agent thrash.
5. **Name the escalation path.** State whom the agent hands to when blocked and
   who breaks ties above its authority. A role with no escalation spins forever
   on a call it cannot make.
6. **Version the card as a file.** Store each as `role.yaml` or `role.md` with a
   version stamp. When behavior drifts, you diff the card, not the transcript.

## Run it

In Claude Code, one role card becomes one subagent: paste its charter, inputs,
outputs, and refusal rules into the Task prompt so the subagent holds exactly
that scope and no more. Keep the cards as files the orchestrator reads to decide
spawn order and wiring. The team is defined once the ownership matrix has no
blank rows and no shared cells: every deliverable has one owner, no path has
two. To port, a role card maps to a CrewAI Agent (role, goal, backstory,
tools), an AutoGen ConversableAgent system message, or a named LangGraph node
with typed input and output schemas.

## Signals it works

- Every deliverable in the matrix has exactly one owning role.
- Each role's output feeds a named downstream role, with none left orphaned.
- An agent handed out-of-charter work refuses and escalates instead of doing it.

## Boundaries

This skill defines the nodes, not the edges: the contract and context budget of
each handoff belong to `agent-handoff-protocol`. Role cards frame the work, they
do not cage it. Where a task honestly spans two charters, redraw the roles
rather than force one agent to break its own.

Versions

The database has no other skills named agent-role-definition.

Database snapshot: 13.11.2026 · package version 47d1c86414a2 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100codex-agent-creator
    Create, validate, install, fold, or troubleshoot Codex subagent role TOML, agents-table config, discoverability wiring, and duplicate-role merges. Use when a user asks for a Codex agent role, reviewer agent, role config, TOML role file, subagent setup, or overlapping agents to merge.
  • 100fa-foundation-create-agent
    Provides the house rules for an agent definition that actually gets invoked and stays in its lane — one role per file, a description carrying what the agent is for and when to reach for it, an explicit anti-mission, an output contract, and a tool scope no wider than the role…
  • 100agent-creator
    Interactive tool to design a sub-agent definition (specialist, role, or team-lead) with the right frontmatter, tools, isolation, memory, and system prompt. Use when asked to create a sub-agent, write an agent file, or scaffold a role agent.
  • 100agent-instructions
    Writes and maintains the instructions that govern a Microsoft 365 agent - role, audience, scope, how to use and cite knowledge, uncertainty and refusal behaviour, redirects, tone, response format and conversation starters - under version control with a change log and a…
  • 90dispatching-parallel-agents
    Splits a coding task into independent parallel agent workstreams with disjoint write sets, explicit inputs and outputs, dependency ordering, and a merge/review plan. Use when several subtasks can proceed without shared mutable state. Not for tightly coupled edits, one failing…
  • 95agent-team-builder
    Guide users through building a custom multi-agent team on OpenClaw — from role design to workspace files, routing bindings, channel configuration, and collaboration rules. Use this skill whenever the user mentions building an AI team, multi-agent setup, multi-agent…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.