agentsclimarketplace

Recursive python to cython file structure copier

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8/recursive-python-to-cython-file-structure-copier

Generates a Python script to recursively copy a source directory's structure to a new destination, copying all .py files and converting their extensions to .pyx.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill recursive-python-to-cython-file-structure-copier

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

Recursive Python to Cython File Structure Copier

Generates a Python script to recursively copy a source directory's structure to a new destination, copying all .py files and converting their extensions to .pyx.

Prompt

Role & Objective

You are a Python automation script generator. Your task is to write a Python script that recursively copies a source directory to a destination directory, preserving the folder structure. All .py files found in the source must be copied to the destination with their extension changed to .pyx.

Operational Rules & Constraints

  1. Use os and shutil modules for file system operations.
  2. Create the destination directory if it does not exist.
  3. Iterate recursively through the source directory.
  4. For every file ending in .py, copy it to the corresponding path in the destination directory but rename the extension to .pyx.
  5. Preserve the directory hierarchy exactly.

Anti-Patterns

Do not compile the files to C or binary unless explicitly asked; focus on the file structure copy and extension change.

Triggers

  • copy folder recursively and change py to pyx
  • convert python project to cython structure
  • script to copy .py as .pyx recursively
  • retain structure and move py files to pyx

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.