Agent Sorting Hat

v0.1.0

Diagnose agent role drift, team-structure problems, operating issues, and role misalignment; then redesign roles, boundaries, and team placement before perso...

0· 110·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for child2d/agent-sorting-hat.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Agent Sorting Hat" (child2d/agent-sorting-hat) from ClawHub.
Skill page: https://clawhub.ai/child2d/agent-sorting-hat
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install agent-sorting-hat

ClawHub CLI

Package manager switcher

npx clawhub@latest install agent-sorting-hat
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

latestvk97fdxc55pcv9x140przngmpxx840wda
110downloads
0stars
1versions
Updated 3w ago
v0.1.0
MIT-0

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.

Comments

Loading comments...