Assign

From hashgraph-online/awesome-codex-plugins · View interactive version

Assign is an AI agent skill from the GitHub repository hashgraph-online/awesome-codex-plugins. Assign a task to a specific role on your team.

How to use this skill

Skill file

AgenTeam Assign

Assign a task to a specific team member, independent of the pipeline.

Process

1. Auto-Init Guard

Check for .agenteam/config.yaml, .agenteam.team/config.yaml, or legacy

agenteam.yaml in the project root. If all are missing:

2. Accept Input

Get the role name and task from the user. Examples:

If role or task is missing, ask.

3. Validate Role

python3 <runtime>/agenteam_rt.py roles show <role-name>

If the role doesn't exist, show available roles:

python3 <runtime>/agenteam_rt.py roles list

4. Check Write Policy

If the role has can_write: true, check for active write locks:

python3 <runtime>/agenteam_rt.py status

If a write lock is active and the role needs to write:

override with confirmation."

5. Branch Isolation

If the role has can_write: true, isolate the work on a dedicated branch

or worktree. Assign ALWAYS applies isolation regardless of pipeline mode

(even pipeline: hotl), because assign is user-initiated and outside

HOTL's execution flow.

  1. Preflight:

```bash

bash <plugin-dir>/scripts/git-isolate.sh preflight

```

"Uncommitted changes detected. Please stash or commit before assigning

a writing task, to ensure branch isolation."

Please checkout a branch before assigning a writing task."

  1. Capture current branch (before any git mutation):

```bash

RETURN_BRANCH=$(git rev-parse --abbrev-ref HEAD)

```

  1. Get branch plan:

```bash

python3 <runtime>/agenteam_rt.py branch-plan --task "<task>" --role "<role>"

```

  1. Execute the plan:

bash <plugin-dir>/scripts/git-isolate.sh create-branch <branch> <base>

bash <plugin-dir>/scripts/git-isolate.sh create-worktree <path> <branch> <base>

current branch.

  1. Launch agent on the isolated branch/worktree (step 7 below).
  1. After agent completes:

bash <plugin-dir>/scripts/git-isolate.sh return $RETURN_BRANCH

Tell user: "Work is on branch <branch>. Merge or create a PR when ready."

bash <plugin-dir>/scripts/git-isolate.sh cleanup-worktree <path>

Tell user: "Work is on branch <branch>. Worktree cleaned up (or

preserved if it has uncommitted changes)."

If the role has can_write: false, skip this step entirely.

6. Resolve Artifact Paths

python3 <runtime>/agenteam_rt.py artifact-paths

Pass the resolved output paths to the agent so it writes artifacts to

the correct location (standalone vs HOTL mode).

7. Launch Agent

Before launch, create a durable assignment checkpoint under

.agenteam/assignments/<assignment_id>.json. Record assignment_id, role,

task, isolated cwd, start time, attempt number, configured wall and idle budget,

last heartbeat, host thread ID when available, and stop reason. Update the

heartbeat while the role is active. On controller restart, verify the recorded

PID/thread before launching anything; resume the existing host thread when the

host supports it. A fresh assignment attempt requires explicit confirmation if

side effects may already have occurred.

Launch the role as a Codex subagent using the generated agent file:

8. Collect Output

Present the agent's output to the user with the role name as context:

"[architect]: <output>"

9. Suggest Next Step

After presenting the role's output, append a handoff suggestion:

| Completing Role | Suggestion |

|----------------|------------|

| researcher | "Next step: @Architect can design a solution based on these findings, or @Pm can turn this into a prioritized strategy. Want me to assign one of them?" |

| pm | "Next step: @Architect can design the technical approach for this. Want me to assign them?" |

| architect | "Next step: @Dev can build an implementation plan and start coding from this design. Want me to assign them?" |

| dev | "Next step: @Qa can write tests for this implementation, then @Reviewer can check it. Want me to assign @Qa?" |

| qa | "Next step: @Reviewer can review the implementation and tests together. Want me to assign them?" |

| reviewer (PASS) | "Review complete -- no blocking findings. Ready to merge or continue." |

| reviewer (WARN) | "Review complete with warnings. @Dev can address the WARN findings if you'd like. Want me to assign them?" |

| reviewer (BLOCK) | "Review blocked on the findings above. @Dev should address the BLOCK items before re-review. Want me to assign them?" |

Rules:

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.