← Back to Skills Marketplace
terrycarter1985

Fibonacci Generator

by terrycarter1985 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
98
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install fibonacci-generator
Description
Generate and work with Fibonacci sequences and related number sequences. Use when users need Fibonacci numbers, calculate Fibonacci sequences, find nth Fibon...
README (SKILL.md)

Fibonacci Sequence Generator

Generate Fibonacci sequences and work with Fibonacci numbers, golden ratios, and related mathematical concepts.

Quick Start

Basic Usage

The Fibonacci sequence starts with 0, 1, and each subsequent number is the sum of the two preceding ones.

First 10 Fibonacci numbers: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34

Generate First N Numbers

def fibonacci(n):
    """Generate first n Fibonacci numbers."""
    if n \x3C= 0:
        return []
    elif n == 1:
        return [0]
    seq = [0, 1]
    for i in range(2, n):
        seq.append(seq[-1] + seq[-2])
    return seq

Common Operations

Nth Fibonacci Number (0-indexed)

def nth_fibonacci(n):
    """Get the nth Fibonacci number (0-indexed)."""
    a, b = 0, 1
    for _ in range(n):
        a, b = b, a + b
    return a

Check if Number is Fibonacci

import math

def is_fibonacci(x):
    """Check if x is a Fibonacci number."""
    def is_perfect_square(n):
        s = int(math.sqrt(n))
        return s * s == n
    return is_perfect_square(5 * x * x + 4) or is_perfect_square(5 * x * x - 4)

Golden Ratio Approximation

As n increases, the ratio F(n+1)/F(n) approaches the golden ratio φ ≈ 1.618033988749895

Related Sequences

Lucas Numbers

Similar to Fibonacci but starts with 2, 1

Tribonacci

Each number is sum of previous three

Fibonacci Sum

Sum of first n Fibonacci numbers = F(n+2) - 1

Usage Guidance
This appears safe for basic Fibonacci calculations. As with any local script, avoid passing extremely large numbers if you are concerned about slow execution or high memory use.
Capability Analysis
Type: OpenClaw Skill Name: fibonacci-generator Version: 1.0.0 The skill bundle is a straightforward implementation of a Fibonacci sequence generator. Both the documentation in SKILL.md and the Python script in scripts/generate.py contain standard mathematical logic for calculating sequences and properties without any high-risk behaviors, external dependencies, or suspicious instructions.
Capability Assessment
Purpose & Capability
The artifacts consistently describe and implement Fibonacci sequence generation and related math operations.
Instruction Scope
The SKILL.md content is limited to explanatory math guidance and example Python functions.
Install Mechanism
There is no install specification and no required binaries, environment variables, credentials, or config paths.
Credentials
The included script only reads an optional numeric command-line argument and prints Fibonacci numbers locally.
Persistence & Privilege
No persistence, elevated privileges, account access, background behavior, or external data flows are shown.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install fibonacci-generator
  3. After installation, invoke the skill by name or use /fibonacci-generator
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release - Generate Fibonacci sequences, nth numbers, check Fibonacci properties, golden ratio
Metadata
Slug fibonacci-generator
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Fibonacci Generator?

Generate and work with Fibonacci sequences and related number sequences. Use when users need Fibonacci numbers, calculate Fibonacci sequences, find nth Fibon... It is an AI Agent Skill for Claude Code / OpenClaw, with 98 downloads so far.

How do I install Fibonacci Generator?

Run "/install fibonacci-generator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Fibonacci Generator free?

Yes, Fibonacci Generator is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Fibonacci Generator support?

Fibonacci Generator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Fibonacci Generator?

It is built and maintained by terrycarter1985 (@terrycarter1985); the current version is v1.0.0.

💬 Comments