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

demoncat-skill

v0.1.5

Published

Agent Skill for operating DemonCAT (dcat) fault injection on Linux / Ascend hosts.

Readme

demoncat-skill

DemonCAT(dcat)故障注入工具的 Agent Skill。让 AI 助手把"帮我注入网络延迟 / CPU 打满 / 清理故障"这类自然语言意图,翻译成正确的 dcat 命令,并用证据验证是否真的生效。

单一来源(single source of truth)

Skill 内容只在 DemonCAT 仓库维护:.agents/skills/using-demoncat/。本包不手改 skill:

  • npm run sync(npm publish 前由 prepack 自动执行)从仓库把那份 vendor 进 ./skills/;
  • 因此发布出去的包 = 仓库里那份,不会两处漂移;
  • ./skills/ 下都是产物,请勿在此编辑——要改请改仓库,然后重跑 sync。

框架定位

面向昇腾韧性的 Agent Skill 集合:故障注入 + 快恢复 + 慢卡检测。

  • 本包:只负责 故障注入 这一块(using-demoncat)。
  • 快恢复、慢卡检测:各自作为兄弟子 skill 并列在同一 bundle 下。
  • 结构:一个 skills/<name>/ 就是一个自洽子 skill(SKILL.md + references/ + scripts/),并列添加即可。

安装(多渠道,内容同源)

| 方式 | 命令 | |---|---| | 仓库内(软链/拷贝,零额外依赖) | 见仓库 .agents/README.md | | 本包 npm(软链,随包更新) | npx demoncat-skill install | | 指定目录 / 拷贝而非软链 | npx demoncat-skill install --target ~/.claude/skills [--copy] | | 查看目标目录 / 卸载 | npx demoncat-skill targets / npx demoncat-skill uninstall --target DIR |

安装目标(自动探测):opencode ~/.config/opencode/skills/(或项目 .opencode/skills/)、Claude Code ~/.claude/skills/、通用别名 ~/.agents/skills/。

重新生成故障目录(数据)

skills/using-demoncat/references/{fault-catalog,modules,quick-commands}.md 是生成物(dcat 的故障集会增减,不能手写)。生成器已随 skill vendor 进来,DemonCAT 发版时:

# 在 DemonCAT 仓库根执行(推荐)
node .agents/skills/using-demoncat/scripts/gen-catalog.js
# 或经本包
npx demoncat-skill gen-catalog --conf /path/to/DemonCAT/config/demoncat.conf

目录结构

demoncat-skill/
├── bin/cli.js                       # npx 入口:install/uninstall/targets/gen-catalog/sync
├── tools/sync.js                    # 从 DemonCAT 仓库 vendor ./skills/(prepack 自动跑)
├── skills/using-demoncat/           # ← 产物:由仓库同步而来,勿手改
│   ├── SKILL.md
│   ├── references/{modules,quick-commands,fault-catalog,safety}.md
│   └── scripts/{verify.sh, gen-catalog.js}
└── evals/evals.json

设计要点

  • 稳定 / 易变分层,零手抄:正文只教"怎么发现故障(dcat list)",不硬编码 uid/参数清单;模块表、命令示例、故障目录、危险标注全部由 gen-catalog 生成。
  • 数据来源都是工具自带:故障与参数来自 config/demoncat.conf;危险等级直接解析 User_Manual.md 的「危险等级」(高/极高 → ⚠️),不可逆故障(无 clean)自动标 ☠️。不需要给 conf 加字段。
  • 防错觉:正文含「验证契约」——成功 = dcat query 输出 JSON 里 data.confirmed == true(⚠️ 退出码 0 只代表命令跑通,不代表故障生效);并列出 Red flags 与 scripts/verify.sh 取证脚本。

License

Apache-2.0