[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BZN0X90JSYATBR2M5TXBJC":3,"skill-same:01M6BZN0X90JSYATBR2M5TXBJC":70},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":47,"ownerHtmlUrl":48,"ownerBlogUrl":17,"ownerDescription":17,"updatedAt":49,"install":50,"resources":63},"01M6BZN0X90JSYATBR2M5TXBJC","notebook.fix_packages","Jupyter 环境依赖修复","Keep the Docker container aligned with the template and install Python packages directly in the notebook","使 Docker 容器与模板保持一致，并直接在笔记本中安装 Python 软件包。","causify-ai\u002Fhelpers","causify-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F121828442?v=4","01M6BZFTHW2MQR7FWK8CDW0DRA","Causify.AI","01M6BZFTPJ193AB5N089Z82HQG",155,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fcausify-ai\u002Fhelpers\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fnotebook.fix_packages\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理","SCENARIO","使用场景",[31,32,33,34,35,36],"packages","notebook fix packages","python","docker","template","haiku","2026-11-10 10:12:30",false,"---\ndescription: Keep the Docker container aligned with the template and install Python packages directly in the notebook\nmodel: haiku\n---\n\n# Goal\n\n- When creating Docker images for projects and tutorials, we want to\n  - Try to use always the same Docker template image from the `class_project` to\n    avoid replication of Docker containers\n  - Install the needed packages in the notebooks to customize the container\n\n## Inputs\n\n- The user passes:\n  - A pointer to a target directory `\u003CTARGET_DIR>` (e.g.,\n    `msml610\u002Ftutorials\u002FL03_knowledge_representation`) that was cloned from\n    `class_project\u002Fproject_template`\n  - (Optional) pointers to Jupyter notebooks\n\n# Workflow\n\n## Use the Docker Container From the Project Teamplate\n\n- In the directory with the project (e.g.,\n  `msml610\u002Ftutorials\u002FL03_knowledge_representation`) we want to use the same\n  `Dockerfile` and `requirements.txt` as the corresponding files in\n  `class_project\u002Fproject_template` (so that the Docker container for the project is\n  the same as the template used for class project)\n- If something needs to be added to the Docker image (e.g., a package that can't be\n  installed with `pip`) then it's ok to add it to `Dockerfile` but it should be\n  clearly commented why that package is needed\n\n## Discover All Packages Needed by the Notebook\n\n- A notebook's own `import` lines are not the full picture: each notebook is paired\n  with a `*_utils.py` file (e.g., `L03_06_logic_solvers.ipynb` ->\n  `L03_06_logic_solvers_utils.py`), and that file is imported with a line like:\n\n  ```\n  import L03_06_logic_solvers_utils as utils\n  ```\n\n- Read the `*_utils.py` file (and any other local module it imports, transitively)\n  and collect every third-party `import` \u002F `from ... import` statement in it, not\n  just the ones in the notebook itself\n- Map import names to their pip package name where they differ (e.g., `cv2` ->\n  `opencv-python`, `sklearn` -> `scikit-learn`, `PIL` -> `Pillow`, `yaml` ->\n  `PyYAML`)\n- Diff this full package list against `requirements.txt` and `Dockerfile`: any\n  package used by the notebook or its utils file that is missing from both is a bug,\n  even if it happens to already be installed in whatever container was used to author\n  the notebook\n- Add every missing package to `requirements.txt` (and to `Dockerfile` only if it\n  can't be installed with `pip`, per\n  `## Use the Docker Container from the Project Teamplate` above)\n\n## Add Packages to Notebooks\n\n- Then we want to add `pip install` the packages needed in each notebook, including\n  every package found in `## Discover All Packages Needed by the Notebook` above, by\n  installing and pinning down the packages\n- For each notebook we want to add after the first call with\n\n  ```\n  %load_ext autoreload\n  %autoreload 2\n\n  import logging\n  ```\n\n  a cell with content like:\n\n  ```\n  !pip install -q python-sat==1.9.dev15 sympy==1.14.0 z3-solver==5.1.0.0\n\n  import pysat\n  print(\"pysat version: \", pysat.__version__)\n  import sympy\n  print(\"sympy version: \", sympy.__version__)\n  import z3\n  print(\"z3 version: \", z3.get_version_string())\n  ```\n\n## Sync Notebook\n\n- At the end, sync the paired `.py` file with Jupytext following the conventions in\n  `# Code Architecture and Responsibility` ->\n  `## Utilities vs. Notebook Responsibilities` in `.claude\u002Fskills\u002Fnotebook.rules.md`\n\n# Verification\n\n- [ ] Every third-party import in the notebook and its paired `*_utils.py` file has a\n      matching entry in `requirements.txt` and in the notebook's `pip install` cell\n- [ ] Build the docker container with `docker_build.sh` inside the target dir\n      `\u003CTARGET_DIR>`\n- [ ] Make sure the container builds correctly and it's the same as the Docker\n      container for the project, if possible\n- [ ] Run each notebook inside the docker container with `docker_cmd.sh` and\n      `nbconvert` to make sure they run correctly end-to-end\n\n# Conventions\n\n- Always follow the conventions and guidelines in `.claude\u002Fskills\u002Fnotebook.rules.md`","# Goal\n\n- When creating Docker images for projects and tutorials, we want to\n  - Try to use always the same Docker template image from the `class_project` to\n    avoid replication of Docker containers\n  - Install the needed packages in the notebooks to customize the container\n\n## Inputs\n\n- The user passes:\n  - A pointer to a target directory `\u003CTARGET_DIR>` (e.g.,\n    `msml610\u002Ftutorials\u002FL03_knowledge_representation`) that was cloned from\n    `class_project\u002Fproject_template`\n  - (Optional) pointers to Jupyter notebooks\n\n# Workflow\n\n## Use the Docker Container From the Project Teamplate\n\n- In the directory with the project (e.g.,\n  `msml610\u002Ftutorials\u002FL03_knowledge_representation`) we want to use the same\n  `Dockerfile` and `requirements.txt` as the corresponding files in\n  `class_project\u002Fproject_template` (so that the Docker container for the project is\n  the same as the template used for class project)\n- If something needs to be added to the Docker image (e.g., a package that can't be\n  installed with `pip`) then it's ok to add it to `Dockerfile` but it should be\n  clearly commented why that package is needed\n\n## Discover All Packages Needed by the Notebook\n\n- A notebook's own `import` lines are not the full picture: each notebook is paired\n  with a `*_utils.py` file (e.g., `L03_06_logic_solvers.ipynb` ->\n  `L03_06_logic_solvers_utils.py`), and that file is imported with a line like:\n\n  ```\n  import L03_06_logic_solvers_utils as utils\n  ```\n\n- Read the `*_utils.py` file (and any other local module it imports, transitively)\n  and collect every third-party `import` \u002F `from ... import` statement in it, not\n  just the ones in the notebook itself\n- Map import names to their pip package name where they differ (e.g., `cv2` ->\n  `opencv-python`, `sklearn` -> `scikit-learn`, `PIL` -> `Pillow`, `yaml` ->\n  `PyYAML`)\n- Diff this full package list against `requirements.txt` and `Dockerfile`: any\n  package used by the notebook or its utils file that is missing from both is a bug,\n  even if it happens to already be installed in whatever container was used to author\n  the notebook\n- Add every missing package to `requirements.txt` (and to `Dockerfile` only if it\n  can't be installed with `pip`, per\n  `## Use the Docker Container from the Project Teamplate` above)\n\n## Add Packages to Notebooks\n\n- Then we want to add `pip install` the packages needed in each notebook, including\n  every package found in `## Discover All Packages Needed by the Notebook` above, by\n  installing and pinning down the packages\n- For each notebook we want to add after the first call with\n\n  ```\n  %load_ext autoreload\n  %autoreload 2\n\n  import logging\n  ```\n\n  a cell with content like:\n\n  ```\n  !pip install -q python-sat==1.9.dev15 sympy==1.14.0 z3-solver==5.1.0.0\n\n  import pysat\n  print(\"pysat version: \", pysat.__version__)\n  import sympy\n  print(\"sympy version: \", sympy.__version__)\n  import z3\n  print(\"z3 version: \", z3.get_version_string())\n  ```\n\n## Sync Notebook\n\n- At the end, sync the paired `.py` file with Jupytext following the conventions in\n  `# Code Architecture and Responsibility` ->\n  `## Utilities vs. Notebook Responsibilities` in `.claude\u002Fskills\u002Fnotebook.rules.md`\n\n# Verification\n\n- [ ] Every third-party import in the notebook and its paired `*_utils.py` file has a\n      matching entry in `requirements.txt` and in the notebook's `pip install` cell\n- [ ] Build the docker container with `docker_build.sh` inside the target dir\n      `\u003CTARGET_DIR>`\n- [ ] Make sure the container builds correctly and it's the same as the Docker\n      container for the project, if possible\n- [ ] Run each notebook inside the docker container with `docker_cmd.sh` and\n      `nbconvert` to make sure they run correctly end-to-end\n\n# Conventions\n\n- Always follow the conventions and guidelines in `.claude\u002Fskills\u002Fnotebook.rules.md`",{"model":36,"description":7},"master","39143a859859181eff7e774457997b5278fd9e99",".claude\u002Fskills\u002Fnotebook.fix_packages",170,"https:\u002F\u002Fgithub.com\u002Fcausify-ai\u002Fhelpers","https:\u002F\u002Fcausify.ai","https:\u002F\u002Fgithub.com\u002Fcausify-ai","2026-11-02 02:09:15",{"source":9,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add causify-ai\u002Fhelpers --skill notebook.fix_packages",{"tool":56,"command":57},"bunx","bunx skills add causify-ai\u002Fhelpers --skill notebook.fix_packages",{"tool":59,"command":60},"pnpm","pnpm dlx skills add causify-ai\u002Fhelpers --skill notebook.fix_packages","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcausify-ai\u002Fhelpers\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fnotebook.fix_packages\u002FSKILL.md",true,[64],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Ffields.md","REFERENCE","参考文档",116,"https:\u002F\u002Fgithub.com\u002Fsiddsachar\u002Frow-bot\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fdata_dirs\u002Fv5_0_0\u002Fskills\u002Fpdf_toolkit\u002Freferences\u002Ffields.md",[71,88,108,125,138,147],{"skillNo":72,"name":73,"nameZh":74,"description":75,"descriptionZh":76,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":77,"categories":78,"keywords":83,"publishedAt":37},"01M6C9ZMM0XSXCHHABMJ9XB1JB","tutorial_in_60_mins.propagate_docker_changes","Docker 文件同步与模板对齐","Sync tutorial and class-project Docker files to match project_template","同步教程和课程项目的 Docker 文件，使其与 project_template 保持一致。","https:\u002F\u002Fgithub.com\u002Fcausify-ai\u002Fhelpers\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Ftutorial_in_60_mins.propagate_docker_changes\u002FSKILL.md",[79,80],{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":81,"categoryName":82,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BVB0FJ0RR8KXYVFTKEA3XX","技术文档工程师",[84,85,34,86,36,35,87],"tutorial in 60 mins propagate docker changes","tutorial","files","sync",{"skillNo":89,"name":90,"nameZh":91,"description":92,"descriptionZh":93,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":94,"categories":95,"keywords":100,"publishedAt":37},"01M6C9ZJK8QJ9FNCY39WVF3GMG","tutorial_in_60_mins.merge_markdown","Markdown 合并至 Jupyter Notebook","Merge the content of a markdown file into a Jupyter notebook","将 Markdown 文件的内容合并到 Jupyter Notebook 中。","https:\u002F\u002Fgithub.com\u002Fcausify-ai\u002Fhelpers\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Ftutorial_in_60_mins.merge_markdown\u002FSKILL.md",[96,99],{"categoryNo":97,"categoryName":98,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TK1MPB82068236GSXDE","文档处理",{"categoryNo":81,"categoryName":82,"taxonomyType":23,"taxonomyTypeDesc":24},[101,102,85,103,104,36,105,106,107],"merge","tutorial in 60 mins merge markdown","markdown","jupyter","file","content","jupyter notebook",{"skillNo":109,"name":110,"nameZh":111,"description":112,"descriptionZh":113,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":114,"categories":115,"keywords":120,"publishedAt":37},"01M6C9ZFYK13ZCT1E8BEEC4NG4","tutorial_in_60_mins.format","60 分钟教程格式规范化","Format a directory to follow the \"Learn X in 60 Minutes\" tutorial conventions","格式化目录，使其遵循「Learn X in 60 Minutes」（60 分钟学会 X）教程约定。","https:\u002F\u002Fgithub.com\u002Fcausify-ai\u002Fhelpers\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Ftutorial_in_60_mins.format\u002FSKILL.md",[116,117],{"categoryNo":81,"categoryName":82,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":118,"categoryName":119,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8CFCW1CKQHXFV91HEWYD9W6","课程开发与教学制作",[121,85,122,123,124,36],"tutorial in 60 mins format","format","directory","learn",{"skillNo":126,"name":127,"nameZh":128,"description":129,"descriptionZh":130,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":131,"categories":132,"keywords":135,"publishedAt":37},"01M6C9ZDKXSBKNKX7M3X4W38G5","tutorial_in_60_mins.create","60 分钟教程目录创建","Create a tutorial directory for the Learn X in 60 Minutes conventions","按照「Learn X in 60 Minutes」（60 分钟学会 X）约定创建教程目录。","https:\u002F\u002Fgithub.com\u002Fcausify-ai\u002Fhelpers\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Ftutorial_in_60_mins.create\u002FSKILL.md",[133,134],{"categoryNo":81,"categoryName":82,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":118,"categoryName":119,"taxonomyType":28,"taxonomyTypeDesc":29},[136,85,137,123,124],"tutorial in 60 mins create","create",{"skillNo":139,"name":140,"nameZh":17,"description":141,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":37},"01M6BZS5Z0QE03WRS1TM3XJEY9","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","https:\u002F\u002Fgithub.com\u002Fcausify-ai\u002Fhelpers\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Ftodo.reorg_in_progress\u002FSKILL.md",[],[145,146],"todo reorg in progress","tasks",{"skillNo":148,"name":149,"nameZh":17,"description":150,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":37},"01M6BZS4CQZ6KK2KQ26SVB7QCS","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","https:\u002F\u002Fgithub.com\u002Fcausify-ai\u002Fhelpers\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Ftodo.reorg_headers\u002FSKILL.md",[],[154],"todo reorg headers"]