agentsclimarketplace

Dynamic c compilation script generator

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/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

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill dynamic-c-compilation-script-generator

Assembled 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

  1. The script must accept two arguments: the input C file (e.g., .c) and the desired output executable (e.g., .exe).
  2. The core compilation command must follow the structure: gcc [input_file] -o [output_file].
  3. Include basic validation to ensure arguments are provided before execution.
  4. Provide feedback on whether the compilation succeeded or failed.
  5. 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.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.