[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6QX1DQJ755E43WMP60V2EKQ":3,"skill-same:01M6QX1DQJ755E43WMP60V2EKQ":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":50,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M6QX1DQJ755E43WMP60V2EKQ","clt-task-management",null,"Manage project tasks with the clt file-system-backed Kanban CLI, including safe pre-task Git synchronization, backlog triage, initialization, task creation and listing, status transitions, outcome notes, deletion, folder-backed tasks, and nested boards. Use when Codex needs to inspect, create, track, update, complete, or organize tasks in a project that uses clt or tasks\u002Fbacklog.md, tasks\u002Ftodo.md, tasks\u002Fdoing.md, and tasks\u002Fdone.md.","AlpineVibrations\u002Fclt-rs","AlpineVibrations","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10145679?v=4","01M6QX134555FM7REQ5KXYBAXA","lk","01M6QX139Q0SSN19FVB16KWYPD",1,"MIT","https:\u002F\u002Fgithub.com\u002FAlpineVibrations\u002Fclt-rs\u002Fblob\u002Fmaster\u002Fskills\u002Fclt-task-management\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"task","clt task management","management","task management","create","update","tasks","synchronization","notes","outcome","cli","todo","done","project","creation","inspect","initialization","track","when","safe","2026-11-10 10:12:30",false,"---\nname: clt-task-management\ndescription: Manage project tasks with the clt file-system-backed Kanban CLI, including safe pre-task Git synchronization, backlog triage, initialization, task creation and listing, status transitions, outcome notes, deletion, folder-backed tasks, and nested boards. Use when Codex needs to inspect, create, track, update, complete, or organize tasks in a project that uses clt or tasks\u002Fbacklog.md, tasks\u002Ftodo.md, tasks\u002Fdoing.md, and tasks\u002Fdone.md.\n---\n\n# Skills: Project Task Management with `clt`\n\nThis document defines the skills and operational procedures for an agent to manage project tasks using the `clt` (lls-cli-task) tool.\n\n## Overview\nThe project uses a file-system-backed Kanban system. By default, the tool automatically detects the git repository root and locates the `tasks\u002F` directory there to keep task management centralized across the project. Tasks are stored in Markdown status files by default:\n- `tasks\u002Fbacklog.md`: Captured tasks that are not ready to start.\n- `tasks\u002Ftodo.md`: Tasks to be started.\n- `tasks\u002Fdoing.md`: Tasks currently in progress.\n- `tasks\u002Fdone.md`: Completed tasks.\n\nStatuses can also be folders instead of Markdown files:\n- `tasks\u002Fbacklog\u002F`: Each direct file or subfolder is one backlogged task.\n- `tasks\u002Ftodo\u002F`: Each direct file or subfolder is one todo task.\n- `tasks\u002Fdoing\u002F`: Each direct file or subfolder is one active task.\n- `tasks\u002Fdone\u002F`: Each direct file or subfolder is one completed task.\n\nFor folder-backed statuses, `clt` displays the first sentence of each task file while preserving the full file content for longer notes. A task subfolder with its own `backlog`, `todo`, `doing`, and `done` stores is a nested subtask board in the TUI.\n\n## Start-of-Task Git Sync\n\nFor ordinary interactive work, before moving a task to `doing` or editing files for a new task in an existing Git repository, inspect the checkout:\n\n```bash\ngit status --short --branch\n```\n\nIf the worktree and index are clean, HEAD is attached to a branch, and that branch has an upstream, update it before starting the task:\n\n```bash\ngit pull --ff-only\n```\n\nDo this before the CLT status transition because moving a task to `doing` changes the task board and makes the checkout dirty. Use fast-forward-only so the startup sync cannot create a merge commit, rebase local commits, or disturb user work. If the checkout is dirty, detached, has no upstream, or cannot fast-forward, do not stash, discard, commit, switch branches, or integrate changes solely to make the pull succeed. Continue from the current checkout when safe and mention that the startup pull was skipped or could not complete.\n\nThe automated CLT Git workflow is different: do not run the inspection\u002Fsync procedure above from inside a released automated run. The intended checkout, branch, and upstream must be configured before scheduling. A newly created Todo may remain unstaged: before spawning or releasing Codex, CLT accepts pre-existing staged changes, performs the safe fast-forward-only startup sync only when the checkout is clean and no older `WORKING` journal requires preserving its history, and checkpoints a dirty task board in a dedicated `CLT Agent` commit without including unrelated implementation changes or replacing pre-existing staged entries. It captures the resulting `HEAD`, branch, exact index tree, worktree baseline, and upstream configuration and persists that server-owned launch state. Any spawned child remains gated until its remaining session fences are registered. CLT releases the agent only after preparation succeeds. Commit-and-push mode requires an attached branch with one configured upstream at that boundary.\n\nAfter release, inspect the provided state but do not pull, fetch\u002Fsynchronize, merge, rebase, switch branches, reset history, reconfigure the upstream, or push. Move the selected task to Doing before implementation; CLT rechecks the frozen state and binds it to the session's `WORKING` journal at that transition.\n\nUnstaged task-board edits and other unstaged or untracked changes made after launch do not invalidate activation or terminal-worker launch recovery. Preserve those edits and continue with the selected task; CLT still checks HEAD, branch, upstream, the index, and the selected task identity without replacing the recorded baseline.\n\nIf CLT reports an unconsumed pre-registration launch boundary, do not try to replace it or clean\u002Funregister the project. CLT never overwrites that snapshot, including when a reaped child exited before announcing its session. It reclaims the record only after proving the exact worker terminal, finding no session-control row for its run token, and matching HEAD, branch, upstream, and index to the frozen state using that record's Git mode; otherwise recovery fails closed. Project Git settings may change for subsequent runs; active task commands and unfinished managed Git journals retain their recorded mode.\n\nA dirty worktree is expected in shared repositories where a person, an interactive session, or an independent worker may have changes in progress. It is not a blocker by itself. Treat the initial status and diff as the baseline, preserve pre-existing changes, and continue with non-conflicting work. Another change in the same file is also not automatically a blocker: re-read the affected area and keep both changes when the intended combined result is clear. Mark the task blocked only when the required edits genuinely conflict and the correct result cannot be determined safely.\n\nThe shared Git index is different from the shared worktree: it is a cooperative ownership boundary during automated finalization. People, interactive sessions, and parallel tools must not stage or unstage changes while the active automated task owns the index. CLT seals the reviewed index without requiring unstaged or untracked work to match the launch baseline; later outside edits are intentional shared work. Git cannot identify which actor staged a change.\n\nAfter moving the task to Doing, review pre-existing staged changes for task scope; their presence alone is not a blocker. Include only verified changes belonging to this task. If unrelated work is already staged, use a separate `GIT_INDEX_FILE` initialized from the current `HEAD` for task staging, every `clt done`\u002Freseal invocation, and the task commit. Keep that index available across retries. After the commit, reconcile only the task changes into the shared index, preserving unrelated staged entries and same-file hunks. Never clear the shared index or commit unrelated staged work just to proceed.\n\nA Todo or other task-board edit added after the automated run starts may remain unstaged. Preserve it and continue finalization: CLT's exact staged-tree proof excludes that concurrent board work from the sealed task commit. Stage only the selected task's status transition, its explicit follow-up, or related hunks; never use a whole-board add when it would absorb the concurrent edit.\n\n## Coordinating shared work\n\nBefore implementation, read `clt context` and declare planned scope with\n`clt coordinate \u003Cstatus> \u003Cindex> --scope '\u003CJSON>'`. The scope object accepts\n`intent`, `files`, `modules`, `interfaces`, `resources`, and a `behavior` map.\nThis replaces scope, so retain all still-relevant fields. An invocation without\noptions assigns a stable task ID without starting work. Use those IDs for\n`--depends-on`, `--remove-dependency`, or an evidence-backed `--compatible` or\n`--conflict` assessment with `--reason`. Never infer ownership from dirty files.\n\nRun `clt context --check doing \u003Cindex>` before edits and finalization. Update scope\nbefore expanding work; reassess changed requirements, interfaces and resources,\nincluding overlap across different files. Context names other owners and their\nintended changes. A CLI claim alone does not prove the session is running.\nAutomated workers receive refreshed context in their existing turn; direct\nsessions refresh it explicitly and preserve their claim and conversation.\n\nA coordination wait is recomputed from its exact prerequisite or overlap. Do not\nturn it into a dated BLOCKED note. An unsealed automated task should return to Todo\nwith its session and work preserved, then exit; a participating manual task keeps\nits claim while deferring incompatible edits. Unrelated ready work may proceed.\nExplicit stops and provisional Done recovery retain their existing controls.\n\nUse `clt finalize doing \u003Cindex> -- \u003Ccommand> [args...]` to run the entire reviewed\nstaging, sealing\u002Fresealing and one-commit sequence under cooperative Git ownership.\nFor a provisional Done retry use its current Done index. A script can perform the\nsequence, retaining the same separate `GIT_INDEX_FILE` when needed. Inspect the\nindex before each seal and commit, and never include another task's staged work.\nThis lock does not reserve editing or planning. Its process lifetime, rather than\nan old lock file, determines ownership; retry after the owning command exits.\nDo not stage through bare Git while another participant owns finalization.\n\n## Core Workflow\nQueued work follows this state transition pipeline:\n`Todo` → `Doing` → `Done`\n\n1. **Capture\u002FTriage**: New queued tasks go in Todo. Use Backlog only when the user asks. Backlog tasks are not eligible for automated agent runs.\n2. **Identify\u002FCreate**: Add actionable requirements or bugs to `todo`, or promote a ready backlog task to `todo`.\n3. **Activate**: Inspect the selected task and applicable repository instructions, then move it from `todo` to `doing` before editing implementation files. For ordinary interactive work, finish pre-task Git sync\u002Fbranch selection first. In an automated Git-enabled run, CLT already completed and froze that preparation before release; do not repeat or alter it.\n4. **Complete**: Once the task is verified and finished, move it from `doing` to `done`.\n\nFor work started in a directly opened Codex session, use the manual workflow below:\n`clt start` creates and reserves a Doing task atomically; `clt claim` activates an\nexisting task. Do not briefly expose direct work as an eligible Todo.\n\nFor an automated CLT run whose project Git mode is `commit` or `commit-and-push`, the final move has stronger semantics. `clt done` records a durable finalization intent before it moves the board entry. The entry in the Done store is provisional while CLT reports it as `FINALIZING`; it becomes terminal only after CLT proves the task-specific commit, and, in push mode, proves that commit is present on the configured upstream. The same linked Codex session resumes an interrupted finalization. Do not select another task, create a replacement task, or move the provisional entry back to Doing.\n\n## Command Reference\n\n### 1. Initialization\nIf the `tasks\u002F` directory is missing, initialize the system:\n```bash\nclt init\n```\nUse the default Markdown-file mode for normal agent task tracking. Only initialize folder-backed statuses when the user explicitly asks for expanded tasks or the project has already adopted that format.\n```bash\nclt init --folders\n```\nTo force initialization in the current working directory instead of the git root ( not used most the time ), use:\n```bash\nclt --local init\n```\n\nTo expand existing Markdown status files into folder-backed task files:\n```bash\nclt expand        # Expand backlog.md, todo.md, doing.md, and done.md\nclt expand backlog\nclt expand todo   # Expand one status\n```\nExpansion preserves the original Markdown file as `status.md.bak`.\n\n### 2. Adding Tasks\nAdd a new task to the `todo` list.\n```bash\nclt add \"Task description\" [\"Optional metadata\"]\n```\n\nBefore creating a task or adding a dependency, check the relevant dependency chain. Never make a task depend on itself, directly or through other tasks; split or reorder the work to avoid circular dependencies.\n\nCreate tasks in stopped mode (`clt:stopped`) only when the user explicitly asks\nfor it. Use the normal Todo or manually claimed Doing workflow otherwise.\n\n#### Reserve tasks in standalone Codex sessions\n\nWhen the user opens a completed task interactively through CLT, keep the same\nconversation and leave the task in Done. `CLT_INTERACTIVE_TASK_SESSION` and the\ncontinuation prompt identify a discussion, not authorization to implement or\nreactivate work. Do not claim, move, create a replacement tracking task, or start\nan automated run just to answer questions. Edit task content or begin new work\nonly when explicitly requested, preserving the terminal `codex:\u003Csession-id>`\nlink. The previous automated run and terminal Git journal are not restarted.\nA provisional Done entry with unfinished Git proof retains its existing controls.\n\nWhen Codex is working directly in a CLT-enabled project, outside a `clt agent`\nrun, create and claim the task directly in Doing with `clt start`. This attaches\nthe current conversation and reserves that task against automated pickup and\ninterrupted-task recovery. Other manual sessions and unrelated automation may\ncontinue in the same project. Use it even when project automation is disabled.\n\nUse the exact current session ID supplied by the Codex runtime (for example,\n`CODEX_THREAD_ID` when available). Do not guess an ID, use a process ID, or take\none from another task or the most recent session on disk. If the current ID is\nunavailable, report that the task cannot be linked or claimed yet; do not create\na stopped fallback task unless the user explicitly asks for it. Do not leave an\neligible Todo for this work.\n\n```bash\n# Only after confirming CODEX_THREAD_ID identifies this Codex session:\nclt start \"Fix memory leak in parser [BUG, HIGH]\"\n# Or: clt start \"Task description\" --session \u003Cexact-current-session-id>\n\n# Existing unlinked task, or a task already linked to this session:\nclt list todo\nclt claim todo \u003Cindex>\n```\n\nDirectly claimed Codex tasks display `[CLI]` while claimed. Claims survive session exits,\nrestarts, edits, and moves to Backlog. Moving a task to Todo in the TUI or with\n`clt status` releases its manual claim, removes the label, and preserves its\nconversation for normal automation. Finish with `clt done`, or, when the user wants\nautomation to take over, record the plan and remaining work, list the current\nstatus, and run `clt handoff doing \u003Cindex>`. Handoff moves the task to Todo and\nkeeps the same conversation. Stop editing after handoff because an enabled\ndaemon may resume immediately. Do not hand off automatically just because a\nturn ends. Existing automated sessions keep their established CLT controls;\nnever replace another session's link or take over its task. Another task running\ntests or doing independent work is not a reason to stop this task. Coordinate\noverlapping edits, and leave staging alone while another task seals its commit.\n\nPreserve both `clt:manual` and the final `codex:\u003Csession-id>` token when adding\nnotes. `clt start` and `clt claim` write these markers for you. Use an updated\nCLT binary and scheduler; an older daemon cannot honor manual claims. If these\ncommands are unavailable, report that CLT needs upgrading; do not create a\nstopped fallback task unless the user explicitly asks for it. Do not substitute\nan eligible `add` followed by `status`.\n\nInspect the stored task after creation; `clt list` hides session markers. For a\nMarkdown-backed status the marker ends the task's line; for a folder-backed\nstatus it ends the full task file, after any detail paragraphs. Keep it at the\nend when adding completion or blocked notes. Preserve an existing task's link\ninstead of replacing it with the editing session's ID.\n\nA session must not be linked to multiple tasks on the board. If this session\nalready belongs to a task, preserve that identity and leave additional tasks\nunlinked. In automated runs, CLT attaches the selected task's marker when moving\nit to Doing; preserve that marker. Independent `clt follow-up` tasks use their\nown follow-up reference and must not receive the parent's `codex:` marker.\n\n### 3. Listing Tasks\nAlways list the relevant status before performing index-based operations to ensure the correct `task_index` is used. Prefer status-scoped listings so unrelated tasks do not consume context.\n```bash\nclt list todo     # List only todo tasks\nclt list doing    # List only doing tasks\nclt list done     # List only done tasks\nclt list backlog  # List backlog only when the current work requires it\nclt list          # List all statuses only when a whole-board view is necessary\n```\n\n**Sample output:**\n```\n--- TODO ---\n1. Fix login bug\n2. Add dark mode\n```\n\nEach section lists tasks with a 1-based index scoped to that status. An empty section displays the header with no items beneath it. Always use the index relative to its section — index `1` in `BACKLOG`, index `1` in `TODO`, and index `1` in `DOING` refer to different tasks.\n\nFolder-backed tasks still use the same status-scoped indexes. `clt list` marks folder tasks that contain nested boards with `[subtasks]`.\n\n### 4. Managing Task Status\nMove tasks between lists using their 1-based index.\n\n**Move to In Progress:**\n```bash\nclt status todo \u003Cindex> doing\n```\n\n**Backlog or promote a task:**\n```bash\nclt status todo \u003Cindex> backlog\nclt status backlog \u003Cindex> todo\n```\n\n**Mark as Done:**\n```bash\nclt done doing \u003Cindex>\n```\n*(Alternatively: `clt status doing \u003Cindex> done`)*\n\nIn an automated Git-enabled run, use this command only after the implementation and completion note are verified, all file-mutating formatters\u002Fhooks have run, and the implementation plus active Doing task have been staged and inspected. CLT projects the selected task's Done move and seals the exact resulting full repository tree, then treats the worktree's Done entry as provisional until Git finalization succeeds. Stage only the resulting board transition, inspect the complete staged diff, then list Done and run `clt done done \u003Cindex>` with the same `GIT_INDEX_FILE` before committing. This reseals the final reviewed tree, including the exact task position. Include it in the same task commit. If a later commit hook changes or rejects files, stage the complete correction, list Done to confirm its current index, and run `clt done done \u003Cindex>` to reseal the provisional entry before retrying that one commit.\n\nWhen a resumed shell has lost both CLT launch variables, `clt done` can recover\nits context using the exact current `CODEX_THREAD_ID` and matching live run.\nDo not copy identifiers from another task or the latest project run. If the\nconversation is stopped or interactive, use its existing session controls.\n\n### Independent failures and follow-ups\n\nA failed command does not automatically mean the implementation is blocked. First establish whether the task's acceptance criteria are satisfied and its relevant checks pass. For a separate pre-existing or environment-only failure, reproduce the same failure on the frozen starting revision in an isolated directory, without switching or resetting the active checkout. Record the revision, commands, matching failure, passing task checks, and what is needed to unblock the independent work. If acceptance or independence is uncertain, keep the original task blocked and do not commit incomplete work.\n\nWhen the original task is complete, record the independent work with:\n\n```bash\nclt list doing\nclt follow-up doing \u003Cindex> \"Fix existing lint warnings\" --evidence \"Failure evidence; starting revision and reproduction; remaining work\"\n```\n\nThe command queues one actionable Todo task with a `clt-follow-up:\u003Cparent-session-id>` reference. It preserves the parent and existing board order, does not attach the parent's `codex:` marker, and does not start another task or session. Repeating the same command is safe; edit an existing follow-up instead of creating duplicates. This command requires a session-linked Doing parent. Record only the independent remaining work, never the parent's unfinished acceptance criteria.\n\nAdd a COMPLETED note to the original task with the follow-up reference and validation evidence. In automated Git mode, stage the linked follow-up together with the verified implementation and original Doing task before `clt done`; include all of them and the resulting Done move in the one sealed commit. CLT permits that linked addition while continuing to reject unrelated staged board edits. If a hook requires corrections, include the complete payload when resealing. Stop after finalizing the original task; the queued follow-up is eligible for a fresh Todo run with its own session and Git start journal. Report the parent as completed with follow-up work queued, not as a failed or blocked run.\n\nOnly add `--blocked \"Unavailable dependency or input; what restores it\"` when an actual obstacle prevents starting the follow-up; this records it as blocked in Doing for later recovery. Ordinary implementation work, pre-existing warnings, and bugs that the follow-up itself should fix are actionable Todo work, not blockers.\n\n### 5. Deleting Tasks\nRemove a task that is no longer relevant.\n```bash\nclt delete \u003Cstatus> \u003Cindex>\n```\n\n## Operational Guidelines for Agents\n\n- **Root Awareness**: Be aware that `clt` operates relative to the git root by default. If you need to manage tasks in a specific subdirectory that is not the git root, use the `--local` flag.\n- **Verify Indices**: Task indices are dynamic. Always run `clt list \u003Cstatus>` immediately before a `status`, `done`, or `delete` command to avoid modifying the wrong task.\n- **Keep Listings Scoped**: During normal task execution, list only the status needed for the current decision. Do not load the backlog unless the user asks for it or the work specifically requires backlog triage, inspection, promotion, or a whole-board diagnosis. Large unrelated backlogs consume context and can distract from actionable `todo` and `doing` work.\n- **Preserve Existing Tasks**: Never delete, reorder, or rewrite `clt` tasks unless explicitly asked. Other people may add todos while you are working, and those are real tasks, not noise.\n- **Backlog Is Not Actionable**: Do not start or automatically select backlog tasks. Work on one only after the user or project workflow promotes it to `todo`.\n- **Stopped Tasks**: Skip tasks displayed as `[STOPPED]` or ending with `clt:stopped`, including during blocked-task recovery. The user can press `Shift+S` on a task without a controllable CLT run (including a saved Codex link or idle Todo planning conversation) to stop it or allow it to start again. Preserve the marker until the user restarts the task. Opening a completed task interactively through CLT leaves it in Done for discussion; only an explicit request authorizes new work.\n- **Default Storage Mode**: Use regular Markdown-file mode for agent-created task lists unless the user explicitly asks for expanded folder-backed tasks. Do not run `clt init --folders` or `clt expand` just because a task has some detail.\n- **Folder-Backed Tasks**: When a status is already a folder, edit the task file for detailed notes. Keep the first sentence suitable for list and TUI display. Managed Git automation preserves a directory-backed task's existing path and order during status moves. It rejects a folder-backed Todo-to-Markdown Doing or folder-backed Doing-to-Markdown Done route before launch; expand and commit the destination layout first. Exact source\u002Fdestination duplicates left by a crash are repaired without reordering unrelated tasks, while ambiguous copies fail closed.\n- **Outcome Notes**: Before changing a task's status after a work attempt, record the outcome in the task. For a Markdown-backed status, append the note to the task's existing line. For a folder-backed status, preserve the first sentence and add a `Completion note:` or `Blocked note:` section to the task file.\n- **Status Transitions**: After recording the outcome note, use `clt status` or `clt done` to change the task's status; never move or rename task files directly, because `clt` preserves board ordering and storage behavior.\n- **Completion Notes**: Before moving a verified task to `done`, add `COMPLETED YYYY-MM-DD:` followed by a concise summary of what changed and the checks or tests that ran. Do not use a completion note as a substitute for verification.\n- **Automated Git Finalization**: In an automated Git-enabled run, `clt done` starts a persisted `FINALIZING` transaction. Create one ordinary task commit with the exact sealed full tree, parent boundary, task identity, CLT Agent identity, and one `CLT-Task: codex:\u003Csession-id>` trailer, inspect it, and exit without pushing. A commit, hook, timeout, or process failure leaves the same task and Codex session resumable; never start another task or manufacture a second completion commit.\n- **Commit-and-Push Ownership**: Configure the intended upstream and any push override before scheduling. CLT resolves and freezes `branch.\u003Cname>.pushRemote`, then `remote.pushDefault`, then the upstream remote, together with the concrete push URL and upstream merge ref. After local proof, CLT alone sends the immutable exact OID to that URL\u002Fref with an explicit non-force refspec; implicit push routing is ignored, while normal pre-push hooks and signed-push policy still apply. Never run `git push` in an automated CLT task. CLT retries `PUSH-PENDING` scheduler-side without Codex and blocks later project work until remote proof succeeds or the state is resolved externally.\n- **Provisional Done Entries**: A task's physical presence in the Done store is not terminal while CLT reports it as `FINALIZING` or `PUSH-PENDING`. Do not move it backward after a successful local commit. Recovery verifies existing Git state and rolls forward, including when the commit was created or CLT's publication succeeded immediately before a crash.\n- **Missing Journals Fail Closed**: If completed-task evidence survives but its frozen start journal is lost, do not reconstruct or commit from memory. CLT refuses to guess the exact-one-commit boundary; preserve the checkout and report the recovery error.\n- **Blocked Working Backoff**: A durably blocked task may retain its `WORKING` journal while recovery backs off. CLT can run another ready Todo during that interval without discarding the blocked task's session or history, and it skips startup sync to keep the older proof boundary reachable. `FINALIZING` and `PUSH-PENDING` never yield to later project work.\n- **Independent Failures**: Use `clt follow-up` when acceptance is satisfied and a separate failure is evidenced as pre-existing or environment-only. Commit the verified original task and linked follow-up together; never leave finished implementation uncommitted solely because that independent failure remains. Do not work on the follow-up in the same run.\n- **Blocked Notes**: If a task cannot be completed safely, add `BLOCKED YYYY-MM-DD:` followed by the blocker, what was attempted, and what is needed to continue. In an automated run, return the unsealed task to `todo` with `clt status`, preserving its session marker, partial work, and Git journal, then exit. CLT also performs this deferral after the worker exits. Never move a sealed provisional Done task backward. A direct manual session keeps its claim until completion or an explicitly requested handoff. Normal automated selection skips blocked Todo tasks; explicit stops remain in effect until the user restarts them.\n- **Unblocked Notes**: When a recorded blocker is resolved but the task still needs the normal Todo workflow, add `UNBLOCKED YYYY-MM-DD:` with the resolution and move the same task to `todo`. The automated scheduler treats the latest dated `BLOCKED`, `UNBLOCKED`, or `COMPLETED` state note as current, so blocker history can remain in the task.\n- **Task Ownership**: Work on the task claimed by this conversation. Independent conversations may each own a Doing task; a claim does not lock the whole project. Never reuse another conversation's task or automated run identifiers.\n- **Metadata Usage**: Use the metadata field for tracking issue numbers, priority, or assignees. Use standardized, comma-separated tags for better scannability (e.g., `clt add \"Fix memory leak\" \"BUG, HIGH\"`).\n- **Consistency**: Ensure every significant change or feature implementation is tracked as a task. If a task is too large, break it into smaller sub-tasks in the `todo` list.\n\n## End-to-End Workflow Example\n\nThe following shows a complete task lifecycle from creation to completion.\n\n**1. Add a new task:**\n```bash\nclt add \"Fix memory leak in parser\" \"BUG, HIGH\"\n```\n\n**2. Verify it appears in todo:**\n```bash\nclt list todo\n```\n```\n--- BACKLOG ---\n\n--- TODO ---\n1. Fix memory leak in parser\n```\n\n**3. Inspect current work and preserve other sessions' tasks:**\n```bash\nclt list doing\n```\n```\n--- DOING ---\n```\n\n**4. Move the task to doing (use the index confirmed in step 2):**\n```bash\nclt status todo 1 doing\n```\n\n**5. Confirm the transition:**\n```bash\nclt list doing\n```\n```\n--- DOING ---\n1. Fix memory leak in parser\n```\n\n**6. After completing and verifying the work, record the outcome in the task:**\n\nFor this Markdown-backed example, update the existing line in `tasks\u002Fdoing.md`:\n```markdown\n- Fix memory leak in parser — COMPLETED 2026-07-13: Corrected parser ownership; checks: `cargo test parser`.\n```\n\nFor a folder-backed task, add the same information beneath a `Completion note:` heading in its task file.\n\n**7. List the status again, then mark the confirmed task done:**\n```bash\nclt list doing\n```\n```bash\nclt done doing 1\n```\n\n**8. Verify the final state:**\n```bash\nclt list done\n```\n```\n--- DONE ---\n1. Fix memory leak in parser — COMPLETED 2026-07-13: Corrected parser ownership; checks: `cargo test parser`.\n```\n\nFor an automated Git-enabled run, CLT checkpoints the task board before activation so the selected task is present in the frozen starting commit. Continue with the `$git-commit` workflow after step 7. The task remains logically `FINALIZING` until CLT verifies the required commit or commit-and-push result; only then is step 8 a terminal Done state.\n\n## Interactive View\nFor a visual representation of the board, the tool provides a TUI (Terminal User Interface). While agents primarily use the CLI, the TUI is the primary interface for human collaborators.\n```bash\nclt\n```\n\nThe Backlog column is hidden by default. Press `b` to move the selected task to Backlog, `B` to show or hide the column, or `0` to show and focus it. Keys `1`, `2`, and `3` focus Todo, Doing, and Done.\n","# Skills: Project Task Management with `clt`\n\nThis document defines the skills and operational procedures for an agent to manage project tasks using the `clt` (lls-cli-task) tool.\n\n## Overview\nThe project uses a file-system-backed Kanban system. By default, the tool automatically detects the git repository root and locates the `tasks\u002F` directory there to keep task management centralized across the project. Tasks are stored in Markdown status files by default:\n- `tasks\u002Fbacklog.md`: Captured tasks that are not ready to start.\n- `tasks\u002Ftodo.md`: Tasks to be started.\n- `tasks\u002Fdoing.md`: Tasks currently in progress.\n- `tasks\u002Fdone.md`: Completed tasks.\n\nStatuses can also be folders instead of Markdown files:\n- `tasks\u002Fbacklog\u002F`: Each direct file or subfolder is one backlogged task.\n- `tasks\u002Ftodo\u002F`: Each direct file or subfolder is one todo task.\n- `tasks\u002Fdoing\u002F`: Each direct file or subfolder is one active task.\n- `tasks\u002Fdone\u002F`: Each direct file or subfolder is one completed task.\n\nFor folder-backed statuses, `clt` displays the first sentence of each task file while preserving the full file content for longer notes. A task subfolder with its own `backlog`, `todo`, `doing`, and `done` stores is a nested subtask board in the TUI.\n\n## Start-of-Task Git Sync\n\nFor ordinary interactive work, before moving a task to `doing` or editing files for a new task in an existing Git repository, inspect the checkout:\n\n```bash\ngit status --short --branch\n```\n\nIf the worktree and index are clean, HEAD is attached to a branch, and that branch has an upstream, update it before starting the task:\n\n```bash\ngit pull --ff-only\n```\n\nDo this before the CLT status transition because moving a task to `doing` changes the task board and makes the checkout dirty. Use fast-forward-only so the startup sync cannot create a merge commit, rebase local commits, or disturb user work. If the checkout is dirty, detached, has no upstream, or cannot fast-forward, do not stash, discard, commit, switch branches, or integrate changes solely to make the pull succeed. Continue from the current checkout when safe and mention that the startup pull was skipped or could not complete.\n\nThe automated CLT Git workflow is different: do not run the inspection\u002Fsync procedure above from inside a released automated run. The intended checkout, branch, and upstream must be configured before scheduling. A newly created Todo may remain unstaged: before spawning or releasing Codex, CLT accepts pre-existing staged changes, performs the safe fast-forward-only startup sync only when the checkout is clean and no older `WORKING` journal requires preserving its history, and checkpoints a dirty task board in a dedicated `CLT Agent` commit without including unrelated implementation changes or replacing pre-existing staged entries. It captures the resulting `HEAD`, branch, exact index tree, worktree baseline, and upstream configuration and persists that server-owned launch state. Any spawned child remains gated until its remaining session fences are registered. CLT releases the agent only after preparation succeeds. Commit-and-push mode requires an attached branch with one configured upstream at that boundary.\n\nAfter release, inspect the provided state but do not pull, fetch\u002Fsynchronize, merge, rebase, switch branches, reset history, reconfigure the upstream, or push. Move the selected task to Doing before implementation; CLT rechecks the frozen state and binds it to the session's `WORKING` journal at that transition.\n\nUnstaged task-board edits and other unstaged or untracked changes made after launch do not invalidate activation or terminal-worker launch recovery. Preserve those edits and continue with the selected task; CLT still checks HEAD, branch, upstream, the index, and the selected task identity without replacing the recorded baseline.\n\nIf CLT reports an unconsumed pre-registration launch boundary, do not try to replace it or clean\u002Funregister the project. CLT never overwrites that snapshot, including when a reaped child exited before announcing its session. It reclaims the record only after proving the exact worker terminal, finding no session-control row for its run token, and matching HEAD, branch, upstream, and index to the frozen state using that record's Git mode; otherwise recovery fails closed. Project Git settings may change for subsequent runs; active task commands and unfinished managed Git journals retain their recorded mode.\n\nA dirty worktree is expected in shared repositories where a person, an interactive session, or an independent worker may have changes in progress. It is not a blocker by itself. Treat the initial status and diff as the baseline, preserve pre-existing changes, and continue with non-conflicting work. Another change in the same file is also not automatically a blocker: re-read the affected area and keep both changes when the intended combined result is clear. Mark the task blocked only when the required edits genuinely conflict and the correct result cannot be determined safely.\n\nThe shared Git index is different from the shared worktree: it is a cooperative ownership boundary during automated finalization. People, interactive sessions, and parallel tools must not stage or unstage changes while the active automated task owns the index. CLT seals the reviewed index without requiring unstaged or untracked work to match the launch baseline; later outside edits are intentional shared work. Git cannot identify which actor staged a change.\n\nAfter moving the task to Doing, review pre-existing staged changes for task scope; their presence alone is not a blocker. Include only verified changes belonging to this task. If unrelated work is already staged, use a separate `GIT_INDEX_FILE` initialized from the current `HEAD` for task staging, every `clt done`\u002Freseal invocation, and the task commit. Keep that index available across retries. After the commit, reconcile only the task changes into the shared index, preserving unrelated staged entries and same-file hunks. Never clear the shared index or commit unrelated staged work just to proceed.\n\nA Todo or other task-board edit added after the automated run starts may remain unstaged. Preserve it and continue finalization: CLT's exact staged-tree proof excludes that concurrent board work from the sealed task commit. Stage only the selected task's status transition, its explicit follow-up, or related hunks; never use a whole-board add when it would absorb the concurrent edit.\n\n## Coordinating shared work\n\nBefore implementation, read `clt context` and declare planned scope with\n`clt coordinate \u003Cstatus> \u003Cindex> --scope '\u003CJSON>'`. The scope object accepts\n`intent`, `files`, `modules`, `interfaces`, `resources`, and a `behavior` map.\nThis replaces scope, so retain all still-relevant fields. An invocation without\noptions assigns a stable task ID without starting work. Use those IDs for\n`--depends-on`, `--remove-dependency`, or an evidence-backed `--compatible` or\n`--conflict` assessment with `--reason`. Never infer ownership from dirty files.\n\nRun `clt context --check doing \u003Cindex>` before edits and finalization. Update scope\nbefore expanding work; reassess changed requirements, interfaces and resources,\nincluding overlap across different files. Context names other owners and their\nintended changes. A CLI claim alone does not prove the session is running.\nAutomated workers receive refreshed context in their existing turn; direct\nsessions refresh it explicitly and preserve their claim and conversation.\n\nA coordination wait is recomputed from its exact prerequisite or overlap. Do not\nturn it into a dated BLOCKED note. An unsealed automated task should return to Todo\nwith its session and work preserved, then exit; a participating manual task keeps\nits claim while deferring incompatible edits. Unrelated ready work may proceed.\nExplicit stops and provisional Done recovery retain their existing controls.\n\nUse `clt finalize doing \u003Cindex> -- \u003Ccommand> [args...]` to run the entire reviewed\nstaging, sealing\u002Fresealing and one-commit sequence under cooperative Git ownership.\nFor a provisional Done retry use its current Done index. A script can perform the\nsequence, retaining the same separate `GIT_INDEX_FILE` when needed. Inspect the\nindex before each seal and commit, and never include another task's staged work.\nThis lock does not reserve editing or planning. Its process lifetime, rather than\nan old lock file, determines ownership; retry after the owning command exits.\nDo not stage through bare Git while another participant owns finalization.\n\n## Core Workflow\nQueued work follows this state transition pipeline:\n`Todo` → `Doing` → `Done`\n\n1. **Capture\u002FTriage**: New queued tasks go in Todo. Use Backlog only when the user asks. Backlog tasks are not eligible for automated agent runs.\n2. **Identify\u002FCreate**: Add actionable requirements or bugs to `todo`, or promote a ready backlog task to `todo`.\n3. **Activate**: Inspect the selected task and applicable repository instructions, then move it from `todo` to `doing` before editing implementation files. For ordinary interactive work, finish pre-task Git sync\u002Fbranch selection first. In an automated Git-enabled run, CLT already completed and froze that preparation before release; do not repeat or alter it.\n4. **Complete**: Once the task is verified and finished, move it from `doing` to `done`.\n\nFor work started in a directly opened Codex session, use the manual workflow below:\n`clt start` creates and reserves a Doing task atomically; `clt claim` activates an\nexisting task. Do not briefly expose direct work as an eligible Todo.\n\nFor an automated CLT run whose project Git mode is `commit` or `commit-and-push`, the final move has stronger semantics. `clt done` records a durable finalization intent before it moves the board entry. The entry in the Done store is provisional while CLT reports it as `FINALIZING`; it becomes terminal only after CLT proves the task-specific commit, and, in push mode, proves that commit is present on the configured upstream. The same linked Codex session resumes an interrupted finalization. Do not select another task, create a replacement task, or move the provisional entry back to Doing.\n\n## Command Reference\n\n### 1. Initialization\nIf the `tasks\u002F` directory is missing, initialize the system:\n```bash\nclt init\n```\nUse the default Markdown-file mode for normal agent task tracking. Only initialize folder-backed statuses when the user explicitly asks for expanded tasks or the project has already adopted that format.\n```bash\nclt init --folders\n```\nTo force initialization in the current working directory instead of the git root ( not used most the time ), use:\n```bash\nclt --local init\n```\n\nTo expand existing Markdown status files into folder-backed task files:\n```bash\nclt expand        # Expand backlog.md, todo.md, doing.md, and done.md\nclt expand backlog\nclt expand todo   # Expand one status\n```\nExpansion preserves the original Markdown file as `status.md.bak`.\n\n### 2. Adding Tasks\nAdd a new task to the `todo` list.\n```bash\nclt add \"Task description\" [\"Optional metadata\"]\n```\n\nBefore creating a task or adding a dependency, check the relevant dependency chain. Never make a task depend on itself, directly or through other tasks; split or reorder the work to avoid circular dependencies.\n\nCreate tasks in stopped mode (`clt:stopped`) only when the user explicitly asks\nfor it. Use the normal Todo or manually claimed Doing workflow otherwise.\n\n#### Reserve tasks in standalone Codex sessions\n\nWhen the user opens a completed task interactively through CLT, keep the same\nconversation and leave the task in Done. `CLT_INTERACTIVE_TASK_SESSION` and the\ncontinuation prompt identify a discussion, not authorization to implement or\nreactivate work. Do not claim, move, create a replacement tracking task, or start\nan automated run just to answer questions. Edit task content or begin new work\nonly when explicitly requested, preserving the terminal `codex:\u003Csession-id>`\nlink. The previous automated run and terminal Git journal are not restarted.\nA provisional Done entry with unfinished Git proof retains its existing controls.\n\nWhen Codex is working directly in a CLT-enabled project, outside a `clt agent`\nrun, create and claim the task directly in Doing with `clt start`. This attaches\nthe current conversation and reserves that task against automated pickup and\ninterrupted-task recovery. Other manual sessions and unrelated automation may\ncontinue in the same project. Use it even when project automation is disabled.\n\nUse the exact current session ID supplied by the Codex runtime (for example,\n`CODEX_THREAD_ID` when available). Do not guess an ID, use a process ID, or take\none from another task or the most recent session on disk. If the current ID is\nunavailable, report that the task cannot be linked or claimed yet; do not create\na stopped fallback task unless the user explicitly asks for it. Do not leave an\neligible Todo for this work.\n\n```bash\n# Only after confirming CODEX_THREAD_ID identifies this Codex session:\nclt start \"Fix memory leak in parser [BUG, HIGH]\"\n# Or: clt start \"Task description\" --session \u003Cexact-current-session-id>\n\n# Existing unlinked task, or a task already linked to this session:\nclt list todo\nclt claim todo \u003Cindex>\n```\n\nDirectly claimed Codex tasks display `[CLI]` while claimed. Claims survive session exits,\nrestarts, edits, and moves to Backlog. Moving a task to Todo in the TUI or with\n`clt status` releases its manual claim, removes the label, and preserves its\nconversation for normal automation. Finish with `clt done`, or, when the user wants\nautomation to take over, record the plan and remaining work, list the current\nstatus, and run `clt handoff doing \u003Cindex>`. Handoff moves the task to Todo and\nkeeps the same conversation. Stop editing after handoff because an enabled\ndaemon may resume immediately. Do not hand off automatically just because a\nturn ends. Existing automated sessions keep their established CLT controls;\nnever replace another session's link or take over its task. Another task running\ntests or doing independent work is not a reason to stop this task. Coordinate\noverlapping edits, and leave staging alone while another task seals its commit.\n\nPreserve both `clt:manual` and the final `codex:\u003Csession-id>` token when adding\nnotes. `clt start` and `clt claim` write these markers for you. Use an updated\nCLT binary and scheduler; an older daemon cannot honor manual claims. If these\ncommands are unavailable, report that CLT needs upgrading; do not create a\nstopped fallback task unless the user explicitly asks for it. Do not substitute\nan eligible `add` followed by `status`.\n\nInspect the stored task after creation; `clt list` hides session markers. For a\nMarkdown-backed status the marker ends the task's line; for a folder-backed\nstatus it ends the full task file, after any detail paragraphs. Keep it at the\nend when adding completion or blocked notes. Preserve an existing task's link\ninstead of replacing it with the editing session's ID.\n\nA session must not be linked to multiple tasks on the board. If this session\nalready belongs to a task, preserve that identity and leave additional tasks\nunlinked. In automated runs, CLT attaches the selected task's marker when moving\nit to Doing; preserve that marker. Independent `clt follow-up` tasks use their\nown follow-up reference and must not receive the parent's `codex:` marker.\n\n### 3. Listing Tasks\nAlways list the relevant status before performing index-based operations to ensure the correct `task_index` is used. Prefer status-scoped listings so unrelated tasks do not consume context.\n```bash\nclt list todo     # List only todo tasks\nclt list doing    # List only doing tasks\nclt list done     # List only done tasks\nclt list backlog  # List backlog only when the current work requires it\nclt list          # List all statuses only when a whole-board view is necessary\n```\n\n**Sample output:**\n```\n--- TODO ---\n1. Fix login bug\n2. Add dark mode\n```\n\nEach section lists tasks with a 1-based index scoped to that status. An empty section displays the header with no items beneath it. Always use the index relative to its section — index `1` in `BACKLOG`, index `1` in `TODO`, and index `1` in `DOING` refer to different tasks.\n\nFolder-backed tasks still use the same status-scoped indexes. `clt list` marks folder tasks that contain nested boards with `[subtasks]`.\n\n### 4. Managing Task Status\nMove tasks between lists using their 1-based index.\n\n**Move to In Progress:**\n```bash\nclt status todo \u003Cindex> doing\n```\n\n**Backlog or promote a task:**\n```bash\nclt status todo \u003Cindex> backlog\nclt status backlog \u003Cindex> todo\n```\n\n**Mark as Done:**\n```bash\nclt done doing \u003Cindex>\n```\n*(Alternatively: `clt status doing \u003Cindex> done`)*\n\nIn an automated Git-enabled run, use this command only after the implementation and completion note are verified, all file-mutating formatters\u002Fhooks have run, and the implementation plus active Doing task have been staged and inspected. CLT projects the selected task's Done move and seals the exact resulting full repository tree, then treats the worktree's Done entry as provisional until Git finalization succeeds. Stage only the resulting board transition, inspect the complete staged diff, then list Done and run `clt done done \u003Cindex>` with the same `GIT_INDEX_FILE` before committing. This reseals the final reviewed tree, including the exact task position. Include it in the same task commit. If a later commit hook changes or rejects files, stage the complete correction, list Done to confirm its current index, and run `clt done done \u003Cindex>` to reseal the provisional entry before retrying that one commit.\n\nWhen a resumed shell has lost both CLT launch variables, `clt done` can recover\nits context using the exact current `CODEX_THREAD_ID` and matching live run.\nDo not copy identifiers from another task or the latest project run. If the\nconversation is stopped or interactive, use its existing session controls.\n\n### Independent failures and follow-ups\n\nA failed command does not automatically mean the implementation is blocked. First establish whether the task's acceptance criteria are satisfied and its relevant checks pass. For a separate pre-existing or environment-only failure, reproduce the same failure on the frozen starting revision in an isolated directory, without switching or resetting the active checkout. Record the revision, commands, matching failure, passing task checks, and what is needed to unblock the independent work. If acceptance or independence is uncertain, keep the original task blocked and do not commit incomplete work.\n\nWhen the original task is complete, record the independent work with:\n\n```bash\nclt list doing\nclt follow-up doing \u003Cindex> \"Fix existing lint warnings\" --evidence \"Failure evidence; starting revision and reproduction; remaining work\"\n```\n\nThe command queues one actionable Todo task with a `clt-follow-up:\u003Cparent-session-id>` reference. It preserves the parent and existing board order, does not attach the parent's `codex:` marker, and does not start another task or session. Repeating the same command is safe; edit an existing follow-up instead of creating duplicates. This command requires a session-linked Doing parent. Record only the independent remaining work, never the parent's unfinished acceptance criteria.\n\nAdd a COMPLETED note to the original task with the follow-up reference and validation evidence. In automated Git mode, stage the linked follow-up together with the verified implementation and original Doing task before `clt done`; include all of them and the resulting Done move in the one sealed commit. CLT permits that linked addition while continuing to reject unrelated staged board edits. If a hook requires corrections, include the complete payload when resealing. Stop after finalizing the original task; the queued follow-up is eligible for a fresh Todo run with its own session and Git start journal. Report the parent as completed with follow-up work queued, not as a failed or blocked run.\n\nOnly add `--blocked \"Unavailable dependency or input; what restores it\"` when an actual obstacle prevents starting the follow-up; this records it as blocked in Doing for later recovery. Ordinary implementation work, pre-existing warnings, and bugs that the follow-up itself should fix are actionable Todo work, not blockers.\n\n### 5. Deleting Tasks\nRemove a task that is no longer relevant.\n```bash\nclt delete \u003Cstatus> \u003Cindex>\n```\n\n## Operational Guidelines for Agents\n\n- **Root Awareness**: Be aware that `clt` operates relative to the git root by default. If you need to manage tasks in a specific subdirectory that is not the git root, use the `--local` flag.\n- **Verify Indices**: Task indices are dynamic. Always run `clt list \u003Cstatus>` immediately before a `status`, `done`, or `delete` command to avoid modifying the wrong task.\n- **Keep Listings Scoped**: During normal task execution, list only the status needed for the current decision. Do not load the backlog unless the user asks for it or the work specifically requires backlog triage, inspection, promotion, or a whole-board diagnosis. Large unrelated backlogs consume context and can distract from actionable `todo` and `doing` work.\n- **Preserve Existing Tasks**: Never delete, reorder, or rewrite `clt` tasks unless explicitly asked. Other people may add todos while you are working, and those are real tasks, not noise.\n- **Backlog Is Not Actionable**: Do not start or automatically select backlog tasks. Work on one only after the user or project workflow promotes it to `todo`.\n- **Stopped Tasks**: Skip tasks displayed as `[STOPPED]` or ending with `clt:stopped`, including during blocked-task recovery. The user can press `Shift+S` on a task without a controllable CLT run (including a saved Codex link or idle Todo planning conversation) to stop it or allow it to start again. Preserve the marker until the user restarts the task. Opening a completed task interactively through CLT leaves it in Done for discussion; only an explicit request authorizes new work.\n- **Default Storage Mode**: Use regular Markdown-file mode for agent-created task lists unless the user explicitly asks for expanded folder-backed tasks. Do not run `clt init --folders` or `clt expand` just because a task has some detail.\n- **Folder-Backed Tasks**: When a status is already a folder, edit the task file for detailed notes. Keep the first sentence suitable for list and TUI display. Managed Git automation preserves a directory-backed task's existing path and order during status moves. It rejects a folder-backed Todo-to-Markdown Doing or folder-backed Doing-to-Markdown Done route before launch; expand and commit the destination layout first. Exact source\u002Fdestination duplicates left by a crash are repaired without reordering unrelated tasks, while ambiguous copies fail closed.\n- **Outcome Notes**: Before changing a task's status after a work attempt, record the outcome in the task. For a Markdown-backed status, append the note to the task's existing line. For a folder-backed status, preserve the first sentence and add a `Completion note:` or `Blocked note:` section to the task file.\n- **Status Transitions**: After recording the outcome note, use `clt status` or `clt done` to change the task's status; never move or rename task files directly, because `clt` preserves board ordering and storage behavior.\n- **Completion Notes**: Before moving a verified task to `done`, add `COMPLETED YYYY-MM-DD:` followed by a concise summary of what changed and the checks or tests that ran. Do not use a completion note as a substitute for verification.\n- **Automated Git Finalization**: In an automated Git-enabled run, `clt done` starts a persisted `FINALIZING` transaction. Create one ordinary task commit with the exact sealed full tree, parent boundary, task identity, CLT Agent identity, and one `CLT-Task: codex:\u003Csession-id>` trailer, inspect it, and exit without pushing. A commit, hook, timeout, or process failure leaves the same task and Codex session resumable; never start another task or manufacture a second completion commit.\n- **Commit-and-Push Ownership**: Configure the intended upstream and any push override before scheduling. CLT resolves and freezes `branch.\u003Cname>.pushRemote`, then `remote.pushDefault`, then the upstream remote, together with the concrete push URL and upstream merge ref. After local proof, CLT alone sends the immutable exact OID to that URL\u002Fref with an explicit non-force refspec; implicit push routing is ignored, while normal pre-push hooks and signed-push policy still apply. Never run `git push` in an automated CLT task. CLT retries `PUSH-PENDING` scheduler-side without Codex and blocks later project work until remote proof succeeds or the state is resolved externally.\n- **Provisional Done Entries**: A task's physical presence in the Done store is not terminal while CLT reports it as `FINALIZING` or `PUSH-PENDING`. Do not move it backward after a successful local commit. Recovery verifies existing Git state and rolls forward, including when the commit was created or CLT's publication succeeded immediately before a crash.\n- **Missing Journals Fail Closed**: If completed-task evidence survives but its frozen start journal is lost, do not reconstruct or commit from memory. CLT refuses to guess the exact-one-commit boundary; preserve the checkout and report the recovery error.\n- **Blocked Working Backoff**: A durably blocked task may retain its `WORKING` journal while recovery backs off. CLT can run another ready Todo during that interval without discarding the blocked task's session or history, and it skips startup sync to keep the older proof boundary reachable. `FINALIZING` and `PUSH-PENDING` never yield to later project work.\n- **Independent Failures**: Use `clt follow-up` when acceptance is satisfied and a separate failure is evidenced as pre-existing or environment-only. Commit the verified original task and linked follow-up together; never leave finished implementation uncommitted solely because that independent failure remains. Do not work on the follow-up in the same run.\n- **Blocked Notes**: If a task cannot be completed safely, add `BLOCKED YYYY-MM-DD:` followed by the blocker, what was attempted, and what is needed to continue. In an automated run, return the unsealed task to `todo` with `clt status`, preserving its session marker, partial work, and Git journal, then exit. CLT also performs this deferral after the worker exits. Never move a sealed provisional Done task backward. A direct manual session keeps its claim until completion or an explicitly requested handoff. Normal automated selection skips blocked Todo tasks; explicit stops remain in effect until the user restarts them.\n- **Unblocked Notes**: When a recorded blocker is resolved but the task still needs the normal Todo workflow, add `UNBLOCKED YYYY-MM-DD:` with the resolution and move the same task to `todo`. The automated scheduler treats the latest dated `BLOCKED`, `UNBLOCKED`, or `COMPLETED` state note as current, so blocker history can remain in the task.\n- **Task Ownership**: Work on the task claimed by this conversation. Independent conversations may each own a Doing task; a claim does not lock the whole project. Never reuse another conversation's task or automated run identifiers.\n- **Metadata Usage**: Use the metadata field for tracking issue numbers, priority, or assignees. Use standardized, comma-separated tags for better scannability (e.g., `clt add \"Fix memory leak\" \"BUG, HIGH\"`).\n- **Consistency**: Ensure every significant change or feature implementation is tracked as a task. If a task is too large, break it into smaller sub-tasks in the `todo` list.\n\n## End-to-End Workflow Example\n\nThe following shows a complete task lifecycle from creation to completion.\n\n**1. Add a new task:**\n```bash\nclt add \"Fix memory leak in parser\" \"BUG, HIGH\"\n```\n\n**2. Verify it appears in todo:**\n```bash\nclt list todo\n```\n```\n--- BACKLOG ---\n\n--- TODO ---\n1. Fix memory leak in parser\n```\n\n**3. Inspect current work and preserve other sessions' tasks:**\n```bash\nclt list doing\n```\n```\n--- DOING ---\n```\n\n**4. Move the task to doing (use the index confirmed in step 2):**\n```bash\nclt status todo 1 doing\n```\n\n**5. Confirm the transition:**\n```bash\nclt list doing\n```\n```\n--- DOING ---\n1. Fix memory leak in parser\n```\n\n**6. After completing and verifying the work, record the outcome in the task:**\n\nFor this Markdown-backed example, update the existing line in `tasks\u002Fdoing.md`:\n```markdown\n- Fix memory leak in parser — COMPLETED 2026-07-13: Corrected parser ownership; checks: `cargo test parser`.\n```\n\nFor a folder-backed task, add the same information beneath a `Completion note:` heading in its task file.\n\n**7. List the status again, then mark the confirmed task done:**\n```bash\nclt list doing\n```\n```bash\nclt done doing 1\n```\n\n**8. Verify the final state:**\n```bash\nclt list done\n```\n```\n--- DONE ---\n1. Fix memory leak in parser — COMPLETED 2026-07-13: Corrected parser ownership; checks: `cargo test parser`.\n```\n\nFor an automated Git-enabled run, CLT checkpoints the task board before activation so the selected task is present in the frozen starting commit. Continue with the `$git-commit` workflow after step 7. The task remains logically `FINALIZING` until CLT verifies the required commit or commit-and-push result; only then is step 8 a terminal Done state.\n\n## Interactive View\nFor a visual representation of the board, the tool provides a TUI (Terminal User Interface). While agents primarily use the CLI, the TUI is the primary interface for human collaborators.\n```bash\nclt\n```\n\nThe Backlog column is hidden by default. Press `b` to move the selected task to Backlog, `B` to show or hide the column, or `0` to show and focus it. Keys `1`, `2`, and `3` focus Todo, Doing, and Done.\n",{"name":5,"description":7},"master","92c2e4361133c4644ce95c541c2d3fb49dc4cda0","skills\u002Fclt-task-management",0,"https:\u002F\u002Fgithub.com\u002FAlpineVibrations\u002Fclt-rs","https:\u002F\u002Fgithub.com\u002FAlpineVibrations","aifxart.com","https:\u002F\u002Fgithub.com\u002Faifx-art","2026-10-31 02:38:31",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add AlpineVibrations\u002Fclt-rs --skill clt-task-management",{"tool":59,"command":60},"bunx","bunx skills add AlpineVibrations\u002Fclt-rs --skill clt-task-management",{"tool":62,"command":63},"pnpm","pnpm dlx skills add AlpineVibrations\u002Fclt-rs --skill clt-task-management","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAlpineVibrations\u002Fclt-rs\u002Fblob\u002Fmaster\u002Fskills\u002Fclt-task-management\u002FSKILL.md",true,[],[68],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":39},"01M6QX1XWK47EFTHJC50ZTBQ8K","git-commit","Start repository tasks from the latest safe upstream state, then commit and optionally push Git changes with a safe, direct workflow. Use when beginning a new task in a Git repository or when the user asks to commit, save changes, create a git commit, push changes, finish Git work, or mentions \u002Fcommit. Pull only when the checkout can be updated cleanly, inspect the diff, respect existing staged changes, stage only the intended logical change, generate a clear commit message from the staged diff, and sync again before pushing when requested.","https:\u002F\u002Fgithub.com\u002FAlpineVibrations\u002Fclt-rs\u002Fblob\u002Fmaster\u002Fskills\u002Fgit-commit\u002FSKILL.md",[],[75,76,77,78,37,34,79,80,81,82,83,84,85,38,86,23,25,87,88,89],"commit","git commit","git","repository","new task","checkout","message","finish","only","work","start","generate","sync","change","workflow"]