Approved catalog listing
SKILL #3295
skillshunter.net
Home / Software & Development / Devxkit Agent Flow
Listing Approved Approved on: November 29, 2026

Devxkit Agent Flow

Carry out a Director-scoped task with one worker in a managed worktree, validate it, and hand back exact evidence for CI and publication decisions. Works for Codex, Claude, OpenCode, Cursor CLI (explicitly assigned), and any explicitly selected agent backend.

Rate this skill

No ratings yet

Editor's Note

Before editing, check worktree/branch identity against the Director's assignment. Do not start a second worker, fall back to a paid/model-specific backend, or launch the Cursor GUI or IDE autonomously. If the assigned worker is unavailable, pause and reconcile with the Director.

When to Use It

  • Implement a Director-scoped task using an assigned agent in a managed worktree
  • Validate task implementation and provide evidence for CI and publication decisions
  • Ensure compliance with repository-specific agent rules and validation contracts

SKILL.md

SkillsHunter provides this listing for informational purposes only. Review the skill’s source, license, and required permissions before use. You are responsible for deciding whether to install or run it. Terms of Use

↓ Download .md

devxkit agent flow

When to use

Use for Director → worker → managed-worktree implementation and handoff across repositories. Read the consumer repository's AGENTS.md, project skills and validation contract first; this recipe does not replace their authority rules. ChatGPT is the Director, with Desktop Commander or authorized CLI access. DIL is frozen historical compatibility: no issue-backed slice, callback, Delivery Pack or Herdr bridge is required for ordinary direct work.

This skill is agent-agnostic: Codex, Claude, OpenCode, and Cursor CLI (explicitly assigned) are all valid workers when explicitly assigned. Do not switch agents or start a fallback worker without Director authorization.

Agent selection and relevo

The Director assigns exactly one authoritative worker for the task. Accept the assignment as-is; do not:

  • Start a second worker "just in case".
  • Fall back to a paid/model-specific backend to bypass quota or errors.
  • Launch the Cursor GUI or IDE autonomously.
  • Infer account, shared-wallet, or model-specific limits from process status.

If the assigned worker is unavailable, misidentified, or hits a hard stop, pause and reconcile with the Director. RUNNING in a process table only means a process exists; it does not mean the worker is busy, idle, or safe to interrupt.

Read-only preflight

In the assigned worktree, record:

pwd
git rev-parse --show-toplevel
git rev-parse --git-common-dir
git branch --show-current
git rev-parse HEAD
git status --short
git worktree list --porcelain
devxkit agent preflight --local-only --json

A blank branch means detached HEAD; report it explicitly. Work in the exact managed worktree assigned by the Director. If none exists, use the native worktree mechanism of the assigned agent; do not switch the human checkout to make room. Do not pull, stash, reset or clean another worktree. Preserve pre-existing changes and record the starting diff. preflight describes identity; it does not reserve a workspace, grant mutation rights or prove another writer is absent.

Implementation and Git writers

Confirm one authoritative writer for the task from the Director's assignment. Before editing, check worktree/branch identity against that assignment. Separate worktrees isolate files and indexes but still share refs and repository metadata. Before any authorized branch, commit, push or other Git mutation, recheck HEAD, branch, status and worktree reservations. If another writer or unexpected changes appear, stop the conflicting action and reconcile with the Director. Do not remove Git lock files, force an update or start a competing worker to recover. Read-only inspection can continue where it does not race the affected operation.

Make the smallest change that meets acceptance, with deterministic regression checks where appropriate. Use repo-native commands and existing tools. Do not launch Cursor (CLI or IDE) by default. Do not start Herdr, FirstMate, Treehouse, a bridge, watcher or another agent as an implicit dependency. An explicitly selected orchestration workflow uses its own instructions; this skill neither starts it nor promises automatic fallback or remote delivery.

Tool events, process status, and completion evidence

When an agent backend emits JSON tool events (e.g., OpenCode), read only the structured metadata needed for the handoff: tool name, invocation count, completion/exit status, and duration if provided. Do not include raw tool payloads, credentials, prompt text, or model outputs in the handoff.

Process status is evidence, not a verdict:

  • RUNNING ≠ busy or safe to interrupt.
  • EXITED/COMPLETED ≠ successful validation unless you also have the exit code and test evidence.
  • Unknown status ≠ failure; record it as unverified.

Capture completion evidence: final exit code, last HEAD, changed paths, and the actual test/lint/type output.

Quota and cost boundaries

Do not infer shared-wallet or model-specific quota from process presence, token logs, or error messages. Quota unknown is honest. If a backend reports a quota or rate-limit error, record the exact code/message and stop; do not auto-switch to another backend or model tier. Relevo to another worker is a Director decision, not an autonomous recovery.

