Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

install-native-hooks

БесплатноЗапускает вложенные скриптыНе проверен

Install opt-in taskwarrior native on-add/on-modify/on-exit hooks: auto-stamp project, enforce claims, batch GitHub sync, maintain coworker markers. Use when…

laurigatesот laurigates★ 61 звезда на GitHub

Об этом скилле

/taskwarrior:install-native-hooks

Install the plugin's opt-in taskwarrior native hooks into the user's taskwarrior hooks directory (<data.location>/hooks/). These are taskwarrior's own on-add / on-modify / on-exit hooks — distinct from Claude Code hooks — and run on every local task add / task modify / task exit, regardless of whether the change came from a plugin skill.

This skill writes to the user's global taskwarrior config and is strictly opt-in: it runs only when the user explicitly invokes it. Nothing else in the plugin (no SessionStart hook, no chezmoi apply) installs these.

When to Use This Skill

Use this skill when... Use a sibling skill instead when...
Hardening a local store so every task add gets auto-stamped + tag-checked Closing stale issue/PR trackers — use task-reconcile
You want the hyphenated-tag warning enforced outside the plugin skills Filing or claiming a single task — use task-add / task-claim

What gets installed

Hook Fires on Behaviour

| on-add-taskwarrior-plugin | task add | Auto-stamps project from the git toplevel / cwd basename when unset; auto-links the ghid UDA from a trailing #N in the description when unset (pure text, no network); warns (never rejects) on a hyphenated +tag in the description (the form taskwarrior mis-parses) | | on-modify-taskwarrior-plugin | modify / annotate / done / start / stop | Stamps claim identity (agent/host/branch/worktree) when a task goes +ACTIVE without it (so a bare task start still carries the UDAs /git:coworker-check reads); warns on a claim takeover (agent change); expires a stale claim (drops +ACTIVE + drains identity when start exceeds the TTL); warns on a hyphenated tag in the modified description | | on-exit-taskwarrior-plugin | every task exit (sees the whole changeset) | Batches GitHub sync — queues the UUID of each touched task carrying a ghid/ghpr linkage UDA to <data>/claude-plugin-ghsync.queue; a SessionStart drain (scripts/drain-ghsync-queue.sh, run by the drift probe) resolves them in one batched task export, busts the drift-probe TTL cache for the affected projects so the next stale-check re-polls in one batched gh pass, and clears the queue. Maintains the coworker marker — for a touched task carrying pid+worktree, writes <git-dir>/.claude-session-<pid> when it goes +ACTIVE without one (skip-if-exists, so the skill marker is never clobbered) and removes a now-stale marker after a raw stop/done |

All three fail open — on any error (missing jq, bad JSON) they pass the task through unchanged and exit 0, so a broken hook never blocks task add. The on-exit hook's stdout is advisory feedback only; its exit code is ignored.

The on-modify stale-claim expiry is tunable from the environment (native hooks inherit the caller's shell):

Variable Default Effect
CLAUDE_TASKWARRIOR_CLAIM_TTL_HOURS 4 Age (hours) past which a still-+ACTIVE task is expired on next touch
CLAUDE_TASKWARRIOR_NO_CLAIM_EXPIRY (unset) Set to 1 to disable stale-claim expiry entirely (stamping + warnings stay on)

Expiry is opportunistic — it fires when a stale claim is touched by any modify, not as a guaranteed background sweep. The deterministic dead-PID release (laurigates/claude-plugins#1792) and scheduled reconcile (#1793) cover the not-touched case.

The on-exit hook is likewise tunable from the environment:

Variable Default Effect
CLAUDE_TASKWARRIOR_GHSYNC_QUEUE <data.location>/claude-plugin-ghsync.queue Path of the batch gh-sync queue file
CLAUDE_TASKWARRIOR_NO_GHSYNC_QUEUE (unset) Set to 1 to disable the gh-sync queue (and its drain) entirely
CLAUDE_TASKWARRIOR_NO_MARKER_UPKEEP (unset) Set to 1 to disable coworker-marker upkeep entirely

on-exit has no before-image. Unlike on-modify (which sees the original and modified task), on-exit receives only the final state of each changed task. So "linkage changed" is approxim

Полный SKILL.md на GitHub

Установить install-native-hooks в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash(task *)
Bash(bash *)
Read
TodoWrite

Вложенные файлы

scripts/install-hooks.shtemplates/on-add-taskwarrior-plugintemplates/on-exit-taskwarrior-plugintemplates/on-modify-taskwarrior-plugin

FAQ

Что делает скилл install-native-hooks?

Install opt-in taskwarrior native on-add/on-modify/on-exit hooks: auto-stamp project, enforce claims, batch GitHub sync, maintain coworker markers. Use when hardening a local taskwarrior store.

Как установить скилл install-native-hooks?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл install-native-hooks запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить install-native-hooks с