A structural diagnostic skill used to identify and fix AI agent role misalignment, team gaps, and boundary issues before persona refinement.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install agent-sorting-hat
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install agent-sorting-hat using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Agent Sorting Hat is a foundational architectural skill for managing complex multi-agent systems. It addresses the common problem of agent role drift, where an AI assistant becomes overloaded or its responsibilities become blurred over time. By forcing a diagnostic check before persona polishing, it ensures that agents are placed in the correct functional positions within a team structure. This skill is a core part of the Openclaw Skills ecosystem for developers who need to build scalable, predictable agentic workflows.
The philosophy of this skill is to prioritize placement over personality. It helps developers determine if an agent is simply in the wrong job, if a single role should be split into multiple specialized roles, or if a capability should remain reserved rather than instantiated. By establishing clear boundaries and handoff protocols, Agent Sorting Hat creates a stable foundation for more detailed character and identity work.
To deploy this skill within your environment, ensure the skill definition is accessible to your orchestrator. Use the following structure to initiate a diagnostic session:
# Trigger a role alignment audit for a specific team directory
openclaw-agent run agent-sorting-hat --path ./project/agents
Ensure that you have read access to all relevant persona and team-state documents to allow the skill to identify the full task chain accurately.
The skill produces a structured diagnostic output and a role map organized as follows:
| Data Component | Format | Description |
|---|---|---|
| Diagnosis Report | Markdown List | Identifies primary problem types (e.g., Role Misalignment, Team Gap) and logic. |
| Role Alignment | Markdown List | Specifies which agents stay, move, split, or merge. |
| Team Map | Structured List | Details core responsibilities, non-responsibilities, and handoff directions for each role. |
| Update Sequence | Numbered List | A prioritized plan for editing team docs, registry files, and then persona files. |
Loading
A specialized skill for AI agents to perform systematic literature reviews and complex multi-step research synthesis.

A robust logging utility for Openclaw Skills that records tool call lifecycles to ensure security, accountability, and performance monitoring.

A specialized AI agent skill for solving complex physical equations and performing high-fidelity numerical simulations for scientific research.

A comprehensive machine learning skill for AI agents to manage the full model lifecycle from training and evaluation to decentralized deployment.

A specialized framework for defining and enforcing role-based tool access for AI subagents to ensure safe and efficient task execution.

A multi-layered memory architecture that combines semantic search with structured Markdown storage to maintain persistent AI agent context.








































