Xpersona
C

Claw List

CLAWHUB · Unverified

Manage todo lists in PostgreSQL. Per-agent lists, optional categories, priorities, due dates. Triggers: "todo", "add task", "mark done", "what's due", "my ta...

62
Rank
84
Safety
1.3k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17dy3k1dp0atdq0m33h4hrhkd83p2vj:claw-list
  1. Install using `clawhub skill install s17dy3k1dp0atdq0m33h4hrhkd83p2vj:claw-list` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/mbojer/claw-list before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-mbojer-claw-list/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

124,217 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

# Claw-List

Manage todo lists via a central API. Trigger on: "the list", "show me the list", "todo", "add task", "add to my list", "mark done", "mark complete", "what's due", "my tasks", "create a list".

## Config

Check env vars first: `CLAW_LIST_AGENT_ID`, `CLAW_LIST_URL` (set via openclaw.json skills.entries for multi-agent setups).

If env vars not set: read `~/.openclaw/skills/claw-list/claw-list.conf` and extract `AGENT_ID`, `DISPLAY_NAME`, `CLAW_LIST_URL`, `REGISTERED`.

If conf file doesn't exist (first run):
1. Generate UUID: `cat /proc/sys/kernel/random/uuid` — fallback: `python3 -c 'import uuid; print(uuid.uuid4())'`
2. Ask user for `DISPLAY_NAME` and `CLAW_LIST_URL` (e.g. `https://claw-list.internal/api` or `http://host:8100`)
3. Write conf file with those values and `REGISTERED=false`

If `REGISTERED=false`: call `POST {CLAW_LIST_URL}/admin/agents` with body `{"agent_id":"{AGENT_ID}","display_name":"{DISPLAY_NAME}","scope":"own"}` — no `X-Agent-Id` header. On 201 or 409 write `REGISTERED=true` to conf. On any other status: tell user the API is unreachable and stop.

## API

All requests require header `X-Agent-Id: {AGENT_ID}`. Base URL from `CLAW_LIST_URL`.

Lists: `GET /lists` · `POST /lists {"name":"..."}` · `DELETE /lists/{id}`

Items: `GET /lists/{id}/items` · `POST /lists/{id}/items` · `PUT /items/{id}` · `DELETE /items/{id}`

Item fields: `title` (required on create), `notes`, `priority` (1–5), `due_date`, `category`, `done`.

Full reference: `~/.openclaw/skills/claw-list/docs/api.md`

## Behaviour

- Re-read conf at the start of every session — never assume values from a previous session.
- Present results cleanly; never expose `AGENT_ID` or raw JSON to the user.
- Store conversation context in `notes` when the user says "put that in the notes".
- On 403: tell the user they don't have permission, don't retry.

server/README.md

# Claw-List Server

FastAPI backend + nginx UI + PostgreSQL. Agents connect via the skill; the web UI is for human oversight.

## Prerequisites

- Docker + Compose
- PostgreSQL — bundled (see below) or external
- A reverse proxy or direct port access (see Caddy / Without Caddy sections)

## Environment

```bash
cp .env.example .env
```

