blackstorm

4todo

AI 智慧體v0.1.3
作者:blackstorm更新於 2026-05-11共 3 個版本 · 最新版本釋出於 2026-02-07@clawhub_blackstorm/4todo
任務自動化

據 AlphaMoat 統計,截至 2026-09,4todo 累計下載 3,561 次、獲 3 個星標,在全部 5,078 個 AI 技能中排名第 3,075 位,在「AI 智慧體」分類(969 個)中排名第 623 位。

累計安裝
189
累計下載
3561
星標
3
全站排名
#3,075
全站前 61% · 「AI 智慧體」前 65%
平台累計安裝累計下載星標評論
ClawHub ↗11235613-
SkillHub ↗18935193—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

需要 curl 和從受保護環境注入的 FOURTODO_API_TOKEN,不將憑證貼入聊天或日誌。先列工作區和任務,再執行獲准建立、完成、移動或循環任務變更,並重新查詢核對。帳戶變更尤其循環刪除或排程修改須確認。循環任務重排只改象限,不改相對順序。憑證無效或工作區唯讀時停止重試,並遵守流量限制。盡可能使用可撤銷最小權限權杖;共享主機上命令參數可能洩露憑證。

資料釋出於 2026-10-27

可以用來做什麼

  • 查看選定 4todo 工作區待辦

什麼時候用

  • 需要查看選定 4todo 工作區待辦時。

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

列出我的工作區,必要時讓我選擇,然後展示該區待辦,不做變更。

月度資料趨勢

累計下載3561
2290297336552026-03 · 累計下載 23842026-05 · 累計下載 28282026-06 · 累計下載 29742026-07 · 累計下載 32752026-08 · 累計下載 34202026-09 · 累計下載 356126-0326-09
星標3
2342026-03 · 星標 32026-05 · 星標 32026-06 · 星標 32026-07 · 星標 32026-08 · 星標 32026-09 · 星標 326-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-093561—3
2026-083420+4.4%3
2026-073275+10.1%3
2026-062974+5.2%3
2026-052828—3
2026-032384—3

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

5.8 KB · ClawHub v0.1.3
---
name: 4todo
description: Manage 4todo (4to.do) from chat. Capture tasks, prioritize with the Eisenhower Matrix, reorder, complete, and manage recurring tasks across workspaces.
---

