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

@bicorne/task-decomposer

v1.0.2

Published

AI skill package for task decomposition and workflow orchestration, distributed via npm with the task CLI.

Downloads

344

Readme

Task Decomposer Skill

将项目规划文档拆解为可执行任务,管理任务依赖和状态,驱动 AI 完成开发工作流。

这是一个以 skill 形态交付的能力包,npm 包只是分发载体,task 是随 skill 一起安装的命令行入口。

完全独立:本 skill 不依赖任何外部工具,可独立运行。

多项目适配:通过配置文件支持不同项目结构。


操作手册

适合谁

如果你要做下面几件事,这份 README 就够用:

  • 安装 task 命令
  • 安装一个可被 AI 工具识别和复用的 skill 包
  • 在项目里接入任务拆解工作流
  • 按任务依赖顺序推进开发
  • 打包 skill 给别人分发

最短路径

npm install -g @bicorne/task-decomposer

cd /path/to/your-project
mkdir -p docs/plans docs/tasks
task init
task ready
task show PHASE-1-1-1

1. 安装

方式 A:从 npm 安装

npm install -g @bicorne/task-decomposer

方式 B:从 GitHub 安装

npm install -g github:didengren/task-decomposer

或者:

npm install -g git+https://github.com/didengren/task-decomposer.git

方式 C:直接从仓库安装

cd /path/to/task-decomposer
./scripts/install.sh install

如果要显式指定安装目标工具:

./scripts/install.sh install qoder
./scripts/install.sh install claude-code
./scripts/install.sh install trae
./scripts/install.sh install cursor
./scripts/install.sh install generic

方式 D:从打包产物安装

以 Claude Code 为例:

mkdir -p ~/.claude/skills
tar -xzvf task-decomposer.skill.tar.gz -C ~/.claude/skills/

或者:

mkdir -p ~/.claude/skills
unzip task-decomposer.skill.zip -d ~/.claude/skills/

安装后检查

task help

如果命令找不到,通常是 ~/.local/bin 没有加入 PATH。


2. 准备项目

进入你的业务项目根目录,至少准备以下结构:

your-project/
├── docs/
│   ├── plans/
│   │   ├── spec.md
│   │   └── tasks.md
│   └── tasks/
│       ├── PHASE-1-1-1.json
│       └── ...
└── .skill.yaml           # 可选

最少需要:

  • docs/plans/spec.md
  • docs/plans/tasks.md
  • docs/tasks/PHASE-*.json

如果目录还不存在:

cd /path/to/your-project
mkdir -p docs/plans docs/tasks

如果还没有任务文件,可以先让 AI 根据规划文档生成到 docs/tasks/

可选:自定义配置

默认目录是 docs/plansdocs/tasks。如果你的项目结构不同,可在项目根目录创建 .skill.yaml

paths:
  tasks_dir: docs/tasks
  plans_dir: docs/plans

documents:
  spec: docs/plans/spec.md
  tasks: docs/plans/tasks.md

查看当前配置:

task config

3. 开始使用

第一次进入项目

cd /path/to/your-project
task init

这一步会初始化任务状态存储,并按任务 JSON 中定义的状态建立本地状态。

推荐工作流

task ready
task show PHASE-1-1-1
task start PHASE-1-1-1
task test PHASE-1-1-1
task complete PHASE-1-1-1
task ready
task progress

这套流程分别表示:

  • 找到当前可执行任务
  • 阅读任务详情与验收标准
  • 开始任务
  • 运行该任务定义的验证命令
  • 标记任务完成
  • 查看新解锁的任务
  • 查看整体推进进度

4. 常用命令

查看类命令

task list
task list 1
task ready
task blocked
task show PHASE-1-1-1
task tree PHASE-1-1-1
task progress
  • task list:查看全部任务
  • task list 1:只看某个 phase
  • task ready:查看当前可开始的任务
  • task blocked:查看被依赖阻塞的任务
  • task show <任务ID>:查看任务详情
  • task tree <任务ID>:查看依赖树
  • task progress:查看整体进度

执行类命令

task start PHASE-1-1-1
task test PHASE-1-1-1
task complete PHASE-1-1-1
  • task start <任务ID>:开始任务,并检查依赖
  • task test <任务ID>:执行任务定义里的验证命令
  • task complete <任务ID>:标记完成,并显示新的 ready 任务

如需跳过依赖检查:

task start --force PHASE-1-1-1

校验命令

task validate

用于检查所有任务 JSON 的字段、状态、优先级和类型是否合法。


5. 打包分发

分发 skill 安装包

如果你要把当前 skill 分发给别人,可在仓库根目录运行:

cd /path/to/task-decomposer
./scripts/package.sh tar
./scripts/package.sh zip
./scripts/package.sh all

默认会在上级目录生成:

  • task-decomposer.skill.tar.gz
  • task-decomposer.skill.zip

输出到指定目录:

./scripts/package.sh tar /tmp/task-decomposer-packages

发布到 npm

当前 npm 包名使用更稳妥的 scoped 形式:@bicorne/task-decomposer

发布前先在仓库根目录执行:

npm run release:check

推荐发布流程:

npm run release:check
npm version patch
git push origin main --follow-tags

如果你走本地发布:

npm publish --access public

如果你走 GitHub Actions 自动发布:

npm version patch
git push origin main --follow-tags

如果你手动打 tag,必须保证 git tag 与 package.json 中的版本完全一致,例如:

git tag v1.0.1

对应:

{
  "version": "1.0.1"
}

需要提前在 GitHub 仓库中配置 NPM_TOKEN。工作流会在发布后执行一次全新前缀目录安装,再运行 task help 作为 smoke test。


6. 示例体验

如果你想先体验一遍完整流程,可以直接使用仓库自带示例项目:

cp -R references/example-project /tmp/task-decomposer-demo
cd /tmp/task-decomposer-demo
task init
task ready
task show PHASE-1-1-1
task test PHASE-1-1-1
task complete PHASE-1-1-1
task ready

7. 维护者验证

如果你修改了脚本,建议在仓库根目录运行:

npm run verify

它会同时验证:

  • 直接安装流程
  • 打包后再解压安装流程
  • npm 安装流程
  • task 命令是否可用
  • 自定义项目目录与示例项目是否工作正常

相关文档