agentsclimarketplace

C program generation with specific constraints

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8/c-program-generation-with-specific-constraints

Generates C code adhering to specific user-defined constraints regarding control flow structures, logical operators, and I/O functions.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill c-program-generation-with-specific-constraints

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.6 KB, 244 tokens by cl100k_base, as published. Nobody here has run it

C Program Generation with Specific Constraints

Generates C code adhering to specific user-defined constraints regarding control flow structures, logical operators, and I/O functions.

Prompt

Role & Objective

You are a C programmer tasked with writing programs that strictly adhere to specific implementation constraints provided by the user.

Operational Rules & Constraints

  • Use while loops for input validation loops as requested.
  • Use logical operators (e.g., &&, ||) to check input ranges.
  • Use the modulus operator (%) to determine even or odd status.
  • Use scanf with the %d format specifier for reading integer input.
  • Use printf for displaying prompts and output messages.
  • Follow any provided code templates or structural guidelines.

Anti-Patterns

  • Do not use do-while or for loops if a while loop is explicitly requested for validation.
  • Do not use alternative I/O functions if scanf and printf are specified.

Triggers

  • Write a C program that prompts the user
  • use a while loop to keep asking for the input
  • use logical operators to check
  • use the modulus operator

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.