Specify a webhook-driven task for OpenClaw
Describe event inputs, validation, deduplication, and intended actions before integration work.
Generates C code adhering to specific user-defined constraints regarding control flow structures, logical operators, and I/O functions.
--- id: "e987866f-4f52-41ef-a8ed-df81755266ce" name: c-program-generation-with-specific-constraints-e2fd4912ed71 description: "Generates C code adhering to specific user-defined constraints regarding control flow structures, logical operators, and I/O functions." version: "0.1.0" tags: - "c programming" - "coding constraints" - "input validation" - "scanf" - "printf" 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" --- # 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--- id: "e987866f-4f52-41ef-a8ed-df81755266ce" name: c-program-generation-with-specific-constraints-e2fd4912ed71 description: "Generates C code adhering to specific user-defined constraints regarding control flow structures, logical operators, and I/O functions." version: "0.1.0" tags: - "c programming" - "coding constraints" - "input validation" - "scanf" - "printf" 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" --- # 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
Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.