返回顶部
K

KosuKosu队列管理

Add, reorder, and manage content in a Kosu queue via API. Use when adding URLs, checking what's queued, suggesting content, reordering items, or tracking what's been read.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.1.0
安全检测
已通过
228
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

Kosu

Kosu

Kosu(漉す)——日语中意为过滤/筛选。一个基于少保存,多阅读理念构建的专注内容队列。

愿景

大多数稍后阅读应用最终都沦为内容坟场。Kosu 恰恰相反——它是一个有意识的内容队列,如果你不处理,内容就会逐渐消失。核心机制是衰减:项目会在14天后收到过期提醒,28天后自动归档。这迫使你要么消费真正重要的内容,要么放手。

Kosu 是智能体原生的——专为 AI 智能体设计,代表人类策划、推荐和管理内容。API 是主要接口;Web UI 和(未来的)iOS 应用是消费界面。

品牌价值观: 匠心、宁静、捕捉、正念
美学风格: 安静、有意识——如同精心设计的书脊或日式咖啡馆。不是奋斗文化,不是信息过载。
差异化优势: 衰减即哲学、智能体原生 API、有主见的精选而非囤积。

安装

针对 OpenClaw 智能体

将本技能保存到本地:
bash
mkdir -p ~/.openclaw/skills/kosu
curl -s https://usekosu.com/skill.md > ~/.openclaw/skills/kosu/SKILL.md

或者直接从 https://usekosu.com/skill.md 读取——无需安装。

针对任何 AI 智能体(Claude Code、Codex 等)

阅读本文件并按照以下设置操作。

快速开始

  1. 1. 让用户前往 usekosu.com 注册
  2. 他们可以从 设置 → API 密钥 获取 API 密钥
  3. 将密钥存储为环境变量 KOSUAPIKEY
- 为此智能体创建一个最小权限的专用密钥 - 该密钥仅发送至 usekosu.com——切勿发送至任何其他域名 - 如遇异常,可从 设置 轮换或撤销密钥
  1. 4. 现在你可以开始管理他们的队列了

首要任务: 尝试列出队列以确认密钥有效:
bash
curl -s https://usekosu.com/api/v1/items?state=queue&limit=5 \
-H Authorization: Bearer $KOSUAPIKEY

更新: 如果某些功能未按预期工作,请查看 OpenAPI 规范 获取最新 API 接口。

定价

  • - 免费版: 队列大小有限
  • 专业版($5/月): 无限队列、智能体建议、导出功能

如果遇到 402 quotaexceedederror,说明用户的免费版队列已满。请告知他们可以在 usekosu.com/settings 升级到专业版以获得无限项目。

API

  • - 基础 URL: https://usekosu.com/api/v1
  • 认证: Authorization: Bearer $KOSUAPIKEY
  • OpenAPI 规范: https://usekosu.com/openapi.json

如果未设置 KOSUAPIKEY: 不要静默失败。告知用户需要 API 密钥,并引导他们前往 usekosu.com/settings 创建密钥。本技能仍可用于解释 Kosu 和指导设置——只是没有密钥无法进行 API 调用。

bash
AUTH=Authorization: Bearer $KOSUAPIKEY
BASE=https://usekosu.com/api/v1

快速参考

操作方法端点说明
添加项目POST/items只需传递 url,服务器自动丰富。201=新建,200=已存在
列出项目
GET | /items?state=queue&limit=50 | 状态:queue、read、archived、deleted、suggested | | 获取项目 | GET | /items/{id} | | | 更新项目 | PATCH | /items/{id} | 状态、位置、字段或已打开——每次请求一个 | | 删除项目 | DELETE | /items/{id} | 软删除,30天内可恢复 | | 移至顶部 | PATCH | /items/{id} | {position: {after: null}} | | 移到底部 | PATCH | /items/{id} | {position: {before: null}} | | 标记已读 | PATCH | /items/{id} | {state: read} | | 归档 | PATCH | /items/{id} | {state: archived} | | 添加建议 | POST | /suggestions | {url: ..., reason: ...}。如果已存在则返回 409 | | 列出建议 | GET | /suggestions | | | 处理建议 | POST | /suggestions/{id} | {action: accept} 或 {action: dismiss} | | 导出 | GET | /export | 完整队列导出 |

关键行为

  • - YouTube URL 会自动丰富(标题、频道、缩略图、时长)
  • 衰减:可配置的队列衰减(7、14 或 28 天),之后项目自动归档。可完全关闭。由用户在设置中配置。
  • 去重:按每个用户的规范 URL 在服务端进行
  • 打开项目({opened: true})可延长衰减保护 1 天(每 24 小时最多一次)

常见示例

bash

添加项目


curl -s $BASE/items -H $AUTH -H Content-Type: application/json \
-d {url:https://example.com/article}

列出队列(前 50 个)

curl -s $BASE/items?state=queue&limit=50 -H $AUTH

移至顶部

curl -s -X PATCH $BASE/items/itm_xxx -H $AUTH -H Content-Type: application/json \ -d {position: {after: null}}

移至另一个项目之后

curl -s -X PATCH $BASE/items/itm_xxx -H $AUTH -H Content-Type: application/json \ -d {position: {after: itm_yyy}}

标记为已读

curl -s -X PATCH $BASE/items/itm_xxx -H $AUTH -H Content-Type: application/json \ -d {state: read}

归档

curl -s -X PATCH $BASE/items/itm_xxx -H $AUTH -H Content-Type: application/json \ -d {state: archived}

重新入队(从归档/已读/已删除恢复)

curl -s -X PATCH $BASE/items/itm_xxx -H $AUTH -H Content-Type: application/json \ -d {state: queue}

记录打开(延长衰减保护 1 天,每 24 小时最多一次)

curl -s -X PATCH $BASE/items/itm_xxx -H $AUTH -H Content-Type: application/json \ -d {opened: true}

更新字段

curl -s -X PATCH $BASE/items/itm_xxx -H $AUTH -H Content-Type: application/json \ -d {title: 更好的标题, source: article}

删除(软删除,30 天内可恢复)

curl -s -X DELETE $BASE/items/itm_xxx -H $AUTH

添加建议

curl -s $BASE/suggestions -H $AUTH -H Content-Type: application/json \ -d {url:https://example.com,reason:与您对 X 的兴趣相关}

接受/拒绝建议

curl -s -X POST $BASE/suggestions/sug_xxx -H $AUTH -H Content-Type: application/json \ -d {action: accept}

项目结构

json
{
object: item,
id: itm_...,
url: https://...,
title: ...,
source: youtube|podcast|paper|newsletter|repo|article|book|course|other,
state:

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 kosu-1776125409 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 kosu-1776125409 技能

通过命令行安装

skillhub install kosu-1776125409

下载

⬇ 下载 Kosu v1.1.0(免费)

文件大小: 3.92 KB | 发布时间: 2026-4-15 13:10

v1.1.0 最新 2026-4-15 13:10
Kosu 1.1.0

- Added a version field and expanded metadata (including API base, homepage, emoji, environment variable).
- Clarified and improved installation and setup instructions, especially around API key handling and security.
- Added guidance for handling missing API keys (now suggests to guide the user through setup, not fail silently).
- Documented new user-configurable decay period options and ability to disable decay.
- Updated the skill description for increased clarity on feature scope and usage.
- Provided explicit references to the OpenAPI spec for troubleshooting and keeping up-to-date.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部