소스 정보
- 저장소
- 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명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? 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.