team-toon-tack 2.3.4 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +3 -3
- package/.claude-plugin/plugin.json +3 -2
- package/README.md +63 -22
- package/README.zh-TW.md +63 -22
- package/dist/scripts/done-job.d.ts +5 -0
- package/dist/scripts/done-job.js +122 -257
- package/dist/scripts/init.d.ts +4 -0
- package/dist/scripts/init.js +26 -621
- package/dist/scripts/lib/adapters/factory.d.ts +24 -0
- package/dist/scripts/lib/adapters/factory.js +60 -0
- package/dist/scripts/lib/adapters/index.d.ts +7 -0
- package/dist/scripts/lib/adapters/index.js +7 -0
- package/dist/scripts/lib/adapters/linear-adapter.d.ts +28 -0
- package/dist/scripts/lib/adapters/linear-adapter.js +273 -0
- package/dist/scripts/lib/adapters/trello-adapter.d.ts +30 -0
- package/dist/scripts/lib/adapters/trello-adapter.js +266 -0
- package/dist/scripts/lib/adapters/types.d.ts +197 -0
- package/dist/scripts/lib/adapters/types.js +44 -0
- package/dist/scripts/lib/display.js +2 -0
- package/dist/scripts/lib/done/args.d.ts +6 -0
- package/dist/scripts/lib/done/args.js +39 -0
- package/dist/scripts/lib/done/index.d.ts +8 -0
- package/dist/scripts/lib/done/index.js +8 -0
- package/dist/scripts/lib/done/linear-handler.d.ts +8 -0
- package/dist/scripts/lib/done/linear-handler.js +132 -0
- package/dist/scripts/lib/done/parent-issue.d.ts +13 -0
- package/dist/scripts/lib/done/parent-issue.js +89 -0
- package/dist/scripts/lib/done/trello-handler.d.ts +9 -0
- package/dist/scripts/lib/done/trello-handler.js +48 -0
- package/dist/scripts/lib/done/types.d.ts +27 -0
- package/dist/scripts/lib/done/types.js +4 -0
- package/dist/scripts/lib/files.d.ts +9 -0
- package/dist/scripts/lib/files.js +136 -0
- package/dist/scripts/lib/images.js +44 -16
- package/dist/scripts/lib/init/args.d.ts +6 -0
- package/dist/scripts/lib/init/args.js +117 -0
- package/dist/scripts/lib/init/file-ops.d.ts +5 -0
- package/dist/scripts/lib/init/file-ops.js +72 -0
- package/dist/scripts/lib/init/index.d.ts +11 -0
- package/dist/scripts/lib/init/index.js +11 -0
- package/dist/scripts/lib/init/linear-init.d.ts +5 -0
- package/dist/scripts/lib/init/linear-init.js +219 -0
- package/dist/scripts/lib/init/linear-prompts.d.ts +15 -0
- package/dist/scripts/lib/init/linear-prompts.js +226 -0
- package/dist/scripts/lib/init/prompts.d.ts +10 -0
- package/dist/scripts/lib/init/prompts.js +98 -0
- package/dist/scripts/lib/init/trello-init.d.ts +5 -0
- package/dist/scripts/lib/init/trello-init.js +215 -0
- package/dist/scripts/lib/init/trello-prompts.d.ts +9 -0
- package/dist/scripts/lib/init/trello-prompts.js +47 -0
- package/dist/scripts/lib/init/types.d.ts +23 -0
- package/dist/scripts/lib/init/types.js +4 -0
- package/dist/scripts/lib/linear.d.ts +1 -1
- package/dist/scripts/lib/linear.js +2 -0
- package/dist/scripts/lib/trello.d.ts +190 -0
- package/dist/scripts/lib/trello.js +166 -0
- package/dist/scripts/show.js +98 -52
- package/dist/scripts/status.js +31 -11
- package/dist/scripts/sync.js +217 -3
- package/dist/scripts/utils.d.ts +17 -1
- package/dist/scripts/utils.js +8 -0
- package/dist/scripts/work-on.js +28 -11
- package/package.json +1 -1
- package/skills/linear-task-manager/SKILL.md +144 -30
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
"email": "wayne930242@gmail.com"
|
|
6
6
|
},
|
|
7
7
|
"metadata": {
|
|
8
|
-
"description": "
|
|
8
|
+
"description": "Task management tools for Claude Code - supports Linear and Trello, efficient workflow without MCP overhead",
|
|
9
9
|
"version": "1.0.0"
|
|
10
10
|
},
|
|
11
11
|
"plugins": [
|
|
12
12
|
{
|
|
13
13
|
"name": "team-toon-tack",
|
|
14
14
|
"source": "./",
|
|
15
|
-
"description": "Linear task sync & management CLI with commands and skills",
|
|
16
|
-
"version": "2.
|
|
15
|
+
"description": "Linear/Trello task sync & management CLI with commands and skills",
|
|
16
|
+
"version": "2.4.0"
|
|
17
17
|
}
|
|
18
18
|
]
|
|
19
19
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "team-toon-tack",
|
|
3
|
-
"description": "Linear task sync & management CLI for Claude Code - saves tokens vs MCP",
|
|
4
|
-
"version": "2.
|
|
3
|
+
"description": "Linear/Trello task sync & management CLI for Claude Code - saves tokens vs MCP",
|
|
4
|
+
"version": "2.4.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "wayne930242",
|
|
7
7
|
"email": "wayne930242@gmail.com"
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"keywords": [
|
|
12
12
|
"claude-code",
|
|
13
13
|
"linear",
|
|
14
|
+
"trello",
|
|
14
15
|
"task-management",
|
|
15
16
|
"workflow",
|
|
16
17
|
"productivity"
|
package/README.md
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
[繁體中文](./README.zh-TW.md) | English
|
|
4
4
|
|
|
5
|
-
Optimized
|
|
5
|
+
Optimized task workflow for Claude Code — supports Linear and Trello, saves significant tokens compared to MCP.
|
|
6
6
|
|
|
7
7
|
## Features
|
|
8
8
|
|
|
9
|
-
- **Token Efficient** — Local cycle cache eliminates repeated API calls, saving significant tokens vs
|
|
9
|
+
- **Token Efficient** — Local cycle cache eliminates repeated API calls, saving significant tokens vs MCP
|
|
10
|
+
- **Multi-source Support** — Works with both Linear and Trello
|
|
10
11
|
- **Smart Task Selection** — Auto-pick highest priority unassigned work with `/work-on next`
|
|
11
|
-
- **Multi-team Support** — Sync and filter issues across multiple teams
|
|
12
|
-
- **Flexible Sync Modes** — Choose between remote (immediate
|
|
13
|
-
- **Completion Modes** — Four modes for task completion: simple, strict review, upstream strict, upstream not strict
|
|
14
|
-
- **QA Team Support** — Auto-update parent issues in QA team to "Testing" when completing dev tasks
|
|
15
|
-
- **Attachment Download** — Auto-download
|
|
12
|
+
- **Multi-team Support** — Sync and filter issues across multiple teams/boards
|
|
13
|
+
- **Flexible Sync Modes** — Choose between remote (immediate sync) or local (offline-first, sync later with `--update`)
|
|
14
|
+
- **Completion Modes** — Four modes for task completion (Linear): simple, strict review, upstream strict, upstream not strict
|
|
15
|
+
- **QA Team Support** — Auto-update parent issues in QA team to "Testing" when completing dev tasks (Linear)
|
|
16
|
+
- **Attachment Download** — Auto-download images and files to local `.ttt/output/` for AI vision analysis
|
|
16
17
|
- **Blocked Status** — Set tasks as blocked when waiting on external dependencies
|
|
17
18
|
- **Claude Code Plugin** — Install plugin for `/ttt:*` commands and auto-activated skills
|
|
18
19
|
- **Cycle History** — Local `.toon` files preserve cycle data for AI context
|
|
19
|
-
- **User Filtering** — Only see issues assigned to you or unassigned
|
|
20
20
|
|
|
21
21
|
## Quick Start
|
|
22
22
|
|
|
@@ -24,20 +24,34 @@ Optimized Linear workflow for Claude Code — saves significant tokens compared
|
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
26
|
npm install -g team-toon-tack
|
|
27
|
+
|
|
28
|
+
# For Linear
|
|
27
29
|
export LINEAR_API_KEY="lin_api_xxxxx"
|
|
28
30
|
|
|
31
|
+
# For Trello
|
|
32
|
+
export TRELLO_API_KEY="your-api-key"
|
|
33
|
+
export TRELLO_TOKEN="your-token"
|
|
34
|
+
|
|
29
35
|
cd your-project
|
|
30
36
|
ttt init
|
|
31
37
|
```
|
|
32
38
|
|
|
33
|
-
During init, you'll configure:
|
|
39
|
+
During init, you'll be prompted to select your task source (Linear or Trello) and configure:
|
|
40
|
+
|
|
41
|
+
**For Linear:**
|
|
34
42
|
- **Dev team**: Your development team (single selection)
|
|
35
43
|
- **Dev testing status**: Testing/review status for your dev team (optional)
|
|
36
44
|
- **QA team(s)**: For cross-team parent issue updates, each with its own testing status (optional)
|
|
37
45
|
- **Completion mode**: How task completion is handled (see below)
|
|
38
46
|
- **Status source**: `remote` (update Linear immediately) or `local` (work offline, sync with `ttt sync --update`)
|
|
39
47
|
|
|
40
|
-
|
|
48
|
+
**For Trello:**
|
|
49
|
+
- **Board**: The Trello board to sync
|
|
50
|
+
- **User**: Your Trello username
|
|
51
|
+
- **Status mappings**: Map Trello lists to Todo/In Progress/Done
|
|
52
|
+
- **Label filter**: Optional label to filter cards
|
|
53
|
+
|
|
54
|
+
### Completion Modes (Linear only)
|
|
41
55
|
|
|
42
56
|
| Mode | Behavior |
|
|
43
57
|
|------|----------|
|
|
@@ -46,6 +60,8 @@ During init, you'll configure:
|
|
|
46
60
|
| `upstream_strict` | Mark task as Done + parent to Testing. Falls back to dev testing if no parent. Default when QA team configured. |
|
|
47
61
|
| `upstream_not_strict` | Mark task as Done + parent to Testing. No fallback if no parent. |
|
|
48
62
|
|
|
63
|
+
> **Note:** Trello always uses simple completion mode as it doesn't support parent issues.
|
|
64
|
+
|
|
49
65
|
### 2. Install Claude Code Plugin (Optional)
|
|
50
66
|
|
|
51
67
|
```
|
|
@@ -58,7 +74,7 @@ During init, you'll configure:
|
|
|
58
74
|
In Claude Code (with plugin installed):
|
|
59
75
|
|
|
60
76
|
```
|
|
61
|
-
/ttt:sync # Fetch all
|
|
77
|
+
/ttt:sync # Fetch all issues/cards for current cycle
|
|
62
78
|
/ttt:work-on next # Pick highest priority task & start working
|
|
63
79
|
/ttt:done # Complete task with AI-generated summary
|
|
64
80
|
```
|
|
@@ -80,7 +96,9 @@ ttt done -m "Completed the task"
|
|
|
80
96
|
Initialize configuration in current directory.
|
|
81
97
|
|
|
82
98
|
```bash
|
|
83
|
-
ttt init # Interactive mode
|
|
99
|
+
ttt init # Interactive mode (select source)
|
|
100
|
+
ttt init --source=linear # Initialize for Linear
|
|
101
|
+
ttt init --source=trello # Initialize for Trello
|
|
84
102
|
ttt init --user alice@example.com # Pre-select user
|
|
85
103
|
ttt init --label Frontend # Set default label
|
|
86
104
|
ttt init --force # Overwrite existing config
|
|
@@ -88,12 +106,13 @@ ttt init --force # Overwrite existing config
|
|
|
88
106
|
|
|
89
107
|
### `ttt sync`
|
|
90
108
|
|
|
91
|
-
Sync current cycle issues from Linear.
|
|
109
|
+
Sync current cycle issues from Linear/Trello.
|
|
92
110
|
|
|
93
111
|
```bash
|
|
94
|
-
ttt sync # Sync
|
|
112
|
+
ttt sync # Sync Todo/In Progress issues (fast)
|
|
113
|
+
ttt sync --all # Sync all issues regardless of status
|
|
95
114
|
ttt sync MP-123 # Sync specific issue only
|
|
96
|
-
ttt sync --update # Push local status changes to
|
|
115
|
+
ttt sync --update # Push local status changes to remote (for local mode)
|
|
97
116
|
```
|
|
98
117
|
|
|
99
118
|
### `ttt work-on`
|
|
@@ -111,11 +130,14 @@ ttt work-on next # Auto-select highest priority
|
|
|
111
130
|
Mark task as completed.
|
|
112
131
|
|
|
113
132
|
```bash
|
|
114
|
-
ttt done
|
|
115
|
-
ttt done MP-123
|
|
116
|
-
ttt done -m "Fixed the bug"
|
|
133
|
+
ttt done # Auto-select if only one in-progress
|
|
134
|
+
ttt done MP-123 # Specific issue
|
|
135
|
+
ttt done -m "Fixed the bug" # With completion message
|
|
136
|
+
ttt done MP-123 --from-remote # Fetch from remote (bypasses local data check)
|
|
117
137
|
```
|
|
118
138
|
|
|
139
|
+
Use `--from-remote` (or `-r`) when the issue exists in remote but not in local sync data.
|
|
140
|
+
|
|
119
141
|
### `ttt status`
|
|
120
142
|
|
|
121
143
|
Show or modify task status.
|
|
@@ -135,7 +157,7 @@ Show issue details or search issues from local cycle data.
|
|
|
135
157
|
```bash
|
|
136
158
|
ttt show # Show all issues in local cycle data
|
|
137
159
|
ttt show MP-123 # Show specific issue from local data
|
|
138
|
-
ttt show MP-123 --remote # Fetch specific issue from
|
|
160
|
+
ttt show MP-123 --remote # Fetch specific issue from remote
|
|
139
161
|
ttt show --label frontend # Filter by label
|
|
140
162
|
ttt show --status "In Progress" --user me # My in-progress issues
|
|
141
163
|
ttt show --priority 1 # Show urgent issues
|
|
@@ -170,9 +192,28 @@ your-project/
|
|
|
170
192
|
|
|
171
193
|
| Variable | Description |
|
|
172
194
|
|----------|-------------|
|
|
173
|
-
| `LINEAR_API_KEY` | **Required.** Your Linear API key |
|
|
195
|
+
| `LINEAR_API_KEY` | **Required for Linear.** Your Linear API key |
|
|
196
|
+
| `TRELLO_API_KEY` | **Required for Trello.** Your Trello API key |
|
|
197
|
+
| `TRELLO_TOKEN` | **Required for Trello.** Your Trello authorization token |
|
|
174
198
|
| `TOON_DIR` | Config directory (default: `.ttt`) |
|
|
175
199
|
|
|
200
|
+
### Trello Setup
|
|
201
|
+
|
|
202
|
+
1. Get your API key from: https://trello.com/power-ups/admin
|
|
203
|
+
2. Generate a token by visiting the authorization URL shown during `ttt init`
|
|
204
|
+
3. Set both `TRELLO_API_KEY` and `TRELLO_TOKEN` in your environment
|
|
205
|
+
|
|
206
|
+
### Concept Mapping: Linear vs Trello
|
|
207
|
+
|
|
208
|
+
| Concept | Linear | Trello |
|
|
209
|
+
|---------|--------|--------|
|
|
210
|
+
| Container | Team | Board |
|
|
211
|
+
| Task | Issue | Card |
|
|
212
|
+
| Status | Workflow State | List |
|
|
213
|
+
| Tag | Label | Label |
|
|
214
|
+
| Sprint | Cycle | - (not supported) |
|
|
215
|
+
| Parent | Parent Issue | - (not supported) |
|
|
216
|
+
|
|
176
217
|
## Claude Code Plugin
|
|
177
218
|
|
|
178
219
|
Install the plugin for Claude Code integration:
|
|
@@ -186,7 +227,7 @@ Install the plugin for Claude Code integration:
|
|
|
186
227
|
|
|
187
228
|
| Command | Description |
|
|
188
229
|
|---------|-------------|
|
|
189
|
-
| `/ttt:sync` | Sync
|
|
230
|
+
| `/ttt:sync` | Sync issues to local cycle data |
|
|
190
231
|
| `/ttt:work-on` | Start working on a task |
|
|
191
232
|
| `/ttt:done` | Mark current task as completed |
|
|
192
233
|
| `/ttt:status` | Show or modify task status |
|
|
@@ -194,7 +235,7 @@ Install the plugin for Claude Code integration:
|
|
|
194
235
|
|
|
195
236
|
### Auto-Activated Skill
|
|
196
237
|
|
|
197
|
-
The plugin includes a `linear-task-manager` skill that automatically activates when working with
|
|
238
|
+
The plugin includes a `linear-task-manager` skill that automatically activates when working with tasks, providing workflow guidance and best practices.
|
|
198
239
|
|
|
199
240
|
## License
|
|
200
241
|
|
package/README.zh-TW.md
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
繁體中文 | [English](./README.md)
|
|
4
4
|
|
|
5
|
-
為 Claude Code
|
|
5
|
+
為 Claude Code 最佳化的任務工作流 — 支援 Linear 和 Trello,比 MCP 節省大量 token。
|
|
6
6
|
|
|
7
7
|
## 特色功能
|
|
8
8
|
|
|
9
|
-
- **節省 Token** — 本地 cycle 快取避免重複 API 呼叫,比
|
|
9
|
+
- **節省 Token** — 本地 cycle 快取避免重複 API 呼叫,比 MCP 省下大量 token
|
|
10
|
+
- **多來源支援** — 支援 Linear 和 Trello
|
|
10
11
|
- **智慧任務挑選** — `/work-on next` 自動選擇最高優先級的未指派工作
|
|
11
|
-
- **多團隊支援** —
|
|
12
|
-
- **彈性同步模式** — 選擇 remote
|
|
13
|
-
- **完成模式** —
|
|
14
|
-
- **QA 團隊支援** — 完成開發任務時自動將 QA 團隊的 parent issue 更新為「Testing
|
|
15
|
-
- **附件下載** —
|
|
12
|
+
- **多團隊支援** — 跨多個團隊/看板同步與過濾 issue
|
|
13
|
+
- **彈性同步模式** — 選擇 remote(即時同步)或 local(離線優先,稍後用 `--update` 同步)
|
|
14
|
+
- **完成模式** — 四種任務完成模式(Linear):簡單、嚴格審查、上下游嚴格、上下游非嚴格
|
|
15
|
+
- **QA 團隊支援** — 完成開發任務時自動將 QA 團隊的 parent issue 更新為「Testing」(Linear)
|
|
16
|
+
- **附件下載** — 自動下載圖片和檔案到本地 `.ttt/output/`,供 AI 視覺分析
|
|
16
17
|
- **阻塞狀態** — 等待外部依賴時可設定任務為 blocked
|
|
17
18
|
- **Claude Code Plugin** — 安裝 plugin 即可使用 `/ttt:*` 指令和自動啟用的技能
|
|
18
19
|
- **Cycle 歷史保存** — 本地 `.toon` 檔案保留 cycle 資料,方便 AI 檢閱
|
|
19
|
-
- **使用者過濾** — 只顯示指派給你或未指派的工作
|
|
20
20
|
|
|
21
21
|
## 快速開始
|
|
22
22
|
|
|
@@ -24,20 +24,34 @@
|
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
26
|
npm install -g team-toon-tack
|
|
27
|
+
|
|
28
|
+
# Linear 用
|
|
27
29
|
export LINEAR_API_KEY="lin_api_xxxxx"
|
|
28
30
|
|
|
31
|
+
# Trello 用
|
|
32
|
+
export TRELLO_API_KEY="your-api-key"
|
|
33
|
+
export TRELLO_TOKEN="your-token"
|
|
34
|
+
|
|
29
35
|
cd your-project
|
|
30
36
|
ttt init
|
|
31
37
|
```
|
|
32
38
|
|
|
33
|
-
|
|
39
|
+
初始化時會提示選擇任務來源(Linear 或 Trello),然後設定:
|
|
40
|
+
|
|
41
|
+
**Linear:**
|
|
34
42
|
- **開發團隊**:你的開發團隊(單選)
|
|
35
43
|
- **開發團隊測試狀態**:開發團隊的 testing/review 狀態(可選)
|
|
36
44
|
- **QA 團隊**:跨團隊 parent issue 更新,各自設定 testing 狀態(可選)
|
|
37
45
|
- **完成模式**:任務完成時的處理方式(見下方說明)
|
|
38
46
|
- **狀態來源**:`remote`(即時更新 Linear)或 `local`(離線工作,用 `ttt sync --update` 同步)
|
|
39
47
|
|
|
40
|
-
|
|
48
|
+
**Trello:**
|
|
49
|
+
- **看板**:要同步的 Trello 看板
|
|
50
|
+
- **使用者**:你的 Trello 使用者名稱
|
|
51
|
+
- **狀態映射**:將 Trello 列表映射到 Todo/In Progress/Done
|
|
52
|
+
- **標籤過濾**:可選的卡片過濾標籤
|
|
53
|
+
|
|
54
|
+
### 完成模式(僅 Linear)
|
|
41
55
|
|
|
42
56
|
| 模式 | 行為 |
|
|
43
57
|
|------|------|
|
|
@@ -46,6 +60,8 @@ ttt init
|
|
|
46
60
|
| `upstream_strict` | 任務標記為 Done,parent 移動到 Testing。若無 parent,fallback 到開發團隊的 testing 狀態。設定 QA 團隊時的預設值。 |
|
|
47
61
|
| `upstream_not_strict` | 任務標記為 Done,parent 移動到 Testing。若無 parent 不做 fallback。 |
|
|
48
62
|
|
|
63
|
+
> **注意**:Trello 因不支援 parent issue,一律使用簡單完成模式。
|
|
64
|
+
|
|
49
65
|
### 2. 安裝 Claude Code Plugin(選擇性)
|
|
50
66
|
|
|
51
67
|
```
|
|
@@ -58,7 +74,7 @@ ttt init
|
|
|
58
74
|
在 Claude Code 中(安裝 plugin 後):
|
|
59
75
|
|
|
60
76
|
```
|
|
61
|
-
/ttt:sync #
|
|
77
|
+
/ttt:sync # 取得當前 cycle 所有 issue/card
|
|
62
78
|
/ttt:work-on next # 挑選最高優先級任務並開始工作
|
|
63
79
|
/ttt:done # 完成任務,附上 AI 生成的摘要
|
|
64
80
|
```
|
|
@@ -80,7 +96,9 @@ ttt done -m "完成任務"
|
|
|
80
96
|
在當前目錄初始化配置。
|
|
81
97
|
|
|
82
98
|
```bash
|
|
83
|
-
ttt init #
|
|
99
|
+
ttt init # 互動模式(選擇來源)
|
|
100
|
+
ttt init --source=linear # 初始化 Linear
|
|
101
|
+
ttt init --source=trello # 初始化 Trello
|
|
84
102
|
ttt init --user alice@example.com # 預選使用者
|
|
85
103
|
ttt init --label Frontend # 設定預設標籤
|
|
86
104
|
ttt init --force # 覆蓋現有配置
|
|
@@ -88,12 +106,13 @@ ttt init --force # 覆蓋現有配置
|
|
|
88
106
|
|
|
89
107
|
### `ttt sync`
|
|
90
108
|
|
|
91
|
-
從 Linear 同步當前 cycle 的 issue。
|
|
109
|
+
從 Linear/Trello 同步當前 cycle 的 issue。
|
|
92
110
|
|
|
93
111
|
```bash
|
|
94
|
-
ttt sync #
|
|
112
|
+
ttt sync # 同步 Todo/In Progress 狀態的 issue(較快)
|
|
113
|
+
ttt sync --all # 同步所有狀態的 issue
|
|
95
114
|
ttt sync MP-123 # 只同步特定 issue
|
|
96
|
-
ttt sync --update #
|
|
115
|
+
ttt sync --update # 將本地狀態推送到遠端(local 模式用)
|
|
97
116
|
```
|
|
98
117
|
|
|
99
118
|
### `ttt work-on`
|
|
@@ -111,11 +130,14 @@ ttt work-on next # 自動選擇最高優先級
|
|
|
111
130
|
標記任務完成。
|
|
112
131
|
|
|
113
132
|
```bash
|
|
114
|
-
ttt done
|
|
115
|
-
ttt done MP-123
|
|
116
|
-
ttt done -m "修復了錯誤"
|
|
133
|
+
ttt done # 若只有一個進行中,自動選擇
|
|
134
|
+
ttt done MP-123 # 指定 issue
|
|
135
|
+
ttt done -m "修復了錯誤" # 附上完成說明
|
|
136
|
+
ttt done MP-123 --from-remote # 從遠端取得(略過本地資料檢查)
|
|
117
137
|
```
|
|
118
138
|
|
|
139
|
+
當 issue 存在於遠端但未同步到本地資料時,使用 `--from-remote`(或 `-r`)。
|
|
140
|
+
|
|
119
141
|
### `ttt status`
|
|
120
142
|
|
|
121
143
|
顯示或修改任務狀態。
|
|
@@ -135,7 +157,7 @@ ttt status MP-123 --set blocked # 設為阻塞(等待外部依賴)
|
|
|
135
157
|
```bash
|
|
136
158
|
ttt show # 顯示本地 cycle 資料中的所有 issue
|
|
137
159
|
ttt show MP-123 # 顯示特定 issue(從本地資料)
|
|
138
|
-
ttt show MP-123 --remote #
|
|
160
|
+
ttt show MP-123 --remote # 從遠端取得特定 issue
|
|
139
161
|
ttt show --label frontend # 依標籤過濾
|
|
140
162
|
ttt show --status "In Progress" --user me # 我進行中的 issue
|
|
141
163
|
ttt show --priority 1 # 顯示緊急 issue
|
|
@@ -170,9 +192,28 @@ your-project/
|
|
|
170
192
|
|
|
171
193
|
| 變數 | 說明 |
|
|
172
194
|
|------|------|
|
|
173
|
-
| `LINEAR_API_KEY` |
|
|
195
|
+
| `LINEAR_API_KEY` | **Linear 必填**。你的 Linear API 金鑰 |
|
|
196
|
+
| `TRELLO_API_KEY` | **Trello 必填**。你的 Trello API 金鑰 |
|
|
197
|
+
| `TRELLO_TOKEN` | **Trello 必填**。你的 Trello 授權 token |
|
|
174
198
|
| `TOON_DIR` | 配置目錄(預設:`.ttt`) |
|
|
175
199
|
|
|
200
|
+
### Trello 設定
|
|
201
|
+
|
|
202
|
+
1. 從 https://trello.com/power-ups/admin 取得 API 金鑰
|
|
203
|
+
2. 在 `ttt init` 時會顯示授權網址,前往取得 token
|
|
204
|
+
3. 在環境變數中設定 `TRELLO_API_KEY` 和 `TRELLO_TOKEN`
|
|
205
|
+
|
|
206
|
+
### 概念對照:Linear vs Trello
|
|
207
|
+
|
|
208
|
+
| 概念 | Linear | Trello |
|
|
209
|
+
|------|--------|--------|
|
|
210
|
+
| 容器 | Team | Board(看板)|
|
|
211
|
+
| 任務 | Issue | Card(卡片)|
|
|
212
|
+
| 狀態 | Workflow State | List(列表)|
|
|
213
|
+
| 標籤 | Label | Label |
|
|
214
|
+
| 週期 | Cycle | -(不支援)|
|
|
215
|
+
| 上層 | Parent Issue | -(不支援)|
|
|
216
|
+
|
|
176
217
|
## Claude Code Plugin
|
|
177
218
|
|
|
178
219
|
安裝 plugin 以整合 Claude Code:
|
|
@@ -186,7 +227,7 @@ your-project/
|
|
|
186
227
|
|
|
187
228
|
| 指令 | 說明 |
|
|
188
229
|
|------|------|
|
|
189
|
-
| `/ttt:sync` | 同步
|
|
230
|
+
| `/ttt:sync` | 同步 issue 到本地 |
|
|
190
231
|
| `/ttt:work-on` | 開始處理任務 |
|
|
191
232
|
| `/ttt:done` | 標記當前任務完成 |
|
|
192
233
|
| `/ttt:status` | 顯示或修改任務狀態 |
|
|
@@ -194,7 +235,7 @@ your-project/
|
|
|
194
235
|
|
|
195
236
|
### 自動啟用技能
|
|
196
237
|
|
|
197
|
-
Plugin 包含 `linear-task-manager`
|
|
238
|
+
Plugin 包含 `linear-task-manager` 技能,在處理任務時會自動啟用,提供工作流程指導和最佳實踐。
|
|
198
239
|
|
|
199
240
|
## 授權
|
|
200
241
|
|