← Back to Skills Marketplace
child2d

Agent Sorting Hat

by child2d · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ Security Clean
114
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install agent-sorting-hat
Description
Diagnose agent role drift, team-structure problems, operating issues, and role misalignment; then redesign roles, boundaries, and team placement before perso...
README (SKILL.md)

Agent Sorting Hat

Use this skill when an existing agent or agent team feels wrong, overloaded, blurred, under-specified, or misaligned.

This skill is for sorting / alignment / placement. It is not for final persona polishing, identity-binding, or character-soul refinement.

If the problem is “this agent seems off,” “this team boundary is unclear,” “should this be one agent or three,” or “this role keeps drifting,” use this skill before rewriting persona files.

Use this skill when

Trigger on requests like:

  • “This agent feels wrong.”
  • “She keeps giving plans but not executing.”
  • “This persona and its job seem mismatched.”
  • “We need to rebuild this agent.”
  • “These agents have blurry boundaries.”
  • “Should this be split into multiple roles?”
  • “Do we need a new agent, or is the current one just in the wrong position?”
  • “Our team structure is off.”

Do not use this skill for

Do not use this skill as the first choice when:

  1. The user only wants persona refinement, tone reshaping, identity-binding, or stronger character feel.
    • Use ollivanders-agent-shop instead.
  2. The user wants a brand-new agent from scratch with no role-drift or team-structure question.
    • Use the most appropriate creation/persona skill instead.
  3. The user only wants a small wording tweak to one file.
    • Edit directly if no deeper role problem exists.

Core rule

Diagnose placement before personality.

Do not jump into persona rewriting until you have checked whether the real problem is:

  1. Role misalignment — the agent is in the wrong job.
  2. Team gap — one agent is covering too many incompatible responsibilities.
  3. Operating problem — the role is correct, but the workflow, subagent use, delegation judgment, or output pattern is broken.
  4. Persona problem — the role is correct, but the tone, identity, or character grounding is weak.

Use this order strictly:

  1. Role misalignment
  2. Team gap
  3. Operating problem
  4. Persona problem

Required workflow

Follow these steps in order.

1. Read the current role context

Read only the files needed to understand the current situation, typically:

  • the target agent’s role/persona files
  • any relevant team/proposal docs
  • any current-team-state or registry documents
  • one or two strong comparison examples, if relevant

2. Identify the task chain

Determine the actual work chain behind the problem.

Typical chain examples:

  • research / analysis
  • design / strategy
  • execution / production
  • audit / risk
  • quality control
  • coordination / integration

Do not start by asking “who is this character?” Start by asking: what work chain is actually happening here?

3. Diagnose the problem type

Classify the issue into one or more of:

  • role misalignment
  • team gap
  • operating problem
  • persona problem

State clearly which one is primary.

4. Decide whether to keep, split, merge, or reserve

For each affected role, determine whether it should:

  • stay where it is
  • move to a different role position
  • split into two or more roles
  • merge with another role
  • become a reserved capability instead of an instantiated agent

5. Redesign the team placement

Produce a cleaner role map that explains:

  • who owns which stage
  • what each role is responsible for
  • what each role is not responsible for
  • what the handoffs are
  • which roles are long-term, stage-based, or reserved

6. Update the rewrite order

Before editing files, determine the correct order of change.

Usually:

  1. proposal / team-level docs
  2. current team state
  3. target role files
  4. downstream linked roles
  5. persona refinement only if still needed

7. Only then refine persona files

After placement is correct, refine the target agent’s files.

If the role still needs deeper persona grounding after placement is fixed, hand off to ollivanders-agent-shop.

Output requirements

Your output should include all of the following.

A. Diagnosis

State:

  1. the primary problem type
  2. any secondary problem types
  3. why you made that diagnosis

B. Role alignment result

State:

  1. which roles should remain
  2. which roles should move
  3. which roles should split
  4. which capabilities should remain reserved for now

C. Team structure result

State clearly:

  1. each role’s one-line position
  2. each role’s core responsibility
  3. each role’s non-responsibility
  4. handoff directions between roles

D. Change plan

