Get the FREE Ultimate OpenClaw Setup Guide →

ln-401-task-executor

npx machina-cli add skill levnikolaevich/claude-code-skills/ln-401-task-executor --openclaw
Files (1)
SKILL.md
6.9 KB

Implementation Task Executor

Executes a single implementation (or refactor) task from Todo to To Review using the task description and linked guides.

Purpose & Scope

  • Handle one selected task only; never touch other tasks.
  • Follow task Technical Approach/plan/AC; apply KISS/YAGNI and guide patterns.
  • Update Linear/kanban for this task: Todo -> In Progress -> To Review.
  • Run typecheck/lint; update docs/tests/config per task instructions.
  • Not for test tasks (label "tests" goes to ln-404-test-executor).

Task Storage Mode

AspectLinear ModeFile Mode
Load taskget_issue(task_id)Read("docs/tasks/epics/.../tasks/T{NNN}-*.md")
Update statusupdate_issue(id, state)Edit the **Status:** line in file
KanbanUpdated by Linear syncMust update kanban_board.md manually

File Mode status format:

## Status
**Status:** In Progress | **Priority:** High | **Estimate:** 4h

Mode Detection

Detect operating mode at startup:

Plan Mode Active:

  • Steps 1-2: Load task context (read-only, OK in plan mode)
  • Generate EXECUTION PLAN (files to create/modify, approach) → write to plan file
  • Call ExitPlanMode → STOP. Do NOT implement.
  • Steps 3-6: After approval → execute implementation

Normal Mode:

  • Steps 1-6: Standard workflow without stopping

Progress Tracking with TodoWrite

When operating in any mode, skill MUST create detailed todo checklist tracking ALL steps.

Rules:

  1. Create todos IMMEDIATELY before Step 1
  2. Each workflow step = separate todo item; implementation step gets sub-items
  3. Mark in_progress before starting step, completed after finishing

Todo Template (10 items):

Step 1: Load Context
  - Fetch full task description + linked guides/manuals/ADRs

Step 2: Receive Task
  - Get task ID from orchestrator, load full description

Step 2b: Goal Articulation Gate
  - Complete 4 questions from shared/references/goal_articulation_gate.md (<=25 tokens each)

Step 3: Start Work
  - Set task to In Progress, update kanban

Step 4: Implement
  - 4a Pattern Reuse: IF creating new file/utility, Grep src/ for existing similar patterns
    (error handlers, validators, HTTP wrappers, config loaders). Reuse if found.
  - 4b Follow task plan/AC, apply KISS/YAGNI
  - 4c Architecture Guard: IF creating service function: (1) 3+ side-effect categories → split;
    (2) get_*/find_*/check_* naming → verify no hidden writes; (3) 3+ service imports → flatten
  - Update docs and existing tests if impacted
  - Execute verify: methods from task AC (test/command/inspect)

Step 5: Quality
  - Run typecheck and lint (or project equivalents)

Step 6: Finish
  - Set task to To Review, update kanban
  - Add summary comment (changes, tests, docs)

