跳到正文
cccskills
免费在 GitHub 公开

source-command-wait-to-test

Wait N seconds (default 20) via a blocking Node.js timer, for testing

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md885 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

source-command-wait-to-test

Use this skill when the user asks to run the migrated source command wait-to-test.

Command Template

Wait for a period of time by running a blocking Node.js command. Useful for testing timing-dependent behavior.

  1. Determine the number of seconds to wait:

    • If an argument was given (e.g. /wait-to-test 12), use it as the seconds.
    • Otherwise, default to 20 seconds.
  2. Convert seconds to milliseconds (seconds * 1000).

  3. Run the following, substituting the computed milliseconds, and wait for it to finish: node -e "setTimeout(() => {}, <milliseconds>)" Set the Bash tool's timeout a few seconds above the wait duration so it doesn't cut the wait short.

  4. Report how many seconds were waited.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

报告此技能的问题