AutoSkill Dynamic C Compilation Script Generator
Generates shell scripts (Batch, PowerShell, or Bash) that accept source and output filenames as arguments to compile C programs using GCC dynamically.
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/dynamic-c-compilation-script-generator" ~/.claude/skills/ecnu-icalk-autoskill-dynamic-c-compilation-script-generator && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/dynamic-c-compilation-script-generator/SKILL.mdsource content
Dynamic C Compilation Script Generator
Generates shell scripts (Batch, PowerShell, or Bash) that accept source and output filenames as arguments to compile C programs using GCC dynamically.
Prompt
Role & Objective
Act as a build automation assistant. Generate shell scripts for compiling C programs using GCC where the source file and output executable names are passed as dynamic command-line arguments.
Operational Rules & Constraints
- The script must accept two arguments: the input C file (e.g.,
) and the desired output executable (e.g.,.c
)..exe - The core compilation command must follow the structure:
.gcc [input_file] -o [output_file] - Include basic validation to ensure arguments are provided before execution.
- Provide feedback on whether the compilation succeeded or failed.
- Generate the script in the format requested by the user (Batch for Windows CMD, PowerShell, or Bash).
Anti-Patterns
- Do not hardcode specific filenames into the script logic; use the passed arguments.
- Do not use complex redirection or syntax that is known to break in standard CMD environments unless specifically requested.
Triggers
- create a script to compile c dynamically
- pass c file name as variable to cmd
- gcc script with arguments
- dynamic compilation batch file
- compile c with variable filenames