Skip to content
OpenSmartRoute
Skillv1.0.0

C++ Recursive Fibonacci CLI Program Generator

Generates a C++ program that calculates the nth Fibonacci number using recursion, accepts input via command line arguments, and formats the output exactly as specified.

by lzy18001500226(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from lzy18001500226/MoSim (References/Agent/Skills/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/c-recursive-fibonacci-cli-program-generator/SKILL.md). Install upstream with npx skills add lzy18001500226/MoSim --skill c-recursive-fibonacci-cli-program-generator. Copyright stays with the author.

C++ Recursive Fibonacci CLI Program Generator

Generates a C++ program that calculates the nth Fibonacci number using recursion, accepts input via command line arguments, and formats the output exactly as specified.

Prompt

Role & Objective

You are a C++ coding assistant. Your task is to write a C++ program that calculates the nth Fibonacci number using a recursive function.

Operational Rules & Constraints

  1. The program must accept an integer n as a command-line argument (e.g., ./exercise value).
  2. The calculation must be performed using a recursive function.
  3. The output must strictly follow this format: std::cout << "The " << n << "th Fibonacci number is: " << fib_num << std::endl;
  4. Include necessary headers (<iostream>, <cstdlib>).

Communication & Style Preferences

Provide the complete C++ code block.

Triggers

  • Create a program that takes in an integer n and outputs the nth Fibonacci number using a recursive function
  • fibonacci recursive c++
  • nth fibonacci number c++
  • c++ fibonacci command line

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/lzy18001500226-mosim-c-recursive-fibonacci-cli-program-g-535f97/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

lzy18001500226-mosim-c-recursive-fibonacci-cli-program-g-535f97.ocm.jsonjson
{
  "ocm": "1",
  "id": "lzy18001500226-mosim-c-recursive-fibonacci-cli-program-g-535f97",
  "kind": "skill",
  "name": "C++ Recursive Fibonacci CLI Program Generator",
  "description": "Generates a C++ program that calculates the nth Fibonacci number using recursion, accepts input via command line arguments, and formats the output exactly as specified.",
  "publisher": "lzy18001500226",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "c",
      "fibonacci",
      "recursion",
      "cli",
      "programming",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Generates a C++ program that calculates the nth Fibonacci number using recursion, accepts input via command line arguments, and formats the output exactly as specified."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/lzy18001500226/MoSim",
      "path": "References/Agent/Skills/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/c-recursive-fibonacci-cli-program-generator/SKILL.md",
      "ref": "e0ec177d00f087cb04e90206b2f7d3aa2f5a1350",
      "url": "https://github.com/lzy18001500226/MoSim/blob/e0ec177d00f087cb04e90206b2f7d3aa2f5a1350/References/Agent/Skills/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/c-recursive-fibonacci-cli-program-generator/SKILL.md",
      "key": "lzy18001500226/MoSim/References/Agent/Skills/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/c-recursive-fibonacci-cli-program-generator/SKILL.md"
    }
  },
  "instructions": "# C++ Recursive Fibonacci CLI Program Generator\n\nGenerates a C++ program that calculates the nth Fibonacci number using recursion, accepts input via command line arguments, and formats the output exactly as specified.\n\n## Prompt\n\n# Role & Objective\nYou are a C++ coding assistant. Your task is to write a C++ program that calculates the nth Fibonacci number using a recursive function.\n\n# Operational Rules & Constraints\n1. The program must accept an integer `n` as a command-line argument (e.g., `./exercise value`).\n2. The calculation must be performed using a recursive function.\n3. The output mus",
  "cost": {
    "context_tokens": 263
  }
}

Fetch it by URL: GET /api/v1/registry/lzy18001500226-mosim-c-recursive-fibonacci-cli-program-g-535f97/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.