← 返回 Skills 市场
gmmg55

Item Management

作者 Jiaqi · GitHub ↗ · v1.2.0 · MIT-0
cross-platform ✓ 安全检测通过
112
总下载
0
收藏
0
当前安装
16
版本数
在 OpenClaw 中安装
/install item-management
功能描述
物品电子信息管理技能。用于记录、整理、查询个人物品数据。触发关键词:物品管理、记录物品、添加物品、物品清单、物品统计、物品到期、物品过期、物品搜索、整理物品、我的物品、物品架、盘点、断舍离、我的物品架、物品架管理、归物、my-item。
使用说明 (SKILL.md)

物品管理 (Item Management)

用自然语言管理个人物品数据库,支持添加、查询、编辑、统计、导出和到期提醒。

功能一览

功能 说明
增删改查 添加/编辑/删除物品,查看清单和详情
日均成本 自动计算购入至今的日均花费
到期提醒 即将到期/已过期进度条
子物品 套装内物品独立管理
历史追踪 记录价格、数量、状态变化
导出 支持 CSV / JSON / HTML 三种格式
备份恢复 JSON 格式完整备份,支持合并/完整恢复
统计报告 生成可打印的 HTML 报告(Ctrl+P 转 PDF)

数据存储位置(跨平台)

用户数据存储在用户家目录下,独立于技能目录,技能更新不会丢失数据:

操作系统 数据路径
Windows C:\Users\用户名\item-management-data\
macOS ~/Library/Application Support/item-management/
Linux ~/.local/share/item-management/
自定义 可通过 OPENCLAW_WORKSPACEXDG_DATA_HOME 环境变量指定

数据目录结构:

item-management-data/
  items.db          ← SQLite 数据库(所有物品数据)
  backups/          ← JSON 备份文件夹
    backup_20260428_180129.json
    backup_20260428_120000.json

备份文件是纯 JSON,可以用任何文本编辑器打开,也是跨平台迁移的关键。

备份与恢复(重要!)

为什么要备份?

技能数据存在用户本地,如果重装系统/换电脑,数据会丢失。 每次重要变更后建议备份,并上传到云端。

创建备份

item backup              # 一键备份到数据目录
item backup --path /path/to/backup.json  # 指定路径

恢复数据

item restore                                    # 从最新备份恢复
item restore backup_20260428_180129.json       # 指定文件
item restore --merge backup.json               # 合并模式(只添加不重复)

查看存储信息(含云备份)

item info               # 显示数据库路径、备份列表

重要:执行 item info 后,AI 必须额外展示云备份板块。

云备份状态展示规则

AI 需要检查配置文件 ~/.qclaw/workspace/item-management-cloud-config.json(工作区目录下),按以下规则展示:

1. 配置文件不存在(未配置云备份):

☁️ **云备份:未配置**

推荐方案:
| 方案 | 特点 |
|------|------|
| 📁 OneDrive/iCloud | 放到云盘同步文件夹,全自动同步 |
| ⏰ 定时+云盘 | OpenClaw 定时备份 + 云盘自动同步 |
| 📧 邮箱 | 备份发到自己邮箱,最简单 |
| ☁️ 微云 | 腾讯生态,扫码授权即可 |
| 🐙 GitHub Gist | 有版本历史 |

想配置的话直接说「帮我配置云备份」

2. 配置文件存在(已配置): 读取 JSON 配置并展示当前状态:

☁️ **云备份:已配置**
- 方式:{provider}(如 onedrive / weiyun / email / gist)
- 路径/目标:{path_or_target}
- 上次云端备份:{last_backup_time}
- 状态:✅ 正常 / ❌ 需要重新授权

💡 立即备份?说「备份物品到云端」
💡 想换方案?说「帮我配置云备份」

配置文件格式(item-management-cloud-config.json):

{
  "provider": "onedrive",
  "path": "D:\\OneDrive\\物品架",
  "last_backup": "2026-04-28 19:30:00",
  "auto_backup": true,
  "cron_job_id": "job_xxx"
}

当用户成功配置云备份后,AI 必须创建/更新此配置文件。

换电脑/重装后怎么做?

  1. 在新设备上安装技能
  2. 把备份 JSON 文件传到新设备
  3. 运行 item restore your_backup.json 恢复所有数据

云端同步建议

备份文件(JSON)可以上传到:

  • 微云/QQ网盘 - 腾讯系生态
  • iCloud / OneDrive / Google Drive - 自动同步
  • 邮箱附件 - 简单可靠
  • GitHub Gist - 有版本控制

核心字段说明

