mcpField
Z
zsxq-group

zsxq-group

github.com/unnooOther3174.6k installsUpdated 1w ago
Repository

About zsxq-group

zsxq-group is a skill for working with Knowledge Planet groups, aimed at users who need to find groups, topics, hashtags, or members. It provides zsxq-cli shortcuts alongside API calls for queries not covered by those shortcuts.

Key features

  1. 01List joined or owned groups
  2. 02Browse recent topics and hashtags
  3. 03Search groups and members by keyword
  4. 04Paginate topics under a hashtag

Use cases

  1. 01Find a group by name and confirm its ID
  2. 02Review recent group topics or hashtag counts
  3. 03Locate a group member by nickname
  4. 04Browse topics associated with a hashtag

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/unnoo/zsxq-skill --skill zsxq-group

After installing, type/zsxq-groupin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
zsxq-group-hashtags.md
zsxq-group-list.md
zsxq-group-topics.md

Details

From the project README

group

首次使用或遇到认证错误(401 / token 过期 / not logged in)时,先读 ../zsxq-shared/SKILL.md 了解登录与 API 调用约定。日常调用已登录账户时无需每次重读。

Core Concepts

  • 星球(Group):知识星球的社群单元,由 group_id(纯数字)唯一标识。用户可以是创建者(owner)或成员(member)。
  • 主题(Topic):星球内的内容单元,包括帖子(talk)、提问(q&a)、作业(task)、作业答案(solution)等,由 topic_id 唯一标识。
  • 标签(Hashtag):星球内的分类标签,由 hashtag_id 标识,可附加到主题上。

Resource Relationships

Group (group_id)
├── Topic (topic_id) — talk / q&a / task / solution
│   ├── Comment (comment_id)
│   │   └── 楼中楼 Reply (replied_comment_id)
│   ├── Answer(q&a 类型专属)
│   └── Hashtag 标签
└── Hashtag (hashtag_id)
    └── Topic 列表

Shortcuts(推荐优先使用)

Shortcut 是对常用操作的高级封装(zsxq-cli group +<verb> [flags])。有 Shortcut 的操作优先使用。

Shortcut说明
+list列出当前用户加入或创建的所有星球,输出 group_id 和名称表格
+topics列出星球内最新主题,支持分页游标,输出 topic_id / 类型 / 标题 / 时间表格
+hashtags列出星球内所有标签及主题数量

API(通过 zsxq-cli api call 直接调用)

Shortcut 未覆盖的高级操作:

工具参数说明
search_groupskeyword按关键词搜索星球
search_group_membersgroup_id, keyword, limit搜索星球成员
get_hashtag_topicshashtag_id, limit, end_time列出某标签下的主题(分页)

反例(不要做)

❌ 不要做✅ 应该做
按关键词找内容时用 +topics 翻页逐条人工筛选用 zsxq-topic 的 +search 全文搜索
查「自己最近发过什么」时逐个星球跑 +topics用 zsxq-user 的 +footprints 一次拿到跨星球足迹
用户只给星球名称时,让用户自己提供 group_id 或凭记忆猜 ID先 group +list(自己加入的)或 search_groups(公开搜索)查到 ID 再继续
名称命中多个相似星球时默认取第一个列出候选(group_id + 名称)让用户确认
把 search_group_members 当成员列表接口、调大 limit 遍历全员它是关键词搜索,只用于按昵称定位具体成员

Comments

Markdown supported