Skills 4todo
Manage 4todo (4to.do) from chat. Capture tasks, prioritize with the Eisenhower Matrix, reorder, complete, and manage recurring tasks across workspaces.
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/blackstorm/4todo" ~/.claude/skills/openclaw-skills-4todo && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/blackstorm/4todo" ~/.openclaw/skills/openclaw-skills-4todo && rm -rf "$T"
manifest:
skills/blackstorm/4todo/SKILL.mdsource content
4todo
4to.do Eisenhower Matrix To‑Do List
Goal
- Use
to call the 4todo API (curl
) to manage:https://4to.do/api/v0- 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
: your 4todo API token (Bearer token)FOURTODO_API_TOKEN- If missing, ask the user to set it via OpenClaw config (do not ask them to paste the token into chat).
Runtime Requirement
must be available oncurl
(and inside the sandbox container, if the agent is sandboxed).PATH
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_...
unless the user asks.rec_todo_... - 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.
- Do not show
- Quadrants:
- In chat, prefer plain language: “urgent & important”, “important (not urgent)”, “urgent (not important)”, “neither”.
- Use
internally for API calls. Only show codes if the user uses codes first or explicitly asks.IU | IN | NU | NN
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
skills.entriesEdit
~/.openclaw/openclaw.json:
{ skills: { entries: { "4todo": { enabled: true, env: { FOURTODO_API_TOKEN: "YOUR_4TODO_API_TOKEN" } } } } }
Notes:
is injected only if the variable is not already set.skills.entries.<skill>.env
Sandboxed sessions: use agents.defaults.sandbox.docker.env
agents.defaults.sandbox.docker.envWhen a session is sandboxed, skill env injection does not propagate into the Docker container. Provide the token via Docker env:
{ 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
requires aGET /todos
query parameter.workspace- Quadrants:
(internal).IU | IN | NU | NN
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
: pick a targetGET /workspaces
(usually the default workspace).ws_...
: fetch todos (grouped by quadrant).GET /todos?workspace=ws_...- Create:
.POST /todos - Complete:
(idempotent).POST /todos/:id/complete - Reorder / move quadrant:
.POST /todos/reorder - Recurring todos: use the
endpoints./recurring-todos
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
(never paste tokens into chat).FOURTODO_API_TOKEN
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)
: stop retrying; ask the user to create a new token in 4todo settings and update OpenClaw config.401 token_expired / invalid_token
: the workspace is read-only; do not retry mutations; switch workspace or prompt user to upgrade/unlock.402 WORKSPACE_RESTRICTED
: honor429 rate_limited
/Retry-After
and back off before retry.X-RateLimit-*
: ensure quadrant is one of400 Invalid quadrant type
.IU|IN|NU|NN
Reference
- Full API doc bundled with this skill:
{baseDir}/references/api_v0.md