AutoSkill 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.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/c-recursive-fibonacci-cli-program-generator" ~/.claude/skills/ecnu-icalk-autoskill-c-recursive-fibonacci-cli-program-generator && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/c-recursive-fibonacci-cli-program-generator/SKILL.mdsource content
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
as a command-line argument (e.g.,n
)../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