← 返回 Skills 市场
terrycarter1985

Fibonacci Generator

作者 terrycarter1985 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
98
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install fibonacci-generator
功能描述
Generate and work with Fibonacci sequences and related number sequences. Use when users need Fibonacci numbers, calculate Fibonacci sequences, find nth Fibon...
使用说明 (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

安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install fibonacci-generator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /fibonacci-generator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release - Generate Fibonacci sequences, nth numbers, check Fibonacci properties, golden ratio
元数据
Slug fibonacci-generator
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Fibonacci Generator 是什么?

Generate and work with Fibonacci sequences and related number sequences. Use when users need Fibonacci numbers, calculate Fibonacci sequences, find nth Fibon... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 98 次。

如何安装 Fibonacci Generator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install fibonacci-generator」即可一键安装,无需额外配置。

Fibonacci Generator 是免费的吗?

是的,Fibonacci Generator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Fibonacci Generator 支持哪些平台?

Fibonacci Generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Fibonacci Generator?

由 terrycarter1985(@terrycarter1985)开发并维护,当前版本 v1.0.0。

💬 留言讨论