Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:37:27 +08:00
commit 37774aa937
131 changed files with 31137 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
---
name: ln-333-task-rework
description: Fixes tasks in To Rework and returns them to To Review. Applies reviewer feedback only for the selected task.
---
# Task Rework Executor
Executes rework for a single task marked To Rework and hands it back for review.
## Purpose & Scope
- Load full task, reviewer comments, and parent Story; understand requested changes.
- Apply fixes per feedback, keep KISS/YAGNI, and align with guides/Technical Approach.
- Update only this task: To Rework -> In Progress -> To Review; no other tasks touched.
## Workflow (concise)
1) **Select task:** Provided ID or choose from To Rework list. Read task, review notes, parent Story.
2) **Plan fixes:** Map each comment to an action; confirm no new scope added.
3) **Implement:** Follow task plan/checkboxes; address config/hardcoded issues; update docs/tests noted in Affected Components and Existing Code Impact.
4) **Quality:** Run typecheck/lint (or project equivalents); ensure fixes reflect guides/manuals/ADRs.
5) **Handoff:** Set task to To Review in Linear; move it in kanban; add summary comment referencing resolved feedback.
## Critical Rules
- Single-task only; never bulk update.
- Do not mark Done; only To Review (ln-332 decides Done).
- Keep language (EN/RU) consistent with task.
- No new tests/tasks created here; only update existing tests if impacted.
- Preserve Foundation-First ordering from orchestrator; do not reorder tasks.
## Definition of Done
- Task and review feedback fully read; actions mapped.
- Fixes applied; docs/tests updated as required.
- Quality checks passed (typecheck/lint or project standards).
- Status set to To Review; kanban updated; summary comment added referencing fixed items.
## Reference Files
- Task template: `../ln-311-task-creator/references/task_template_implementation.md`
- Kanban format: `docs/tasks/kanban_board.md`
---
Version: 5.0.0 (Condensed rework flow, single-task safety)
Last Updated: 2025-11-26

View File

@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ln-333-task-rework - State Diagram</title>
<script src="https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.min.js"></script>
<link rel="stylesheet" href="../shared/css/diagram.css">
</head>
<body>
<div class="container">
<header>
<h1>🔧 ln-333-task-rework</h1>
<p class="subtitle">Task Rework Handler - State Diagram</p>
</header>
<div class="info-box">
<h3>📋 Overview</h3>
<ul>
<li><strong>Purpose:</strong> Fix tasks after review (To Rework → In Progress → To Review)</li>
<li><strong>Input:</strong> Review feedback with Must-fix items</li>
<li><strong>Principles:</strong> KISS/YAGNI/DRY when applying fixes</li>
</ul>
</div>
<div class="diagram-container">
<div class="mermaid">
graph TD
Start([Start: Fix Task]) --> Phase1[Phase 1: Discovery<br/>Team ID auto-discovery]
Phase1 --> Phase2[Phase 2: Preparation<br/>Load task To Rework<br/>Load review feedback<br/>Update: To Rework → In Progress]
Phase2 --> Phase3[Phase 3: Implementation<br/>Fix Must-fix items<br/>KISS/YAGNI/DRY principles]
Phase3 --> Phase4[Phase 4: Quality Gates<br/>Type check Lint<br/>If test: re-test Priority ≥15]
Phase4 --> QualityPass{Quality gates<br/>pass?}
QualityPass -->|No| Phase3
QualityPass -->|Yes| Phase5
Phase5[Phase 4: Submit for Re-Review<br/>Comment with fixes<br/>Update: In Progress → To Review]
Phase5 --> End([End])
classDef discovery fill:#E3F2FD,stroke:#1976D2,stroke-width:2px
classDef processing fill:#FFF9C4,stroke:#F57C00,stroke-width:2px
classDef decision fill:#FFE0B2,stroke:#E64A19,stroke-width:2px
classDef action fill:#C8E6C9,stroke:#388E3C,stroke-width:2px
class Phase1,Phase2 discovery
class Phase3,Phase4 processing
class QualityPass decision
class Phase5 action
</div>
</div>
<footer>
<p>ln-333-task-rework | Mermaid.js</p>
</footer>
</div>
<script>
mermaid.initialize({ startOnLoad: true, theme: 'default', flowchart: { useMaxWidth: true, htmlLabels: true, curve: 'basis' } });
</script>
</body>
</html>