Design & UI v1.0.0

shopping-list-ui

Web UI for the shopping-list skill. Adds a /shopping page to Second Brain with full CRUD — view, add, edit, check off,...

ajeenkya 更新于 2026-02-25 1 浏览
下载 SKILL

技能说明

Web UI for the shopping-list skill. Adds a /shopping page to Second Brain with full CRUD — view, add, edit, check off, and delete items. Requires the shopping-list skill to be installed (shares the same data files).

使用场景

Web interface for managing the shopping list. Adds a /shopping page to the Second Brain portal with categorized list view and inline editing.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/shopping-list-ui
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 16 kB
SKILL.md text/markdown
---
name: shopping-list-ui
version: 1.0.0
description: >
  Web UI for the shopping-list skill. Adds a /shopping page to Second Brain
  with full CRUD — view, add, edit, check off, and delete items. Requires
  the shopping-list skill to be installed (shares the same data files).
---

# Shopping List UI

Web interface for managing the shopping list. Adds a `/shopping` page to the
Second Brain portal with categorized list view and inline editing.

## Prerequisites

- Second Brain portal running (Next.js)
- `shopping-list` skill installed (`clawhub install shopping-list`)

## Files

This skill adds the following files to the Second Brain app:

| File | Purpose |
|------|---------|
| `second-brain/src/lib/shopping.ts` | Data layer — reads/writes shopping-list skill JSON files |
| `second-brain/src/app/api/shopping/route.ts` | GET list + POST add item |
| `second-brain/src/app/api/shopping/[id]/route.ts` | PUT edit, DELETE remove, PATCH check-off |
| `second-brain/src/app/shopping/page.tsx` | Shopping list page with CRUD UI |

Also modifies:
- `second-brain/src/components/Sidebar.tsx` — adds Shopping nav entry
- `second-brain/src/components/SFIcon.tsx` — adds cart.fill icon

## Data

Reads and writes `skills/shopping-list/data/active.json` — the same file used
by the conversational shopping-list CLI skill. Changes made in the web UI are
immediately visible in chat, and vice versa.

User identity for `addedBy` is read from `skills/shopping-list/data/config.json`.
If not set, defaults to "web".

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。