# 4todo
[4to.do](https://4to.do) Eisenhower Matrix To‑Do List

## Goal
展開全部(共 162 行)
- Use `curl` to call the 4todo API (`https://4to.do/api/v0`) to manage:
  - workspaces
  - todos
  - recurring todos
- Store the token in a way that is injectable but not leak-prone (prefer OpenClaw per-run env injection; do not paste secrets into prompts, logs, or repo files).

## Required Environment Variable

- `FOURTODO_API_TOKEN`: your 4todo API token (Bearer token)
- If missing, ask the user to set it via OpenClaw config (do not ask them to paste the token into chat).

## Runtime Requirement

- `curl` must be available on `PATH` (and inside the sandbox container, if the agent is sandboxed).

## User-facing output rules (important)

- Be non-technical by default. Focus on outcomes, not implementation.
  - Avoid mentioning: curl, endpoints, headers, API mechanics, JSON payloads, config patches.
  - Mention technical details only when debugging or if the user explicitly asks “how does it work?”.
- Do not print internal IDs by default:
  - Do **not** show `ws_...`, `todo_...`, `rec_todo_...` unless the user asks.
  - Refer to workspaces and tasks by **name**.
  - If disambiguation is needed (duplicate names), ask a clarifying question and present a short numbered list of names; only offer IDs if the user requests them.
- Quadrants:
  - In chat, prefer plain language: “urgent & important”, “important (not urgent)”, “urgent (not important)”, “neither”.
  - Use `IU | IN | NU | NN` internally for API calls. Only show codes if the user uses codes first or explicitly asks.

### Examples (preferred)

Workspaces:

```
Your workspaces:
1) Haoya (default)
2) 4todo
3) Echopark
```

Todos (summary):

```
Urgent & important:
1) UK company dissolution
2) Hetzner monthly payment (recurring, monthly)

Important (not urgent):
1) Weekly review (recurring, Fridays)
```

## Store / Inject the Token in OpenClaw (recommended)

OpenClaw can inject environment variables only for the duration of an agent run (then restores the original env), which helps keep secrets out of prompts.

Recommended (production): set `FOURTODO_API_TOKEN` in your Gateway process environment using your hosting provider’s secret store, and do not store tokens in chat logs.

### Host runs (not sandboxed): use `skills.entries`

Edit `~/.openclaw/openclaw.json`:

```json5
{
  skills: {
    entries: {
      "4todo": {
        enabled: true,
        env: {
          FOURTODO_API_TOKEN: "YOUR_4TODO_API_TOKEN"
        }
      }
    }
  }
}
```

Notes:
- `skills.entries.<skill>.env` is injected only if the variable is not already set.

### Sandboxed sessions: use `agents.defaults.sandbox.docker.env`

When a session is sandboxed, skill env injection does **not** propagate into the Docker container. Provide the token via Docker env:

```json5
{
  agents: {
    defaults: {
      sandbox: {
        docker: {
          env: {
            FOURTODO_API_TOKEN: "YOUR_4TODO_API_TOKEN"
          }
        }
      }
    }
  }
}
```

## Request Conventions

- Every request must include `Authorization: Bearer <token>`.
- Requests with a JSON body must include `Content-Type: application/json`.
- `GET /todos` requires a `workspace` query parameter.
- Quadrants: `IU | IN | NU | NN` (internal).

## Workflow (recommended order)

Copy this checklist and keep it updated while executing:

```
Task checklist:
- [ ] List workspaces (pick `ws_...`)
- [ ] List todos for that workspace
- [ ] Perform the requested mutation (create / complete / reorder / recurring)
- [ ] Re-fetch to verify the change
```

1. `GET /workspaces`: pick a target `ws_...` (usually the default workspace).
2. `GET /todos?workspace=ws_...`: fetch todos (grouped by quadrant).
3. Create: `POST /todos`.
4. Complete: `POST /todos/:id/complete` (idempotent).
5. Reorder / move quadrant: `POST /todos/reorder`.
6. Recurring todos: use the `/recurring-todos` endpoints.

## HTTP Examples (curl)

This skill intentionally uses `curl` for maximum portability across OSes and environments.

Notes:
- HTTPS only (`https://4to.do/api/v0`).
- Always pass the token via `FOURTODO_API_TOKEN` (never paste tokens into chat).

```bash
curl -sS -H "Authorization: Bearer $FOURTODO_API_TOKEN" -H "Accept: application/json" "https://4to.do/api/v0/workspaces"
curl -sS -H "Authorization: Bearer $FOURTODO_API_TOKEN" -H "Accept: application/json" "https://4to.do/api/v0/todos?workspace=ws_...&show=all"
curl -sS -X POST -H "Authorization: Bearer $FOURTODO_API_TOKEN" -H "Accept: application/json" -H "Content-Type: application/json" --data-raw '{"name":"...","quadrant":"IU","workspace_id":"ws_..."}' "https://4to.do/api/v0/todos"
curl -sS -X POST -H "Authorization: Bearer $FOURTODO_API_TOKEN" -H "Accept: application/json" "https://4to.do/api/v0/todos/todo_.../complete"
curl -sS -X POST -H "Authorization: Bearer $FOURTODO_API_TOKEN" -H "Accept: application/json" -H "Content-Type: application/json" --data-raw '{"moved_todo_id":"todo_...","previous_todo_id":"todo_...","next_todo_id":null,"quadrant":"IN"}' "https://4to.do/api/v0/todos/reorder"
```
Note: if `moved_todo_id` starts with `rec_todo_`, the API updates only the recurring todo quadrant and ignores `previous_todo_id/next_todo_id`.

## Common Error Handling (agent guidance)

- `401 token_expired / invalid_token`: stop retrying; ask the user to create a new token in 4todo settings and update OpenClaw config.
- `402 WORKSPACE_RESTRICTED`: the workspace is read-only; do not retry mutations; switch workspace or prompt user to upgrade/unlock.
- `429 rate_limited`: honor `Retry-After` / `X-RateLimit-*` and back off before retry.
- `400 Invalid quadrant type`: ensure quadrant is one of `IU|IN|NU|NN`.

## Reference

- Full API doc bundled with this skill: `{baseDir}/references/api_v0.md`

「AI 智慧體」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。