Agent skill

Delegation Check

by catlog22 in catlog22/Claude-Code-Workflow

Check workflow delegation prompts against agent role definitions for content separation violations.

MITAuto-check: notesAgent Workflows

Install Delegation Check

skills CLI
$ npx skills add catlog22/Claude-Code-Workflow --skill delegation-check -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install catlog22/Claude-Code-Workflow delegation-check --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/catlog22/Claude-Code-Workflow.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/delegation-check .claude/skills/delegation-check && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
delegation-check
GitHub stars
2.1k
Token cost
~2.8k tokens
SKILL.md length
1,009 words
Files
2
Skills in repo
82
Repo updated
First seen
Licence
MIT

At a glance

Check workflow delegation prompts against agent role definitions for content separation violations.

  • Works in 7 steps: Determine Scan Scope → Discover Command-Agent Pairs → Parse Delegation Prompts → …
  • Check delegation
  • SKILL.md covers 1. Determine Scan Scope, 2. Discover Command-Agent Pairs, 3. Parse Delegation Prompts and 4. Parse Agent Definitions, plus 3 more sections
  • Calls just

What it does

Delegation Check is an agent skill from catlog22/Claude-Code-Workflow. Check workflow delegation prompts against agent role definitions for content separation violations. Detects conflicts, duplication, boundary leaks, and missing contracts. Triggers on "check delegation", "delegation conflict", "prompt vs role check".

Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `specs/separation-rules.md`).

It sits in Agent Workflows, covering Subagents and Multi-agent orchestration. The repository describes itself as: JSON-driven multi-agent cadence-team development framework with intelligent CLI orchestration (Gemini/Qwen/Codex), context-first architecture, and automated workflow execution. The licence is MIT.

When your agent uses it

  • Check delegation
  • Delegation conflict
  • Prompt vs role check

Example prompts

  • “check delegation”
  • “delegation conflict”
  • “prompt vs role check”
  • “/delegation-check”

Requirements

  • Pre-approved tools (allowed-tools): Read, Glob, Grep, Bash, AskUserQuestion

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Determine Scan Scope
  2. Discover Command-Agent Pairs
  3. Parse Delegation Prompts
  4. Parse Agent Definitions
  5. Run Conflict Checks (7 Dimensions)
  6. Aggregate and Report
  7. Present Results

What it can do on your machine

Read from SKILL.md and the folder at commit 07491b0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Glob
    • Grep
    • Bash
    • AskUserQuestion

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • just

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Delegation Check loads about 2.8k tokens when it runs. Until then it costs about 67 tokens; SKILL.md has 1,009 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~67
When it runs · the whole SKILL.md, loaded when a task matches
~2.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Glob, Grep, Bash, AskUserQuestion

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from catlog22/Claude-Code-Workflow at commit 07491b0, republished under its MIT licence (© catlog22). 1,009 words, ~2,757 tokens.

Download SKILL.mdSave it as .claude/skills/delegation-check/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
delegation-check
description
Check workflow delegation prompts against agent role definitions for content separation violations. Detects conflicts, duplication, boundary leaks, and missing contracts. Triggers on "check delegation", "delegation conflict", "prompt vs role check".
allowed-tools
Read, Glob, Grep, Bash, AskUserQuestion
<purpose>
Validate that command delegation prompts (Agent() calls) and agent role definitions respect GSD content separation boundaries. Detects 7 conflict dimensions: role re-definition, domain expertise leaking into prompts, quality gate duplication, output format conflicts, process override, scope authority conflicts, and missing contracts.

Invoked when user requests "check delegation", "delegation conflict", "prompt vs role check", or when reviewing workflow skill quality. </purpose>

<required_reading>

  • @.claude/skills/delegation-check/specs/separation-rules.md </required_reading>
<process>

1. Determine Scan Scope

Parse $ARGUMENTS to identify what to check.

