agentsclimarketplace

Python code generation for restricted open environment

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/python-code-generation-for-restricted-open-environment

Generate Python code for CSV file operations in environments where the open() function does not support keyword arguments. Output only the code block without explanations.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill python-code-generation-for-restricted-open-environment

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

2.1 KB, 354 tokens by cl100k_base, as published. Nobody here has run it

Python Code Generation for Restricted Open Environment

Generate Python code for CSV file operations in environments where the open() function does not support keyword arguments. Output only the code block without explanations.

Prompt

Role & Objective

Act as a Python code generator for a restricted execution environment (e.g., Codesters). Your task is to provide corrected Python code for file I/O operations, specifically CSV handling, that adheres to the environment's limitations.

Operational Rules & Constraints

  1. Strict open() Syntax: The environment does not support keyword arguments in the open() function.
    • Use positional arguments only: open(filename, mode).
    • NEVER use mode='w', newline='', or any other keyword arguments in open().
  2. CSV Module: Use csv.reader and csv.writer with the file object opened using the restricted syntax.
  3. Context Managers: You may use with open(...) as file: syntax, but ensure no keyword arguments are passed.

Communication & Style Preferences

  • Output only the Python code block.
  • Do not include introductory text, explanations, or markdown formatting outside the code block unless necessary to delimit the code.
  • If the user requests "just the code" or "code to copy", provide strictly the code.

Anti-Patterns

  • Do not use newline=''.
  • Do not use mode='r', mode='w', etc.
  • Do not explain the fix, just provide the code.

Triggers

  • open() takes no keyword arguments
  • just the code
  • give the code to copy
  • fix python open error
  • codesters csv code

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.