字段 说明
name 物品名称(必填)
brand 品牌
quantity 数量(默认1)
unit 单位(默认"个")
production_date 生产日期(YYYY-MM-DD)
expiry_date 保质期到期日
warranty_date 保修期到期日
opened_date 开封日期
location 存放位置
notes 备注
price 单价(元)
tags 标签(逗号分隔)
image_path 图片路径
status 状态:active / consumed(已用完)/ discarded(已丢弃)

自然语言命令映射

添加物品

用户说:"记录一个新物品"、"添加一个..."、"买了个..."、"记录一下" → 解析参数,调用 item_cli.py add

# 示例解析
item_cli("add", "SK-II 护肤精华露", 
         brand="SK-II", qty=1, price=899.0,
         expiry="2026-10-01", location="卧室梳妆台",
         opened="2025-04-01",
         tags="护肤,化妆品,面部护理")

查看物品

  • "查看我的物品"、"列出所有物品"、"物品清单" → item list
  • "按品牌排序" → item list --sort brand
  • "按过期日排序" → item list --sort expiry_date
  • "只看护肤类的" → item list --tag 护肤

查看详情

  • "查看某物品详情" → item get \x3Cid>
  • "物品#3 详细信息" → item get 3

更新物品

  • "把某物品数量改为2" → item update \x3Cid> --qty 2
  • "标记某物品已开封" → item update \x3Cid> --opened 2025-04-01
  • "标记某物品已用完" → item update \x3Cid> --status consumed

删除物品

  • "删除某物品" → item delete \x3Cid>(先确认)

子物品(套装)

  • "给物品5添加一个子物品:替换装" → item sub-add 5 替换装 --qty 2
  • "列出物品5的所有子物品" → item sub-list 5

历史记录

  • "查看某物品的变更历史" → item history \x3Citem_id> (自动记录:价格、开封日期、数量、状态变化)

到期提醒

  • "哪些物品快过期了" → item expiring --days 7(默认7天)
  • "已经过期的物品" → item expired

数据统计

  • "物品统计数据"、"我有多少东西" → item stats (输出:总品类数、总件数、总估算价值、按月新增趋势)

导出

  • "导出 CSV" → item export --format csv
  • "导出 JSON" → item export --format json
  • "导出 HTML 表格" → item export --format html
  • item export --out path.csv 指定保存路径

统计报告

  • "生成报告" → item report 输出完整 HTML 页面 (含概览统计、即将到期、已过期、全量物品列表、月度趋势) 用浏览器打开后按 Ctrl+P → 另存为 PDF 即可打印

搜索

  • "搜一下我有几个SK-II的" → item search SK-II
  • "找找化妆品" → item search 化妆品

日均成本

每个物品会自动计算日均花费(单价 ÷ 购入天数),显示在「单价」下方。

  • 购入当天:日均 = 单价(购入不足1天)
  • 保质期至不为空时:同时显示到期倒计时进度条

调用 _date_progress(expiry_str) 生成可视化状态:

days_until > 7    → ✅ 剩余 N 天到期(正常,绿色)
0 ≤ days_until ≤ 7 → ⏳ 即将到期:还剩 N 天(黄色预警)
days_until \x3C 0    → ⚠️ 已过期 N 天(红色警告)
expiry_date 为空  → — 状态未知

执行方式

物品架是 自然语言技能,通过对话触发即可。

触发关键词

意图 触发词(任选其一)
添加物品 「添加一个XX」「记录一个新物品」「买个了XX」
查看清单 「我的物品」「物品清单」「列出所有物品」
查看统计 「物品统计」「我有多少东西」
搜索物品 「搜一下XX」「找找XX」
物品详情 「查看XX详情」「XX详细信息」
更新物品 「把XX的数量改成N」「把XX标记为已开封」
删除物品 「删除XX」「把手表删掉」
到期提醒 「哪些快过期了」「已经过期的物品」
备份恢复 「备份物品」「恢复物品数据」「帮我配置云备份」「备份物品到云端」
存储信息 「查看物品存储信息」「数据存在哪」「云备份状态」
导出报告 「导出CSV」「生成报告」
搜索历史 「查看XX的变更记录」

手动调试

在终端中进入技能目录后执行:

# 进入技能目录(自动定位)
cd ~/.qclaw/skills/item-management/scripts

# 查看物品
python item_cli.py list

# 添加物品
python item_cli.py add 手表 --price 200 --prod 2026-04-28

# 备份
python item_cli.py backup

💡 CLI 会自动将数据写入用户家目录(~/item-management-data/),无需指定路径,也不依赖技能目录。