SignalScope
File path to command .mdSingle command + its agents
File path to agent .mdSingle agent + commands that spawn it
Directory path (e.g., .claude/skills/team-*/)All commands + agents in that skill
"all" or no argsScan all .claude/commands/, .claude/skills/*/, .claude/agents/

If ambiguous, ask:

AskUserQuestion(
  header: "Scan Scope",
  question: "What should I check for delegation conflicts?",
  options: [
    { label: "Specific skill", description: "Check one skill directory" },
    { label: "Specific command+agent pair", description: "Check one command and its spawned agents" },
    { label: "Full scan", description: "Scan all commands, skills, and agents" }
  ]
)

2. Discover Command-Agent Pairs

For each command file in scope:

2a. Extract Agent() calls from commands:

bash
# Search both Agent() (current) and Task() (legacy GSD) patterns
grep -n "Agent(\|Task(" "$COMMAND_FILE"
grep -n "subagent_type" "$COMMAND_FILE"

For each Agent() call, extract:

  • subagent_type → agent name
  • Full prompt content between the prompt markers (the string passed as prompt=)
  • Line range of the delegation prompt

2b. Locate agent definitions:

For each subagent_type found:

bash
# Check standard locations
ls .claude/agents/${AGENT_NAME}.md 2>/dev/null
ls .claude/skills/*/agents/${AGENT_NAME}.md 2>/dev/null

2c. Build pair map:

$PAIRS = [
  {
    command: { path, agent_calls: [{ line, subagent_type, prompt_content }] },
    agent: { path, role, sections, quality_gate, output_contract }
  }
]

If an agent file cannot be found, record as MISSING_AGENT — this is itself a finding.

3. Parse Delegation Prompts

For each Agent() call, extract structured blocks from the prompt content:

BlockWhat It Contains
<objective>What to accomplish
<files_to_read>Input file paths
<additional_context> / <planning_context> / <verification_context>Runtime parameters
<output> / <expected_output>Output format/location expectations
<quality_gate>Per-invocation quality checklist
<deep_work_rules> / <instructions>Cross-cutting policy or revision instructions
<downstream_consumer>Who consumes the output
<success_criteria>Success conditions
Free-form textUnstructured instructions

Also detect ANTI-PATTERNS in prompt content:

  • Role identity statements ("You are a...", "Your role is...")
  • Domain expertise (decision tables, heuristics, comparison examples)
  • Process definitions (numbered steps, step-by-step instructions beyond scope)
  • Philosophy statements ("always prefer...", "never do...")
  • Anti-pattern lists that belong in agent definition

4. Parse Agent Definitions

For each agent file, extract:

SectionKey Content
<role>Identity, spawner, responsibilities, mandatory read
<philosophy>Guiding principles
<upstream_input>How agent interprets input
<output_contract>Return markers (COMPLETE/BLOCKED/CHECKPOINT)
<quality_gate>Self-check criteria
Domain sectionsAll <section_name> tags with their content
YAML frontmattername, description, tools

5. Run Conflict Checks (7 Dimensions)

Dimension 1: Role Re-definition

Question: Does the delegation prompt redefine the agent's identity?

Check: Scan prompt content for:

  • "You are a..." / "You are the..." / "Your role is..."
  • "Your job is to..." / "Your responsibility is..."
  • "Core responsibilities:" lists
  • Any content that contradicts agent's <role> section

Allowed: References to mode ("standard mode", "revision mode") that the agent's <role> already lists in "Spawned by:".

Severity: error if prompt redefines role; warning if prompt adds responsibilities not in agent's <role>.

Dimension 2: Domain Expertise Leak

Question: Does the delegation prompt embed domain knowledge that belongs in the agent?

Check: Scan prompt content for:

  • Decision/routing tables (| Condition | Action |)
  • Good-vs-bad comparison examples (| TOO VAGUE | JUST RIGHT |)
  • Heuristic rules ("If X then Y", "Always prefer Z")
  • Anti-pattern lists ("DO NOT...", "NEVER...")
  • Detailed process steps beyond task scope

Exception: <deep_work_rules> is an acceptable cross-cutting policy pattern from GSD — flag as info only.

