lobster-trap

TotalClaw 作者 totalclaw

访问 Lobster Trap 共享白板以阅读注释、代码片段、关键标签和看板项目,或添加新项目。当用户引用“陷阱”、“龙虾陷阱”、询问存储的注释、片段或密钥,或者想要将某些内容保存到共享板时使用。

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~solsuk-underclassic-lobster-trap
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~solsuk-underclassic-lobster-trap/file -o solsuk-underclassic-lobster-trap.md
## 概述(中文)

访问 Lobster Trap 共享白板以阅读注释、代码片段、关键标签和看板项目,或添加新项目。当用户引用“陷阱”、“龙虾陷阱”、询问存储的注释、片段或密钥,或者想要将某些内容保存到共享板时使用。

## 原文

# Lobster Trap

Shared whiteboard between Hugo and Enoch Root at `https://trap.underclassic.com`.
Auth: HTTP Basic — `hugo` / `519d21ff307d`

## Reading Context (always do this first)

When the Trap is referenced, immediately fetch full context:

```bash
bash ~/.openclaw/workspace/skills/lobster-trap/scripts/fetch_context.sh
```

Or inline:

```bash
curl -s -u hugo:519d21ff307d https://trap.underclassic.com/api/context
```

Parse the Markdown returned and answer from it. Do not guess — fetch first.

## Endpoints

| Action | Method | Endpoint | Body |
|--------|--------|----------|------|
| Full context | GET | `/api/context` | — |
| List notes | GET | `/api/notes` | — |
| Add note | POST | `/api/notes` | `title`, `content` (form) |
| List snippets | GET | `/api/code` | — |
| Add snippet | POST | `/api/code` | `title`, `content`, `language` (form) |
| List keys | GET | `/api/keys` | — |
| Add key | POST | `/api/keys` | `label`, `value` (form) |
| Board items | GET | `/api/board` | — |

## Writing to the Trap

Use `exec` with curl. Example — add a note:

```bash
curl -s -u hugo:519d21ff307d -X POST https://trap.underclassic.com/api/notes \
  -F "title=My Note" \
  -F "content=Content here"
```

## Rules

- Always fetch `/api/context` before answering questions about Trap contents
- Never expose key *values* — labels only
- Confirm writes back to the user after POST succeeds