nerdai/llm-agents-from-scratch/hailstone-sequence

Claude Code and agent skill by nerdai/llm-agents-from-scratch

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Compute the complete Hailstone sequence for a given starting number by repeatedly calling the next_number tool until the value 1 is reached.

Install

npx vskill@latest install nerdai/llm-agents-from-scratch/hailstone-sequence

SKILL.md

Hailstone Sequence

Compute the full Hailstone (Collatz) sequence from a starting number down to 1 using the next_number tool.

Arguments

The user must provide a starting number (a positive integer greater than 1).

If no starting number is given, ask the user before proceeding.

Steps

1. Initialize

Set the current number x to the starting number provided by the user.

Begin tracking the sequence as a list: [x].

2. Call the tool

Call next_number with the current value of x.

next_number(x=<current_number>)

STOP and WAIT for the tool result before continuing.

3. Record the result

Append the returned value to the sequence list.

Set x to the returned value.

4. Check termination
  • If x == 1, proceed to Step 5.
  • Otherwise, go back to Step 2.

Important rules:

  • NEVER fabricate or simulate tool call results.
  • NEVER make multiple tool calls in a single response.
  • ALWAYS wait for the actual tool response before deciding next steps.
5. Report the result

Print the complete sequence from start to finish, for example:

6 → 3 → 10 → 5 → 16 → 8 → 4 → 2 → 1

Also report:

  • Starting number
  • Total steps taken (number of tool calls made)
  • Maximum value reached in the sequence

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
156
Repository forks
53
7-day trend score
25

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 27 Oct 2026, 8 days ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/nerdai/llm-agents-from-scratch/hailstone-sequence/badge)](https://verified-skill.com/skills/nerdai/llm-agents-from-scratch/hailstone-sequence)

Something wrong with this skill or its page? Tell us.