Test gates and handoff

Run focused checks, then the repository's required full lint/type/test gates. Record actual commands, exit codes, skips and unavailable dependencies. A missing tool or external service is unverified evidence, never a pass. Do not install or reconfigure global runtime to make a check green without task authorization.

For an explicitly prepared DevXKit slice, fill its pr-body.md and use devxkit agent validate <issue> as the canonical configured gate; do not first run the same full commands manually. That command may write closure artifacts when Git metadata is unavailable. Direct tasks use native test commands and do not create slice/closure state or start a bridge merely to validate.

Return exact worktree, branch/detached HEAD, starting and current HEAD, changed paths, test evidence, limitations and suggested CI/publication gates. A dirty tree's diff is part of its identity: HEAD alone does not identify tested edits. Respect the assignment's stop point. If instructed to leave a diff, stop there; do not commit, push or create a PR as a side effect of this recipe.

Later Director gates

These are checkpoints for the authorized owner, not permission to publish:

  • PR: inspect the final diff and exact tested revision; use the repository's ordinary PR workflow when authorized (draft is optional). Send Markdown through a body file or structured API. For prepared slices, existing devxkit agent ops pr-create and delivery-publish enforce their own identity/Delivery Pack contracts.

  • CI and merge: bind remote checks and required contexts to the exact PR HEAD and base. Recheck after changes or rebases. Missing, pending or skipped required checks do not prove readiness. For prepared slices, devxkit agent ops pr-report <issue> --json supplies the existing scorecard; --local-only cannot prove remote CI. The Director integrates automatically after the exact-head CI is green when that integration is within the user-authorized task.

  • Release: inspect the actual merged revision and repository release policy. Where configured, devxkit release plan --version X.Y.Z is read-only. Publication requires the applicable human authorization; see the packaged devxkit-release skill for the existing release contract. Do not infer deployment readiness from a successful merge or release.

  • Final gate: verify main sentinel, publish only the intended release when applicable, close completed issues/milestones, and remove only verified integrated task worktrees/branches. Stop at the agreed checkpoint.

Distribution

The versioned source is this DevXKit package. devxkit skills install --dry-run previews installation; devxkit skills install --target PATH or devxkit skills export PATH copies the same skill tree and ownership manifest to an explicit catalog. Install only when requested. Updates preserve locally modified/unmanaged entries by reporting conflicts. Verify native discovery in the actual installed harness: DevXKit's own skills show is not proof that an agent loaded an exported copy. Keep consumer domain rules and credentials out of this portable skill.

View original Markdown
---
name: devxkit-agent-flow
description: Carry out a Director-scoped task with one worker in a managed worktree, validate it, and hand back exact evidence for CI and publication decisions. Works for Codex, Claude, OpenCode, Cursor CLI (explicitly assigned), and any explicitly selected agent backend.
---

# devxkit agent flow

## When to use

Use for Director → worker → managed-worktree implementation and handoff across
repositories. Read the consumer repository's `AGENTS.md`, project skills and
validation contract first; this recipe does not replace their authority rules.
ChatGPT is the Director, with Desktop Commander or authorized CLI access.
DIL is frozen historical compatibility: no issue-backed slice, callback,
Delivery Pack or Herdr bridge is required for ordinary direct work.

This skill is agent-agnostic: Codex, Claude, OpenCode, and Cursor CLI (explicitly assigned)
are all valid workers when explicitly assigned. Do not switch agents or start a
fallback worker without Director authorization.

## Agent selection and relevo

The Director assigns exactly one authoritative worker for the task. Accept the
assignment as-is; do not:

- Start a second worker "just in case".
- Fall back to a paid/model-specific backend to bypass quota or errors.
- Launch the Cursor GUI or IDE autonomously.
- Infer account, shared-wallet, or model-specific limits from process status.

If the assigned worker is unavailable, misidentified, or hits a hard stop, pause
and reconcile with the Director. `RUNNING` in a process table only means a
process exists; it does not mean the worker is busy, idle, or safe to interrupt.

## Read-only preflight

In the assigned worktree, record:

```bash
pwd
git rev-parse --show-toplevel
git rev-parse --git-common-dir
git branch --show-current
git rev-parse HEAD
git status --short
git worktree list --porcelain
devxkit agent preflight --local-only --json
```

A blank branch means detached HEAD; report it explicitly. Work in the exact
managed worktree assigned by the Director. If none exists, use the native
worktree mechanism of the assigned agent; do not switch the human checkout to
make room. Do not pull, stash, reset or clean another worktree. Preserve
pre-existing changes and record the starting diff. `preflight` describes
identity; it does not reserve a workspace, grant mutation rights or prove
another writer is absent.

## Implementation and Git writers

