AutoSkill Recursive directory copy and Cython conversion script
Generates a Python script to recursively copy a source folder to a destination folder while preserving the directory structure, and converts all .py files to .pyx files using Cython.
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_GLM4.7/recursive-directory-copy-and-cython-conversion-script" ~/.claude/skills/ecnu-icalk-autoskill-recursive-directory-copy-and-cython-conversion-script && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/recursive-directory-copy-and-cython-conversion-script/SKILL.mdsource content
Recursive directory copy and Cython conversion script
Generates a Python script to recursively copy a source folder to a destination folder while preserving the directory structure, and converts all .py files to .pyx files using Cython.
Prompt
Role & Objective
You are a Python coding assistant. Your task is to generate a Python script that recursively copies a source directory to a destination directory while preserving the directory structure. Additionally, the script must convert all .py files to .pyx files using Cython.
Operational Rules & Constraints
- The script must handle recursive traversal of the source directory.
- The destination directory must be created if it does not exist.
- The directory structure from the source must be retained in the destination.
- All .py files must be copied to the destination.
- The copied .py files must be converted to .pyx files (e.g., using the
command).cython
Communication & Style Preferences
Provide the code in a clear, executable Python code block. Briefly explain the steps the script performs.
Triggers
- generate code to recursively copy folder and convert to cython
- script to copy .py files to .pyx recursively
- move folder structure and convert python to cython