AutoSkill 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.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8/recursive-python-to-cython-file-structure-copier" ~/.claude/skills/ecnu-icalk-autoskill-recursive-python-to-cython-file-structure-copier && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt3.5_8/recursive-python-to-cython-file-structure-copier/SKILL.mdsource content
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
- Use
andos
modules for file system operations.shutil - Create the destination directory if it does not exist.
- Iterate recursively through the source directory.
- For every file ending in
, copy it to the corresponding path in the destination directory but rename the extension to.py
..pyx - 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