Dispatch explicitly assigned Git implementation or verification to DSH through the dsh-delegate MCP server (delegate_* tools), wait directly and review in Codex. Activate on explicit DSH / TaskBridge delegation or $dsh-taskbridge. When active in Code Mode, call tools.mcp__dsh_delegate__* directly. Avoid bulk ALL_TOOLS output. Print one exact tool's declaration if needed.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Dsh Taskbridge?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ranranyya-dsh-taskbridge-dsh-taskbridge)
---
name: dsh-taskbridge
description: >-
Dispatch explicitly assigned Git implementation or verification to DSH through the
dsh-delegate MCP server (delegate_* tools), wait directly and review in Codex. Activate on
explicit DSH / TaskBridge delegation or $dsh-taskbridge. When active in Code Mode, call
tools.mcp__dsh_delegate__* directly. Avoid bulk ALL_TOOLS output. Print one exact tool's
declaration if needed.
---
<!-- dsh-taskbridge-managed: edits make this file operator-owned. -->
<!-- Generated by npm run build:integrations from integrations/. -->
<!-- dsh-taskbridge-version: 1.9.5 -->
# DSH TaskBridge — Codex Native Skill
Read this entry in full. Open [the reference](rules-reference-fcccf92e59f3db2b5783445826b50759cb3f11bfc2f1aad698e60794b019fa61.md) only for multi-stage or
parallel planning, a dirty source, an explicit teams choice, task reuse, non-routine wait events
(`attention`, `failed`, `cancelled`, `interrupted`, client timeout), or receipt recovery
(`waitError` / `confirmation: "unknown"`).
## ACTIVATION (check this before anything else)
1. Dispatch only when the user explicitly selects this skill (`$dsh-taskbridge`) or explicitly
asks to delegate a Git repository code implementation or verification task to DSH / TaskBridge.
2. Casual mention of DSH, DeepSeek, dsh-taskbridge or delegation — or a general non-code Q&A
(e.g. checking the time or ordinary chat, even if `$dsh-taskbridge` or `@dsh-taskbridge` is
mentioned), or a question about planning, review, status, logs or settings — is NOT a dispatch
request. Answer directly in Codex (noting that TaskBridge is only for Git repository
code/verification tasks) without calling any `delegate_*` tool.
3. If assignment is ambiguous, ask one short clarifying question instead of dispatching.
## CODE MODE CALLS
Keep skill reads separate from large outputs. Avoid dumping `ALL_TOOLS`. For a missing field, find
one tool by exact name and print only the text from `exec tool declaration:` if present.
Omit unused optional keys. Use `const data = JSON.parse(res.content[0].text)` and handle
`res.isError` or `data.ok !== true` before acting. Keep the receipts and follow the returned `reason`.
Check status first; run read-only preflight separately:
```js
text(await tools.mcp__dsh_delegate__delegate_status({}));
```
```js
text(await tools.mcp__dsh_delegate__delegate_preflight({ workspacePath }));
```
## P0: COMMANDER-OWNED PLANNING AND WORK PACKETS (DECOMPOSITION & DIRECTION)
1. Codex owns decomposition, direction, scope boundaries and acceptance — NOT line-by-line coding
details. Batch read-only inspection of key entry files, specs and existing contracts into 1–2
combined reads before dispatching. For a multi-stage goal, read only the high-level architecture
and shared cross-packet contracts upfront to create the plan; load each packet's detailed
specification just-in-time before dispatching that packet rather than preloading every module's
docs into the initial turn. Submit a cohesive task that DSH can complete and verify in
one shot as a single packet without `delegate_plan`; split large or multi-stage goals into
bounded, independently verifiable packets only when a single packet risks overloading the
worker across subsystems or when independent modules can run in parallel.
2. Before dispatch, tell the operator which packet is next and why. Invest upfront in a thorough
contract brief in `delegate_submit.prompt` so the worker passes on the first try without rework:
(a) target outcome and repo spec/doc paths to follow; (b) architectural direction, exact
exported signatures, closed return shapes (no unrequested fields or input mutation), and key
spec/runtime invariants where ambiguity could cause drift — numeric precision and rounding
rules, explicit default and validation semantics, error-handling contracts, and
state/idempotency constraints (concise 3–5 line invariants are encouraged whenever ambiguity
could cause drift); (c) allowed edit scope and out-of-scope red lines; (d) concrete acceptance
tests/checks, requiring real end-to-end entrypoint/integration checks when specified and OS
temporary directories for scratch test artifacts (never checkout-local temp files). **Do NOT
dictate line-by-line implementation code, internal variable names, or full pseudocode in
`prompt`** — let DSH read the repo and own implementation and test coding within those
guardrails.
3. Parallel packets require independent work, non-conflicting ownership and permission under the
request and repository AGENTS.md. Never expand scope or let a verification-only packet modify
code or rules.
## DISPATCH CONTRACT
1. **PREFLIGHT (new task chains only)**. Call `delegate_status` first (once per session); if the
switch is off or a prerequisite is missing, report the reason and pause. Never open the switch
yourself or fall back to another execution route.
- For read-only workspace validation or checking multiple/uncertain directories, call
`delegate_preflight` directly with the exact authorized source `workspacePath`. For a normal
single-repo dispatch, you may pass `autoPreflight: true, wait: true` on `delegate_submit` to
combine preflight, submit and wait in one call (blocks cleanly without submitting on any block
reason; if it returns `submitted: true` with `waitError`, the task WAS already created — never
call `delegate_submit` again, and resume with `delegate_wait` on `submitReceipt.taskId`). Reuse
verified preflight facts for a same-chain `continueFromTaskId` continuation (or
`reuseWorktreeFromTaskId` subtask) and never repeat `delegate_status` / `delegate_preflight`
on the same source repo unless the source changed or the engine reports a mismatch.
- `isolation: "worktree"`: omit `overrides` so the configured isolation and matching project
override apply.
- Both `worktree` and `shared` isolation require an initialized Git repository root with at
least one commit. Any other `isolation: "block"` (`PREFLIGHT_NOT_A_REPOSITORY`,
`PREFLIGHT_NOT_A_REPOSITORY_ROOT`, `PREFLIGHT_NO_COMMITS`): stop and report the reason code
(and any reported repository root), and never take over coding locally.
2. **SUBMIT**. Set a short `title` (plus optional `goalDescription`), exact authorized
`workspacePath`, and the P0 direction brief in `prompt`. Never override the configured provider,
model or reasoning effort, and never send `overrides.timeoutSeconds` unless the operator
explicitly asked for a cap (normal runs have no default total execution timeout).
3. **RECEIPT CHECK**. From `delegate_submit` (or `submitReceipt` when `wait: true`) and the first
actionable wait/result receipt, verify source path, `executionWorkspacePath`, isolation, DSH
workspace/session identity, and `agentTeams` / `agentTeamsOrigin` / `team.applied` /
`team.enabled`. Pause dependent dispatches and report any mismatch.
For a normal single repo, submit and wait in one script:
```js
// @exec: {"yield_time_ms": 1200000}
text(await tools.mcp__dsh_delegate__delegate_submit({ workspacePath, title, prompt, autoPreflight: true, wait: true }));
```
## WAIT & EVENTS (SINGLE DIRECT CHAIN IN THIS SESSION)
**Direct single-chain wait — NO `spawn_agent` / `wait_agent` wrapper**. Omit `waitSeconds` (default 3600 seconds,
Codex tool timeout 3660 seconds). A shorter wait is only for an explicitly requested one-off diagnostic.
Never poll `delegate_status` or `delegate_result` during a wait. The cadence
belongs to the tool, not to you. Resume an existing task with its `taskId`.
```js
// @exec: {"yield_time_ms": 1200000}
text(await tools.mcp__dsh_delegate__delegate_wait({ taskId }));
```
- Prefer a direct blocking MCP call when Codex exposes one. In Code Mode, set a long outer yield
before the first call that waits, and keep it for every continuation, including waits after a
permission decision or a question answer: ALWAYS start every waiting `functions.exec` script
with `// @exec: {"yield_time_ms": 1200000}` — never self-downgrade to a 60000 ms short yield.
- If Code Mode returns `Script running with cell ID`, keep the existing MCP call active. If the
host offers automatic continuation, let the tool layer resume it. Otherwise call
`functions.wait` on the same `cell_id` with the same long `yield_time_ms` (`1200000`, never
`60000`). Keep waiting for the MCP answer or agreed deadline.
- `wait-limit` — THIS call's own wait budget ran out (`actionable: false` and `terminal: false`):
call `delegate_wait` on the same `taskId` immediately.
- `heartbeat`: nothing to report — call `delegate_wait` on the same `taskId`.
- `ready`: execution finished — this is not acceptance. Call `delegate_result` ONCE (pass
`includeDiff: false` when reviewing locally in `executionWorkspacePath` to avoid duplicating
patches in context; paginate omitted notes/summaries only if needed). Review in Codex, then
call `delegate_review` (`accepted` or `changes-requested`, `note`, optional
`completionSummary`, `receiptOnly: true`) and confirm `reviewPersistence.state === "saved"`
(`reviewPersistence.durable === true`; if `saving`/`timed-out`, report honestly; if `failed`,
retry). Consolidate defects into ONE follow-up via `continueFromTaskId`.
- `permission` (routine fast-path — no need to read the reference unless `waitError` or
`confirmation: "unknown"` occurs): inspect complete arguments (`argumentsComplete: true`,
`allowBlocked: null`); Codex's own `approval_policy` never forbids granting `allow-once` to a
safe, complete in-scope build/test command (at most 1–2 final verification runs per task run).
Immediately `reject` ad-hoc inline probes (e.g. `node -e` / `python -c`), routine `git status`
checks, out-of-workspace scripts, destructive/network/credential ops, or incomplete evidence,
telling the worker to use native file tools and batch one final build/test run. Copy `requestId`
and exact `fingerprint` (`allow-once` requires `fingerprint`; omit `scope`):
```js
// @exec: {"yield_time_ms": 1200000}
text(await tools.mcp__dsh_delegate__delegate_permission_decide({
taskId, requestId, decision, reason, waitAfterDecision: true,
...(fingerprint ? { fingerprint } : {}),
}));
```
- `question` (routine fast-path when `questionAnswerable !== false`): answer every asked `id`
with offered labels in `selected` and/or allowed `custom` text (`grantsAccess` is always false):
```js
// @exec: {"yield_time_ms": 1200000}
text(await tools.mcp__dsh_delegate__delegate_question_answer({
taskId, requestId, answers: [{ id, selected: [label] }], waitAfterAnswer: true,
}));
```
Read the complete matching reference section for a client timeout, `attention`, `failed`,
`cancelled`, `interrupted`, or receipt recovery (`waitError` / `confirmation: "unknown"`). Use its
control section for an explicit inspection or stop request during a blocking wait.
## DO NOT IMPLEMENT LOCALLY WHILE A DELEGATED WORKER RUNS
Never commit, stash, branch, reset or edit locally while a delegated task is running, waiting or
awaiting review (single-writer guarantee). The ONLY exception is an explicit user-authorized
takeover — never a long silence, a permission refusal, a failed run or your own judgement. While
you are waiting, stay silent and do NOT narrate snapshots that have not changed (except for work
INDEPENDENT of the delegated task, an inspection the operator explicitly asked for, or a blocked
diagnosis).
## REVIEW BOUNDARY (PRAGMATIC ACCEPTANCE)
1. Report task state, actual provider/model/effort from the result, confirmed `agentTeams` /
`agentTeamsOrigin` / `team.applied` / `team.enabled`, actual execution directory, DSH
workspace/session identity, changed-file summary, verification evidence and limitations. Codex
remains responsible for reviewing changes/tests, accepting or requesting changes, and deciding
any follow-up. Never commit, push, or read/store/relay credentials or connection tokens.
2. **Pragmatic acceptance bar (prevent nitpick rework)**: judge against the designated test suite,
explicit spec contracts, error codes and documented boundaries. Request changes
(`changes-requested`, consolidated into ONE follow-up via `continueFromTaskId`, freezing
dependent downstream packets) ONLY for genuine spec/requirement violations, real functional or
edge-case bugs, failing/missing required tests, out-of-scope edits, or leftover temp/junk files.
**Do NOT invent adversarial out-of-spec fuzz probes** (e.g. contrived out-of-spec extremes or
artificial edge cases not implied by the specification) to reject passing deliveries. Focus
review on core changed implementation files and one bounded verification run (confirming 0
failures and no unexpected skipped tests), without reading lengthy boilerplate test files or
truncated log dumps line-by-line unless diagnosing a failure or skip. Consolidate all defects in
the first review (converging within 1 rework round); record minor style preferences or
out-of-spec extremes as non-blocking notes and accept (`accepted`).
## LOCAL VERIFICATION
After `ready`, call `tools.mcp__dsh_delegate__delegate_result({ taskId, includeDiff: false })` once.
In the same exec, check `!res.isError`, `data.ok === true`, then match the task and checkout receipt
to the authorized source and saved submission/wait receipts. Stop on missing or conflicting evidence.
Only then run one combined check in the verified `executionWorkspacePath`. Capture
`git rev-parse --short HEAD`, `git status --short`, `git diff --stat`, `git diff --check` and the
designated tests. Read relevant changed code with bounded output.
After verifying, send the review and check durable persistence. On the final `accepted` `worktree`
task (omit on `changes-requested` or intermediate subtasks), pass `applyToSource: true` so
TaskBridge syncs changes to `sourcePath` without committing; never copy, patch, or re-test there
yourself. Once `sourceSync.applied === true`, do not run extra hash or git checks in `sourcePath`.
Report `sourceSync` (`applied`, `reason`, `conflictingPaths`) and `executionWorkspacePath`.
```js
text(await tools.mcp__dsh_delegate__delegate_review({ taskId, decision, note, receiptOnly: true, applyToSource: true }));
```