输出格式要求

  • 输出使用中文
  • 物品列表前显示总数(如"📦 共 12 种物品")
  • 每条物品之间用空行分隔
  • 统计页面数字对齐展示
  • 列表需要包含所有核心字段

⚠️ 强制回复规则(必须遵守)

每次回复用户物品相关内容时,回复末尾必须包含以下两行:

*💡 试试对我说:查看物品统计 / 搜索XX / 备份物品*

*想备份数据防丢失?直接说「查看物品存储信息」*

规则说明:

  • 第一行是使用提示,随机换一个有用的命令提示,如:查看所有物品 / 物品统计 / 搜索XX / 备份物品 / 哪些快过期了 / 导出报告
  • 第二行是备份提示,固定文案:*想备份数据防丢失?直接说「查看物品存储信息」*
  • 两行都用 Markdown 斜体*...*),视觉上弱化,不抢主内容
  • 没有例外,无论是添加、查看、统计、搜索、更新、删除,都必须带这两行
安全使用建议
This skill is largely coherent for a local item-tracking tool, but check the following before installing or using it with sensitive data: - Data location and files: the skill will create a SQLite DB and JSON backups in your user workspace/home (e.g., ~/.local/share/item-management or ~/item-management-data, and SKILL.md also references ~/.qclaw/workspace). Confirm you are comfortable with these files being created and stored locally. Backups are plain JSON and readable by any program with access to those paths. - Cloud backup behavior: SKILL.md mentions a cloud-config file (~/.qclaw/workspace/item-management-cloud-config.json) and asks the AI to display cloud-backup status and to create/update the file when the user configures cloud backup. Review the implementation of any 'configure cloud' command (not fully visible in truncated code) before letting the skill perform network operations or storing cloud credentials. The visible code does not show automatic uploads; if you plan to enable cloud sync, examine or test that feature separately. - Forced reply formatting: the skill mandates appending two italicized hint lines to every item-related reply. This is a behavior/UX requirement (not a vulnerability), but if you do not want repeated backup prompts in every reply, be prepared to modify the SKILL.md or the skill code. - Audit for network calls: the provided files show only local DB and filesystem operations. However some files were truncated in the manifest; scan the full item_cli.py (remaining parts) for any unexpected network requests or credential handling before trusting cloud-automation features. - Sandbox test: run the CLI locally in a test account or sandboxed environment first to confirm where files are created and that no unexpected network traffic occurs. If you will store backups in cloud services, limit what you include in backups and consider encrypting exported files before uploading. If you want, I can: (1) search the remaining parts of the provided source for network-related functions or imports (requests, urllib, ftplib, smtplib, oauth libraries), (2) suggest minimal code edits to remove the forced-reply lines, or (3) produce step-by-step commands to run the skill safely in a temporary directory.
能力标签
cryptocan-make-purchases
能力评估
Purpose & Capability
Name/description match the observed behavior: the code stores items in a local SQLite DB, supports add/list/update/delete, export and backups. There are no unexpected external network endpoints or unrelated credentials requested. The skill reads/writes files under the user's workspace/home which is consistent with a local item manager.
Instruction Scope
SKILL.md instructs the agent to read and (when configured) create/update a cloud-config file at ~/.qclaw/workspace/item-management-cloud-config.json and to always display a cloud-backup block in `item info` output. It also requires every item-related reply to append two specific italicized hint lines. Those behaviors expand the agent's conversational output formatting and require file read/write in the user's workspace; they're not inherently malicious but are enforced by the skill and somewhat opinionated. Also note SKILL.md and code show slightly different canonical workspace paths (the doc alternates between ~/.qclaw/workspace/... and platform-specific locations), which could cause confusion when the agent looks for the config file.
Install Mechanism
No install spec is provided (instruction-only plus included Python scripts). That is low-risk: nothing is downloaded during install. The included Python files are executed locally when the skill is invoked.
Credentials
The skill does not require any declared environment variables or credentials. It optionally respects OPENCLAW_WORKSPACE and XDG_DATA_HOME environment variables to choose storage location, which is reasonable for a per-user data tool. No unrelated secrets or external service tokens are requested.
Persistence & Privilege
always:false and default model invocation settings are used. The skill writes data and backups under the user's workspace/home (database and JSON backups) — expected for this purpose. It does not request elevated system privileges or modify other skills' configs. The autonomy of agent invocation is default platform behavior and not a unique escalation here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install item-management
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /item-management 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.0
表格格式列表、emoji数值展示、空字段隐藏、底部总结、更活泼欢迎语
v1.1.4
item-management v1.1.4 - Updated scripts/item_cli.py (details not shown). - No user-facing changes documented in SKILL.md. - Existing features and documentation remain unchanged.
v1.1.3
item-management 1.1.3 - Updated scripts/item_cli.py (details not specified). - No changes to user-facing commands or overall documentation. - No breaking changes; all user data and workflows remain compatible. - Internal improvements or bugfixes may have been applied.
v1.1.2
item-management 1.1.2 - No file changes detected in this version. - Functionality, user instructions, and rules remain unchanged from previous release.
v1.1.1
- 新增“云备份”完整板块和指令说明,支持多种云端自动备份与状态展示 - item info 现在需检测本地云备份配置文件并分“已配置/未配置”两种状态详细展示,含提示与换方案指令 - 增加云备份推荐方案列表,提供配置指引(如OneDrive/iCloud/邮箱/微云/Github Gist等) - 强化“备份/恢复”及存储信息相关命令,增加“帮我配置云备份”、“备份物品到云端”等新触发词 - 明确要求物品列表包含所有核心字段,统一列表输出规范
v1.1.0
**Changelog for item-management 1.1.0** - [规则变更] 物品相关回复末尾提醒从单行 HTML 变为两行 Markdown 斜体 - 第一行为动态使用提示,如“试试对我说:查看物品统计 / 搜索XX / 备份物品” - 第二行为固定备份安全提示:“想备份数据防丢失?直接说「查看物品存储信息」” - 强调以上两行**每次回复都必须带上,无例外** - 明确了使用提示要随机、备份提示必须固定的规则 - 去除原有 HTML `<span>` 样式要求,改为 Markdown 斜体格式
v1.0.9
- 强制提示签名语句的输出格式从普通文本改为 HTML `<span>` 标签,并指定了灰色和小号字体样式,确保提示信息视觉弱化。 - 明确要求“每次回复物品相关内容”都必须采用新的 HTML 样式提示语,无论什么场景不得省略。 - 其他内容未变。
v1.0.8
- 新增“强制回复规则”:每次回复用户物品相关内容时,必须在回复末尾加上备份提示语,无例外。 - 备份提示语内容为:“💡 想备份数据防丢失?直接说「查看物品存储信息」”。 - 无其他功能变更,仅文档更新。
v1.0.7
Version 1.0.7 - 文档更新:SKILL.md 补充了对“自然语言技能”的说明,增加了详细的关键词/意图触发表说明。 - 新增“手动调试”使用指引,介绍命令行调试方法。 - 明确说明 CLI 自动写入用户家目录,无需手动指定数据路径。 - 丰富意图触发关键词表,便于理解与调用各项功能。 - 其余核心功能、命令示例、备份机制未变。
v1.0.6
- Updated scripts/item_cli.py with minor changes. - No user-facing features, behavioral changes, or documentation updates.
v1.0.5
item-management 1.0.5 - Updated scripts/item_cli.py (details not specified). - No changes to user-facing features described in documentation.
v1.0.4
- 新增独立的用户数据存储目录,数据位置跨平台自动适配,防止技能更新造成数据丢失。 - 增加了“备份与恢复”功能,支持一键备份、指定路径备份、合并/完整恢复、跨平台迁移。 - 文档详细说明了数据目录、备份文件结构及云端同步建议。 - 命令行接口新增 item backup、item restore、item info 等命令。 - 优化文档结构,突出数据安全与迁移操作指引。
v1.0.3
新增:日均成本计算、export导出功能(CSV/JSON/HTML)、report统计报告(浏览器Ctrl+P可打印PDF)
v1.0.2
新增触发关键词:我的物品架、物品架管理、归物、my-item等,用户输入这些词均可唤醒技能
v1.0.1
优化显示:状态中文、去掉编号、提示语更口语化;更名为「item-management(物品架)」
v1.0.0
Initial release: full item management with expiry tracking, sub-items, stats, and history.
元数据
Slug item-management
版本 1.2.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 16
常见问题

Item Management 是什么?

物品电子信息管理技能。用于记录、整理、查询个人物品数据。触发关键词:物品管理、记录物品、添加物品、物品清单、物品统计、物品到期、物品过期、物品搜索、整理物品、我的物品、物品架、盘点、断舍离、我的物品架、物品架管理、归物、my-item。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 112 次。

如何安装 Item Management?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install item-management」即可一键安装,无需额外配置。

Item Management 是免费的吗?

是的,Item Management 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Item Management 支持哪些平台?

Item Management 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Item Management?

由 Jiaqi(@gmmg55)开发并维护,当前版本 v1.2.0。

💬 留言讨论