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 🙏

© 2025 – Pkg Stats / Ryan Hefner

momo-ai

v1.0.19

Published

Rachel Momo ( OpenSpec )

Readme

Momo SDD - Spec Driven Development 工具

npm version | Downloads

For Rachel Momo / Serial Experiments Lain

1. 介绍

1.1. 功能说明

当前工具会在操作系统中安装 momo 命令,使用它进行 SDD - Spec Driven Development 开发:

  1. 参考:OpenSpec / Spec-Kit / Kiro
  2. 工具支持:
    • Trea(推荐使用,可支持多Agent模式)
    • Cursor(稍贵,可支持多Agent模式)
    • Lingma
    • Kiro
  3. 中文规范,命令运行之后将 prompt 提示词拷贝到剪切板,直接复制到工具中即可使用,提示词生成之后会存储在 .working 目录下。
  4. 多个 Agent 协同,实现 Team 团队模式的 AI 开发,无模型限制(推荐使用同一个模型进行任务协同开发)

OpenSpec / Spec-Kit / Kiro 原生工具不同,当前工具以 AI Agent 开发为核心,提供从 Plan -> Deployment 完整生命周期的整体开发流程,是 SDD 的一种落地手段——暴力、简单、易懂。由于辅助工具可选择模型,所以本工具不提供模型选择,模型本身取决于你所使用的工具本身,命令行只是一个辅助,核心开发模式为: AI 开发 + 人工审核,本工具的核心是 prompt 的模板化。

除开 momo 命令后续会提供和模型直接交互的 lain 命令,近似 iFlow / openspec 的功能。

1.2. 开始步骤

  1. 使用 momo init 初始化协同工程项目(运行之前可使用 momo env 检查环境)。
  2. 使用 momo repo 添加项目代码库以及工程实例(有多少个 Agent 工作就添加多少工程实例),添加完成后可使用 momo open 直接打开工程。
  3. 更新 project.md / project-model.md / requirement.md 的细节文档(可用AI帮助拆分和书写)
  4. 使用 momo add -n 需求名称 添加细节需求(可用AI帮助拆分和书写:momo plan -n 需求名称
  5. 使用 momo tasks 列出所有任务,并且使用 momo run 运行任务得到任务提示词

带 (CV) 📋️ 标记的命令——运行成功后可直接“Ctrl + V”粘贴到 TRAE / Lingma / Cursor / Kiro 中执行。

1.3. 项目计划

  1. 使用 momo project 将后端项目拷贝到 reference 目录中(主要是提供数据模型)。
  2. (唯一的人工处理)更新 project.md 中的所有信息,核心包括:
    • 功能描述
    • 场景描述等
    • 风格
    • 技术栈
  3. 使用 momo agentcfg 给 TRAE 工具配置智能体,主要是导入部分已经定制好的智能体。
  4. 使用 momo agent -a "智能体名称" 调用智能体进行开发之前的准备工作,目前支持的智能体可直接使用 momo agentcfg 查看。

2. 工具使用

2.1. 安装

npm install -g momo-ai
# 查看帮助
momo help

2.3. 命令:不定模型

# ------------ 工程初始化 -----------------
# 🌷 环境检查、工程和代码初始化、工具启动等
momo env                            # 环境检查

momo init -d app-fly                # 初始化 directory = app-fly 的项目
momo init                           # 初始化当前项目

momo repo -a https://xxx/repo.git   # 克隆远程代码库 -> source/repo/develop-01(名称靠解析) -> git submodule
momo repo -a xxx -i 10              # 克隆远程代码库(10个副本)

momo pull                           # 从远程拉取最新代码 source/develop-xx
momo commit -m "提交信息"            # 提交本地变更形成新的 commits
momo push                           # 推送本地 commits 到远程代码库

momo open                           # 交互式使用 TRAE / Lingma / Cursor / Kiro 打开当前项目

momo project -s "项目路径"           # 将路径中的显示拷贝到当前项目的 reference 目录下,若不提供 -s 则直接列举所有支持的项目类型

momo agentcfg                       # 列出所有智能体,并且打开浏览器配置
momo agent -a "智能体名称"           # 📋️ 调用智能体 -> prompt 得到提示词到剪切板

# ------------ 需求相关 -----------------
# 🌷 需求管理:添加、归档、校验、列出、显示
momo add -n "需求名称"               # 📋️ 添加新需求 -> changes 下追加新内容 -> 包括任务
momo add -n "需求(MD)文档路径"        # 📋️ 添加需求文档 -> changes 下追加新内容 -> 包括任务,如果带后缀直接用文件名做需求名称

momo archive -n "需求名称"           # 需求归档 -> archive 下追加新内容,删除 changes 下内容

momo show -n "需求名称"              # 显示需求 -> 显示 changes 下内容

momo validate -n "需求名称"          # 需求校验 -> 校验 changes 下内容

momo list                           # 列出所有需求 -> changes 下内容


# 🌷 需求分析:计划、执行、拆分
momo plan -n "需求名称"              # 📋️ 生成需求的整体开发计划 -> prompt 剪切板

# ------------ 任务执行 -----------------
# 🌷 任务执行:定义角色、执行任务
momo actors                         # 列出所有角色

momo actor -a "角色名称"             # 添加新角色 -> 交互式命令,每个角色可以指定不同的大模型


momo tasks                          # 📋️ 显示任务 -> 需求 / 任务 / 状态 -> 状态 = 待办 / 进行中 / 已完成

momo run -a {actor} -t {task}       # 📋️ 将任务分配给角色,检查执行目录看哪些任务正在执行
momo run                            # 📋️ 从菜单中选择任务

momo unlock                         # 解锁任务 -> 任务状态 = 待办

2.4. 控制台:定模型

控制台开发中(Lain 模式)

# 两个命令都可以启动控制台
momo console                        # 启动 Lain 控制台 -> 交互式命令
lain                                # 启动 Lain 控制台 -> 交互式命令

打开控制台

[Momo AI] ----------------- Rachel Momo / AI工具项  ------------------
[Momo AI] 应用名称: Rachel Momo / SDD
[Momo AI] 工具主页: https://gitee.com/silentbalanceyh/r2mo-lain
[Momo AI] 工具版本: 1.0.6  ( Node >= 22.x )
[Momo AI]
[Momo AI] ----------------- AI 系统启动…… ----------------------------

================================================================================================
                                    Momo AI / Lain Console
================================================================================================

欢迎使用 Momo AI / Lain 控制台!
这是一个交互式命令行界面。

可用命令:
  help     - 显示帮助信息
  llm      - 查看大模型配置信息
  quit     - 退出控制台

请在提示符后输入命令。
------------------------------------------------------------------------------------------------

3. 参考链接

3.1. 旧版

3.2. 新增