[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C0JE3YZNMMDYM17DP681SM":3,"skill-same:01M7C0JE3YZNMMDYM17DP681SM":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},"01M7C0JE3YZNMMDYM17DP681SM","python-modules",null,"Style and good practices when implementing or refactoring Python modules","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-modules\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: python-modules\ndescription: Style and good practices when implementing or refactoring Python modules\n---\n\n# python-modules\n\nBest practices and style guide for implementing Python modules.\n\n\n## Architecture\n\nPrefer deep modules over wide modules. A deep module has a small API surface \nyet implement a large set of features. Avoid exposing public functions that are \ntrivial to implement and provide only marginal convenience. \n\n\n## Coding layout\n\nAll modules should include an import of \"from __future__ import annotations\". \nThe module should be organized in the following order:\n\n* Module docstring, if public.\n* Future imports.\n* Imports.\n* Module-level constants. Those should be in all caps and separated by underscores.\n* Module-level type aliases. Those should be in PascalCase.\n* The main API entry points of the module. Can be a class or a function. If the\n  module exposes multiple APIs, they should be grouped in a logical order, from\n  the most important to the least important.\n* Internal implementation of the module. Can be classes, functions or variables.\n  Those should be named with a leading underscore. If the module is large, it\n  can be split into multiple files and the internal implementation can be\n  placed in a private module. \n* If you want to separate by sections, use the following comment style:\n\n  ```python\n  # \n  # SECTION TITLE\n  #\n  ```\n\n  The section can also contain extra comments if they implement an unusual or\n  complex behavior. The comments should be placed after the section title. \n\n\n## Public modules\n\nAll public modules should have a docstring at the top of the file with a short\ndescription of the module's purpose. DO NOT list the exposed symbols in the \ndocstring.\n\nPublic modules should also export a `__all__` variable with a list of the \npublic symbols. You can separete sections within the exported symbols with \ncomments like so:\n\n```python\n__all__ = [\n    \"MyClass\",\n    #: Section title\n    #\n    # Small paragraph describing the section.\n    \"fn1\",\n    \"fn2\",\n]\n```\n\n## Private modules\n\nPrivate modules do not contain neither a docstring nor an `__all__` variable.\nModules can be prived for two reasons:\n\n* Internal use only, never export any public symbols.\n* Implement some public symbol that is re-exported by a public module. It is\n  mostly used to split a large implementation into multiple files.\n\nThe first should always be named with a leading underscore. The internal symbols\nshould be named with public names. Internal use modules should usually be imported\nas namespaces like so:\n\n```python\nfrom . import _internal_module\n\n# use some symbol:\n_internal_module.some_symbol()\n```\n","# python-modules\n\nBest practices and style guide for implementing Python modules.\n\n\n## Architecture\n\nPrefer deep modules over wide modules. A deep module has a small API surface \nyet implement a large set of features. Avoid exposing public functions that are \ntrivial to implement and provide only marginal convenience. \n\n\n## Coding layout\n\nAll modules should include an import of \"from __future__ import annotations\". \nThe module should be organized in the following order:\n\n* Module docstring, if public.\n* Future imports.\n* Imports.\n* Module-level constants. Those should be in all caps and separated by underscores.\n* Module-level type aliases. Those should be in PascalCase.\n* The main API entry points of the module. Can be a class or a function. If the\n  module exposes multiple APIs, they should be grouped in a logical order, from\n  the most important to the least important.\n* Internal implementation of the module. Can be classes, functions or variables.\n  Those should be named with a leading underscore. If the module is large, it\n  can be split into multiple files and the internal implementation can be\n  placed in a private module. \n* If you want to separate by sections, use the following comment style:\n\n  ```python\n  # \n  # SECTION TITLE\n  #\n  ```\n\n  The section can also contain extra comments if they implement an unusual or\n  complex behavior. The comments should be placed after the section title. \n\n\n## Public modules\n\nAll public modules should have a docstring at the top of the file with a short\ndescription of the module's purpose. DO NOT list the exposed symbols in the \ndocstring.\n\nPublic modules should also export a `__all__` variable with a list of the \npublic symbols. You can separete sections within the exported symbols with \ncomments like so:\n\n```python\n__all__ = [\n    \"MyClass\",\n    #: Section title\n    #\n    # Small paragraph describing the section.\n    \"fn1\",\n    \"fn2\",\n]\n```\n\n## Private modules\n\nPrivate modules do not contain neither a docstring nor an `__all__` variable.\nModules can be prived for two reasons:\n\n* Internal use only, never export any public symbols.\n* Implement some public symbol that is re-exported by a public module. It is\n  mostly used to split a large implementation into multiple files.\n\nThe first should always be named with a leading underscore. The internal symbols\nshould be named with public names. Internal use modules should usually be imported\nas namespaces like so:\n\n```python\nfrom . import _internal_module\n\n# use some symbol:\n_internal_module.some_symbol()\n```\n",{"name":5,"description":7},"main","bd51a80f42ea533b45c523008c3361a46bc3ed3a","cli\u002F.claude\u002Fskills\u002Fpython-modules",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-modules",{"tool":37,"command":38},"bunx","bunx skills add fabiommendes\u002Fcodehood --skill python-modules",{"tool":40,"command":41},"pnpm","pnpm dlx skills add fabiommendes\u002Fcodehood --skill python-modules","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ffabiommendes\u002Fcodehood\u002Fblob\u002Fmain\u002Fcli\u002F.claude\u002Fskills\u002Fpython-modules\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},"01M7C0JFZNESV9HMQW8V35DZ9D","python-paths","Good practices when working with file paths in Python","https:\u002F\u002Fgithub.com\u002Ffabiommendes\u002Fcodehood\u002Fblob\u002Fmain\u002Fcli\u002F.claude\u002Fskills\u002Fpython-paths\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",[],[]]