npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@rishiqing/cli

v0.1.7

Published

Agent-oriented CLI for Rishiqing APIs

Downloads

54

Readme

rishiqing-cli

License: MIT npm version Node.js

面向 Agent 和开发者的日事清 CLI,由 rishiqing.openapi.json 驱动命令注册。它不是简单包一层 HTTP 请求,而是把“发现命令、理解参数、预览请求、执行调用”整理成一套稳定的终端接口,方便人和 AI Agent 直接操作日事清。

安装 · Agent 能力 · 命令体系 · 进阶用法 · 安全

安装与快速开始

环境要求

开始之前,请确保具备以下条件:

  • Node.js >= 20
  • 一个可用的 X-Rsq-Api-key(日事清->设置->开发者配置)

极速开始

npm install -g @rishiqing/cli
rsq-cli install
rsq-cli config init

快速开始

安装

推荐直接从 npm 安装:

npm install -g @rishiqing/cli

安装 CLI Skill

rsq-cli install

rsq-cli install 会将项目内置的 skill 安装到已知智能体目录,目前默认包含:

  • Codex: ~/.agents/skills
  • Claude Code: ~/.claude/skills
  • OpenClaw: ~/.openclaw/skills

也可以只安装到指定目标,或者追加自定义目录:

rsq-cli install --target codex
rsq-cli install --target codex,claude-code
rsq-cli install --dir ~/.my-agent/skills
rsq-cli install --dry-run --json

配置

先初始化用户级 API Key 配置:

rsq-cli config init

查看当前配置文件位置:

rsq-cli config path

查看常用命令:

rsq-cli --help

Agent 能力

rsq-cli 既提供内建的 agent contract,也保留了仓库内可复用的 skill。

| 能力 | 说明 | | --- | --- | | describe | 结构化输出全部命令、参数、请求体 schema、示例 | | search | 按自然语言意图检索命令 | | describe-agent-contract | 输出面向 Agent 的路由规则、领域关键词和全局约束 | | agent | 面向 Agent 的包装命令;收到内联 --body 时会自动落盘并转成 --body-file 执行 | | skills/rishiqing | 识别“日事清”领域请求并路由到对应模块 | | skills/rsq-workflow-createFlowApplication | 根据流程场景自动创建流程应用,优先匹配模板,匹配不到回退到标准模式 |

命令体系

CLI 当前按三层能力组织:

1. 模块命令

这是最直接的 API 调用层,按业务域分组:

rsq-cli datasheet --help
rsq-cli workflow --help
rsq-cli contacts --help
rsq-cli project --help
rsq-cli task --help

例如:

echo '{"name":"新项目"}' > request.json
rsq-cli project create --body-file request.json --json
rsq-cli task get --task-id task_xxx --json
rsq-cli workflow list-templates --json

2. 组合命令

这类命令会在内部串联多个步骤,适合 Agent 直接调用:

rsq-cli agent contacts resolve-user --user-name 张三 --json
rsq-cli agent task set-executor-by-name --task-id task_xxx --user-name 张三 --json
rsq-cli agent project set-member-by-name --project-id proj_xxx --user-name 李四 --json
rsq-cli agent workflow create-audit-by-names \
  --flow-application-id flow_xxx \
  --step-info-id step_xxx \
  --audit-info-name 部门审批 \
  --user-names 张三,李四 \
  --json

3. 自省命令

这是 Agent 场景最关键的一层:

rsq-cli describe --json
rsq-cli describe workflow --json
rsq-cli describe workflow createFlowApplication --json
rsq-cli search "list workflow applications" --json
rsq-cli describe-agent-contract

安全与约束

本工具可被 AI Agent 调用执行真实的日事清写操作,因此请务必注意:

  • X-Rsq-Api-key 具备真实权限,不应出现在日志、截图或共享终端中