|
| 1 | +--- |
| 2 | +id: dso-hu14 |
| 3 | +status: open |
| 4 | +deps: [dso-1cje, dso-yv90] |
| 5 | +links: [] |
| 6 | +created: 2026-03-23T15:20:45Z |
| 7 | +type: task |
| 8 | +priority: 1 |
| 9 | +assignee: Joe Oakhart |
| 10 | +parent: w21-wbqz |
| 11 | +--- |
| 12 | +# Update documentation and CLAUDE.md prose with ticket CLI references |
| 13 | + |
| 14 | +Update all skill files, documentation files, and CLAUDE.md to use ticket CLI commands instead of tk commands where ticket equivalents exist. The tk wrapper remains for Jira sync and tk-only commands. |
| 15 | + |
| 16 | +## test-exempt justification |
| 17 | +test-exempt: (1) no conditional logic — pure prose/text replacement; (2) any test written would be a change-detector test asserting strings exist in files, not behavioral tests; (3) documentation-boundary-only with no business logic. |
| 18 | + |
| 19 | +## Depends on |
| 20 | +dso-1cje (infrastructure updates must be complete) |
| 21 | +dso-yv90 (hook behavioral guards must be finalized) |
| 22 | + |
| 23 | +## Enumerated Replacement Patterns |
| 24 | +Apply these specific patterns (NOT blanket s/tk/ticket/g): |
| 25 | + |
| 26 | +REPLACE: |
| 27 | + tk show <id> → ticket show <id> |
| 28 | + tk create → ticket create |
| 29 | + tk list → ticket list |
| 30 | + tk dep tree <id> → ticket deps <id> |
| 31 | + tk status <id> <s> → ticket transition <id> <current> <s> |
| 32 | + tk close <id> → ticket transition <id> open closed |
| 33 | + tk open <id> → ticket transition <id> closed open |
| 34 | + tk add-note <id> → ticket comment <id> |
| 35 | + tk comment <id> → ticket comment <id> |
| 36 | + tk transition <id> → ticket transition <id> |
| 37 | + |
| 38 | +KEEP AS-IS (tk wrapper only): |
| 39 | + tk sync → tk sync (Jira bridge; no ticket equivalent) |
| 40 | + tk ready → tk ready (tk-wrapper query; no ticket equivalent) |
| 41 | + tk blocked → tk blocked (tk-wrapper query; no ticket equivalent) |
| 42 | + tk dep <child> <p> → (handled in T3 as closed-parent-guard context; in docs: ticket link) |
| 43 | + |
| 44 | +## Files to Update |
| 45 | + |
| 46 | +### CLAUDE.md (8 tk references) |
| 47 | +- Line 52 quick reference table: 'tk sync' — KEEP (Jira bridge) |
| 48 | +- Line 60 prose: 'the higher-level tk wrapper adds Jira sync' — KEEP (accurate description) |
| 49 | +- Line 61 prose: 'Epic closure enforcement: tk close <epic-id>' → 'ticket transition <epic-id> open closed' |
| 50 | +- Lines 127/128 Always Do These: 'tk sync', 'tk write commands' — KEEP (timeout guidance for tk sync) |
| 51 | +- Line 142 Plan Mode: 'Create tk epic' → 'Create ticket epic' (or just 'Create epic' — the command is 'tk create ... -t epic' currently; update to 'ticket create ...') |
| 52 | +- Line 160 Session close: 'not the tk Session Close Protocol' — KEEP if this refers to a known legacy doc |
| 53 | + |
| 54 | +### plugins/dso/skills/ (45 files) |
| 55 | +Apply enumerated replacement patterns above. Key files: |
| 56 | +- plugins/dso/skills/sprint/SKILL.md: many tk show/create/status/close/ready/dep-tree refs |
| 57 | +- plugins/dso/skills/fix-bug/SKILL.md |
| 58 | +- plugins/dso/skills/implementation-plan/SKILL.md (already reviewed — apply patterns) |
| 59 | +- plugins/dso/skills/preplanning/SKILL.md |
| 60 | +- All other SKILL.md and prompt files with tk refs |
| 61 | + |
| 62 | +### plugins/dso/docs/ (23 files) |
| 63 | +Apply enumerated replacement patterns. Key files: |
| 64 | +- plugins/dso/docs/workflows/COMMIT-WORKFLOW.md: 'tk add-note' → 'ticket comment' |
| 65 | +- plugins/dso/docs/workflows/REVIEW-WORKFLOW.md: same |
| 66 | +- plugins/dso/docs/ticket-cli-reference.md: update any tk show/create examples that should use ticket CLI |
| 67 | +- plugins/dso/docs/WORKTREE-GUIDE.md |
| 68 | +- plugins/dso/docs/INSTALL.md |
| 69 | +- plugins/dso/docs/SUB-AGENT-BOUNDARIES.md |
| 70 | + |
| 71 | +## Post-Update Verification (required ACs — verification gate) |
| 72 | +After all documentation updates complete: |
| 73 | + |
| 74 | +1. Enumerate-patterns grep (must return NO matches): |
| 75 | + grep -rn '\btk show\b\|\btk create\b\|\btk close\b\|\btk add-note\b\|\btk status\b\|\btk transition\b\|\btk dep tree\b' plugins/dso/skills/ plugins/dso/docs/ CLAUDE.md |
| 76 | + |
| 77 | +2. Remaining tk refs grep (all surviving hits must be tk-wrapper-only commands): |
| 78 | + grep -rn '\btk\b' plugins/dso/skills/ plugins/dso/docs/ CLAUDE.md plugins/dso/hooks/ |
| 79 | + Verify all hits are: tk sync, tk ready, tk blocked, tk dep (as legacy reference), or prose descriptions of the tk wrapper |
| 80 | + |
| 81 | +3. Syntax validation on all modified .sh files: |
| 82 | + bash -n plugins/dso/hooks/lib/pre-bash-functions.sh |
| 83 | + bash -n plugins/dso/hooks/closed-parent-guard.sh |
| 84 | + bash -n plugins/dso/hooks/bug-close-guard.sh |
| 85 | + bash -n plugins/dso/hooks/compute-diff-hash.sh |
| 86 | + bash -n plugins/dso/scripts/merge-to-main.sh |
| 87 | + |
| 88 | +4. Python syntax validation: |
| 89 | + python3 -m py_compile plugins/dso/scripts/merge-ticket-index.py |
| 90 | + |
| 91 | +5. Test suite: |
| 92 | + bash tests/run-all.sh |
| 93 | + |
0 commit comments