State:

  1. which docs should change first
  2. which role files should change next
  3. whether persona refinement is still needed afterward

Good sorting behavior

Do:

  • keep the team as small as possible while preserving clarity
  • prefer role clarity over role quantity
  • preserve good existing roles when possible
  • treat “reserve, don’t instantiate yet” as a valid outcome
  • distinguish structure problems from personality problems

Do not:

  • assume more agents is always better
  • rewrite persona first when the role is wrong
  • create a new role just because a task feels messy
  • confuse “strong character flavor” with “good team placement”

Relationship to other skills

agent-sorting-hat

Use for:

  • role alignment
  • team restructuring
  • capability splitting/merging
  • deciding placement and boundaries
  • determining whether a role should exist, move, split, or stay reserved

ollivanders-agent-shop

Use for:

  • persona shaping
  • identity-binding
  • character grounding
  • making the role feel right after its placement is correct

Recommended order:

  1. agent-sorting-hat to put the role in the right place
  2. ollivanders-agent-shop to make the role deeply itself

Minimal mental model

  • Sorting Hat decides where the role belongs.
  • Ollivanders helps the role hold the right wand.

Placement first. Soul refinement second.

Usage Guidance
This skill appears coherent and low-risk because it is instruction-only and requests no credentials or installs. Before enabling it: (1) review and restrict which files the agent can access so the skill only reads intended persona/team documents (avoid exposing secrets or system configs), (2) test the skill on non-sensitive example agents to confirm its behavior matches expectations, and (3) review any structural change plans it produces before applying edits. If you are uncomfortable with autonomous invocation, consider limiting how or when the agent can call this skill.
Capability Analysis
Type: OpenClaw Skill Name: agent-sorting-hat Version: 0.1.0 The agent-sorting-hat skill is a purely instructional framework (SKILL.md) designed to guide an AI agent through the process of diagnosing and restructuring agent roles and team hierarchies. It contains no executable code, shell commands, or network activity, and its instructions are strictly aligned with its stated purpose of organizational management without any signs of malicious intent or prompt-injection attacks.
Capability Assessment
Purpose & Capability
The name/description (agent role/team redesign) match the SKILL.md instructions. There are no unexpected required binaries, env vars, or installs — everything the skill asks the agent to do (read role/persona/team docs, diagnose, produce role maps and a change plan) is consistent with the stated purpose.
Instruction Scope
The SKILL.md is specific about steps (read role/persona/team docs, identify task chain, diagnose, redesign placement, then refine persona). It explicitly limits reading to 'only the files needed', and does not ask to call external endpoints or collect unrelated system data. However, the phrase 'read only the files needed' is somewhat open-ended and could be interpreted broadly by an agent; verify runtime access controls to ensure it only reads intended persona/team documents.
Install Mechanism
Instruction-only skill with no install spec and no code files. This minimizes surface area (no downloads, no archives, no third-party packages).
Credentials
The skill declares no environment variables, no credentials, and no config paths. Its recommended actions (reading persona/team docs and producing role maps) align with that. As a precaution, confirm that the agent runtime won't grant this skill access to unrelated secret files in the environment or registry.
Persistence & Privilege
always is false and autonomous invocation is the platform default; the skill does not request persistent presence or modify other skills or system-wide settings. This level of privilege is proportionate for a diagnostic/consulting skill.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install agent-sorting-hat
  3. After installation, invoke the skill by name or use /agent-sorting-hat
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
Initial release: role alignment, team restructuring, and agent placement skill.
Metadata
Slug agent-sorting-hat
Version 0.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Agent Sorting Hat?

Diagnose agent role drift, team-structure problems, operating issues, and role misalignment; then redesign roles, boundaries, and team placement before perso... It is an AI Agent Skill for Claude Code / OpenClaw, with 114 downloads so far.

How do I install Agent Sorting Hat?

Run "/install agent-sorting-hat" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Agent Sorting Hat free?

Yes, Agent Sorting Hat is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Agent Sorting Hat support?

Agent Sorting Hat is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Agent Sorting Hat?

It is built and maintained by child2d (@child2d); the current version is v0.1.0.

💬 Comments