/ai_dev:task_fixfrom ai_dev
Health-checks and repairs the entire tasks backlog tree: lints frontmatter, status, links, and datetimes; assesses backlog coherence across tasks and artifacts; gates coherence repairs on user acceptance or escalates to auto-shaper.
Ships in ai_dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
<task_fix_skill>
task_fix health-checks the whole `tasks/` tree and repairs what it safely can. It is the task-backlog analogue of `wiki_fix`. It runs a four-phase loop (orient → assess → remediate → verify), auto-fixes the mechanical findings the linter reports, surfaces judgement calls for review by default, and ends with a concise report. Its assess phase also runs the base `task` skill's `` joint assessment on every invocation, default-on: it reads the selected live tasks together with the artifacts they target, judges them against each other and against the code as it stands, and reports a per-task verdict plus a ship order. Coherence writes stay gated: the assessment reports, and reconcile runs only on the user's acceptance or through the escalate path. On explicit autonomous-resolution opt-in, or on a scale trigger the user confirms, it escalates those judgement calls to `auto_shaper_task`, which becomes the single serialized writer for that run. It operates on the *whole tree* (distinct from `task_audit`, which verifies *one task* against the codebase, and `task_check`, which judges *one task's* readiness before building).<when_to_activate> Activate when the user wants the task backlog as a whole audited, tidied, or judged for backlog-coherence:
Ordinary backlog phrasing is enough for the second group: coherence, consistency, or whether the selected tasks ship together. No special jargon is required, because every everyday invocation already runs the assessment; that phrasing emphasizes or narrows the run rather than switching it on.
Route elsewhere when the user wants to judge a single task's readiness before building (task_check), automatically repair one task until it is ready (task_auto_check), choose what to work on next (task_select), verify one believed-done task against the codebase (task_audit), create a task (task_create), implement one (task_implement), or close one out (task_finish).
</when_to_activate>
<design_note>
task_fix runs inline by default because most tasks/ trees are small and the common fixes are mechanical. The autonomous path is an escalation inside this skill, not a second user-facing skill: auto_shaper_task is spawned only when the user asks for autonomous judgement-call resolution or confirms that the tree is large enough to justify the read fan-out. Backlog-coherence reconcile is assess-then-one-writer under that same exclusive-writer rule: the assessment always reports and never writes, and a run that reconciles picks exactly one writer for its accepted set: either task_fix writes inline, or auto_shaper_task writes serially as the sole writer, never both in one run. The spawned assess agents provide read-side proposals and verification; file-creating splits, task moves, cross-reference rewrites, and frontmatter stamps stay with the single writer so parallel writers never race on the shared link graph.
</design_note>
<path_resolution>
The bundled scripts (discover_tasks.sh, lint.py) ship in scripts/ next to the base task skill's SKILL.md, not next to this one. After reading that base SKILL.md (per <authority>), resolve each script's absolute path by combining the directory you loaded it from with scripts/<script-name> and invoke that absolute path, never a bare scripts/..., which resolves against the current working directory (the target project) rather than the skill, and so finds the project's own scripts/ or nothing. If the first invocation reports a missing file, re-resolve the absolute path once before treating the script as failed.
Resolve auto_shaper_task, auto_reviewer_task, auto_verifier_task, and auto_gate_task by their published names through the current harness's normal agent mechanism. When a harness exposes only file paths, those agents live in the same plugin at ../../agents/ relative to this skill directory.
</path_resolution>
Orient. Read the base task skill's rules once: naming, frontmatter, the <body> anatomy, the standard-markdown policy, the 300-line split rule, and the <lint> / <archive> workflows. These are the bar every fix honors.
Assess. Resolve tasks/ via <discover>, run lint.py --include-archive over the tree, and bucket its findings (blocking / warn / info). Then walk every task applying the best-effort advisory checks the linter can't: topic mixing (one file covering two unrelated units of work; flag for a split), single-shot-readiness (a body that has fallen below the base skill's self-sufficiency bar: an empty section, a dangling "TBD", context that assumes the vanished original chat), cross-link value (a cross-reference to another task that does no work, judged against the cross-link discipline in the base task skill's <markdown_policy>), body framing (load-bearing content carried mainly by negatives, judged against the base <body> authoring rule. A genuine out-of-scope entry, deferred-alternative note, guardrail, or expected-state acceptance check is compliant and draws no finding), artifact-edit placement (a body that frames an existing-artifact edit as an append where the base <body> rewrite-in-place rule calls for superseding the affected passage; surface and propose rather than auto-fix, respecting its carve-outs and the instruct-vs-narrate line), acceptance proof surface (an Acceptance item resting on the commit message or pull-request description, judged against the base <body> Deliverable items flip. bullet; surface and propose moving the proof onto a tree artifact or dropping the item while preserving Acceptance coverage), restated standing rules (a body passage that instructs the implementer with a copy of a rule that the project's standing instruction documents, such as CLAUDE.md / AGENTS.md and equivalents, already own: read those documents and compare; the base <body>'s cite-don't-restate corollary is the rule source), and count-stable references (a body that refers to a mutable set by a frozen count or by an enumeration snapshot of the set's current members, judged against the base task skill's <markdown_policy> count-stable rule, whose legal subject-matter quantities draw no finding; surface it with the selector rewrite proposed rather than auto-fixing it).
Then run the base task skill's <backlog_coherence> assessment over the selected live set in the same pass. It is default-on rather than a separate mode, so every everyday invocation produces both the mechanical findings and the joint assessment in one report. Take the selector from the user's request (a scope filter, an explicit list, or the whole live tree, defaulting to the whole live tree when they name no filter) and hand it to that block, which defines the selected live set C and the shared target-artifact set T from it, including which live tasks a named scope leaves out. Follow the block's own method rather than a task-by-task walk: read C in full, read T once, and write both of that block's indexes into the report as their own sections before judging anything: the shared-surface map keyed by artifact, and the design-question grouping keyed by the question each task answers. Naming them as sections the report owes is what forces the pairwise work; an assessment that goes straight to per-task verdicts reverts to the task-by-task walk without ever announcing it, and returns premise findings while the ownership, contradiction, and posture lenses quietly find nothing. Then apply the seven lenses and give each task the verdict its class requires, with the fields that verdict owes. Report the ship-order waves those verdicts imply, and name any unselected task the run touched only as context. The assessment is the phase-one deliverable for coherence findings: it writes nothing, and Gated coherence reconcile below owns the write half.
When the user requested autonomous judgement-call resolution, or when the tree is large enough that the assess list will strain one context, present that escalation scope and continue only after the opt-in or confirmation is explicit.
Remediate. In the inline default, auto-fix the safe mechanical findings in place by applying the base <lint> mechanically fixable finding set across the whole tree, including broken in-repo links in the task files the run covers (live files by default, the archive as well under --include-archive). Use task_fix's archive-inclusive mechanics for tree-wide cases: status/location mismatch moves via the base <archive> workflow including cross-reference re-pointing; legacy archived non-terminal status becomes status: finished; provenance backfill writes the linter's git-history-derived value and falls back to the base <user_name_chain> when history yields nothing. For soft-pointer warnings, apply the base <lint> triage rule first, reading the hit's surrounding context and stripping only a confirmed line-number position claim; when the hit is a false positive such as a size, version, count, or quoted claim-shape, leave it untouched. For task_fix-only advisory repairs outside the mechanically fixable set, remove an unambiguous reverse-duplicate cross-link, reframe a negation-framed body finding only when the positive rewrite is mechanical and meaning-preserving, and apply the meaning-preserving regroup from the base <lint> Repeated-link react protocol to each live repeated-link finding, reorganizing the body as that protocol defines so the material that belongs together sits together under one link. Apply these advisory repairs to open, checked, and ready tasks only. Each one keeps the meaning of the body, so under the base <status_discipline> rule it keeps the task's status, ready included. Leave an implemented or audited body as delivered, reporting each such finding with the route that rule gives it, and leave the finished or deferred status of an archived file as it is through every mechanical fix the tree pass makes to it. Bump updated on every changed file from the base <frontmatter> timestamp command, except under the two base <bump_updated> exceptions: a legacy provenance/status retrofit as the only change, and a UTC timestamp normalization, whose conversion preserves the instant. Leave the judgement calls below untouched in the inline path: a cross-link whose value is a genuine call belongs in <surface_for_review>, never an auto-delete. Hold the coherence line here too: backlog-coherence findings from assess never enter the inline mechanical auto-fix set, so this phase auto-fixes only lint and other mechanical findings until the user accepts coherence findings or opts into escalate. In the escalated path, hand the full assessed defect set to auto_shaper_task and perform no inline writes for that run; the agent owns serial remediation and returns its verification report.
Timestamp correction protocol. A non-UTC created or updated finding is the base <lint> UTC timestamp normalization entry, and this protocol is its repair. The repair is inline-only because it needs the zone ask: task_fix applies it inline, and the escalated auto_shaper_task surfaces a non-UTC finding rather than converting it. Collect the linter's non-UTC findings, then ask the user for the zone that produced the naive values, either an IANA name such as Europe/Berlin or a fixed offset. Convert a non-zero-offset value directly, and convert a naive value with zoneinfo once the zone is known. Write the Z form and leave updated un-bumped, because the conversion preserves the instant under the base <bump_updated> timestamp-normalization exception. Re-lint archive-inclusive to zero non-UTC findings, and report each converted file with the zone used.
# Naive local value plus an IANA zone.
python3 - <<'PY'
from datetime import datetime, timezone
from zoneinfo import ZoneInfo
naive = datetime.fromisoformat("2026-11-03T13:26:31")
utc = naive.replace(tzinfo=ZoneInfo("Europe/Berlin")).astimezone(timezone.utc)
print(utc.strftime("%Y-%m-%dT%H:%M:%SZ"))
PY
# Naive local value plus a fixed offset, here UTC+1.
python3 - <<'PY'
from datetime import datetime, timezone, timedelta
naive = datetime.fromisoformat("2026-11-03T13:26:31")
utc = (naive - timedelta(hours=1)).replace(tzinfo=timezone.utc)
print(utc.strftime("%Y-%m-%dT%H:%M:%SZ"))
PY
# An explicit non-zero offset converts without asking.
python3 - <<'PY'
from datetime import datetime, timezone
value = datetime.fromisoformat("2026-11-03T13:26:31+01:00")
print(value.astimezone(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ"))
PY
State the resolution rule: zoneinfo resolves an ambiguous or nonexistent local time at its default fold, and a fixed offset is the fallback when the user names an offset instead of a zone.
Gated coherence reconcile. Coherence repairs land only on the user's acceptance of named findings or through the escalate opt-in, and the accepted set gets exactly one writer for that run. When every accepted repair is an anchor refresh, a premise-drift staleness fix, or a semantics-preserving additive **Out of scope:** note, apply them inline. When any accepted repair is a judgement reconciliation (a single-owner decision, a severity or posture change, a completed enumeration), hand the full accepted set to auto_shaper_task so the staleness items ride that same escalated write rather than a parallel inline path. Reconcile each accepted finding under the base <body> Decide or label procedure, preserve every edited task's frozen ## Goal, write status in each repair's edit as the base <status_discipline> rule directs, bump updated on every changed file, and re-lint archive-inclusive. Reconcile may run in the same invocation when the user accepts findings before this phase begins, or on a follow-up invocation that carries the accepted finding set.
Verify. For the inline path, re-lint and triage rather than chase zero-warn: drive blocking findings to zero and confirm the mechanical warns are resolved, while leaving the judgement-call warns (an oversized page that needs a split) surfaced-and-accepted for the user. The inline clean bar is 0 blocking, mechanical warns resolved, judgement-call warns reported, not zero-warn. For the escalated path, require auto_shaper_task to re-run lint.py --include-archive, report each applied fix and surfaced issue, and stop only when the linter is clean for the verified defect set or no verifier-approved change remains.
<surface_for_review>
Surface these for human review in the inline path. When the user opted into autonomous resolution, route these to auto_shaper_task for verifier-gated repair unless the item says it remains human-owned. Coherence carries its own disposition on top of that split: user-accepted backlog-coherence findings from the assess-phase report reconcile under Decide or label through Gated coherence reconcile, while every unaccepted item on this list stays a surfaced judgement call the user decides.
scope: value.<body> rewrite-in-place rule calls for superseding the affected passage. Propose the in-place rewrite, cite the base rule, respect its carve-outs, and apply the same instruct-vs-narrate boundary used for restated standing rules.<body> Deliverable items flip. bullet, and propose moving the proof onto a tree artifact or dropping the item while preserving Acceptance coverage.## Acceptance, the base contract's task-specific-gates clause draws the boundary: a generic project-gate item is such a restatement, while a task-specific executable check draws no finding. A body that merely narrates a rule's history (changelog-style context) draws no finding either; the check targets passages that instruct.<backlog_coherence> emergent-contradiction and posture-consistency lenses. The disposition is dual: user-accepted backlog-coherence findings reconcile under Decide or label, while findings outside the selected live set stay human-owned and surfaced.task skill's <markdown_policy> count-stable rule, and propose the selector rewrite as the fix: "all N live task-family_* tasks" becomes "every live task-family_* task". This entry remains human-owned on the escalated path as well, so it stays with the user rather than routing to auto_shaper_task: the rewrite widens a scope the frozen number had pinned, and confirming that the widened set is the one the task means is the user's call. A quantity the base rule keeps legal (a measurement protocol's run count or fixed denominator, a size extent, a number that is itself the artifact under edit) draws no finding.repeated-link findings the Remediate. step leaves for a human call, citing the base task skill's <markdown_policy> grouping rule and <lint> Repeated-link react protocol rather than restating them, and naming the sections that link the target. The protocol's surfaced reasons are the cases that reach this list: a reorganization that would change the meaning of ## Goal, one that would change the Acceptance contract, one that reveals the body grew into separate concerns, which carries the protocol's route to the <split_at_300> / one-task-per-file split guidance, and a body for which no grouping keeps its meaning. Every other finding, which the linter reports only on an open, checked, or ready task, is a meaning-preserving reorganization the Remediate. step applies inline, and on the escalated path a surfaced finding routes to auto_shaper_task like the other body repairs.
</surface_for_review><output_contract>
End with a concise report: the mode used (inline or escalated), a backlog-coherence assessment section, the per-file changes made, the final lint outcome (triaged as above for inline, agent-verified for escalation), and a closing line in the shape audit complete — N issues resolved, K flagged for review. Name every judgement call left for the user and include the auto_shaper_task report when escalation ran.
Report every repeated-link finding the run read. Each live finding gets one line in the base <lint> Repeated-link disposition line shape, the shared per-finding disposition line shape that carries the file, the link target, the sections linking it, and the disposition, which is regrouped or surfaced because <reason>, the only two the protocol allows. Count each regrouped finding in N issues resolved and each surfaced one in K flagged for review, so every live finding the run read lands in one of the two counts.
The backlog-coherence assessment section appears on every run, since the assessment is default-on. It names the selected live set and how the selector picked it, carries both indexes the assess phase wrote (the shared-surface map and the design-question grouping), gives each selected task its verdict with the evidence behind it and the fields that verdict class owes, names the ship-order waves, and states plainly that the joint read found nothing when the set is coherent. Keep the map in the report rather than dropping it after use: it is the evidence a shared-surface or contradiction verdict rests on, and a reader checking such a verdict needs the ownership rows it came from.
A surfaced fork is the one verdict class whose fields are written out as named elements, because it is the class most often reported half-finished. Its entry carries the options it is choosing between and, labelled as its own element, the suggested path this pass would take with the reason for it. Write that element even when the task already labels the fork itself, since the pass still owes the path it would take; a fork entry that lists options and stops has left the decision exactly where it found it, which is the failure this naming exists to prevent. inline and escalated stay the only two writer modes. Backlog coherence is an assess-phase section rather than a third mode token, so a run that only assesses reports the mode its mechanical remediation used.
</output_contract>
task_create: write one task filetask_check: readiness gate before building (read-only)task_auto_check: autonomously repair one task until task_check reports readytask_explain: explain one task at a high level (read-only)task_select: choose and rank the next eligible task/action (read-only)task_implement: do the worktask_audit: verify a believed-done task against the codebase (read-only)task_finish: close out (set status, bump updated, archive)task_fix: audit and repair the whole tasks tree (this skill)These ship together as a family; any sibling may be absent if a deployment excluded it. The default manual chain is create → check → implement → audit → finish, with task_auto_check as an opt-in readiness repair loop, task_select a read-only chooser for what to work on next, and task_fix maintaining the tree.
</task_fix_skill>
What SKILL.md sets; muted values are Claude Code's defaults
27 skills in this plugin
/agent_spinnerRun helper agents from an orchestrating agent under one quality contract, whatever the host offers. Establishes the capability tier, declares a phase plan, picks an orchestration shape and width, contains each helper to one path, checks work refute-by-default, and merges cited findings into one verdict-first report. Use when deciding how to run helper agents, sub-agents, or subagents: sizing a fan-out over files, spawning parallel helpers, splitting a review into lenses, running a judge or verifier pass, cross-checking agents' work, containing concurrent writers, aggregating helper reports, recovering failed helpers, or running a serial implement-then-audit loop until the task is stamped audited, in sub-agents. Use it for a multi-agent run plan. Route a backlog-only request to task_* and a wiki request to wiki_fix unless the user names agent_spinner or asks for helpers; those families keep their own contracts. Per-harness facts stay with harness_portability.
/ai_instruction_formattingOrganize AI-consumed content (prompts, rules, skills, commands, agents, system instructions) into pseudo-XML by wrapping each semantic concern in a dedicated tag for role, policy, inputs, and output contract. Use when structuring or reorganizing the body of a SKILL.md, agent or sub-agent definition, command file, rules document (.mdc), CLAUDE.md, AGENTS.md, or GEMINI.md configuration, prompt template, or system prompt into semantic tags, when choosing tag boundaries, or when checking whether an instruction file follows the pseudo-XML convention. This is the structure-and-tags skill; its sibling ai_instruction_writing governs the wording.npx claudepluginhub theafh/ai-modules --plugin ai_devOther plugins' skills for the same job