Kiipu CLI
Use this skill when the user wants to manage Kiipu posts or CLI setup from Claude Code through the local kiipu CLI.
Primary cases:
- - create a new post from provided text
- delete a known post id
- restore a known post id
- permanently purge a known post id
- authenticate, check auth status, or log out
- run
kiipu doctor to verify local setup and API reachability - explain the exact
kiipu CLI command to use when the user asks for manual usage - route explicit slash-command posting requests to
/kiipu:post when the user wants the command form
Do not use this skill for:
- - chat-context actions like deleting "the current post" without an explicit id
- website automation or API calls when the local CLI already covers the task
Installation
CODEBLOCK0
Required execution path
Execute the local Kiipu CLI instead of simulating results.
Create a post:
CODEBLOCK1
Delete a post by id:
CODEBLOCK2
Restore a post by id:
CODEBLOCK3
Purge a post by id:
CODEBLOCK4
Authentication:
CODEBLOCK5
Check local setup:
CODEBLOCK6
Execution rules
- 1. Run the CLI before claiming success.
- Return the CLI result accurately instead of inventing status.
- If the user wants to create a post, pass their full requested post body as the create argument.
- If the user wants delete, restore, or purge but did not provide an id, ask for the explicit post id.
- If authentication is missing, tell the user to run
kiipu auth login. - Prefer the local CLI over direct HTTP calls so auth, logging, and environment selection stay consistent.
- Keep host-specific runtime guidance out of Claude Code unless the user is explicitly working with that host.
- If the user explicitly wants to use a slash command for posting, suggest
/kiipu:post <text>.
Examples
CODEBLOCK7
Kiipu CLI
当用户希望通过本地 kiipu CLI 在 Claude Code 中管理 Kiipu 帖子或 CLI 设置时,使用此技能。
主要场景:
- - 根据提供的文本创建新帖子
- 删除已知的帖子 ID
- 恢复已知的帖子 ID
- 永久清除已知的帖子 ID
- 身份验证、检查认证状态或退出登录
- 运行 kiipu doctor 验证本地设置和 API 可达性
- 当用户询问手动使用方法时,解释具体的 kiipu CLI 命令
- 当用户希望使用命令形式时,将明确的斜杠命令发布请求路由到 /kiipu:post
不要将此技能用于:
- - 聊天上下文操作,如删除没有明确 ID 的当前帖子
- 当本地 CLI 已覆盖任务时的网站自动化或 API 调用
安装
bash
npm install -g @kiipu/cli
必需的执行路径
执行本地 Kiipu CLI,而不是模拟结果。
创建帖子:
bash
kiipu post create $ARGUMENTS
kiipu post create --content $ARGUMENTS
按 ID 删除帖子:
bash
kiipu post delete --id
按 ID 恢复帖子:
bash
kiipu post restore --id
按 ID 清除帖子:
bash
kiipu post purge --id
身份验证:
bash
kiipu auth login
kiipu auth login --api-key
kiipu auth status
kiipu auth logout
检查本地设置:
bash
kiipu doctor
执行规则
- 1. 在声明成功之前先运行 CLI。
- 准确返回 CLI 结果,而不是虚构状态。
- 如果用户想要创建帖子,将用户请求的完整帖子内容作为创建参数传递。
- 如果用户想要删除、恢复或清除但未提供 ID,请询问明确的帖子 ID。
- 如果缺少身份验证,告诉用户运行 kiipu auth login。
- 优先使用本地 CLI 而非直接 HTTP 调用,以保持认证、日志记录和环境选择的一致性。
- 除非用户明确在使用某个主机,否则不要在 Claude Code 中包含特定主机的运行时指导。
- 如果用户明确希望使用斜杠命令发布帖子,建议使用 /kiipu:post 。
示例
bash
kiipu post create 今天发布测试版
kiipu post create --content 今天发布测试版
kiipu post delete --id post_123
kiipu post restore --id post_123
kiipu post purge --id post_123
kiipu auth login
kiipu auth login --api-key cpk_example
kiipu auth status
kiipu doctor