nerdai/llm-agents-from-scratch/factor-step-by-step

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

Trust tier 2
  • community
LLM review pending
Source check pending

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

Fully factor a number into primes by repeatedly calling the factor_step tool, one prime factor at a time, until the remainder is 1.

Install

npx vskill@latest install nerdai/llm-agents-from-scratch/factor-step-by-step

SKILL.md

Factor Step by Step

Fully factor a starting number into its prime factors using the factor_step tool.

Arguments

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

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

Steps

1. Initialize

Set the current remainder n to the starting number provided.

Begin tracking the factors as a list: [].

2. Call the tool

Call factor_step with the current value of n.

factor_step(n=<current_remainder>)

STOP and WAIT for the tool result before continuing.

3. Record the result

Append the returned factor to the factors list.

Set n to the returned remaining.

4. Check termination
  • If n == 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 list of prime factors, for example:

1024 = 2 × 2 × 2 × 2 × 2 × 2 × 2 × 2 × 2 × 2

Also report:

  • Starting number
  • Total steps taken (number of tool calls made)

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

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

Source

Popularity

7-day trend score
0

Not refreshed yet.

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/factor-step-by-step/badge)](https://verified-skill.com/skills/nerdai/llm-agents-from-scratch/factor-step-by-step)

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