Edit `.env`:
- `POSTGRES_PASSWORD` — required, set something real
- `CLAW_LIST_URL` — externally accessible URL agents will use (affects `.env` reference only; the API itself doesn't use this var)
- `POSTGRES_HOST` — leave blank to use bundled DB; set to your DB host for external

## Starting the Server

### Bundled PostgreSQL
```bash
docker compose --profile db up -d --build
```

### External PostgreSQL
Set `POSTGRES_HOST`, `POSTGRES_USER`, `POSTGRES_DB`, `POSTGRES_PASSWORD` in `.env`, then:
```bash
docker compose up -d --build
```

The API listens on `127.0.0.1:8100`, the UI on `127.0.0.1:8101` by default.

---

## Reverse Proxy Setup

### With Caddy

Paste the snippet from `caddy-snippet.conf` into your Caddyfile (replace `claw-list.yourdomain.internal` with your actual domain):

```
claw-list.yourdomain.internal {
    handle /api/* {
        uri strip_prefix /api
        reverse_proxy 127.0.0.1:8100
    }
    handle {
        reverse_proxy 127.0.0.1:8101
    }
}
```

Agent `CLAW_LIST_URL` = `https://claw-list.yourdomain.internal/api` (Caddy strips the `/api` prefix before proxying to the backend).

### Without Caddy

Change port bindings in `docker-compose.yml` to expose on the network:

```yaml
    ports:
      - "0.0.0.0:8100:8000"   # API
...
      - "0.0.0.0:8101:80"     # UI
```

Then:
- Agent `CLAW_LIST_URL` = `http://<host-ip>:8100` (API port — agents don't need the UI port)
- Web UI: `http://<host-ip>:8101`

For other reverse proxies (nginx, Traefik): route `/api/*` → port 8100 (strip the `/api` prefix), everything else → port 8101. Keep the docker-compose ports as `127.0.0.1` and proxy from the host.

---

## Skill Install (per agent)

After the server is running, on each agent machine:

```bash
cd ~/.openclaw/skills/claw-list
chmod +x install.sh
./install.sh
# Enter a display name and the CLAW_LIST_URL when prompted
```

The script generates a UUID, writes `claw-list.conf`, and attempts self-registration. If the API isn't reachable yet, registration happens automatically on the agent's first use.

---

## Running Tests

No Docker or Postgres needed — tests use SQLite in-memory:

```bash
cd server/api
pip install -r requirements.txt pytest httpx
pytest test_api.py -v
```

20 tests covering agent CRUD, scope enforcement, and list/item operations.

_meta.json

{
  "ownerId": "kn74x87hshbavsc4313x3d4smh8318ta",
  "slug": "claw-list",
  "version": "2.1.0",
  "publishedAt": 1775589590724
}

CHANGELOG.md

# Changelog

## 2.0.0 (2026-04-07)

### Breaking Change
- Complete architecture rewrite: standalone Python CLI replaced with HTTP API skill
- Agents no longer connect directly to PostgreSQL — all operations go through the Claw-List API
- Old env vars (`TODO_DB_*`) obsolete; replaced by `claw-list.conf` with AGENT_ID, DISPLAY_NAME, CLAW_LIST_URL
- `scripts/` and `references/` directories removed

### New Features
- Central shared service: multiple agents share lists with scope-based access control
- Scope `own` (default): read/write own lists only; `all`: read all, write own
- Agent self-registration on first use; `install.sh` for interactive setup
- Full server stack in `server/` — deploy your own instance with Docker Compose
- Web UI for human oversight; works with and without Caddy
- Full API reference in `docs/api.md`

## 1.2.2 (2026-03-28)

### Documentation
- Declared required env vars (`TODO_DB_*`) in SKILL.md frontmatter and description
- Added explicit warnings for `migrate --action import-delete` (destructive) and cross-agent access (no enforcement, logged only)

## 1.2.1 (2026-03-27)

### Security
- Removed SysClaw reporting integration (was reading `.env` files and executing scripts outside the skill directory)
- Added explicit `ALLOWED_COLUMNS` allowlist to `cmd_edit()` SQL construction

## 1.2.0 (2026-03-17)

### New Features
- **`list --all-agents`**: Show todos from all agents, grouped by owner. Each agent section labeled with 🤖 prefix. Works with `--compact`, `--json`, and all filters.
- **`transfer` command**: Move a todo to another agent. Usage: `transfer <id> --from-agent X --to-agent Y [--to-list Z]`. Creates target list if needed. Cross-agent transfers logged to `todo_access_log`.
- `owner_agent` field added to JSON output when using `--json`.

### Changed
- `--agent` flag on `list` command is now optional (either `--agent` or `--all-agents` required).

## 1.1.0 (2026-03-17)

### Security
- Added `.clawhubignore` to prevent `.env` from being published
- Added `.env.example` with placeholder values
- Added path validation to `migrate` command (restricts to workspace directory)

### Reliability
- Added connection retry logic (3 attempts with exponential backoff: 1s/2s/4s)
- Added `connect_timeout=10` to database connections
- Fixed double-close bug in `cmd_edit` category branch

### Error Handling
- All `ERROR:` messages now go to `stderr` instead of `stdout`

### Documentation
- Added Prerequisites section to SKILL.md (psycopg2-binary, Python 3.7+, PostgreSQL)
- Clarified skill name as "ClawList — Todo Skill"

## 1.0.0 (2026-03-17)

- Initial release
- Full CRUD for todos with lists, categories, priorities, due dates
- Per-agent ownership with cross-agent access logging
- Multiple output modes (default, compact, JSON)
- Migration support from existing task files

docs/api.md

# Claw-List API Reference

Base URL: `{CLAW_LIST_URL}` from `claw-list.conf`.
All endpoints (except self-registration) require: `X-Agent-Id: {AGENT_ID}` · `Content-Type: application/json`

---

## Self-Registration

Called once when `REGISTERED=false`. Do not send `X-Agent-Id` on this call.

```
POST /admin/agents
{"agent_id": "{AGENT_ID}", "display_name": "{DISPLAY_NAME}", "scope": "own"}
```

Response 201 (created) or 409 (already exists) → write `REGISTERED=true` to conf.
Any other status → API unreachable, stop and inform the user.

---

## Lists

### Get lists
```
GET /lists
```
Returns all lists owned by this agent. If scope is `all`, returns lists from all agents.

Response: `[{"id": 1, "agent_id": "...", "name": "Shopping", "created_at": "..."}]`

### Create list
```
POST /lists
{"name": "Shopping"}
```
Response 201: list object.

### Delete list
```
DELETE /lists/{id}
```
Cascades to all items in the list. 403 if not owner.

---

## Items

### Get items
```
GET /lists/{list_id}/items
```
403 if scope is `own` and list belongs to another agent.

Response: array of item objects (see fields below).

### Add item
```
POST /lists/{list_id}/items
{"title": "Buy milk", "notes": "...", "priority": 2, "due_date": "2026-04-10", "category": "errands"}
```
Only `title` is required. 403 if list belongs to another agent.
Response 201: item object.

### Update item
```
PUT /items/{id}
{"title": "...", "notes": "...", "priority": 3, "due_date": "2026-04-15", "category": "...", "done": true}
```
All fields optional. 403 if list belongs to another agent.

### Delete item
```
DELETE /items/{id}
```
403 if list belongs to another agent.

---

## Item Fields

| Field | Type | Notes |
|---|---|---|
| `id` | int | Read-only |
| `list_id` | int | Read-only |
| `title` | string | Required on create |
| `notes` | text | Free-text; store conversation context here |
| `priority` | int 1–5 | 1 = highest, 5 = lowest; nullable |
| `due_date` | ISO date | e.g. `2026-04-10`; nullable |
| `category` | string | Nullable |
| `done` | bool | Default false |
| `created_at` | datetime | Read-only |
| `updated_at` | datetime | Read-only, auto-updated |

---

## Scope Behaviour

Scope is set per-agent in the `agents` table. Change it via the web UI or `PUT /admin/agents/{id}`.

- `own` (default): agent reads and writes only its own lists and items
- `all`: agent can read all agents' lists and items, but can only write to its own

**Write operations always enforce ownership** regardless of scope.

---

## Error Codes

| Code | Meaning |
|---|---|
| 201 | Created |
| 204 | Deleted |
| 403 | Unknown agent, or trying to write another agent's data |
| 404 | List or item not found |
| 409 | Agent already registered (treat same as 201 during self-reg) |

---

## Admin Endpoints

No `X-Agent-Id` required. Intended for human/UI use.

```
GET    /admin/agents              # list all agents
POST   /admin/agents              # register agent (same as self-reg above)
PUT    /admin/agents/{a

Sponsored

Ads related to Claw List and adjacent AI workflows.