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

work-rhythm

v0.2.3

Published

个人工作目录:记录每天的工作事件、按订阅源采集数据、做计划和复盘;带本地服务(定时采集、定时整理、经消息渠道推送、本机网页)

Readme

work-rhythm

简称 wrj。

用 AI 记录每天的工作事件、维护工作数据订阅源,并据此做计划、跟进、复盘,逐步总结出你的工作规律。这个仓库构建两样东西:

  • work-rhythm skill(.agents/skills/work-rhythm/):搭建引导与日常运转的流程和规则,任何能读 skill 的 AI 助手都能用。
  • work-rhythm 命令行工具(scripts/、collectors/):采数据、做计划和复盘要用的全部命令,外加消息渠道、值守、本地服务。npm 包就叫 work-rhythm,node 22 以上,零第三方依赖。

个人数据不在这个仓库里:每个人的工作目录由 work-rhythm init 从 templates/ 铺出来,放在自己的机器上(见 templates/README.md,那就是工作目录自带的说明)。

  • Agent 入口:AGENTS.md(CLAUDE.md 是指向它的软链,给 Claude Code 用)
  • 流程与规则:work-rhythm skill
  • 命令:work-rhythm --help

安装

最省事:把下面这段话原样发给你的 AI 助手(ZCode、DSH、Claude Code 等能读本地文件的都行),它会替你装好并带你初始化:

帮我安装 work-rhythm(个人工作目录的 skill 和命令行工具),然后开始初始化我的工作目录:
1. 装命令行:npm install -g work-rhythm(需要 node 22 以上,没有 node 先告诉我怎么装)。装完运行 work-rhythm --version 确认。
2. 把 skill 装到用户级目录,任何项目里都能用:
   mkdir -p ~/.agents/skills && ln -sfn "$(npm root -g)/work-rhythm/.agents/skills/work-rhythm" ~/.agents/skills/work-rhythm
   (已经指向 work-rhythm 包的就跳过)
3. 读 ~/.agents/skills/work-rhythm/SKILL.md,按里面的「引导流程」从步骤 0 开始带我初始化:工作目录默认 ~/workspace/my-work,
   已经存在但是空的可以直接用,没有就用 work-rhythm init 新建;一次只问我一件事,尽量给选项。

也可以自己装:

npm install -g work-rhythm            # 从 skill 包里装的话:npm install -g ./work-rhythm-<版本>.tgz
work-rhythm init ~/workspace/my-work  # 新建一个工作目录:空白模板、登记
ln -sfn "$(npm root -g)/work-rhythm/.agents/skills/work-rhythm" ~/.agents/skills/work-rhythm   # skill 装到用户级目录

然后用能读到工作目录的 AI 打开它,说「开始引导」。升级就是 npm update -g work-rhythm——skill 在包里,跟着一起更新,软链不用动。

命令

| 命令 | 做什么 | |---|---| | init、workdir | 新建工作目录;找到、登记、扫描工作目录 | | today、goals、decisions、events | 每日约定、长期目标、待决与决定的记录、事件流 | | sync、collect | 跑内置或自己写的采集器,原始数据落 01-inbox/ | | notify、listen | 消息渠道:把提醒推给我;值守,收我在 IM 里说的话交给本地 agent | | agent | 路由、执行者、机器人值守用哪个 agent:检测本机的、按角色绑定、试一句(docs/agents.md) | | rhythm | 本地服务:定时采集、定时整理、经消息渠道推送、本机网页和监控中心(/monitor) | | trigger | 路由和执行者处理过的事:列出来、看任务书和回执、手动塞一条进去(docs/router-worker.md) | | check、selftest、pack | 自检;自测;把 skill 和这个包打成可分发的目录 |

每个命令的用法看 work-rhythm <命令> --help;消息渠道见 docs/channels.md,定时任务见 docs/scheduled-tasks.md,路由和执行者见 docs/router-worker.md。

工作目录长什么样

00-config/        profile.yaml 我是谁;sources.yaml 订阅源
01-inbox/         各系统的原始数据(只是原料,不是记录)
02-daily/         每天一个文件:计划、进展、复盘、事件流、备注
03-carryover/     遗留待处理;DECISIONS.md 每次我怎么决定一件事
04-patterns/      工作规律画像
05-goals/         长期目标
collectors/       自己写的采集器和本机配置 local.env(只放本机)
docs/ tasks/      记录格式等文档;定时任务的指令
.agents/          skill、给 agent 的踩坑笔记;handoff/ 是路由和执行者之间的任务书与回执(运行时才有)

工作目录只是用户机器上的一个目录,不是 git 仓库,也不往任何远程同步。新工作目录里这些个人文件都是空白的:模板在 templates/,共用的文档、任务指令、skill 直接从这个包复制。工作目录里不带脚本——脚本都在包里,sources.yaml 用 id 引用内置采集器。

分发和复用

work-rhythm pack 生成 01-inbox/outbox/work-rhythm-skill-<版本>/(本机有 zip 再压一份):skill、一份安装说明、这个包的 tgz。对方 npm install -g 那个 tgz、把 work-rhythm/ 放进 AI 助手的 skills 目录,说「开始引导」就能从零开始,不需要这个仓库的访问权。work-rhythm selftest 会真打一份包、离线装上、走一遍新建。

开发约定

  • 这个仓库不是工作目录,也不进个人数据。 根目录不出现 00-config/、02-daily/、03-carryover/、04-patterns/、05-goals/、个人的 profile 和 local.env;工作目录独有的文件只在 templates/ 下,而且都是空白的。要试跑,先 work-rhythm init <临时目录>。站在这个仓库里跑 work-rhythm check 会核对这几条(7 项,和工作目录里的 6 项不一样)。
  • 改完代码跑 work-rhythm selftest;要给新工作目录多带一个文件,改 scripts/lib/template.js 的清单和 templates/;发包前 work-rhythm check 全过。
  • 动脚本、配置解析、文档格式之前,按 .agents/notes/AGENTS.md 的路由表过一遍;踩了新坑记进去。work-rhythm check 会检查笔记格式。

隐私

工作目录是个人数据所在的地方,不往这个仓库同步。这个仓库里只有通用的 skill、CLI 和空白模板,可以公开。