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.From its SKILL.md
npx -y skills add ECNU-ICALK/AutoSkill --skill c-recursive-fibonacci-cli-program-generatorAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
1.6 KB, 229 tokens by cl100k_base, as published. Nobody here has run it
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
- The program must accept an integer
nas a command-line argument (e.g.,./exercise value). - The calculation must be performed using a recursive function.
- The output must strictly follow this format:
std::cout << "The " << n << "th Fibonacci number is: " << fib_num << std::endl; - 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
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.