Skip to content
cccskills
FreePublished on GitHub

source-command-wait-to-test

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

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md885 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

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.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

Report a problem with this skill