[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C0JFZNESV9HMQW8V35DZ9D":3,"skill-same:01M7C0JFZNESV9HMQW8V35DZ9D":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7C0JFZNESV9HMQW8V35DZ9D","python-paths",null,"Good practices when working with file paths in Python","fabiommendes\u002Fcodehood","fabiommendes","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1248626?v=4","01M7B2WVHQWE1G2F5M3BGZ15BV","Fábio Macêdo Mendes","01M7C0GNT3JXJAT1KEPF3PDAT1",1,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002Ffabiommendes\u002Fcodehood\u002Fblob\u002Fmain\u002Fcli\u002F.claude\u002Fskills\u002Fpython-paths\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: python-paths\ndescription: Good practices when working with file paths in Python\n---\n\n# python-paths\n\nPython has 3 standard ways to represent file paths: `str`, `bytes`, and `pathlib.Path`. \nAlways use `pathlib.Path` for new code, unless it is interacting with third\nparty code that requires `str` or `bytes`. \n\n`Path`-like objects like `trio.Path` are also acceptable defaults.\n\nPrefer high level APIs under `pathlib.Path` over low level APIs like `os.path`. \nFor example, use `Path.read_text()` instead of `open(path).read()`, and use `Path.iterdir()`\ninstead of `os.listdir()`. \n\nWhen interacting with third party code that requires `str` or `bytes`, use the\n`str(Path)` or `bytes(path)` as appropriate. When reading paths from those APIs,\nuse `Path(path)` to convert them back to `Path` objects.\n\nIt is OK to design public APIs that accept `str`, `bytes`, or `Path` objects. In\nthat case, define toplevel types like `PathLike = str | bytes | Path` and use\nthem in type hints. Use `Path(path)` to convert them to `Path` objects for\ninternal use.\n","# python-paths\n\nPython has 3 standard ways to represent file paths: `str`, `bytes`, and `pathlib.Path`. \nAlways use `pathlib.Path` for new code, unless it is interacting with third\nparty code that requires `str` or `bytes`. \n\n`Path`-like objects like `trio.Path` are also acceptable defaults.\n\nPrefer high level APIs under `pathlib.Path` over low level APIs like `os.path`. \nFor example, use `Path.read_text()` instead of `open(path).read()`, and use `Path.iterdir()`\ninstead of `os.listdir()`. \n\nWhen interacting with third party code that requires `str` or `bytes`, use the\n`str(Path)` or `bytes(path)` as appropriate. When reading paths from those APIs,\nuse `Path(path)` to convert them back to `Path` objects.\n\nIt is OK to design public APIs that accept `str`, `bytes`, or `Path` objects. In\nthat case, define toplevel types like `PathLike = str | bytes | Path` and use\nthem in type hints. Use `Path(path)` to convert them to `Path` objects for\ninternal use.\n",{"name":5,"description":7},"main","bd51a80f42ea533b45c523008c3361a46bc3ed3a","cli\u002F.claude\u002Fskills\u002Fpython-paths",0,"https:\u002F\u002Fgithub.com\u002Ffabiommendes\u002Fcodehood","https:\u002F\u002Fgithub.com\u002Ffabiommendes","2026-11-15 05:44:14",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add fabiommendes\u002Fcodehood --skill python-paths",{"tool":37,"command":38},"bunx","bunx skills add fabiommendes\u002Fcodehood --skill python-paths",{"tool":40,"command":41},"pnpm","pnpm dlx skills add fabiommendes\u002Fcodehood --skill python-paths","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ffabiommendes\u002Fcodehood\u002Fblob\u002Fmain\u002Fcli\u002F.claude\u002Fskills\u002Fpython-paths\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M7C0JM7A0PBSDW9R7M6C79JN","unslop","Cut AI tells from any writing. Must always apply.","https:\u002F\u002Fgithub.com\u002Ffabiommendes\u002Fcodehood\u002Fblob\u002Fmain\u002Fcli\u002F.claude\u002Fskills\u002Funslop\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7C0JJYQCZM1X851ABVDQ5QZ","python-publish","Guidelines to publish Python packages","https:\u002F\u002Fgithub.com\u002Ffabiommendes\u002Fcodehood\u002Fblob\u002Fmain\u002Fcli\u002F.claude\u002Fskills\u002Fpython-publish\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7C0JHDJFYY2KKPP9B0TKBDY","python-projects","Style and good practices when implementing Python projects","https:\u002F\u002Fgithub.com\u002Ffabiommendes\u002Fcodehood\u002Fblob\u002Fmain\u002Fcli\u002F.claude\u002Fskills\u002Fpython-projects\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7C0JE3YZNMMDYM17DP681SM","python-modules","Style and good practices when implementing or refactoring Python modules","https:\u002F\u002Fgithub.com\u002Ffabiommendes\u002Fcodehood\u002Fblob\u002Fmain\u002Fcli\u002F.claude\u002Fskills\u002Fpython-modules\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7C0JCAR3N81GQ8Z068FTYX9","python-functions","Style and good practices when implementing or refactoring Python functions and methods","https:\u002F\u002Fgithub.com\u002Ffabiommendes\u002Fcodehood\u002Fblob\u002Fmain\u002Fcli\u002F.claude\u002Fskills\u002Fpython-functions\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7C0J85RDKVVSFRARSKKFAG3","principle-subtract-before-you-add","Apply when sequencing an addition, refactor, or rewrite. Remove dead weight, redundant validators, and stub references first, then build on the simpler base.","https:\u002F\u002Fgithub.com\u002Ffabiommendes\u002Fcodehood\u002Fblob\u002Fmain\u002Fcli\u002F.claude\u002Fskills\u002Fprinciple-subtract-before-you-add\u002FSKILL.md",[],[]]