[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6QX1XWK47EFTHJC50ZTBQ8K":3,"skill-same:01M6QX1XWK47EFTHJC50ZTBQ8K":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},"01M6QX1XWK47EFTHJC50ZTBQ8K","git-commit",null,"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.","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\u002Fgit-commit\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"commit","git commit","git","repository","when","inspect","new task","checkout","message","finish","only","work","start","safe","generate","create","tasks","sync","change","workflow","2026-11-10 10:12:30",false,"---\nname: git-commit\ndescription: 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.\n---\n\n# Git Commit Workflow\n\nFor ordinary manual or external work, use shell\u002FBash Git commands for inspection, staging, committing, rebasing, and pushing. Prefer non-interactive commands. Do not change Git config. In a released automated CLT run, use Git only for the permitted inspection, staging, and sealed local commit; never rebase or push.\n\nFor ordinary manual work, the caller may request either a commit-only or commit-and-push workflow. In automated CLT commit-and-push mode, Codex is authorized only to create the sealed local commit; CLT alone owns publication.\n\n## Start-of-Task Sync\n\nFor ordinary interactive work, before editing files for each 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 work:\n\n```bash\ngit pull --ff-only\n```\n\nUse fast-forward-only here 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\nDo not run that startup procedure from inside a released automated CLT task. For a fresh task in `commit` or `commit-and-push` mode, 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 commit, 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. It releases the agent only after preparation succeeds. Commit-and-push requires an attached branch with exactly one configured upstream at that boundary.\n\nAfter release, inspect the frozen state but do not pull, fetch\u002Fsynchronize, merge, rebase, switch branches, reset history, reconfigure the upstream, or push. Move the selected Todo task to Doing before implementation so CLT can recheck and bind the frozen launch record to the session's `WORKING` journal.\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\nAn unconsumed pre-registration launch boundary is immutable. Do not retry by recapturing it from the current checkout or by cleaning\u002Funregistering the project. Even if a reaped child exits before announcing a session, CLT preserves the record until the exact worker is terminal, no session-control row owns the run token, and HEAD, branch, upstream, and index still match the boundary verified using its frozen Git mode; otherwise it fails closed. Project Git settings may change for subsequent runs, but the active run's recorded mode and publication obligations remain unchanged.\n\n## Shared Dirty Worktrees\n\nA dirty worktree is expected when a person, an interactive session, or an independent worker has changes in progress. Dirtiness alone is never a reason to block or abandon the current task.\n\n- Treat the status and diff observed before editing as the baseline, and preserve those pre-existing changes.\n- Continue with non-conflicting work even when unrelated files are modified.\n- A pre-existing change in the same file is not automatically a conflict. Re-read the affected area, apply the task's change against the current contents, and preserve both changes when the combined result is clear.\n- Stop only for a real conflict: the same behavior or lines require incompatible outcomes and the correct combined result cannot be determined safely.\n- At commit time, stage only the current task's paths or hunks. Leave unrelated unstaged changes in place, including new or changed work added during the run. When a file contains mixed changes, use patch staging and verify the cached diff before committing.\n\nUnstaged and untracked work can safely coexist, including outside edits and new files added after launch. CLT preserves the recorded baseline but seals the reviewed index without comparing the remaining worktree to that baseline. The Git index is a cooperative boundary during an automated finalization: humans, interactive sessions, and parallel tools sharing the checkout must not stage or unstage until it settles. CLT records pre-existing staged changes as part of the frozen launch state and detects later index changes before activation, but Git does not record which actor staged a new 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\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## Default Flow\n\n```bash\ngit status --short --branch\ngit diff --stat\ngit diff\ngit diff --staged --stat\ngit diff --staged\ngit log --oneline -5\n```\n\nThen:\n\n1. Decide what belongs in the commit.\n2. Stage the intended files.\n3. Verify the staged diff.\n4. Commit with a message based on the staged diff.\n5. Push only when explicitly requested for ordinary manual\u002Fexternal work. In automated CLT mode, stop after the verified local commit and let CLT publish it.\n\n## Safety Rules\n\n- Follow repo instructions in `AGENTS.md`, `README`, `CONTRIBUTING`, or project docs when present.\n- Do not create or switch branches unless the user asks or the repo explicitly requires it.\n- If the repo has no branch rule, committing on the current branch is acceptable, including `main` or `master`.\n- Do not push unless the user asks during ordinary manual\u002Fexternal work. Never push from an automated CLT task, even when its mode is commit-and-push.\n- Do not force-push unless the user explicitly asks; use `--force-with-lease`, never plain `--force`.\n- Do not amend commits unless the user asks.\n- Do not skip hooks with `--no-verify` unless the user explicitly asks.\n- Never commit secrets, credentials, tokens, private keys, `.env` files, local config, logs, caches, or temporary\u002Fgenerated output unless the user explicitly asks.\n\n## Branch Instructions\n\nThese instructions apply to ordinary interactive work. In an automated CLT Git-enabled run, the branch was selected and frozen before the agent was released; do not create or switch branches.\n\nRepo instructions may specify a required branch for a feature, bugfix, or plan. Check `AGENTS.md`, project docs, feature plans, and design docs for branch guidance when they are relevant to the work.\n\nIf a repo doc or the user names a required branch:\n\n- Use that branch for the work and commit.\n- If already on that branch, continue.\n- If the branch exists locally, switch to it with `git switch \u003Cbranch>`.\n- If the branch does not exist, create it from the current base with `git switch -c \u003Cbranch>`.\n- Do not invent a feature branch name when no branch is specified.\n\nIf a branch is not specified in some way, then it should be done on master or main branch.\n\nIf uncommitted work already exists on a different branch, inspect status first. Switch only when the move is clearly safe; otherwise ask before moving work across branches.\n\nWatch especially for:\n\n```text\n.env\n.env.*\ncredentials.json\n*.pem\n*.key\n*.crt\n*.log\n.DS_Store\nnode_modules\u002F\ndist\u002F\nbuild\u002F\ncoverage\u002F\n.cache\u002F\n```\n\n## Staging\n\nTreat already staged changes as intentional. Inspect staged and unstaged changes before adding anything else.\n\nIf changes are already staged:\n\n- For ordinary commit requests, use the staged diff as the commit scope by default. For automated CLT tasks, the selected task defines the scope; preserve unrelated staged work using the separate-index procedure above.\n- Mention unstaged or untracked changes only if they look relevant.\n- Add more files only when they clearly belong to the same logical change or the user asked to commit everything.\n\nThe exception is an automated CLT finalization. Pre-existing staged changes are not implicitly part of the task commit. Isolate the current task's paths or hunks and stop if that cannot be done without disturbing or committing another actor's staged work.\n\nIf nothing is staged:\n\n- Stage all changes with `git add -A` only when they form one logical commit.\n- Stage specific files when the work is mixed or risky:\n\n```bash\ngit add path\u002Fto\u002Ffile1 path\u002Fto\u002Ffile2\n```\n\nAfter staging, always verify:\n\n```bash\ngit diff --staged --stat\ngit diff --staged\n```\n\nIf unrelated changes are present, commit only the requested or coherent set and leave the rest untouched.\n\nPre-existing unstaged changes do not prevent a commit. Use path-specific or patch staging to isolate the completed task. Do not require the whole worktree to become clean before committing.\n\nA Todo or other task-board edit added after an automated CLT run starts may also remain unstaged. Preserve it and continue finalization: CLT proves the exact staged task tree, so the concurrent board edit stays outside the sealed commit. Use path-specific or patch staging for the selected task's transition instead of adding the whole board.\n\n## CLT Task Updates\n\nIf the work is tracked with `clt`, update the current task through `clt` before staging and include the resulting task-board changes in the same commit as the implementation. Check both supported layouts:\n\n- Markdown files: `tasks\u002Ftodo.md`, `tasks\u002Fdoing.md`, and `tasks\u002Fdone.md`.\n- Task folders: `tasks\u002Ftodo\u002F`, `tasks\u002Fdoing\u002F`, and `tasks\u002Fdone\u002F`.\n\nInspect the board changes even when implementation files are already staged:\n\n```bash\ngit status --short -- tasks\u002F\ngit diff -- tasks\u002F\ngit diff --staged -- tasks\u002F\n```\n\nStage the current task's content and status transition, including both sides of a move or deletion. Use `git add -A -- tasks\u002F` only when every task-board change belongs to the same logical commit; otherwise stage the exact task paths and leave unrelated task changes untouched.\n\nFor managed Git automation, directory-backed status moves preserve the existing task path and order rather than converting or renumbering it. CLT rejects folder-backed Todo-to-Markdown Doing and folder-backed Doing-to-Markdown Done routes before release. Exact session-linked duplicates left by a crash are repaired; ambiguous copies remain fenced.\n\n## Automated CLT Finalization\n\nThese instructions apply to an unfinished automated run. Opening a completed\ntask interactively leaves it in Done and supplies `CLT_INTERACTIVE_TASK_SESSION`.\nDiscuss the existing task without claiming it, changing status, or reviving its\nterminal Git journal. Begin follow-up implementation only when explicitly\nrequested. Commit or push follow-up changes only when the user requests it,\nusing the ordinary interactive workflow without another `CLT-Task` trailer for\nthe completed automated run.\n\nWhen an automated CLT prompt enables `commit` or `commit-and-push` mode, `clt done` starts a durable task finalization. The task may already appear in the Done store, but that move is provisional while CLT reports `FINALIZING`.\n\nCLT already completed its scheduler-owned startup preparation and branch\u002Fupstream validation, persisted the server-owned launch state, and only then released this automated run. That preparation may deliberately preserve the current commit when an older `WORKING` journal depends on it. Do not repeat the preparation. Move the selected committed Todo task to Doing before implementation; CLT rechecks the starting commit, branch, index, and upstream configuration and binds the session journal at that seam. Do not pull, fetch\u002Fsynchronize, merge, rebase, switch branches, reset history, reconfigure the destination, or rewrite history afterward.\n\nBefore `clt done`, run every available formatter, linter, signing check, and hook check that can mutate files. Then stage the verified implementation plus the active Doing task with its dated completion note and terminal session marker. Inspect the staged diff, and keep all unrelated baseline work outside the task commit, preserving its existing staging in the shared index when using a separate task index. `clt done` uses a private index to project that task into Done and seals the exact resulting full repository tree, not merely the changed paths or patch. It then moves the worktree entry provisionally. Stage only the resulting board transition and inspect the complete staged diff again. Before committing, list Done and run `clt done done \u003Cindex>` with the same `GIT_INDEX_FILE` to reseal that final reviewed index, including the exact task position. Do not reconstruct the board move by appending the task elsewhere.\n\nCreate exactly one normal commit containing all of the following:\n\n- the implementation and tests or documentation belonging to the task;\n- its `COMPLETED YYYY-MM-DD:` note;\n- the complete task-board transition into Done; and\n- one exact commit trailer identifying the linked task session: `CLT-Task: codex:\u003Csession-id>`.\n\nRead the terminal `codex:\u003Csession-id>` marker from the task entry and preserve it in the board change. Add the trailer as a separate commit-message paragraph, for example:\n\n```bash\ngit commit \\\n  -m \"Clear summary message\" \\\n  -m \"CLT-Task: codex:019abcde-1234-7890-abcd-0123456789ab\"\n```\n\nUse ordinary `git commit` so repository hooks and signing behavior remain active. Keep the same reviewed index throughout staging, sealing and committing, including when the separate-index procedure is required. Do not use `commit-tree`, amend, a merge commit, or a second board-only commit to simulate finalization. After the command returns, inspect the created commit. CLT will accept only the exact sealed full tree and manifest parent together with the matching task identity, CLT Agent author\u002Fcommitter identity, and one exact trailer.\n\nIf a commit hook changes files or fails after sealing, fix and stage the complete corrected payload, run `clt list done` to confirm the current index, then run `clt done done \u003Cindex>` to reseal that provisional Done entry. Inspect the new staged diff and retry the one commit. If the process stops, CLT resumes this exact session and checks whether the intended commit already exists before creating anything. Never move the provisional Done entry back to Doing merely because acknowledgement was lost, and never duplicate a commit that CLT can prove already succeeded. If completed-task evidence exists but the frozen start journal was lost, stop: CLT deliberately fails closed because it cannot reconstruct the exact-one-commit boundary safely.\n\nAfter creating and inspecting the exact task commit, exit without pushing. In commit-and-push mode CLT proves the local commit, performs publication itself, and retries `PUSH-PENDING` without resuming Codex. A blocked `WORKING` journal may yield to another Todo during blocked-recovery backoff while its history is preserved; `FINALIZING` and `PUSH-PENDING` block later project work.\n\n## Failed checks and completed implementation\n\nClassify a failing command before blocking finalization. When the implementation meets the original task's acceptance criteria and its relevant checks pass, a proven independent pre-existing or environment-only failure should not leave finished code uncommitted. Reproduce the failure on the frozen starting revision in an isolated directory without switching or resetting the active checkout; retain the revision, commands, matching output, passing checks, and unblock requirement.\n\nUse `clt list doing` and `clt follow-up doing \u003Cindex> \"Independent remaining work\" --evidence \"Evidence, baseline reproduction, and remaining work\"` to queue a separate actionable Todo task. Ordinary code fixes and existing lint warnings are ready work; the scheduler can start the follow-up in a fresh run after the parent succeeds. Only add `--blocked \"Unavailable dependency or input; what restores it\"` when an actual obstacle prevents starting the follow-up; that records it as blocked in Doing for later recovery. It gets a `clt-follow-up:\u003Cparent-session-id>` reference, not the parent's terminal `codex:` marker. Include the reference and validation evidence in the original task's COMPLETED note. Stage the follow-up, verified implementation, and original Doing task before sealing; include the complete Done move and follow-up in the same single task commit. Leave unrelated board edits unstaged. Record the follow-up without starting work on it in this run.\n\nIf the original implementation is incomplete, a task-relevant check fails, or independence is unproven, keep the original task blocked and preserve its changes. Never use a follow-up to bypass an acceptance criterion, required signing, or commit hooks. Reseal any corrected payload after a hook failure using the normal CLT contract.\n\n## Commit Message\n\nPrefer the repo's existing style from recent commits.\n\nIf recent commits use Conventional Commits, use:\n\n```text\nfeat(scope): add behavior\nfix(scope): correct behavior\ndocs(scope): update documentation\nrefactor(scope): simplify implementation\ntest(scope): add coverage\nchore(scope): update maintenance files\n```\n\nOtherwise use a plain imperative message:\n\n```text\nAdd Git commit workflow\nFix task status handling\nUpdate setup instructions\n```\n\nRules:\n\n- Base the message on the staged diff, not the user's rough wording.\n- Use imperative mood: \"add\", \"fix\", \"update\".\n- Keep the subject short and specific, preferably under 72 characters.\n- Add a body only when it explains useful context not obvious from the diff.\n\nCommit with:\n\n```bash\ngit commit -m \"Clear summary message\"\n```\n\nor, when a body is useful:\n\n```bash\ngit commit -m \"Clear summary message\" -m \"Explain the relevant context.\"\n```\n\nFor automated CLT finalization, the required `CLT-Task: codex:\u003Csession-id>` trailer is the final message paragraph even when no other body is needed.\n\n## Hook Failures\n\nIf a commit hook fails:\n\n1. Read the hook output.\n2. Fix the issue when the fix is clear.\n3. Re-stage changed files.\n4. Run the commit again.\n\nIf the fix is unclear, report the failure and ask before continuing. Do not bypass hooks unless explicitly requested.\n\n## Manual Or External Pull And Push\n\nWhen the user asks to push outside automated CLT finalization, sync first. Use a normal pull so Git honors the user's existing `pull.rebase` or branch configuration:\n\n```bash\ngit pull --autostash\n```\n\nThe pull may merge or rebase according to that configuration. Do not pass `--rebase` or `--no-rebase`, and do not change Git configuration, unless the user explicitly asks for a specific strategy.\n\nOutside automated CLT finalization, if conflicts occur:\n\n1. Inspect the conflict.\n2. Resolve only when the correct resolution is clear.\n3. Continue with `git rebase --continue` for a rebase or `git merge --continue` for a merge.\n4. Ask the user when the correct resolution is ambiguous.\n\nOutside automated CLT finalization, then push:\n\n```bash\ngit push\n```\n\nOutside automated CLT finalization, if the branch has no upstream:\n\n```bash\ngit push -u origin \"$(git branch --show-current)\"\n```\n\nDo not push tags unless the user explicitly asks.\n\nThe commands above are never part of an automated CLT run. In automated commit-and-push mode, CLT resolves the effective remote using `branch.\u003Cname>.pushRemote`, then `remote.pushDefault`, then the upstream remote, and freezes its one concrete push URL plus the upstream merge ref. After local proof, CLT alone invokes an explicit non-force `\u003Cfrozen-oid>:\u003Cfrozen-ref>` publication to the frozen URL, ignoring implicit routing at publication time, and independently proves remote containment. A failure remains `PUSH-PENDING`; the scheduler retries it without Codex and blocks later project work. External recovery may publish deliberately, but the automated agent must never run a push command.\n\n## Final Response\n\nSummarize the result briefly:\n\n```text\nCommitted changes.\n\nCommit: abc1234 Add Git commit workflow\nBranch: main\nFiles changed: 3\nPushed: no\nChecks: not run\n```\n\nIf nothing was committed, say why and include the current status.\n","# Git Commit Workflow\n\nFor ordinary manual or external work, use shell\u002FBash Git commands for inspection, staging, committing, rebasing, and pushing. Prefer non-interactive commands. Do not change Git config. In a released automated CLT run, use Git only for the permitted inspection, staging, and sealed local commit; never rebase or push.\n\nFor ordinary manual work, the caller may request either a commit-only or commit-and-push workflow. In automated CLT commit-and-push mode, Codex is authorized only to create the sealed local commit; CLT alone owns publication.\n\n## Start-of-Task Sync\n\nFor ordinary interactive work, before editing files for each 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 work:\n\n```bash\ngit pull --ff-only\n```\n\nUse fast-forward-only here 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\nDo not run that startup procedure from inside a released automated CLT task. For a fresh task in `commit` or `commit-and-push` mode, 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 commit, 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. It releases the agent only after preparation succeeds. Commit-and-push requires an attached branch with exactly one configured upstream at that boundary.\n\nAfter release, inspect the frozen state but do not pull, fetch\u002Fsynchronize, merge, rebase, switch branches, reset history, reconfigure the upstream, or push. Move the selected Todo task to Doing before implementation so CLT can recheck and bind the frozen launch record to the session's `WORKING` journal.\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\nAn unconsumed pre-registration launch boundary is immutable. Do not retry by recapturing it from the current checkout or by cleaning\u002Funregistering the project. Even if a reaped child exits before announcing a session, CLT preserves the record until the exact worker is terminal, no session-control row owns the run token, and HEAD, branch, upstream, and index still match the boundary verified using its frozen Git mode; otherwise it fails closed. Project Git settings may change for subsequent runs, but the active run's recorded mode and publication obligations remain unchanged.\n\n## Shared Dirty Worktrees\n\nA dirty worktree is expected when a person, an interactive session, or an independent worker has changes in progress. Dirtiness alone is never a reason to block or abandon the current task.\n\n- Treat the status and diff observed before editing as the baseline, and preserve those pre-existing changes.\n- Continue with non-conflicting work even when unrelated files are modified.\n- A pre-existing change in the same file is not automatically a conflict. Re-read the affected area, apply the task's change against the current contents, and preserve both changes when the combined result is clear.\n- Stop only for a real conflict: the same behavior or lines require incompatible outcomes and the correct combined result cannot be determined safely.\n- At commit time, stage only the current task's paths or hunks. Leave unrelated unstaged changes in place, including new or changed work added during the run. When a file contains mixed changes, use patch staging and verify the cached diff before committing.\n\nUnstaged and untracked work can safely coexist, including outside edits and new files added after launch. CLT preserves the recorded baseline but seals the reviewed index without comparing the remaining worktree to that baseline. The Git index is a cooperative boundary during an automated finalization: humans, interactive sessions, and parallel tools sharing the checkout must not stage or unstage until it settles. CLT records pre-existing staged changes as part of the frozen launch state and detects later index changes before activation, but Git does not record which actor staged a new 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\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## Default Flow\n\n```bash\ngit status --short --branch\ngit diff --stat\ngit diff\ngit diff --staged --stat\ngit diff --staged\ngit log --oneline -5\n```\n\nThen:\n\n1. Decide what belongs in the commit.\n2. Stage the intended files.\n3. Verify the staged diff.\n4. Commit with a message based on the staged diff.\n5. Push only when explicitly requested for ordinary manual\u002Fexternal work. In automated CLT mode, stop after the verified local commit and let CLT publish it.\n\n## Safety Rules\n\n- Follow repo instructions in `AGENTS.md`, `README`, `CONTRIBUTING`, or project docs when present.\n- Do not create or switch branches unless the user asks or the repo explicitly requires it.\n- If the repo has no branch rule, committing on the current branch is acceptable, including `main` or `master`.\n- Do not push unless the user asks during ordinary manual\u002Fexternal work. Never push from an automated CLT task, even when its mode is commit-and-push.\n- Do not force-push unless the user explicitly asks; use `--force-with-lease`, never plain `--force`.\n- Do not amend commits unless the user asks.\n- Do not skip hooks with `--no-verify` unless the user explicitly asks.\n- Never commit secrets, credentials, tokens, private keys, `.env` files, local config, logs, caches, or temporary\u002Fgenerated output unless the user explicitly asks.\n\n## Branch Instructions\n\nThese instructions apply to ordinary interactive work. In an automated CLT Git-enabled run, the branch was selected and frozen before the agent was released; do not create or switch branches.\n\nRepo instructions may specify a required branch for a feature, bugfix, or plan. Check `AGENTS.md`, project docs, feature plans, and design docs for branch guidance when they are relevant to the work.\n\nIf a repo doc or the user names a required branch:\n\n- Use that branch for the work and commit.\n- If already on that branch, continue.\n- If the branch exists locally, switch to it with `git switch \u003Cbranch>`.\n- If the branch does not exist, create it from the current base with `git switch -c \u003Cbranch>`.\n- Do not invent a feature branch name when no branch is specified.\n\nIf a branch is not specified in some way, then it should be done on master or main branch.\n\nIf uncommitted work already exists on a different branch, inspect status first. Switch only when the move is clearly safe; otherwise ask before moving work across branches.\n\nWatch especially for:\n\n```text\n.env\n.env.*\ncredentials.json\n*.pem\n*.key\n*.crt\n*.log\n.DS_Store\nnode_modules\u002F\ndist\u002F\nbuild\u002F\ncoverage\u002F\n.cache\u002F\n```\n\n## Staging\n\nTreat already staged changes as intentional. Inspect staged and unstaged changes before adding anything else.\n\nIf changes are already staged:\n\n- For ordinary commit requests, use the staged diff as the commit scope by default. For automated CLT tasks, the selected task defines the scope; preserve unrelated staged work using the separate-index procedure above.\n- Mention unstaged or untracked changes only if they look relevant.\n- Add more files only when they clearly belong to the same logical change or the user asked to commit everything.\n\nThe exception is an automated CLT finalization. Pre-existing staged changes are not implicitly part of the task commit. Isolate the current task's paths or hunks and stop if that cannot be done without disturbing or committing another actor's staged work.\n\nIf nothing is staged:\n\n- Stage all changes with `git add -A` only when they form one logical commit.\n- Stage specific files when the work is mixed or risky:\n\n```bash\ngit add path\u002Fto\u002Ffile1 path\u002Fto\u002Ffile2\n```\n\nAfter staging, always verify:\n\n```bash\ngit diff --staged --stat\ngit diff --staged\n```\n\nIf unrelated changes are present, commit only the requested or coherent set and leave the rest untouched.\n\nPre-existing unstaged changes do not prevent a commit. Use path-specific or patch staging to isolate the completed task. Do not require the whole worktree to become clean before committing.\n\nA Todo or other task-board edit added after an automated CLT run starts may also remain unstaged. Preserve it and continue finalization: CLT proves the exact staged task tree, so the concurrent board edit stays outside the sealed commit. Use path-specific or patch staging for the selected task's transition instead of adding the whole board.\n\n## CLT Task Updates\n\nIf the work is tracked with `clt`, update the current task through `clt` before staging and include the resulting task-board changes in the same commit as the implementation. Check both supported layouts:\n\n- Markdown files: `tasks\u002Ftodo.md`, `tasks\u002Fdoing.md`, and `tasks\u002Fdone.md`.\n- Task folders: `tasks\u002Ftodo\u002F`, `tasks\u002Fdoing\u002F`, and `tasks\u002Fdone\u002F`.\n\nInspect the board changes even when implementation files are already staged:\n\n```bash\ngit status --short -- tasks\u002F\ngit diff -- tasks\u002F\ngit diff --staged -- tasks\u002F\n```\n\nStage the current task's content and status transition, including both sides of a move or deletion. Use `git add -A -- tasks\u002F` only when every task-board change belongs to the same logical commit; otherwise stage the exact task paths and leave unrelated task changes untouched.\n\nFor managed Git automation, directory-backed status moves preserve the existing task path and order rather than converting or renumbering it. CLT rejects folder-backed Todo-to-Markdown Doing and folder-backed Doing-to-Markdown Done routes before release. Exact session-linked duplicates left by a crash are repaired; ambiguous copies remain fenced.\n\n## Automated CLT Finalization\n\nThese instructions apply to an unfinished automated run. Opening a completed\ntask interactively leaves it in Done and supplies `CLT_INTERACTIVE_TASK_SESSION`.\nDiscuss the existing task without claiming it, changing status, or reviving its\nterminal Git journal. Begin follow-up implementation only when explicitly\nrequested. Commit or push follow-up changes only when the user requests it,\nusing the ordinary interactive workflow without another `CLT-Task` trailer for\nthe completed automated run.\n\nWhen an automated CLT prompt enables `commit` or `commit-and-push` mode, `clt done` starts a durable task finalization. The task may already appear in the Done store, but that move is provisional while CLT reports `FINALIZING`.\n\nCLT already completed its scheduler-owned startup preparation and branch\u002Fupstream validation, persisted the server-owned launch state, and only then released this automated run. That preparation may deliberately preserve the current commit when an older `WORKING` journal depends on it. Do not repeat the preparation. Move the selected committed Todo task to Doing before implementation; CLT rechecks the starting commit, branch, index, and upstream configuration and binds the session journal at that seam. Do not pull, fetch\u002Fsynchronize, merge, rebase, switch branches, reset history, reconfigure the destination, or rewrite history afterward.\n\nBefore `clt done`, run every available formatter, linter, signing check, and hook check that can mutate files. Then stage the verified implementation plus the active Doing task with its dated completion note and terminal session marker. Inspect the staged diff, and keep all unrelated baseline work outside the task commit, preserving its existing staging in the shared index when using a separate task index. `clt done` uses a private index to project that task into Done and seals the exact resulting full repository tree, not merely the changed paths or patch. It then moves the worktree entry provisionally. Stage only the resulting board transition and inspect the complete staged diff again. Before committing, list Done and run `clt done done \u003Cindex>` with the same `GIT_INDEX_FILE` to reseal that final reviewed index, including the exact task position. Do not reconstruct the board move by appending the task elsewhere.\n\nCreate exactly one normal commit containing all of the following:\n\n- the implementation and tests or documentation belonging to the task;\n- its `COMPLETED YYYY-MM-DD:` note;\n- the complete task-board transition into Done; and\n- one exact commit trailer identifying the linked task session: `CLT-Task: codex:\u003Csession-id>`.\n\nRead the terminal `codex:\u003Csession-id>` marker from the task entry and preserve it in the board change. Add the trailer as a separate commit-message paragraph, for example:\n\n```bash\ngit commit \\\n  -m \"Clear summary message\" \\\n  -m \"CLT-Task: codex:019abcde-1234-7890-abcd-0123456789ab\"\n```\n\nUse ordinary `git commit` so repository hooks and signing behavior remain active. Keep the same reviewed index throughout staging, sealing and committing, including when the separate-index procedure is required. Do not use `commit-tree`, amend, a merge commit, or a second board-only commit to simulate finalization. After the command returns, inspect the created commit. CLT will accept only the exact sealed full tree and manifest parent together with the matching task identity, CLT Agent author\u002Fcommitter identity, and one exact trailer.\n\nIf a commit hook changes files or fails after sealing, fix and stage the complete corrected payload, run `clt list done` to confirm the current index, then run `clt done done \u003Cindex>` to reseal that provisional Done entry. Inspect the new staged diff and retry the one commit. If the process stops, CLT resumes this exact session and checks whether the intended commit already exists before creating anything. Never move the provisional Done entry back to Doing merely because acknowledgement was lost, and never duplicate a commit that CLT can prove already succeeded. If completed-task evidence exists but the frozen start journal was lost, stop: CLT deliberately fails closed because it cannot reconstruct the exact-one-commit boundary safely.\n\nAfter creating and inspecting the exact task commit, exit without pushing. In commit-and-push mode CLT proves the local commit, performs publication itself, and retries `PUSH-PENDING` without resuming Codex. A blocked `WORKING` journal may yield to another Todo during blocked-recovery backoff while its history is preserved; `FINALIZING` and `PUSH-PENDING` block later project work.\n\n## Failed checks and completed implementation\n\nClassify a failing command before blocking finalization. When the implementation meets the original task's acceptance criteria and its relevant checks pass, a proven independent pre-existing or environment-only failure should not leave finished code uncommitted. Reproduce the failure on the frozen starting revision in an isolated directory without switching or resetting the active checkout; retain the revision, commands, matching output, passing checks, and unblock requirement.\n\nUse `clt list doing` and `clt follow-up doing \u003Cindex> \"Independent remaining work\" --evidence \"Evidence, baseline reproduction, and remaining work\"` to queue a separate actionable Todo task. Ordinary code fixes and existing lint warnings are ready work; the scheduler can start the follow-up in a fresh run after the parent succeeds. Only add `--blocked \"Unavailable dependency or input; what restores it\"` when an actual obstacle prevents starting the follow-up; that records it as blocked in Doing for later recovery. It gets a `clt-follow-up:\u003Cparent-session-id>` reference, not the parent's terminal `codex:` marker. Include the reference and validation evidence in the original task's COMPLETED note. Stage the follow-up, verified implementation, and original Doing task before sealing; include the complete Done move and follow-up in the same single task commit. Leave unrelated board edits unstaged. Record the follow-up without starting work on it in this run.\n\nIf the original implementation is incomplete, a task-relevant check fails, or independence is unproven, keep the original task blocked and preserve its changes. Never use a follow-up to bypass an acceptance criterion, required signing, or commit hooks. Reseal any corrected payload after a hook failure using the normal CLT contract.\n\n## Commit Message\n\nPrefer the repo's existing style from recent commits.\n\nIf recent commits use Conventional Commits, use:\n\n```text\nfeat(scope): add behavior\nfix(scope): correct behavior\ndocs(scope): update documentation\nrefactor(scope): simplify implementation\ntest(scope): add coverage\nchore(scope): update maintenance files\n```\n\nOtherwise use a plain imperative message:\n\n```text\nAdd Git commit workflow\nFix task status handling\nUpdate setup instructions\n```\n\nRules:\n\n- Base the message on the staged diff, not the user's rough wording.\n- Use imperative mood: \"add\", \"fix\", \"update\".\n- Keep the subject short and specific, preferably under 72 characters.\n- Add a body only when it explains useful context not obvious from the diff.\n\nCommit with:\n\n```bash\ngit commit -m \"Clear summary message\"\n```\n\nor, when a body is useful:\n\n```bash\ngit commit -m \"Clear summary message\" -m \"Explain the relevant context.\"\n```\n\nFor automated CLT finalization, the required `CLT-Task: codex:\u003Csession-id>` trailer is the final message paragraph even when no other body is needed.\n\n## Hook Failures\n\nIf a commit hook fails:\n\n1. Read the hook output.\n2. Fix the issue when the fix is clear.\n3. Re-stage changed files.\n4. Run the commit again.\n\nIf the fix is unclear, report the failure and ask before continuing. Do not bypass hooks unless explicitly requested.\n\n## Manual Or External Pull And Push\n\nWhen the user asks to push outside automated CLT finalization, sync first. Use a normal pull so Git honors the user's existing `pull.rebase` or branch configuration:\n\n```bash\ngit pull --autostash\n```\n\nThe pull may merge or rebase according to that configuration. Do not pass `--rebase` or `--no-rebase`, and do not change Git configuration, unless the user explicitly asks for a specific strategy.\n\nOutside automated CLT finalization, if conflicts occur:\n\n1. Inspect the conflict.\n2. Resolve only when the correct resolution is clear.\n3. Continue with `git rebase --continue` for a rebase or `git merge --continue` for a merge.\n4. Ask the user when the correct resolution is ambiguous.\n\nOutside automated CLT finalization, then push:\n\n```bash\ngit push\n```\n\nOutside automated CLT finalization, if the branch has no upstream:\n\n```bash\ngit push -u origin \"$(git branch --show-current)\"\n```\n\nDo not push tags unless the user explicitly asks.\n\nThe commands above are never part of an automated CLT run. In automated commit-and-push mode, CLT resolves the effective remote using `branch.\u003Cname>.pushRemote`, then `remote.pushDefault`, then the upstream remote, and freezes its one concrete push URL plus the upstream merge ref. After local proof, CLT alone invokes an explicit non-force `\u003Cfrozen-oid>:\u003Cfrozen-ref>` publication to the frozen URL, ignoring implicit routing at publication time, and independently proves remote containment. A failure remains `PUSH-PENDING`; the scheduler retries it without Codex and blocks later project work. External recovery may publish deliberately, but the automated agent must never run a push command.\n\n## Final Response\n\nSummarize the result briefly:\n\n```text\nCommitted changes.\n\nCommit: abc1234 Add Git commit workflow\nBranch: main\nFiles changed: 3\nPushed: no\nChecks: not run\n```\n\nIf nothing was committed, say why and include the current status.\n",{"name":5,"description":7},"master","92c2e4361133c4644ce95c541c2d3fb49dc4cda0","skills\u002Fgit-commit",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 git-commit",{"tool":59,"command":60},"bunx","bunx skills add AlpineVibrations\u002Fclt-rs --skill git-commit",{"tool":62,"command":63},"pnpm","pnpm dlx skills add AlpineVibrations\u002Fclt-rs --skill git-commit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAlpineVibrations\u002Fclt-rs\u002Fblob\u002Fmaster\u002Fskills\u002Fgit-commit\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},"01M6QX1DQJ755E43WMP60V2EKQ","clt-task-management","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.","https:\u002F\u002Fgithub.com\u002FAlpineVibrations\u002Fclt-rs\u002Fblob\u002Fmaster\u002Fskills\u002Fclt-task-management\u002FSKILL.md",[],[75,76,77,78,34,79,35,80,81,82,83,84,85,86,87,24,88,89,23,32],"task","clt task management","management","task management","update","synchronization","notes","outcome","cli","todo","done","project","creation","initialization","track"]