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.From its SKILL.md
npx -y skills add ECNU-ICALK/AutoSkill --skill dynamic-c-compilation-script-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.9 KB, 273 tokens by cl100k_base, as published. Nobody here has run it
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.,
.c) and the desired output executable (e.g.,.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
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.