Severity: error if prompt contains domain tables/examples that duplicate agent content; warning if prompt contains heuristics not in agent.

Dimension 3: Quality Gate Duplication

Question: Do the prompt's quality checks overlap or conflict with the agent's own <quality_gate>?

Check: Compare prompt <quality_gate> / <success_criteria> items against agent's <quality_gate> items:

  • Duplicate: Same check appears in both → warning (redundant, may diverge)
  • Conflict: Contradictory criteria (e.g., prompt says "max 3 tasks", agent says "max 5 tasks") → error
  • Missing: Prompt expects quality checks agent doesn't have → info

Severity: error for contradictions; warning for duplicates; info for gaps.

Show full SKILL.md (429 more words)Show less
Dimension 4: Output Format Conflict

Question: Does the prompt's expected output format conflict with the agent's <output_contract>?

Check:

  • Prompt <expected_output> markers vs agent's <output_contract> return markers
  • Prompt expects specific format agent doesn't define
  • Prompt expects file output but agent's contract only defines markers (or vice versa)
  • Return marker names differ (prompt expects ## DONE, agent returns ## TASK COMPLETE)

Severity: error if return markers conflict; warning if format expectations unspecified on either side.

Dimension 5: Process Override

Question: Does the delegation prompt dictate HOW the agent should work?

Check: Scan prompt for:

  • Numbered step-by-step instructions ("Step 1:", "First..., Then..., Finally...")
  • Process flow definitions beyond <objective> scope
  • Tool usage instructions ("Use grep to...", "Run bash command...")
  • Execution ordering that conflicts with agent's own execution flow

Allowed: <instructions> block for revision mode (telling agent what changed, not how to work).

Severity: error if prompt overrides agent's process; warning if prompt suggests process hints.

Dimension 6: Scope Authority Conflict

Question: Does the prompt make decisions that belong to the agent's domain?

Check:

  • Prompt specifies implementation choices (library selection, architecture patterns) when agent's <philosophy> or domain sections own these decisions
  • Prompt overrides agent's discretion areas
  • Prompt locks decisions that agent's <context_fidelity> says are "Claude's Discretion"

Allowed: Passing through user-locked decisions from CONTEXT.md — this is proper delegation, not authority conflict.

Severity: error if prompt makes domain decisions agent should own; info if prompt passes through user decisions (correct behavior).

Dimension 7: Missing Contracts

Question: Are the delegation handoff points properly defined?

Check:

  • Agent has <output_contract> with return markers → command handles all markers?
  • Command's return handling covers COMPLETE, BLOCKED, CHECKPOINT
  • Agent lists "Spawned by:" — does command actually spawn it?
  • Agent expects <files_to_read> — does prompt provide it?
  • Agent has <upstream_input> — does prompt provide matching input structure?

Severity: error if return marker handling is missing; warning if agent expects input the prompt doesn't provide.

6. Aggregate and Report

6a. Per-pair summary

For each command-agent pair, aggregate findings:

{command_path} → {agent_name}
  Agent() at line {N}:
    D1 (Role Re-def):      {PASS|WARN|ERROR} — {detail}
    D2 (Domain Leak):       {PASS|WARN|ERROR} — {detail}
    D3 (Quality Gate):      {PASS|WARN|ERROR} — {detail}
    D4 (Output Format):     {PASS|WARN|ERROR} — {detail}
    D5 (Process Override):  {PASS|WARN|ERROR} — {detail}
    D6 (Scope Authority):   {PASS|WARN|ERROR} — {detail}
    D7 (Missing Contract):  {PASS|WARN|ERROR} — {detail}
6b. Overall verdict
VerdictCondition
CLEAN0 errors, 0-2 warnings
REVIEW0 errors, 3+ warnings
CONFLICT1+ errors
6c. Fix recommendations

For each finding, provide:

  • Location: file:line
  • What's wrong: concrete description
  • Fix: move content to correct owner (command or agent)
  • Example: before/after snippet if applicable

7. Present Results

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 DELEGATION-CHECK ► SCAN COMPLETE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Scope: {description}
Pairs checked: {N} command-agent pairs
Findings: {E} errors, {W} warnings, {I} info

Verdict: {CLEAN | REVIEW | CONFLICT}

| Pair | D1 | D2 | D3 | D4 | D5 | D6 | D7 |
|------|----|----|----|----|----|----|-----|
| {cmd} → {agent} | ✅ | ⚠️ | ✅ | ✅ | ❌ | ✅ | ✅ |
| ... | | | | | | | |

{If CONFLICT: detailed findings with fix recommendations}

───────────────────────────────────────────────────────

## Fix Priority

1. {Highest severity fix}
2. {Next fix}
...

───────────────────────────────────────────────────────
</process>

<success_criteria>

  • Scan scope determined and all files discovered
  • All Agent() calls extracted from commands with full prompt content
  • All corresponding agent definitions located and parsed
  • 7 conflict dimensions checked for each command-agent pair
  • No false positives on legitimate patterns (mode references, user decision passthrough, <deep_work_rules>)
  • Fix recommendations provided for every error/warning
  • Summary table with per-pair dimension results displayed
  • Overall verdict determined (CLEAN/REVIEW/CONFLICT) </success_criteria>

© catlog22, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in .claude/skills/delegation-check of catlog22/Claude-Code-Workflow.

  • SKILL.md
  • specs/separation-rules.md

Open the folder on GitHubat commit 07491b0

Compare with similar skills

Delegation Check next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Delegation Check compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Delegation Check this skillcatlog22/Claude-Code-Workflow2.1k—~2.8kAutomated safety check: NotesMIT
Team Coordinationbybren-llc/safe-agentic-workflow421—~1.7kAutomated safety check: PassMIT
Paseo Advisor Second Opiniongetpaseo/paseo20k1 repos~756Automated safety check: PassCustom licence
O2 Review Loopopenobserve/openobserve22k—~3.7kAutomated safety check: PassAGPL-3.0
Kimi Code DelegationCherryHQ/cherry-studio52k1 repos~504Automated safety check: PassAGPL-3.0
Harness Agent Team Designerrevfactory/harness9.1k—~4.5kAutomated safety check: PassApache-2.0

Similar skills

  • Team Coordination

    bybren-llc/safe-agentic-workflow

    Agent Teams orchestration patterns for multi-agent SAFe workflows.

    421 GitHub stars~1.7k tokensUpdated 2 mo ago
    Agent WorkflowsAuto-check passed
  • Launches one separate agent through Paseo to give a second opinion on the current task, with a self-contained briefing and no permission to edit files.

    20k GitHub starsUsed in 1 repo~756 tokens
    Agent WorkflowsAuto-check passed
  • O2 Review Loop

    openobserve/openobserve

    Splits a change into planner, coder and independent reviewer roles: you confirm a spec, a subagent implements it, and a separate reviewer checks each round's local WIP commit.

    22k GitHub stars~3.7k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Kimi Code Delegation

    CherryHQ/cherry-studio

    Delegates one bounded repository task to Kimi Code in non-interactive prompt mode and reads back the final result from its JSON event stream.

    52k GitHub starsUsed in 1 repo~504 tokens
    Agent WorkflowsAuto-check passed
  • Harness Agent Team Designer

    revfactory/harness

    Designs a project-specific agent harness: defines specialist agents, writes the skills they follow, picks an execution mode and model for each, and keeps the setup maintained.

    9.1k GitHub stars~4.5k tokensUpdated 11 days ago
    Agent WorkflowsAuto-check passed
  • ClawTeam Multi-Agent Swarm

    win4r/ClawTeam-OpenClaw

    Launches a swarm of specialist Hermes agents in git-worktree-isolated tmux windows with a kanban board and file-based inboxes, using built-in templates like hedge-fund and code-review.

    1.5k GitHub starsUsed in 1 repo~2.9k tokens
    Agent WorkflowsAuto-check passed

More from catlog22/Claude-Code-Workflow

All 82 skills in this repo
  • Prompt Generator

    catlog22/Claude-Code-Workflow

    Generate or convert Claude Code prompt files — command orchestrators, skill files, agent role definitions, or style conversion of existing files.

    2.1k GitHub starsUsed in 1 repo~4.7k tokens
    Auto-check: notes
  • Ccw Help

    catlog22/Claude-Code-Workflow

    CCW command help system. An agent skill from catlog22/Claude-Code-Workflow.

    2.1k GitHub stars~2.5k tokensUpdated 3 mo ago
    Auto-check passed
  • Team Ultra Analyze

    catlog22/Claude-Code-Workflow

    Deep collaborative analysis team skill. An agent skill from catlog22/Claude-Code-Workflow.

    2.1k GitHub starsUsed in 1 repo~2.4k tokens
    Auto-check: notes
  • Brainstorm

    catlog22/Claude-Code-Workflow

    Unified brainstorming skill with dual-mode operation — auto mode (framework generation, parallel multi-role analysis, cross-role synthesis) and single role analysis.

    2.1k GitHub stars~4.8k tokensUpdated 3 mo ago
    Auto-check: notes
  • Ccw Chain

    catlog22/Claude-Code-Workflow

    Chain-based CCW workflow orchestrator. An agent skill from catlog22/Claude-Code-Workflow.

    2.1k GitHub stars~1.1k tokensUpdated 3 mo ago
    Auto-check: notes
  • Investigate

    catlog22/Claude-Code-Workflow

    Systematic debugging with Iron Law methodology. An agent skill from catlog22/Claude-Code-Workflow.

    2.1k GitHub stars~1.1k tokensUpdated 3 mo ago
    Auto-check: notes

Questions about Delegation Check

What does Delegation Check do?

Check workflow delegation prompts against agent role definitions for content separation violations. Delegation Check is an agent skill from catlog22/Claude-Code-Workflow. Check workflow delegation prompts against agent role definitions for content separation violations.

When should I use Delegation Check?

Delegation Check fits situations like: check delegation; delegation conflict; prompt vs role check.

How do I install Delegation Check in Claude Code?

Run `npx skills add catlog22/Claude-Code-Workflow --skill delegation-check -a claude-code`. Or copy the skill folder (.claude/skills/delegation-check in catlog22/Claude-Code-Workflow) into .claude/skills/delegation-check in your project. Claude Code loads it when a task matches its description.

How do I install Delegation Check in Codex?

Run `npx skills add catlog22/Claude-Code-Workflow --skill delegation-check -a codex`. Or copy the skill folder (.claude/skills/delegation-check in catlog22/Claude-Code-Workflow) into .agents/skills/delegation-check in your project. Codex loads it when a task matches its description.

Can I use Delegation Check in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add catlog22/Claude-Code-Workflow --skill delegation-check -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/delegation-check, .gemini/skills/delegation-check, .github/skills/delegation-check and .opencode/skills/delegation-check in your project.

What does Delegation Check need to run?

Going by SKILL.md and its folder, Delegation Check needs the command-line tools its instructions call (just). Its frontmatter pre-approves these tools: Read, Glob, Grep, Bash, AskUserQuestion.

Does Delegation Check access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Delegation Check safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Delegation Check use?

Delegation Check is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Delegation Check use?

About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Delegation Check?

Skills that share tags, products or a category with Delegation Check: Team Coordination (bybren-llc/safe-agentic-workflow, 421 stars), Paseo Advisor Second Opinion (getpaseo/paseo, 20k stars), O2 Review Loop (openobserve/openobserve, 22k stars) and Kimi Code Delegation (CherryHQ/cherry-studio, 52k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Delegation Check?

catlog22 (a GitHub user) maintains it in catlog22/Claude-Code-Workflow, which has 2,130 GitHub stars. The repository holds 82 skills in this directory. The repository was last updated on June 18, 2026.

Source: catlog22/Claude-Code-Workflow on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.