From thrum
Generates customized role templates for Thrum agents by detecting environment (runtimes, git worktrees, bd stats, agents). Creates .thrum/role_templates/ files that auto-apply on registration.
npx claudepluginhub leonletto/thrum --plugin thrumThis skill is limited to using the following tools:
Generate role-based preamble templates customized to your project environment.
Coordinates AI agents via Git-backed messaging, groups, and shared context. Use for communication, task delegation, or coordination across worktrees.
Routes legacy agent-team invocations to dedicated skills for task orchestration, inspection, splitting, workflow governance, worker dispatch, and project bootstrap. For backward compatibility.
Scaffolds GRACE subagent presets including module-implementer, contract-reviewer, verification-reviewer, and fixer for Claude Code, OpenCode, or Codex shells by detecting local agent conventions.
Share bugs, ideas, or general feedback.
Generate role-based preamble templates customized to your project environment.
Templates auto-apply when agents register via thrum quickstart.
Announce: "Using configure-roles to set up preamble templates for your team."
Run these commands and collect the output (suppress errors):
thrum runtime list 2>/dev/null # Installed runtimes
git worktree list 2>/dev/null # Worktrees and branches
bd stats 2>/dev/null # Beads task tracker state
thrum agent list --context 2>/dev/null # Registered agents
ls .claude/skills/ 2>/dev/null # Installed Claude skills
thrum config show 2>/dev/null # Thrum configuration
Also check:
.claude/settings.json for MCP servers (context7, auggie-mcp, etc.)toolkit/templates/roles/ for shipped example templatesSummarize what you detected:
ls .thrum/role_templates/ 2>/dev/null
If templates exist, show them and ask what to change. Do NOT start from scratch.
Ask these in sequence using AskUserQuestion:
"What roles does your team need?"
Options based on detected agents, plus common defaults:
Available roles (all have strict and autonomous variants in
toolkit/templates/roles/):
| Role | Purpose |
|---|---|
| coordinator | Orchestrates team, dispatches tasks, reviews/merges |
| implementer | Writes code in assigned worktree |
| planner | Creates plans, designs architecture, writes specs |
| researcher | Investigates codebases, produces research reports |
| reviewer | Reviews code for quality, security, correctness |
| tester | Writes and runs tests, verifies acceptance criteria |
| deployer | Handles builds, releases, deployment operations |
| documenter | Creates and maintains documentation |
| monitor | Watches system health, reports anomalies |
For each role selected, ask: "What autonomy level for the {role} role?"
If multiple worktrees detected: "Should agents be restricted to their own worktree?"
For each role:
toolkit/templates/roles/{role}-{autonomy}.mdbd commands in Task Tracking section.thrum/role_templates/{role}.mdIf agents are already registered:
thrum roles deploy --dry-run # Preview
thrum roles deploy # Apply to all agents
When .thrum/role_templates/ already has files:
| Detected | Template Customization |
|---|---|
| Claude Code runtime | Add Task tool + sub-agent guidance to Efficiency section |
| Augment runtime | Add auggie-mcp codebase-retrieval to Efficiency section |
| Beads installed | Add bd commands to Task Tracking, disable TodoWrite |
| Thrum MCP server | Add MCP tool references, CLI fallback for sub-agents |
| Claude plugin skills | List installed skills with usage guidance |
| Context7 MCP | Add library docs guidance to Efficiency section |
| Multiple worktrees | Add worktree scope rules to Scope Boundaries |