Skip to content
ln-302-task-replanner logo

Universal Task Replanner

ln-302-task-replanner

Updates ALL task types (implementation/refactoring/test). Compares IDEAL plan vs existing tasks, categorizes KEEP/UPDATE/OBSOLETE/CREATE, applies changes in Linear and kanban.

SKILL.md

Full skill instructions

Universal Task Replanner

Worker that re-syncs existing tasks to the latest requirements for any task type.

Purpose & Scope

  • Load full existing task descriptions from Linear
  • Compare them with orchestrator-provided IDEAL plan (implementation/​refactoring/​test)
  • Decide operations (KEEP/​UPDATE/​OBSOLETE/​CREATE) and execute
  • Drop NFR items; only functional scope remains
  • Update Linear issues and kanban_board.md accordingly

Task Storage Mode

AspectLinear ModeFile Mode
Load existingget_issue(task_id) per taskRead("docs/​tasks/​epics/​.../​tasks/​T{NNN}-*.md") per task
Update taskupdate_issue(id, description)Edit task file content
Cancel taskupdate_issue(id, state: "Canceled")Edit status to Canceled
Create newcreate_issue(parentId, state: "Backlog")Write new T{NNN}-{slug}.md

File Mode replan:

  1. Load existing task files via Glob
  2. Compare with IDEAL plan
  3. Edit/​Write/​Update files as needed
  4. Update kanban_board.md to reflect changes

Invocation (who/​when)

  • ln-300-task-coordinator: REPLAN mode when implementation tasks already exist.
  • Orchestrators (other groups): Replan refactoring or test tasks as needed.
  • Not user-invoked directly.

Inputs

  • Common: taskType, teamId, Story data (id/​title/​description with AC, Technical Notes, Context), existingTaskIds.
  • Implementation: idealPlan (1-6 tasks), guideLinks.
  • Refactoring: codeQualityIssues, refactoringPlan, affectedComponents.
  • Test: manualTestResults, testPlan (E2E 2-5, Integration 0-8, Unit 0-15, Priority ≤15), infra/​doc/​cleanup items.

Template Loading

Templates: task_template_implementation.md, refactoring_task_template.md, test_task_template.md

Template Selection by taskType:

  • implementation → task_template_implementation.md
  • refactoring → refactoring_task_template.md
  • test → test_task_template.md

Loading Logic (for each template):

  1. Check if docs/​templates/​{template}.md exists in target project
  2. IF NOT EXISTS: a. Create docs/​templates/ directory if missing b. Copy shared/​templates/​{template}.md → docs/​templates/​{template}.md c. Replace placeholders in the LOCAL copy:
    • {{TEAM_ID}} → from docs/​tasks/​kanban_board.md
    • {{DOCS_PATH}} → "docs" (standard)
  3. Use LOCAL copy (docs/​templates/​{template}.md) for all operations

Rationale: Templates are copied to target project on first use, ensuring:

  • Project independence (no dependency on skills repository)
  • Customization possible (project can modify local templates)
  • Placeholder replacement happens once at copy time

Workflow (concise)

  1. Load templates per taskType (see Template Loading) and fetch full existing task descriptions.
  2. Normalize both sides (IDEAL vs existing sections) and run replan algorithm to classify KEEP/​UPDATE/​OBSOLETE/​CREATE.
  3. Present summary (counts, titles, key diffs). Confirmation required if running interactively.
  4. Execute operations in Linear: update descriptions, cancel obsolete, create missing with state="Backlog", preserve parentId for updates.
  5. Update kanban_board.md: remove canceled, add new tasks under Story in Backlog.
  6. Return operations summary with URLs and warnings.

Type Rules (must hold after update)

taskTypeHard ruleWhat to enforce
implementationNo new test creationUpdated/​created tasks must not introduce test creation text
refactoringRegression strategy requiredIssues + severity, 3-phase plan, regression strategy, preserve functionality
testRisk-based limitsPriority ≤15 scenarios; E2E 2-5, Integration 0-8, Unit 0-15, Total 10-28; no framework/​library/​DB tests

Critical Notes

  • MANDATORY: Always pass state: "Backlog" when creating new tasks (CREATE operation). Linear defaults to team's default status (often "Postponed") if not specified.
  • Foundation-First ordering from IDEAL plan is preserved; do not reorder.
  • Language preservation: keep existing task language (EN/​RU).
  • No code snippets; keep to approach/​steps/​AC/​components.
  • If Story reality differs (component exists, column exists), propose Story correction to orchestrator.

Definition of Done

  • Existing tasks loaded and parsed with correct template.
  • IDEAL plan vs existing compared; operations classified.
  • Type validation passed for all updated/​created tasks.
  • Operations executed in Linear (updates, cancels, creations) with parentId intact.
  • kanban_board.md updated (Backlog) with correct Epic/​Story/​indentation.
  • Summary returned (KEEP/​UPDATE/​OBSOLETE/​CREATE counts, URLs, warnings).

Reference Files

  • Templates (centralized): shared/​templates/​task_template_implementation.md, shared/​templates/​refactoring_task_template.md, shared/​templates/​test_task_template.md
  • Local copies: docs/​templates/​*.md (in target project)
  • Replan algorithm: references/​replan_algorithm.md
  • Kanban format: docs/​tasks/​kanban_board.md

Version: 3.0.0 Last Updated: 2025-12-23

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View