Confirm one authoritative writer for the task from the Director's assignment.
Before editing, check worktree/branch identity against that assignment. Separate
worktrees isolate files and indexes but still share refs and repository metadata.
Before any authorized branch, commit, push or other Git mutation, recheck HEAD,
branch, status and worktree reservations. If another writer or unexpected changes
appear, stop the conflicting action and reconcile with the Director. Do not
remove Git lock files, force an update or start a competing worker to recover.
Read-only inspection can continue where it does not race the affected operation.

Make the smallest change that meets acceptance, with deterministic regression
checks where appropriate. Use repo-native commands and existing tools. Do not
launch Cursor (CLI or IDE) by default. Do not start Herdr, FirstMate, Treehouse,
a bridge, watcher or another agent as an implicit dependency. An explicitly
selected orchestration workflow uses its own instructions; this skill neither
starts it nor promises automatic fallback or remote delivery.

## Tool events, process status, and completion evidence

When an agent backend emits JSON tool events (e.g., OpenCode), read only the
structured metadata needed for the handoff: tool name, invocation count,
completion/exit status, and duration if provided. Do not include raw tool
payloads, credentials, prompt text, or model outputs in the handoff.

Process status is evidence, not a verdict:

- `RUNNING` ≠ busy or safe to interrupt.
- `EXITED`/`COMPLETED` ≠ successful validation unless you also have the exit
code and test evidence.
- Unknown status ≠ failure; record it as unverified.

Capture completion evidence: final exit code, last HEAD, changed paths, and the
actual test/lint/type output.

## Quota and cost boundaries

Do not infer shared-wallet or model-specific quota from process presence, token
logs, or error messages. Quota unknown is honest. If a backend reports a quota
or rate-limit error, record the exact code/message and stop; do not auto-switch
to another backend or model tier. Relevo to another worker is a Director
decision, not an autonomous recovery.

## Test gates and handoff

Run focused checks, then the repository's required full lint/type/test gates.
Record actual commands, exit codes, skips and unavailable dependencies. A missing
tool or external service is unverified evidence, never a pass. Do not install or
reconfigure global runtime to make a check green without task authorization.

For an explicitly prepared DevXKit slice, fill its `pr-body.md` and use
`devxkit agent validate <issue>` as the canonical configured gate; do not first run
the same full commands manually. That command may write closure artifacts when
Git metadata is unavailable. Direct tasks use native test commands and do not
create slice/closure state or start a bridge merely to validate.

Return exact worktree, branch/detached HEAD, starting and current HEAD, changed
paths, test evidence, limitations and suggested CI/publication gates. A dirty
tree's diff is part of its identity: HEAD alone does not identify tested edits.
Respect the assignment's stop point. If instructed to leave a diff, stop there;
do not commit, push or create a PR as a side effect of this recipe.

## Later Director gates

These are checkpoints for the authorized owner, not permission to publish:

- PR: inspect the final diff and exact tested revision; use the repository's
  ordinary PR workflow when authorized (draft is optional). Send Markdown through a body
  file or structured API. For prepared slices, existing `devxkit agent ops pr-create`
  and `delivery-publish` enforce their own identity/Delivery Pack contracts.
- CI and merge: bind remote checks and required contexts to the exact PR HEAD
  and base. Recheck after changes or rebases. Missing, pending or skipped required
  checks do not prove readiness. For prepared slices,
  `devxkit agent ops pr-report <issue> --json` supplies the existing scorecard;
  `--local-only` cannot prove remote CI. The Director integrates automatically after the exact-head CI is green when
  that integration is within the user-authorized task.
- Release: inspect the actual merged revision and repository release policy.
  Where configured, `devxkit release plan --version X.Y.Z` is read-only. Publication
  requires the applicable human authorization; see the packaged `devxkit-release`
  skill for the existing release contract. Do not infer deployment readiness
  from a successful merge or release.

- Final gate: verify main sentinel, publish only the intended release when
  applicable, close completed issues/milestones, and remove only verified
  integrated task worktrees/branches. Stop at the agreed checkpoint.

## Distribution

The versioned source is this DevXKit package. `devxkit skills install --dry-run`
previews installation; `devxkit skills install --target PATH` or
`devxkit skills export PATH` copies the same skill tree and ownership manifest to
an explicit catalog. Install only when requested. Updates preserve locally
modified/unmanaged entries by reporting conflicts. Verify native discovery in
the actual installed harness: DevXKit's own `skills show` is not proof that an
agent loaded an exported copy. Keep consumer domain rules and credentials out
of this portable skill.

Community Reviews & Field Notes

Tried this skill on your own project? Share the model you used and the results you got.

Add Your Review

Approved reviews appear publicly with the name or role you enter. See the Privacy Notice.