/tksfw:delegate-workfrom TKS Framework
Mechanics for delegating work to subagents once the decision to delegate has been made (AGENTS.md § Subagents holds the decision rules): isolation (git worktree or agent work area), ownership matrix, handoff BEGIN/END logging, cleanup and pruning of finished worktrees/work areas, and how to change models via .agents/config.toml. Load when parallelising subagents, when a subagent needs an isolated place to write, when cleaning up after a phase, or when the Stop hook reports stale work areas.
Ships in TKS Framework. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The rules that decide whether and how many subagents run stay in AGENTS.md; two of them are
enforced by the routing hook (no nested spawns; at most max_parallel_agents concurrent). This skill
owns what happens after the decision. Full text: references/isolation.md.
python3 .agents/skills/delegate-work/assets/workarea.py create <agent> <task-id> --session <token> [--worktree]
(worktree when git is available and parallel writes are needed; otherwise a work area under
.agents/workarea/<agent>/<session>.<task-id>.<n>/). The token is shown at session start; the
instance n is allocated for you. The command prints the path to hand to the agent.yaml-log-entry), spawn, log END + event on return.… prune <agent> <task-id> after merge/validation; … list and … prune --stale
(COMPLETED tasks / merged branches) at phase end. Never leave a worktree with unmerged work
unlogged — prune refuses unless --force.| Asset | Use |
|---|---|
assets/workarea.py create <agent> <task-id> --session <token> [--worktree] [--instance N] | create the isolated place (new instance each call; --instance reuses) |
assets/workarea.py list [--json] | worktrees and work areas with staleness (task COMPLETED / branch merged) |
assets/workarea.py prune <agent> <task-id> [--session T] [--instance N] [--force] · prune --stale · prune --session T | remove |
references/isolation.md | the moved method text |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ibm/tksfw --plugin tksfw9 skills in this plugin
/define-agentCreate, rename or edit a subagent definition (.agents/agents/<name>.toml) for this method: naming convention <family>-<role> with the role vocabulary from .agents/config.toml, required fields, description prefix, sandbox mode by tier, and the rule that models are never hand-written. Load BEFORE creating, renaming or editing ANY .agents/agents/*.toml — the PostToolUse hook validates every agent file on write (assets/validate_agent.py) and blocks non-conforming definitions; a rename must also be logged in changes.yaml.
/ks-reloadReload the instruction layers (AGENTS.md core, the archetype and the project spec) fresh from disk after the operator has edited them. Use when the operator says the instructions, AGENTS.md, KS_PROJECT.md or KS_SPEC.md changed, or invokes ks-reload./