MeowKit
Skills

mk:delegate

Builds a ready-to-paste, context-isolated prompt for one subagent, with an injection check on every field.

Source.claude/skills/delegate/SKILL.md
Ownerlifecycle
Runtimeclaude-code
Riskmedium

mk:delegate assembles the delegation template from .claude/skills/cook/references/orchestration-rules.md into a prompt block you can review. It does not start the subagent. It prints the prompt so you see exactly what the subagent will receive. Use it when one bounded job goes to one subagent and the prompt must carry no session history.

When not to use it

If you needUse
A parallel agent team in isolated worktreesmk:team-config
Staged jobs coordinated across runtimesmk:orchestrate

Usage

mk:delegate [task description]
mk:delegate --silent [task description]

The skill asks for each field and always offers an Other option for free input.

FieldSource
TaskThe argument, or asked
Work contextThe git root of the files being changed, detected, and you can override it
Plan referenceDetected from the active-plan pointer, and you can override it
Files to modifyAsked, as glob patterns
Files to read for contextAsked, as specific paths
Acceptance criteriaAsked, binary pass or fail only
ConstraintsAsked: what must not change

When the work context differs from the current directory, every path in the prompt uses the work-context root, because a subagent given the wrong root writes into the wrong project.

--silent skips the questions, reads the fields from one structured argument and prints the prompt at once. It is for hosts with no interactive question tool.

Injection check

Every field is text a person supplied, so each is scanned before assembly for the override patterns in .claude/rules/injection-rules.md Rule 1: "ignore previous instructions", "you are now", "new system prompt", "disregard your rules", "pretend you are", "act as if" and "forget your rules". On a match the run stops, names the field and asks you to revise it. It never cleans the text silently. In --silent mode a match exits non-zero and writes the warning to stderr.

Output

A fenced block under a review header, aimed at 200 tokens or fewer:

---DELEGATION PROMPT (review before delegating)---
Task: {task}
Work context: {work_context}
Plan: {plan_path or "none"}
Files to modify: {globs}
Files to read for context: {paths}
Acceptance criteria:
  - {criterion}
Constraints: {constraints or "none"}
---END DELEGATION PROMPT---

The prompt carries no session history, no prior conversation, no project instruction file content and no orchestrator reasoning. The subagent starts with these fields and nothing else.

On this page