Workflow (concise)

  1. Load context: Fetch full task description (Linear: get_issue; File: Read task file); read linked guides/manuals/ADRs/research; auto-discover team/config if needed.
  2. Receive task: Get task ID from orchestrator (ln-400); load full task description. 2b) Goal gate: MANDATORY READ: shared/references/goal_articulation_gate.md — Complete the 4-question gate (<=25 tokens each). State REAL GOAL (deliverable as subject), DONE LOOKS LIKE, NOT THE GOAL, INVARIANTS & HIDDEN CONSTRAINTS.
  3. Start work: Update this task to In Progress (Linear: update_issue; File: Edit status line); move it in kanban (keep Epic/Story indent).
  4. Implement (with verification loop): Before writing new utilities/handlers, Grep src/ for existing patterns (error handling, validation, config access). Reuse if found; if not reusable, document rationale in code comment. Follow checkboxes/plan; keep it simple; avoid hardcoded values; reuse existing components; add Task ID comment (// See PROJ-123) to new code blocks; update docs noted in Affected Components; update existing tests if impacted (no new tests here). Before creating service functions, apply Architecture Guard (cascade depth, interface honesty, flat orchestration). After implementation, execute verify: methods from task AC: test → run specified test; command → execute and check output; inspect → verify file/content exists. If any verify fails → fix before proceeding.
  5. Quality: Run typecheck and lint (or project equivalents); ensure instructions in Existing Code Impact are addressed.
  6. Finish: Mark task To Review (Linear: update_issue; File: Edit status line); update kanban to To Review; add summary comment (what changed, tests run, docs touched).

Pre-Submission Checklist

Context: Self-assessment before To Review reduces review round-trips and catches obvious issues early.

Before setting To Review, verify all 6 items:

#CheckVerify
0AC verifiedEach AC verify: method executed with pass evidence
1Approach alignmentImplementation matches Story Technical Approach
2Clean codeNo dead code, no backward-compat shims, unused imports removed
3Config hygieneNo hardcoded creds/URLs/magic numbers
4Docs updatedAffected Components docs reflect changes
5Tests passExisting tests still pass after changes
6Pattern reuseNew utilities checked against existing codebase; no duplicate patterns introduced
7Architecture guardCascade depth <= 2; no hidden writes in read-named functions; no service chains >= 3

If any check fails: Fix before setting To Review. Do not rely on reviewer to catch preventable issues.

Critical Rules

  • Single-task updates only; no bulk status changes.
  • Keep language of the task (EN/RU) in edits/comments.
  • No code snippets in the description; code lives in repo, not in Linear.
  • No new test creation; only update existing tests if required.
  • Preserve Foundation-First ordering from orchestrator; do not reorder tasks.
  • Add Task ID comments to new code blocks for traceability (// See PROJ-123 or # See PROJ-123).
  • Do NOT commit. Leave all changes uncommitted — ln-402 reviews and commits with task ID reference.

Definition of Done

  • Task selected and set to In Progress; kanban updated accordingly.
  • Guides/manuals/ADRs/research read; approach aligned with task Technical Approach.
  • Implementation completed per plan/AC; each AC verify: method executed with pass evidence.
  • Docs and impacted tests updated.
  • Typecheck and lint passed (or project quality commands) with evidence in comment.
  • Task set to To Review; kanban moved to To Review; summary comment added.

Reference Files

  • Guides/manuals/ADRs/research: docs/guides/, docs/manuals/, docs/adrs/, docs/research/
  • Kanban format: docs/tasks/kanban_board.md

Version: 3.0.0 Last Updated: 2025-12-23

Source

git clone https://github.com/levnikolaevich/claude-code-skills/blob/master/ln-401-task-executor/SKILL.mdView on GitHub

Overview

Executes a single implementation task from Todo to To Review by reading the task description and linked guides, applying KISS and YAGNI, and performing required quality checks. It updates status, kanban, and docs/tests/config as needed, and is not used for test tasks.

How This Skill Works

The agent supports Plan and Normal modes. It loads the full task context and linked guides, runs a goal articulation gate, then marks the task In Progress and moves it on the kanban. It implements by reusing existing patterns where possible, validates against the task acceptance criteria, runs typecheck and lint, updates docs/tests/config, and finally marks To Review with a summary of changes.

When to Use It

  • You have a single implementation task that must move from Todo to To Review.
  • You should follow KISS/YAGNI and reuse existing patterns before creating new ones.
  • You need to update docs, tests, and config as part of the task.
  • You want to generate an execution plan in Plan Mode before implementing.
  • The task is not a test task; if it is a test task, use the ln-404-test-executor instead.

Quick Start

  1. Step 1: Load Context - Fetch full task description and linked guides/manuals/ADRs.
  2. Step 2: Receive Task - Obtain task ID from orchestrator and load the full description.
  3. Step 3: Start Work - Set status to In Progress, update kanban, and begin implementation.

Best Practices

  • Create all todos immediately before Step 1.
  • Treat each workflow step as a separate todo item; include sub-items for implementation details.
  • Mark in_progress before starting a step and completed after finishing.
  • Grep src/ for existing similar patterns (error handling, validation, config access) and reuse when possible.
  • Document rationale when a new pattern is created and keep changes simple and well scoped.

Example Use Cases

  • Implement a new feature flag API wrapper by reusing existing HTTP wrapper patterns and validators.
  • Add input validation to the user signup flow using shared validators and error handlers.
  • Refactor the logging utility to align with existing patterns and update associated tests.
  • Migrate a legacy API call into the standard service function pattern with proper error handling.
  • Fix a performance issue in data fetch by applying KISS/YAGNI and reusing existing config loaders.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers