ソース情報
- リポジトリ
- mitchellfyi/dex
- ソースの最終更新活動
- 2026年8月27日 11:02
- 検出された SKILL.md の言語
- 英語
- スター
- 4
- フォーク
- 2
インストール方法
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
ソースファイルを確認
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
メニュー
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/mitchellfyi/dex --skill dexコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
Run independent full-scope Dex review waves until the selected risk tier's consecutive clean-pass gate succeeds.
Execute the approved implementation plan with TDD discipline and completeness verification.
Generate or update a PR description, create new pull requests as drafts by default, and attach request-type reviewers.
SKILL.md を表示中
| name | dex |
| description | Orchestrate the full Dex ticket lifecycle from planning through PR completion. |
Orchestrate the full ticket lifecycle from planning through completion.
/dexThe terminal dx lifecycle runs phases in the same Claude Code session. Each phase has an audit loop that critically reviews the work before allowing completion; when the phase passes, the Stop hook injects the next phase instructions directly into the current session.
Commits, pushes, and pull-request actions remain available in every phase. Phase assignments describe their default focus and owner. When a direct human instruction or the active workflow calls for one of those actions, record the resulting state and continue using the current phase's completion criteria.
prompts/ticket-instructions.md end to end:
setup.ticket-ownership waiver may continue without claiming ownership changed.tracker_key and current_branch so future dx <N> invocations can find the worktree even after the branch rename.dx_phase_ready_file ... 0) and stop once so the Stop hook can audit and advance to Phase 1 automatically./dxplan — gather any remaining context, draft the implementation plan, create tasks.plan.approval waiver; do not represent it as human approval.dx lifecycle, stop once immediately after approval so the Stop hook can audit the plan and inject Phase 2 in the same session. Do not tell the user to run /dximplement./dex interactively without the wrapper, output PHASE_1_COMPLETE when the user approves.skill: "dximplement" — work through tasks with TDD discipline. The plan approval was the go-ahead; do not pause to ask for permission./dxuicapture early to decide whether visual proof would help. The agent may capture a concise walkthrough, record SKIPPED with a reason for a visible but disproportionate case, or record N/A when there is no browser impact. When capture is chosen, prefer a matched before/after flow, keep it under 90 seconds, and surface the temporary bundle after baseline and production.SKIPPED decision is valid; it is not reported as a successful capture.small, normal, or complex, with a
deterministic set of reason codes. The tier selects the trusted clean-wave
policy from the committed default branch. Its defaults are 1, 3, and 6;
.dex/dex.md may configure monotonic values from 1 through 30.PHASE_2_COMPLETE when all tasks are implemented, the evidence table
shows all criteria MET, and the review-risk selection matches the final
scope fingerprint and trusted policy./dxreviewloop to run the independent adversarial review loop using
the risk tier recorded by the Phase 2 implementation agent. A legacy or
resumed lifecycle with no valid current-scope selection may use the wrapper's
fresh read-only lifecycle assessor as a recovery path before the first wave./dxreviewloop iteration runs one full review wave in a fresh CLI
session: compact context pack, deterministic checks, issue harvest, verifier
triage when needed, batch fixes, and targeted recheck.FINDINGS_FIXED:N, reset the clean
counter, and force the next iteration to re-review the full change set.small, 3 for normal, and 6 for complex. A candidate
branch cannot lower the active gate, and the loop has no outer iteration
maximum. For an outlier, dx control override review.clean-passes <1-30>
keeps independent review while changing the target. A lower target is bound
to the attributed decision and records Phase 3 as waived. Use
dx control waive review.clean-passes only to skip the remaining waves.FINDINGS:N, BLOCKED:reason-code, CHURN:reason-code, invalid results,
provider failures, and deterministic fingerprint churn pause the loop.
If an interrupt leaves .phase-3.busy behind and the Stop hook reports that
its recorded owner PID is dead, do not remove state files or wait for the
ordinary timeout. Run exactly:
bash "$DEX_DIR/bin/control.sh" recover review --source agent --reason "<why the review owner stopped>".
Use this only for the dead-owner diagnosis. The command refuses live or
malformed state and leaves Phase 3 paused; then follow the user's direction
to /dxresume or /dxskip.PHASE_3_COMPLETE only when the current scope has a valid review
receipt binding the approved criteria, trusted policy, attested clean
ledger, and any lower-target override. Report whether the trusted target
passed or the attributed lower target was waived./dxverify — format, lint, typecheck, generate, test.dx_failure_attempts_per_strategy and dx_failure_max_strategies as described in prompts/failure-recovery.md./dxcommit — atomic conventional commits, push to origin.PHASE_4_COMPLETE when all checks pass and code is pushed./dxpr — generate the PR description, refresh any UI after-capture handoff, create or update the PR, attach request-type reviewers from dex.md § Reviewers, and update the tracker if available. New PRs default to draft.@mention comments so reviewer notifications happen together. If the user directs either action in Phase 5, carry it out and record the updated PR state for Phase 6.PHASE_5_COMPLETE when the PR is current, its actual draft or ready state is recorded, and reviewers are attached.## Reviewers from dex.md. On the first cycle: gh pr ready, re-sync request reviewers (idempotent), post one @mention comment listing all mention reviewers./loop 5m /dxwatchpr. The PR watcher handles both CI failures and review feedback.dx_complete_wait_minutes (default 5) each cycle. The Stop hook re-injects the audit and only authorizes outcome evaluation once the current window has elapsed.dx_complete_ci_fix_attempts, or encounters architectural review comments, a secrets scan failure, or a scope conflict. Ask for or record a justified waiver when an exception is appropriate.request reviewers and post a fresh mention comment so reviewers know there's something new.dx_complete_max_cycles value (default 3) is reached with no progress, escalate to the user.request reviewers have approved, run /dxcomplete's final verification — update tracker to Done, print summary.DEX_TICKET_COMPLETE once verification passes.If the session is interrupted, dx 999 or dx --resume picks up from the saved phase. Phase tracking is handled by the dx shell lifecycle (see dx.sh __dx_run_phases_inline), which persists the current phase number in ~/.claude/.dex-phases/<session_id>.phase. The Stop hook is responsible for advancing phases in-session by updating phase state and injecting the next phase message and audit prompt.
An interrupted Phase 3 review may need fence recovery before resume. Trust the Stop hook's PID diagnosis, not the marker's age: recover only when it says the owner is dead, never while it says review is still running. Recovery is maintenance, not evidence that review passed.
As a fallback (for example, /dex without the wrapper), use repository and PR
state to orient the next action. External state is a hint, not proof that an
unrecorded Review or Verify phase passed. Prefer persisted Dex phase outcomes
when they exist. Ask for a waiver or jump before bypassing an unresolved gate
when the consequence is material; the active agent may also apply a reasoned
session override when the safe choice is clear.
Check for existing PR: gh pr view --json state,isDraft,statusCheckRollup
worktree-ticket-* or worktree-task-* and ticket status is not yet In Progress → Phase 0 (Setup)Check task list: If tasks exist from a prior /dxplan, offer to resume from the first incomplete task rather than re-planning.
Check ticket state (if tracker configured):
worktree-* name → Phase 0 (Setup) still pending| Phase | Trigger | Action |
|---|---|---|
| 1 | Plan ready | Present plan, wait for approval |
| 2 | Ambiguous requirement | Present options, ask user to choose |
| 2 | Scope change needed | Explain impact, ask approval |
| 3 | Findings, blocker, churn, invalid result, or provider failure | Pause with the normalized reason and required intervention |
| 2-5 | Normal phase completion | Stop once; the Stop hook injects the next phase automatically |
| 5 | PR created or updated | Stop; Phase 6 takes over automatically |
| 6 | CI secrets scan failure | Cancel all loops, alert immediately |
| 6 | 3 failed CI fix attempts | Cancel loops, escalate with details |
| 6 | Architectural review comment | Cancel loops, escalate to user |
| 6 | Max cycles reached idle | Escalate to user (no progress) |
When the session is started by dx, a Stop hook prevents premature exit and injects a phase-specific audit prompt. Activation is signaled via an .active file in ~/.claude/.dex-loops/ (and optionally the DEX_LOOP_ACTIVE=1 env var as a belt-and-suspenders mechanism). Each phase has its own quality criteria — the loop continues until the audit is satisfied. This enables quality-gated autonomous execution:
/dxverify fails → fix and retry automaticallyFINDINGS_FIXED:N) → reset the clean
streak and run a fresh full-scope waveFINDINGS:N, BLOCKED:*, or CHURN:* → pause
for interventionThe phase audit loop continues until:
DEX_TICKET_COMPLETE when ALL of these are true:
/dxreviewloop's clean-pass loopThe outer /dxreviewloop has no iteration maximum. It stops only after its
clean gate succeeds or it reaches a blocker, residual finding, churn condition,
provider failure, invalid result, user interruption, or direct intervention.
Only output DEX_TICKET_COMPLETE when you have verified:
gh pr view --json state,statusCheckRollup shows the PR is open/ready and all checks passedEven in autonomous mode, escalate to the user by default for:
dx_failure_attempts_per_strategy budget at the same fixWhen a launch or Stop audit supplies an exact generation-bound escalation
command, use that literal command after the current
dx_failure_max_strategies default is reached. It pauses and detaches the current generation and revokes its
completion authorization. It does not create a human control receipt or a
completion receipt. Never substitute a raw pause marker, a generic human
control command, or relaxed completion criteria.
These are soft escalation defaults. If an outlier makes one counterproductive, the agent may ask the user or record a specific, reasoned override itself. It must preserve any unmet assurance item as waived, skipped, or unresolved.
/dex.