/tksfw:define-agentfrom TKS Framework
Create, 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.
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.
Owner of the agent-definition procedure and the naming convention (moved here from AGENTS.md
§ Subagents / § Agent Naming; the full text is references/naming.md).
.agents/agents/; extend it rather than duplicate it.<family>-<role>; <role> must be a key of [roles] in .agents/config.toml
(the tier follows from it); <family> only when needed to disambiguate; ≤ 3 tokens; never main,
never a harness built-in name, never a person or codename. Read references/naming.md when in doubt..agents/agents/<name>.toml with name, description ("Use PROACTIVELY when…" /
"MUST BE USED for…"), developer_instructions (scope, file paths, success criteria, "return a
concise structured summary"), sandbox_mode (read-only for researcher/reviewer/validator/planner,
workspace-write for builder/writer/fetcher). Do not write model or model_reasoning_effort.python3 .agents/skills/define-agent/assets/validate_agent.py .agents/agents/<name>.toml
(the PostToolUse hook runs the same check and blocks on errors; warnings are advisory)..codex/agents/<name>.toml with the routed model lines, .claude/agents/<name>.md)
are rendered automatically by the PostToolUse hook once the file is valid — never edit them.
Bulk re-render after changing .agents/config.toml: python3 .agents/hooks/sync_harness.py --models.changes.yaml entry (Layer CORE or ARCHETYPE per the
yaml-log-entry skill); a rename must state old → new so the Handoff/Event AgentName history
stays traceable.| Asset | Use |
|---|---|
assets/validate_agent.py <file>… [--models <path>] [--json] | Errors (exit 2) and warnings (exit 0); also --all for every file in .agents/agents/ |
references/naming.md | The complete convention with the [E]/[W] markers of what the validator enforces |
Agent definitions live in the repo (.agents/agents/<name>.toml) and are reused across sessions — never recreate one per task; extend the existing definition when the scope partially matches.
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
/delegate-workMechanics 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.
/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./