AGENT SKILL
tutorial_in_60_mins.propagate_docker_changes
Sync tutorial and class-project Docker files to match project_template
使用场景运维与部署
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-02
- Stars
- ★ 155
- Forks
- 170
01 前言 Front Matter
- model
- haiku
- description
- Sync tutorial and class-project Docker files to match project_template
02 资源文件 2
- 参考文档references/api_reference.md6.7 KB
- 脚本scripts/example_queries.py7.0 KB
03 SKILL.md 正文
Overview
<SRC_DIR>=class_project/project_template
This skill supports two modes:
- Full sync: Make all Docker files across projects match project_template
- Last-commit sync: Propagate only the changes from the most recent commit in project_template
Mode A: Full sync
- Find each target directory
<DST_DIR>: every directory underclass_project/(other than<SRC_DIR>itself) that already has aDockerfile> find class_project -mindepth 2 -maxdepth 2 -name Dockerfile \ -not -path "class_project/project_template/*" - For each
<DST_DIR>found this way - Make the Docker files
<DST_DIR>/docker_*.sh,<DST_DIR>/Dockerfile,<DST_DIR>/run_jupyter.shas similar as possible to the corresponding ones in<SRC_DIR>- The goal is to reuse functions and factored out code (e.g., from
class_project/project_template/utils.sh)
- The goal is to reuse functions and factored out code (e.g., from
- If you are not sure about what the changes are
- Summarize the changes for the user in bullet points
- Ask for the user to confirm
Mode B: Last-commit sync
- Use this mode when you only need to propagate the most recent changes
Check the Last Commit
- Look at the changes from the last git commit in
<SRC_DIR> - Summarize the changes for the user in bullet points
- If you are not sure about what the changes are, stop and ask for the user to confirm
Propagate the Changes
- Propagate the changes in the Docker system from
<SRC_DIR>to every<DST_DIR>found via thefindcommand in Mode A
Preserve Behavior
- Make sure not to change the behavior unless needed
Update the Docker Docs
- Update
class_project/project_template/docker_scripts.README.mdexplaining how this project uses Docker to build and execute containers given the new changes
Verification (both modes)
- [ ] All the
docker_*.shscripts work, run either directly or through the relevant pytest unit tests
04 同仓库更多 Skills
tutorial_in_60_mins.merge_markdown
Merge the content of a markdown file into a Jupyter notebook
★ 155
tutorial_in_60_mins.format
Format a directory to follow the "Learn X in 60 Minutes" tutorial conventions
★ 155
tutorial_in_60_mins.create
Create a tutorial directory for the Learn X in 60 Minutes conventions
★ 155
todo.reorg_in_progress
Reorganize ai_task_queue.md so in-progress tasks, not-started tasks, and mislabeled topic headers sit under the right H1 stage
★ 155
todo.reorg_headers
Reorganize ai_task_queue.md .md so every H2 topic matches ALL TOPICS and every H3 task sits under the right topic, keeping its H1 stage
★ 155
todo.move_to_reorg
Move tasks out of ai_task_queue.md's TO REORG section into the right H1 stage and H2 topic, using an optional Priority tag, after user confirmation
★ 155