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

doukui

v0.9.1

Published

Doukui (斗魁) - in-session orchestration discipline pack for Claude Code: skills suite, plan-reader contract, multi-agent dispatch, agentic loop

Readme

Doukui(斗魁)

Claude Code 的会话内编排纪律包 —— skills 全家(工作流/任务拆分/循环/检查点)、plan-reader 契约、dispatcher 多 agent 并行、PROGRESS 进度约定

License: MIT Version

English

斗魁,北斗前四星之总称,勺子枢转的中心——众 WP 绕其调度。 Doukui 重构自 tackle-harness v0.4.9(2026-11,Phase A-E 激进重构),致谢前身。

为什么是 Doukui

你在用 Claude Code 跑复杂任务,但模型本身不负责编排:需求怎么拆、多 agent 怎么并行、失败怎么自愈、进度怎么不丢,每次都靠会话里重新发挥。Doukui 把这层编排纪律固化成 skills + 契约 + 配置:

  • 方案先行,人工把关 — AI 先输出实施方案和工作包拆分,等你确认后才动手写代码。不会出现「AI 自作主张改了一堆东西」的情况。
  • 复杂需求,并行交付 — 大需求拆成多个独立工作包(WP),按依赖图由 dispatcher 调度多个 Agent 子代理并行执行。
  • 目标驱动自闭环(Agentic Loop) — checklist 不通过不返回人工,会话内自主 retry/resplit 多轮直到收敛或穷尽自救;判定规则与阈值有唯一真相源(mirror-rules.md),不靠临场发挥。
  • verify 优先的验收 — plan 验收项可加 [verify: npm test] 尾标——命令可验证的项零 LLM 自由判断(更可靠且省 token)。
  • 经验沉淀,越用越好 — 每次任务完成后自动提炼经验教训,按角色存档供后续会话参考。

v0.7.0 起无值守 driver(doukui loop 子进程)已退役——会话内路径为唯一执行方式,provider/模型切换回归 Claude Code 会话级配置(详见 CHANGELOG BREAKING 说明)。

核心概念:Agentic Loop(会话内)

  • 判定规则单一真相源:plugins/core/skill-agentic-loop/mirror-rules.md 自持 Observe→Think→Act→Reflect→Decide 全部规则与阈值默认;会话内 Lead 按该文件复现,不存在 JS 判定代码镜像,也没有 CI 镜像锁
  • 三重上限保护 + 终态前自救:max_iterations(默认 6)、max_round_time_ms(10min)、max_wall_time_ms(1h)触发或 P1 确认时可覆盖;终态(diverged/timeout)前先按 mirror-rules 的 retry/resplit 顺序穷尽自救,穷尽才升级人介入
  • Act 委托 dispatcher:loop 是决策层不写代码,Act 阶段把 decision 序列化为 dispatcher 指令,由 agent-dispatcher 多 agent 执行
  • 进度即观测:每轮 verdict/proximity 记录到 PROGRESS.md / task.md(skill-progress-tracker),Observe 快照同源
  • 风险分级人审:plan 顶层声明 风险分级: low(纯文档/测试补充类)→ P1 轻量化一句话确认、门控自动豁免强制暂停;未声明风险的 plan 照常完整人审

安装

前提: Node.js >= 18.0.0

npm install -g doukui
cd your-project
doukui init    # 创建配置目录 + 注册钩子

命令一览

| 命令 | 说明 | |------|------| | doukui build | 构建所有插件(默认命令) | | doukui validate / validate-config | 插件格式 / harness-config 校验 | | doukui plan-lint <plan.md> | 计划体检(只读):工作单元 / 依赖拓扑 / 成功标准 / verify 覆盖率,退出码 0 可用 1 不可用 | | doukui verify <plan.md> --wp WP-NNN\|all | 批跑单元 checklist 的 [verify:] 命令并输出 CheckResult,退出码 0 全过 / 1 有失败 / 2 无 verify 项 | | doukui init | 首次安装:build + config | | doukui install | 安装外部插件(含安全审查) | | doukui migrate | 迁移旧项目配置 | | doukui status / list / config | 状态 / 插件列表 / 配置查询 | | doukui interactive | 交互式插件管理(别名 i) | | doukui setup-global | 安装全局 skills 到 ~/.claude/skills/ | | doukui team-cleanup <name> | 确定性清理残留的 Agent Teams 团队目录 | | doukui version / help | 版本 / 帮助 |

工作流概览

需求 → 规划(P0) → 审核(P1) → 执行(P2) → 检查(P3) → 汇报(P4) → 交付

| 阶段 | 做什么 | 关键技能 | |------|--------|----------| | P0 规划 | 解析需求,拆分为工作包,写入文档 | task-creator, split-work-package | | P1 审核 | 暂停等待你确认方案(强制人工介入) | human-checkpoint | | P2 执行 | 多 Agent 并行开发,按依赖图调度 | agent-dispatcher / agentic-loop | | P3 检查 | 代码/测试/文档质量验证,提炼经验 | checklist, experience-logger | | P4 汇报 | 生成完成报告,询问下一步 | completion-report |

插件架构

三类插件,共 19 个:

| 类型 | 数量 | 作用 | |------|------|------| | Skill | 16 | 可执行技能,Claude Code 直接调用 | | Provider | 1 | 角色注册(agent-def-generator 消费) | | Hook | 2 | 技能门控 + 会话启动注入 plan-mode 规则 |

文档

与前身的关系

| | tackle-harness(前身) | doukui | |---|---|---| | 执行载体 | spawn claude -p 单一路径 | 会话内 skills + dispatcher 多 agent(driver 子进程已于 v0.7.0 退役) | | 结构化输出 | fenced block 裸解析 | fenced + 机器可读 block + verify 命令客观验证 | | 阈值/决策 | 三处硬编码重复 | mirror-rules.md 单一真相源(自持阈值) | | 品牌/命令 | tackle-harness / tackle | doukui |

致谢

  • tackle-harness — 前身,Doukui 的全部骨架来源
  • DeerFlow — 记忆提取与插件架构参考

许可证

MIT License - 详见 LICENSE